author | kergoth <kergoth> | 2002-11-01 00:10:42 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-11-01 00:10:42 (UTC) |
commit | 5042e3cf0d3514552769e441f5aad590c8eaf967 (patch) (unidiff) | |
tree | 4a5ea45f3519d981a172ab5275bf38c6fa778dec /qmake/include/private/qwidgetinterface_p.h | |
parent | 108c1c753e74e989cc13923086996791428c9af4 (diff) | |
download | opie-5042e3cf0d3514552769e441f5aad590c8eaf967.zip opie-5042e3cf0d3514552769e441f5aad590c8eaf967.tar.gz opie-5042e3cf0d3514552769e441f5aad590c8eaf967.tar.bz2 |
Adding qmake in preperation for new build system
Diffstat (limited to 'qmake/include/private/qwidgetinterface_p.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | qmake/include/private/qwidgetinterface_p.h | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/qmake/include/private/qwidgetinterface_p.h b/qmake/include/private/qwidgetinterface_p.h new file mode 100644 index 0000000..5b5776b --- a/dev/null +++ b/qmake/include/private/qwidgetinterface_p.h | |||
@@ -0,0 +1,111 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000-2001 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qt Designer. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | |||
21 | #ifndef QWIDGETINTERFACE_H | ||
22 | #define QWIDGETINTERFACE_H | ||
23 | |||
24 | |||
25 | #ifndef QT_H | ||
26 | #include <private/qcom_p.h> | ||
27 | #include <qiconset.h> | ||
28 | #endif // QT_H | ||
29 | |||
30 | #ifndef QT_NO_WIDGETPLUGIN | ||
31 | |||
32 | // | ||
33 | // W A R N I N G | ||
34 | // ------------- | ||
35 | // | ||
36 | // This file is not part of the Qt API. It exists for the convenience | ||
37 | // of a number of Qt sources files. This header file may change from | ||
38 | // version to version without notice, or even be removed. | ||
39 | // | ||
40 | // We mean it. | ||
41 | // | ||
42 | // | ||
43 | |||
44 | class QWidget; | ||
45 | |||
46 | // {55184143-f18f-42c0-a8eb-71c01516019a} | ||
47 | #ifndef IID_QWidgetFactory | ||
48 | #define IID_QWidgetFactory QUuid( 0x55184143, 0xf18f, 0x42c0, 0xa8, 0xeb, 0x71, 0xc0, 0x15, 0x16, 0x1, 0x9a ) | ||
49 | #endif | ||
50 | |||
51 | /*! To add custom widgets to the Qt Designer, implement that interface | ||
52 | in your custom widget plugin. | ||
53 | |||
54 | You also have to implement the function featureList() (\sa | ||
55 | QFeatureListInterface) and return there all widgets (names of it) | ||
56 | which this interface provides. | ||
57 | */ | ||
58 | |||
59 | struct QWidgetFactoryInterface : public QFeatureListInterface | ||
60 | { | ||
61 | public: | ||
62 | |||
63 | /*! In the implementation create and return the widget \a widget | ||
64 | here, use \a parent and \a name when creating the widget */ | ||
65 | virtual QWidget* create( const QString &widget, QWidget* parent = 0, const char* name = 0 ) = 0; | ||
66 | |||
67 | /*! In the implementation return the name of the group of the | ||
68 | widget \a widget */ | ||
69 | virtual QString group( const QString &widget ) const = 0; | ||
70 | |||
71 | /*! In the implementation return the iconset, which should be used | ||
72 | in the Qt Designer menubar and toolbar to represent the widget | ||
73 | \a widget */ | ||
74 | virtual QIconSet iconSet( const QString &widget ) const = 0; | ||
75 | |||
76 | /*! In the implementation return the include file which is needed | ||
77 | for the widget \a widget in the generated code which uic | ||
78 | generates. */ | ||
79 | virtual QString includeFile( const QString &widget ) const = 0; | ||
80 | |||
81 | /*! In the implementation return the text which should be | ||
82 | displayed as tooltip for the widget \a widget */ | ||
83 | virtual QString toolTip( const QString &widget ) const = 0; | ||
84 | |||
85 | /*! In the implementation return the text which should be used for | ||
86 | what's this help for the widget \a widget. */ | ||
87 | virtual QString whatsThis( const QString &widget ) const = 0; | ||
88 | |||
89 | /*! In the implementation return TRUE here, of the \a widget | ||
90 | should be able to contain other widget in the Qt Designer, else | ||
91 | FALSE. */ | ||
92 | virtual bool isContainer( const QString &widget ) const = 0; | ||
93 | }; | ||
94 | |||
95 | #if CONTAINER_CUSTOM_WIDGETS | ||
96 | // {15976628-e3c3-47f4-b525-d124a3caf30e} | ||
97 | #ifndef IID_QWidgetContainer | ||
98 | #define IID_QWidgetContainer QUuid( 0x15976628, 0xe3c3, 0x47f4, 0xb5, 0x25, 0xd1, 0x24, 0xa3, 0xca, 0xf3, 0x0e ) | ||
99 | #endif | ||
100 | |||
101 | struct QWidgetContainerInterfacePrivate : public QUnknownInterface | ||
102 | { | ||
103 | public: | ||
104 | virtual QWidget *containerOfWidget( QWidget *widget ) const = 0; | ||
105 | virtual QWidgetList containersOf( QWidget *widget ) const = 0; | ||
106 | virtual bool isPassiveInteractor( QWidget *widget ) const = 0; | ||
107 | }; | ||
108 | #endif | ||
109 | |||
110 | #endif // QT_NO_WIDGETPLUGIN | ||
111 | #endif // QWIDGETINTERFACE_H | ||