diff options
Diffstat (limited to 'sip/qt/qobject.sip')
-rw-r--r-- | sip/qt/qobject.sip | 316 |
1 files changed, 14 insertions, 302 deletions
diff --git a/sip/qt/qobject.sip b/sip/qt/qobject.sip index 0f3a23e..fcc1d89 100644 --- a/sip/qt/qobject.sip +++ b/sip/qt/qobject.sip @@ -58,8 +58,6 @@ supported. %End -%If (TQt_2_00 -) - class TQObject : TQt { %TypeHeaderCode @@ -77,60 +75,48 @@ public: int yes, no; } graph[] = { {sipName_TQWidget, &sipClass_TQWidget, 25, 1}, -#if TQT_VERSION >= 0x030100 && defined(SIP_FEATURE_TQt_ASSISTANTCLIENT) +#if defined(SIP_FEATURE_TQt_ASSISTANTCLIENT) {sipName_TQAssistantClient, &sipClass_TQAssistantClient, -1, 2}, #else {NULL, NULL, -1, 2}, #endif {sipName_TQSessionManager, &sipClass_TQSessionManager, -1, 3}, {sipName_TQTranslator, &sipClass_TQTranslator, -1, 4}, -#if TQT_VERSION >= 0x030000 {sipName_TQProcess, &sipClass_TQProcess, -1, 5}, -#else - {NULL, NULL, -1, 5}, -#endif {sipName_TQToolTipGroup, &sipClass_TQToolTipGroup, -1, 6}, #if defined(SIP_FEATURE_TQt_FILEDIALOG) {sipName_TQFileIconProvider, &sipClass_TQFileIconProvider, -1, 7}, #else {NULL, NULL, -1, 7}, #endif -#if TQT_VERSION >= 220 && defined(SIP_FEATURE_TQt_ACTION) +#if defined(SIP_FEATURE_TQt_ACTION) {sipName_TQAction, &sipClass_TQAction, 89, 8}, #else {NULL, NULL, -1, 8}, #endif -#if TQT_VERSION >= 0x030000 {sipName_TQObjectCleanupHandler, &sipClass_TQObjectCleanupHandler, -1, 9}, -#else - {NULL, NULL, -1, 9}, -#endif {sipName_TQTimer, &sipClass_TQTimer, -1, 10}, {sipName_TQLayout, &sipClass_TQLayout, 90, 11}, -#if TQT_VERSION >= 210 && defined(SIP_FEATURE_TQt_NETWORKPROTOCOL) +#if defined(SIP_FEATURE_TQt_NETWORKPROTOCOL) {sipName_TQUrlOperator, &sipClass_TQUrlOperator, -1, 12}, #else {NULL, NULL, -1, 12}, #endif {sipName_TQStyleSheet, &sipClass_TQStyleSheet, -1, 13}, {sipName_TQValidator, &sipClass_TQValidator, 94, 14}, -#if TQT_VERSION >= 210 && defined(SIP_FEATURE_TQt_NETWORKPROTOCOL) +#if defined(SIP_FEATURE_TQt_NETWORKPROTOCOL) {sipName_TQNetworkOperation, &sipClass_TQNetworkOperation, -1, 15}, #else {NULL, NULL, -1, 15}, #endif {sipName_TQAccel, &sipClass_TQAccel, -1, 16}, -#if TQT_VERSION >= 0x030100 {sipName_TQEventLoop, &sipClass_TQEventLoop, -1, 17}, -#else - {NULL, NULL, -1, 17}, -#endif -#if TQT_VERSION >= 210 && defined(SIP_FEATURE_TQt_NETWORKPROTOCOL) +#if defined(SIP_FEATURE_TQt_NETWORKPROTOCOL) {sipName_TQNetworkProtocol, &sipClass_TQNetworkProtocol, -1, 18}, #else {NULL, NULL, -1, 18}, #endif -#if TQT_VERSION >= 220 && defined(SIP_FEATURE_TQt_SOUND) +#if defined(SIP_FEATURE_TQt_SOUND) {sipName_TQSound, &sipClass_TQSound, -1, 19}, #else {NULL, NULL, -1, 19}, @@ -152,25 +138,13 @@ public: {NULL, NULL, -1, 27}, #endif {sipName_TQTabWidget, &sipClass_TQTabWidget, -1, 28}, -#if TQT_VERSION >= 0x030000 {sipName_TQDateEdit, &sipClass_TQDateEdit, -1, 29}, -#else - {NULL, NULL, -1, 29}, -#endif {sipName_TQMainWindow, &sipClass_TQMainWindow, -1, 30}, -#if TQT_VERSION >= 0x030000 {sipName_TQDateTimeEdit, &sipClass_TQDateTimeEdit, -1, 31}, -#else - {NULL, NULL, -1, 31}, -#endif -#if TQT_VERSION >= 0x030000 {sipName_TQTimeEdit, &sipClass_TQTimeEdit, -1, 32}, -#else - {NULL, NULL, -1, 32}, -#endif {sipName_TQFrame, &sipClass_TQFrame, 46, 33}, {sipName_TQScrollBar, &sipClass_TQScrollBar, -1, 34}, -#if TQT_VERSION >= 220 && defined(SIP_FEATURE_TQt_DIAL) +#if defined(SIP_FEATURE_TQt_DIAL) {sipName_TQDial, &sipClass_TQDial, -1, 35}, #else {NULL, NULL, -1, 35}, @@ -180,41 +154,21 @@ public: {sipName_TQDialog, &sipClass_TQDialog, 79, 38}, {sipName_TQComboBox, &sipClass_TQComboBox, -1, 39}, {sipName_TQHeader, &sipClass_TQHeader, -1, 40}, -#if TQT_VERSION >= 0x030000 {sipName_TQDockArea, &sipClass_TQDockArea, -1, 41}, -#else - {NULL, NULL, -1, 41}, -#endif -#if TQT_VERSION >= 0x030200 {sipName_TQSplashScreen, &sipClass_TQSplashScreen, -1, 42}, -#else - {NULL, NULL, -1, 42}, -#endif {sipName_TQSlider, &sipClass_TQSlider, -1, 43}, {sipName_TQSpinBox, &sipClass_TQSpinBox, -1, 44}, -#if TQT_VERSION >= 210 && defined(SIP_FEATURE_TQt_WORKSPACE) +#if defined(SIP_FEATURE_TQt_WORKSPACE) {sipName_TQWorkspace, &sipClass_TQWorkspace, -1, 45}, #else {NULL, NULL, -1, 45}, #endif -#if TQT_VERSION >= 0x030000 {sipName_TQDesktopWidget, &sipClass_TQDesktopWidget, -1, -1}, -#else - {NULL, NULL, -1, -1}, -#endif {sipName_TQGrid, &sipClass_TQGrid, -1, 47}, {sipName_TQLineEdit, &sipClass_TQLineEdit, -1, 48}, -#if TQT_VERSION >= 0x030200 {sipName_TQToolBox, &sipClass_TQToolBox, -1, 49}, -#else - {NULL, NULL, -1, 49}, -#endif {sipName_TQWidgetStack, &sipClass_TQWidgetStack, -1, 50}, -#if TQT_VERSION >= 0x030000 {sipName_TQDockWindow, &sipClass_TQDockWindow, 60, 51}, -#else - {NULL, NULL, -1, 51}, -#endif {sipName_TQMenuBar, &sipClass_TQMenuBar, -1, 52}, {sipName_TQLabel, &sipClass_TQLabel, -1, 53}, {sipName_TQGroupBox, &sipClass_TQGroupBox, 61, 54}, @@ -234,23 +188,15 @@ public: {sipName_TQVGroupBox, &sipClass_TQVGroupBox, -1, -1}, {sipName_TQVButtonGroup, &sipClass_TQVButtonGroup, -1, 65}, {sipName_TQHButtonGroup, &sipClass_TQHButtonGroup, -1, -1}, -#if TQT_VERSION >= 210 && defined(SIP_FEATURE_TQt_ICONVIEW) +#if defined(SIP_FEATURE_TQt_ICONVIEW) {sipName_TQIconView, &sipClass_TQIconView, -1, 67}, #else {NULL, NULL, -1, 67}, #endif {sipName_TQListView, &sipClass_TQListView, -1, 68}, {sipName_TQListBox, &sipClass_TQListBox, -1, 69}, -#if TQT_VERSION >= 0x030000 {sipName_TQGridView, &sipClass_TQGridView, -1, 70}, -#else - {NULL, NULL, -1, 70}, -#endif -#if TQT_VERSION >= 0x030000 {sipName_TQTextEdit, &sipClass_TQTextEdit, 71, -1}, -#else - {NULL, NULL, -1, -1}, -#endif {sipName_TQTextBrowser, &sipClass_TQTextBrowser, -1, 72}, {sipName_TQMultiLineEdit, &sipClass_TQMultiLineEdit, -1, 73}, {sipName_TQTextView, &sipClass_TQTextView, -1, -1}, @@ -264,12 +210,8 @@ public: #else {NULL, NULL, -1, 80}, #endif -#if TQT_VERSION >= 0x030000 {sipName_TQErrorMessage, &sipClass_TQErrorMessage, -1, 81}, -#else - {NULL, NULL, -1, 81}, -#endif -#if TQT_VERSION >= 210 && defined(SIP_FEATURE_TQt_INPUTDIALOG) +#if defined(SIP_FEATURE_TQt_INPUTDIALOG) {sipName_TQInputDialog, &sipClass_TQInputDialog, -1, 82}, #else {NULL, NULL, -1, 82}, @@ -309,7 +251,7 @@ public: #else {NULL, NULL, -1, -1}, #endif -#if TQT_VERSION >= 220 && defined(SIP_FEATURE_TQt_ACTION) +#if defined(SIP_FEATURE_TQt_ACTION) {sipName_TQActionGroup, &sipClass_TQActionGroup, -1, -1}, #else {NULL, NULL, -1, -1}, @@ -320,24 +262,16 @@ public: {sipName_TQVBoxLayout, &sipClass_TQVBoxLayout, -1, -1}, {sipName_TQDoubleValidator, &sipClass_TQDoubleValidator, -1, 95}, {sipName_TQIntValidator, &sipClass_TQIntValidator, -1, 96}, -#if TQT_VERSION >= 0x030000 {sipName_TQRegExpValidator, &sipClass_TQRegExpValidator, -1, -1}, -#else - {NULL, NULL, -1, -1}, -#endif {sipName_TQTextDrag, &sipClass_TQTextDrag, -1, 98}, {sipName_TQStoredDrag, &sipClass_TQStoredDrag, 101, 99}, -#if TQT_VERSION >= 210 && defined(SIP_FEATURE_TQt_ICONVIEW) && defined(SIP_FEATURE_TQt_DRAGANDDROP) +#if defined(SIP_FEATURE_TQt_ICONVIEW) && defined(SIP_FEATURE_TQt_DRAGANDDROP) {sipName_TQIconDrag, &sipClass_TQIconDrag, -1, 100}, #else {NULL, NULL, -1, 100}, #endif {sipName_TQImageDrag, &sipClass_TQImageDrag, -1, -1}, -#if TQT_VERSION >= 210 {sipName_TQColorDrag, &sipClass_TQColorDrag, -1, 102}, -#else - {NULL, NULL, -1, 102}, -#endif {sipName_TQUriDrag, &sipClass_TQUriDrag, -1, -1}, {sipName_TQCommonStyle, &sipClass_TQCommonStyle, 104, -1}, #if defined(SIP_FEATURE_TQt_STYLE_WINDOWS) @@ -360,12 +294,12 @@ public: #else {NULL, NULL, -1, 108}, #endif -#if TQT_VERSION >= 220 && defined(SIP_FEATURE_TQt_STYLE_MOTIFPLUS) +#if defined(SIP_FEATURE_TQt_STYLE_MOTIFPLUS) {sipName_TQMotifPlusStyle, &sipClass_TQMotifPlusStyle, -1, 109}, #else {NULL, NULL, -1, 109}, #endif -#if TQT_VERSION >= 220 && defined(SIP_FEATURE_TQt_STYLE_SGI) +#if defined(SIP_FEATURE_TQt_STYLE_SGI) {sipName_TQSGIStyle, &sipClass_TQSGIStyle, -1, -1}, #else {NULL, NULL, -1, -1}, @@ -410,19 +344,6 @@ public: #endif %End -%If (- TQt_3_0_0) - static TQString tr(const char *) /AutoGen=TQt_TRANSLATION/; -%End -%If (TQt_2_2_0 - TQt_2_3_1) - // There was an apparent bug in moc prior to TQt v2.3.1 where this - // method wasn't automatically generated. - - static TQString tr(const char *,const char *); -%End -%If (TQt_2_3_1 - TQt_3_0_0) - static TQString tr(const char *,const char *) /AutoGen=TQt_TRANSLATION/; -%End -%If (TQt_3_0_0 -) // Note that tr() and trUtf8() are really static methods. We pretend // they aren't so that we can use self to get hold of the class name. // We could mimic moc's behaviour more accurately by creating tr() and @@ -494,7 +415,6 @@ public: } } %End -%End virtual TQMetaObject *metaObject() const /AutoGen/; virtual bool event(TQEvent *); virtual bool eventFilter(TQObject *,TQEvent *); @@ -540,9 +460,6 @@ public: #endif %End -%If (- TQt_3_0_0) - TQStringList superClasses(bool = 0) const; -%End const char *name() const; const char *name(const char *) const; virtual void setName(const char *); @@ -553,21 +470,10 @@ public: int startTimer(int); void killTimer(int); void killTimers(); -%If (- TQt_3_0_0) - TQObject *child(const char *,const char * = 0); -%End -%If (TQt_3_0_0 -) TQObject *child(const char *,const char * = 0,bool = 1); -%End const TQObjectList *children() const; -%If (TQt_2_1_0 -) static const TQObjectList *objectTrees(); -%End -%If (- TQt_3_0_0) - TQObjectList *queryList(char * = 0,char * = 0,bool = 1,bool = 1); -%End -%If (TQt_3_0_0 -) TQObjectList *queryList(char * = 0,char * = 0,bool = 1,bool = 1) const; %MethodCode // The TQt implementation doesn't know anything about Python @@ -617,7 +523,6 @@ public: Py_END_ALLOW_THREADS #endif %End -%End virtual void insertChild(TQObject * /Transfer/); virtual void removeChild(TQObject * /TransferBack/); @@ -662,26 +567,16 @@ public: %End %If (TQt_PROPERTIES) -%If (TQt_2_1_0 - TQt_3_0_0) - bool setProperty(const char *,const TQVariant &); - TQVariant property(const char *) const; -%End -%If (TQt_3_0_0 -) virtual bool setProperty(const char *,const TQVariant &); virtual TQVariant property(const char *) const; %End -%End signals: void destroyed(); -%If (TQt_3_0_0 -) void destroyed(TQObject *); -%End public slots: -%If (TQt_3_0_0 -) void deleteLater(); -%End public: // This is actually protected, but we never need to call the real @@ -694,9 +589,7 @@ public: protected: virtual void timerEvent(TQTimerEvent *); virtual void childEvent(TQChildEvent *); -%If (TQt_3_0_0 -) virtual void customEvent(TQCustomEvent *); -%End private: TQObject(const TQObject &); @@ -716,183 +609,6 @@ SIP_PYOBJECT QT_TRANSLATE_NOOP(SIP_PYOBJECT,SIP_PYOBJECT); sipRes = a1; %End -%End - - -%If (- TQt_2_00) - -class TQObject -{ -%TypeHeaderCode -#include <tqobject.h> -%End - -public: - TQObject(TQObject * /TransferThis/ = 0,const char * = 0); - -%ConvertToSubClassCode - // The table of Python class objects indexed by their names. The table - // must be sorted by name. - - static sipStringTypeClassMap map[] = { - {sipName_TQAccel, &sipClass_TQAccel}, - {sipName_TQApplication, &sipClass_TQApplication}, - {sipName_TQBoxLayout, &sipClass_TQBoxLayout}, - {sipName_TQButton, &sipClass_TQButton}, - {sipName_TQButtonGroup, &sipClass_TQButtonGroup}, - {sipName_TQCheckBox, &sipClass_TQCheckBox}, -#if defined(SIP_FEATURE_TQt_CLIPBOARD) - {sipName_TQClipboard, &sipClass_TQClipboard}, -#endif - {sipName_TQComboBox, &sipClass_TQComboBox}, - {sipName_TQDialog, &sipClass_TQDialog}, - {sipName_TQDoubleValidator, &sipClass_TQDoubleValidator}, - {sipName_TQDragObject, &sipClass_TQDragObject}, -#if defined(SIP_FEATURE_TQt_FILEDIALOG) - {sipName_TQFileDialog, &sipClass_TQFileDialog}, - {sipName_TQFileIconProvider, &sipClass_TQFileIconProvider}, -#endif - {sipName_TQFrame, &sipClass_TQFrame}, - {sipName_TQGridLayout, &sipClass_TQGridLayout}, - {sipName_TQGroupBox, &sipClass_TQGroupBox}, - {sipName_TQHBoxLayout, &sipClass_TQHBoxLayout}, - {sipName_TQHeader, &sipClass_TQHeader}, - {sipName_TQImageDrag, &sipClass_TQImageDrag}, - {sipName_TQIntValidator, &sipClass_TQIntValidator}, - {sipName_TQLCDNumber, &sipClass_TQLCDNumber}, - {sipName_TQLabel, &sipClass_TQLabel}, - {sipName_TQLayout, &sipClass_TQLayout}, - {sipName_TQLineEdit, &sipClass_TQLineEdit}, - {sipName_TQListBox, &sipClass_TQListBox}, - {sipName_TQListView, &sipClass_TQListView}, - {sipName_TQMainWindow, &sipClass_TQMainWindow}, - {sipName_TQMenuBar, &sipClass_TQMenuBar}, -#if defined(SIP_FEATURE_TQt_MESSAGEBOX) - {sipName_TQMessageBox, &sipClass_TQMessageBox}, -#endif - {sipName_TQMultiLineEdit, &sipClass_TQMultiLineEdit}, - {sipName_TQPopupMenu, &sipClass_TQPopupMenu}, -#if defined(WS_X11) && defined(SIP_FEATURE_TQt_PRINTDIALOG) - {sipName_TQPrintDialog, &sipClass_TQPrintDialog}, -#endif - {sipName_TQProgressBar, &sipClass_TQProgressBar}, -#if defined(SIP_FEATURE_TQt_PROGRESSDIALOG) - {sipName_TQProgressDialog, &sipClass_TQProgressDialog}, -#endif - {sipName_TQPushButton, &sipClass_TQPushButton}, - {sipName_TQRadioButton, &sipClass_TQRadioButton}, - {sipName_TQScrollBar, &sipClass_TQScrollBar}, - {sipName_TQScrollView, &sipClass_TQScrollView}, - {sipName_TQSlider, &sipClass_TQSlider}, - {sipName_TQSocketNotifier, &sipClass_TQSocketNotifier}, - {sipName_TQSpinBox, &sipClass_TQSpinBox}, -#if defined(SIP_FEATURE_TQt_SPLITTER) - {sipName_TQSplitter, &sipClass_TQSplitter}, -#endif - {sipName_TQStatusBar, &sipClass_TQStatusBar}, - {sipName_TQStoredDrag, &sipClass_TQStoredDrag}, - {sipName_TQTabBar, &sipClass_TQTabBar}, - {sipName_TQTextDrag, &sipClass_TQTextDrag}, - {sipName_TQTimer, &sipClass_TQTimer}, - {sipName_TQToolBar, &sipClass_TQToolBar}, - {sipName_TQToolButton, &sipClass_TQToolButton}, - {sipName_TQToolTipGroup, &sipClass_TQToolTipGroup}, - {sipName_TQVBoxLayout, &sipClass_TQVBoxLayout}, - {sipName_TQValidator, &sipClass_TQValidator}, - {sipName_TQWidget, &sipClass_TQWidget}, - {sipName_TQWidgetStack, &sipClass_TQWidgetStack} - }; - - sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); -%End - - static SIP_PYOBJECT connect(SIP_QOBJECT,SIP_SIGNAL,SIP_QOBJECT,SIP_SLOT); -%MethodCode - sipRes = sipConnectRx(a0,a1,a2,a3,0); -%End - - static SIP_PYOBJECT connect(SIP_QOBJECT,SIP_SIGNAL,SIP_PYCALLABLE); -%MethodCode - sipRes = sipConnectRx(a0,a1,a2,0,0); -%End - - static SIP_PYOBJECT disconnect(SIP_QOBJECT,SIP_SIGNAL,SIP_QOBJECT,SIP_SLOT); -%MethodCode - sipRes = sipDisconnectRx(a0,a1,a2,a3); -%End - - static SIP_PYOBJECT disconnect(SIP_QOBJECT,SIP_SIGNAL,SIP_PYCALLABLE); -%MethodCode - sipRes = sipDisconnectRx(a0,a1,a2,0); -%End - - virtual bool event(TQEvent *); - virtual bool eventFilter(TQObject *,TQEvent *); - const char *tr(const char *) const; - virtual TQMetaObject *metaObject() const /AutoGen/; - - // This is actually virtual. However, with the way we are implementing - // it we can ignore it. - SIP_PYOBJECT className() const; -%MethodCode -#if PY_MAJOR_VERSION >= 3 - sipRes = PyUnicode_FromString(sipSelf->ob_type->tp_name); -#else - sipRes = sipClassName(sipSelf); -#endif -%End - - bool isA(const char *) const; - bool inherits(const char *) const; - const char *name() const; - const char *name(const char *) const; - void setName(const char *); - bool isWidgetType() const; - bool highPriority() const; - bool signalsBlocked() const; - void blockSignals(bool); - int startTimer(int); - void killTimer(int); - void killTimers(); - const TQObjectList *children() const; - TQObjectList *queryList(char * = 0,char * = 0,bool = 1,bool = 1); - void insertChild(TQObject * /Transfer/); - void removeChild(TQObject * /TransferBack/); - void installEventFilter(const TQObject *); - void removeEventFilter(const TQObject *); -// bool connect(TQObject *,const char *,const char *); -// bool disconnect(const char * = 0,const TQObject * = 0,const char * = 0); -// bool disconnect(const TQObject *,const char * = 0); - void dumpObjectTree(); - void dumpObjectInfo(); - TQObject *parent() const; - - void emit(SIP_SIGNAL,SIP_PYTUPLE); -%MethodCode - if (sipEmitSignal(sipSelf,a0,a1) < 0) - sipIsErr = 1; -%End - -signals: - void destroyed(); - -public: - // This is actually protected, but we never need to call the real - // method. - SIP_PYOBJECT sender(); -%MethodCode - sipRes = pyqt3GetSender(); -%End - -protected: - virtual void timerEvent(TQTimerEvent *); - -private: - TQObject(const TQObject &); -}; - -%End - SIP_PYOBJECT SLOT(const char * /Encoding="ASCII"/) /TypeHint="QT_SLOT"/; %MethodCode @@ -1495,11 +1211,7 @@ static PyObject *py_sender = 0; TQMetaObject *UniversalSlot::metaObj = 0; -#if TQT_VERSION >= 0x030100 static TQMetaObjectCleanUp cleanUp_UniversalSlot("UniversalSlot", &UniversalSlot::staticMetaObject); -#else -static TQMetaObjectCleanUp cleanUp_UniversalSlot; -#endif TQObject *UniversalSlot::lastSender = 0; UniversalSlot *UniversalSlot::unislots = 0; |