From d796c9dd933ab96ec83b9a634feedd5d32e1ba3f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 8 Nov 2011 12:31:36 -0600 Subject: Test conversion to TQt3 from Qt3 8c6fc1f8e35fd264dd01c582ca5e7549b32ab731 --- doc/html/qwidgetplugin.html | 146 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 doc/html/qwidgetplugin.html (limited to 'doc/html/qwidgetplugin.html') diff --git a/doc/html/qwidgetplugin.html b/doc/html/qwidgetplugin.html new file mode 100644 index 000000000..87b4f72d3 --- /dev/null +++ b/doc/html/qwidgetplugin.html @@ -0,0 +1,146 @@ + + + + + +TQWidgetPlugin Class + + + + + + + +
+ +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

TQWidgetPlugin Class Reference

+ +

The TQWidgetPlugin class provides an abstract base for custom TQWidget plugins. +More... +

#include <qwidgetplugin.h> +

List of all member functions. +

Public Members

+ +

Detailed Description

+ + +The TQWidgetPlugin class provides an abstract base for custom TQWidget plugins. +

+

The widget plugin is a simple plugin interface that makes it easy +to create custom widgets that can be included in forms using TQt Designer and used by applications. +

Writing a widget plugin is achieved by subclassing this base +class, reimplementing the pure virtual functions keys(), create(), +group(), iconSet(), includeFile(), toolTip(), whatsThis() and +isContainer(), and exporting the class with the Q_EXPORT_PLUGIN +macro. +

See the TQt Designer manual's, +'Creating Custom Widgets' section in the 'Creating Custom Widgets' +chapter, for a complete example of a TQWidgetPlugin. +

See also the Plugins + documentation and the TQWidgetFactory class that is +supplied with TQt Designer. +

See also Plugins. + +


Member Function Documentation

+

TQWidgetPlugin::TQWidgetPlugin () +

+Constructs a widget plugin. This is invoked automatically by the +Q_EXPORT_PLUGIN macro. + +

TQWidgetPlugin::~TQWidgetPlugin () +

+Destroys the widget plugin. +

You never have to call this explicitly. TQt destroys a plugin +automatically when it is no longer used. + +

TQWidget * TQWidgetPlugin::create ( const TQString & key, TQWidget * parent = 0, const char * name = 0 ) [pure virtual] +

+ +

Creates and returns a TQWidget object for the widget key key. +The widget key is the class name of the retquired widget. The name and parent arguments are passed to the custom widget's +constructor. +

See also keys(). + +

TQString TQWidgetPlugin::group ( const TQString & key ) const [virtual] +

+Returns the group (toolbar name) that the custom widget of class +key should be part of when TQt Designer loads it. +

The default implementation returns TQString::null. + +

TQIconSet TQWidgetPlugin::iconSet ( const TQString & key ) const [virtual] +

+Returns the iconset that TQt Designer should use to represent +the custom widget of class key in the toolbar. +

The default implementation returns an null iconset. + +

TQString TQWidgetPlugin::includeFile ( const TQString & key ) const [virtual] +

+Returns the name of the include file that TQt Designer and uic should use to include the custom widget of class key in +generated code. +

The default implementation returns TQString::null. + +

bool TQWidgetPlugin::isContainer ( const TQString & key ) const [virtual] +

+Returns TRUE if the custom widget of class key can contain +other widgets, e.g. like TQFrame; otherwise returns FALSE. +

The default implementation returns FALSE. + +

TQStringList TQWidgetPlugin::keys () const [pure virtual] +

+ +

Returns the list of widget keys this plugin supports. +

These keys must be the class names of the custom widgets that are +implemented in the plugin. +

See also create(). + +

TQString TQWidgetPlugin::toolTip ( const TQString & key ) const [virtual] +

+Returns the text of the tooltip that TQt Designer should use +for the custom widget of class key's toolbar button. +

The default implementation returns TQString::null. + +

TQString TQWidgetPlugin::whatsThis ( const TQString & key ) const [virtual] +

+Returns the text of the whatsThis text that TQt Designer should +use when the user requests whatsThis help for the custom widget of +class key. +

The default implementation returns TQString::null. + + +


+This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


+ +
Copyright © 2007 +TrolltechTrademarks +
TQt 3.3.8
+
+ -- cgit v1.2.1