Eneboo - Documentación para desarrolladores
|
00001 /**************************************************************************** 00002 ** $Id: qt/qwidgetinterface_p.h 3.3.8 edited Jan 11 14:46 $ 00003 ** 00004 ** ... 00005 ** 00006 ** Copyright (C) 2000-2007 Trolltech ASA. All rights reserved. 00007 ** 00008 ** This file is part of the widgets module of the Qt GUI Toolkit. 00009 ** 00010 ** This file may be distributed under the terms of the Q Public License 00011 ** as defined by Trolltech ASA of Norway and appearing in the file 00012 ** LICENSE.QPL included in the packaging of this file. 00013 ** 00014 ** This file may be distributed and/or modified under the terms of the 00015 ** GNU General Public License version 2 as published by the Free Software 00016 ** Foundation and appearing in the file LICENSE.GPL included in the 00017 ** packaging of this file. 00018 ** 00019 ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition 00020 ** licenses may use this file in accordance with the Qt Commercial License 00021 ** Agreement provided with the Software. 00022 ** 00023 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00024 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00025 ** 00026 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for 00027 ** information about Qt Commercial License Agreements. 00028 ** See http://www.trolltech.com/qpl/ for QPL licensing information. 00029 ** See http://www.trolltech.com/gpl/ for GPL licensing information. 00030 ** 00031 ** Contact info@trolltech.com if any conditions of this licensing are 00032 ** not clear to you. 00033 ** 00034 **********************************************************************/ 00035 00036 #ifndef QWIDGETINTERFACE_P_H 00037 #define QWIDGETINTERFACE_P_H 00038 00039 // 00040 // W A R N I N G 00041 // ------------- 00042 // 00043 // This file is not part of the Qt API. It exists for the convenience 00044 // of a number of Qt sources files. This header file may change from 00045 // version to version without notice, or even be removed. 00046 // 00047 // We mean it. 00048 // 00049 // 00050 00051 #ifndef QT_H 00052 #include <private/qcom_p.h> 00053 #include "qiconset.h" 00054 #endif // QT_H 00055 00056 #ifndef QT_NO_WIDGETPLUGIN 00057 00058 class QWidget; 00059 00060 // {55184143-f18f-42c0-a8eb-71c01516019a} 00061 #ifndef IID_QWidgetFactory 00062 #define IID_QWidgetFactory QUuid( 0x55184143, 0xf18f, 0x42c0, 0xa8, 0xeb, 0x71, 0xc0, 0x15, 0x16, 0x1, 0x9a ) 00063 #endif 00064 00073 struct QWidgetFactoryInterface : public QFeatureListInterface 00074 { 00075 public: 00076 00079 virtual QWidget* create( const QString &widget, QWidget* parent = 0, const char* name = 0 ) = 0; 00080 00083 virtual QString group( const QString &widget ) const = 0; 00084 00088 virtual QIconSet iconSet( const QString &widget ) const = 0; 00089 00093 virtual QString includeFile( const QString &widget ) const = 0; 00094 00097 virtual QString toolTip( const QString &widget ) const = 0; 00098 00101 virtual QString whatsThis( const QString &widget ) const = 0; 00102 00106 virtual bool isContainer( const QString &widget ) const = 0; 00107 }; 00108 00109 #ifdef QT_CONTAINER_CUSTOM_WIDGETS 00110 // {15976628-e3c3-47f4-b525-d124a3caf30e} 00111 #ifndef IID_QWidgetContainer 00112 #define IID_QWidgetContainer QUuid( 0x15976628, 0xe3c3, 0x47f4, 0xb5, 0x25, 0xd1, 0x24, 0xa3, 0xca, 0xf3, 0x0e ) 00113 #endif 00114 00115 struct QWidgetContainerInterfacePrivate : public QUnknownInterface 00116 { 00117 public: 00118 virtual QWidget *containerOfWidget( const QString &f, QWidget *container ) const = 0; 00119 virtual bool isPassiveInteractor( const QString &f, QWidget *container ) const = 0; 00120 00121 virtual bool supportsPages( const QString &f ) const = 0; 00122 00123 virtual QWidget *addPage( const QString &f, QWidget *container, 00124 const QString &name, int index ) const = 0; 00125 virtual void insertPage( const QString &f, QWidget *container, 00126 const QString &name, int index, QWidget *page ) const = 0; 00127 virtual void removePage( const QString &f, QWidget *container, int index ) const = 0; 00128 virtual void movePage( const QString &f, QWidget *container, int fromIndex, int toIndex ) const = 0; 00129 virtual int count( const QString &key, QWidget *container ) const = 0; 00130 virtual int currentIndex( const QString &key, QWidget *container ) const = 0; 00131 virtual QString pageLabel( const QString &key, QWidget *container, int index ) const = 0; 00132 virtual QWidget *page( const QString &key, QWidget *container, int index ) const = 0; 00133 virtual void renamePage( const QString &key, QWidget *container, 00134 int index, const QString &newName ) const = 0; 00135 virtual QWidgetList pages( const QString &f, QWidget *container ) const = 0; 00136 virtual QString createCode( const QString &f, const QString &container, 00137 const QString &page, const QString &pageName ) const = 0; 00138 }; 00139 00140 #endif // QT_CONTAINER_CUSTOM_WIDGETS 00141 #endif // QT_NO_WIDGETPLUGIN 00142 #endif // QWIDGETINTERFACE_P_H