diff options
Diffstat (limited to 'sip/qt/qevent.sip')
-rw-r--r-- | sip/qt/qevent.sip | 552 |
1 files changed, 276 insertions, 276 deletions
diff --git a/sip/qt/qevent.sip b/sip/qt/qevent.sip index d4db705..ee66b43 100644 --- a/sip/qt/qevent.sip +++ b/sip/qt/qevent.sip @@ -1,170 +1,170 @@ -// This is the SIP interface definition for QEvent, QChildEvent, QCloseEvent, -// QIconDragEvent, QContextMenuEvent, QCustomEvent, QDragEnterEvent, -// QDragLeaveEvent, QDragMoveEvent, QDropEvent, QFocusEvent, QHideEvent, -// QIMEvent, QIMComposeEvent, QKeyEvent, QMouseEvent, QMoveEvent, QPaintEvent, -// QResizeEvent, QShowEvent, QTabletEvent, QTimerEvent, QWheelEvent. +// This is the SIP interface definition for TQEvent, TQChildEvent, TQCloseEvent, +// TQIconDragEvent, TQContextMenuEvent, TQCustomEvent, TQDragEnterEvent, +// TQDragLeaveEvent, TQDragMoveEvent, TQDropEvent, TQFocusEvent, TQHideEvent, +// TQIMEvent, TQIMComposeEvent, TQKeyEvent, TQMouseEvent, TQMoveEvent, TQPaintEvent, +// TQResizeEvent, TQShowEvent, TQTabletEvent, TQTimerEvent, TQWheelEvent. // // Copyright (c) 2007 // Riverbank Computing Limited <[email protected]> // -// This file is part of PyQt. +// This file is part of PyTQt. // -// This copy of PyQt is free software; you can redistribute it and/or modify it +// This copy of PyTQt is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by the Free // Software Foundation; either version 2, or (at your option) any later // version. // -// PyQt is supplied in the hope that it will be useful, but WITHOUT ANY +// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, +// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. %ExportedDoc -<Sect2><Title>QEvent</Title> +<Sect2><Title>TQEvent</Title> <Para> -<Literal>QEvent</Literal> is fully implemented. +<Literal>TQEvent</Literal> is fully implemented. </Para> <Para> -Instances of <Literal>QEvent</Literal>s are automatically converted to the +Instances of <Literal>TQEvent</Literal>s are automatically converted to the correct sub-class. </Para> </Sect2> -<Sect2><Title>QChildEvent</Title> +<Sect2><Title>TQChildEvent</Title> <Para> -<Literal>QChildEvent</Literal> is fully implemented. +<Literal>TQChildEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QCloseEvent</Title> +<Sect2><Title>TQCloseEvent</Title> <Para> -<Literal>QCloseEvent</Literal> is fully implemented. +<Literal>TQCloseEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QIconDragEvent (Qt v3.3+)</Title> +<Sect2><Title>TQIconDragEvent (TQt v3.3+)</Title> <Para> -<Literal>QIconDragEvent</Literal> is fully implemented. +<Literal>TQIconDragEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QContextMenuEvent (Qt v3+)</Title> +<Sect2><Title>TQContextMenuEvent (TQt v3+)</Title> <Para> -<Literal>QContextMenuEvent</Literal> is fully implemented. +<Literal>TQContextMenuEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QCustomEvent</Title> +<Sect2><Title>TQCustomEvent</Title> <Para> -<Literal>QCustomEvent</Literal> is fully implemented. Any Python object can be +<Literal>TQCustomEvent</Literal> is fully implemented. Any Python object can be passed as the event data and its reference count is increased. </Para> </Sect2> -<Sect2><Title>QDragEnterEvent</Title> +<Sect2><Title>TQDragEnterEvent</Title> <Para> -<Literal>QDragEnterEvent</Literal> is fully implemented. +<Literal>TQDragEnterEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QDragLeaveEvent</Title> +<Sect2><Title>TQDragLeaveEvent</Title> <Para> -<Literal>QDragLeaveEvent</Literal> is fully implemented. +<Literal>TQDragLeaveEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QDragMoveEvent</Title> +<Sect2><Title>TQDragMoveEvent</Title> <Para> -<Literal>QDragMoveEvent</Literal> is fully implemented. +<Literal>TQDragMoveEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QDropEvent</Title> +<Sect2><Title>TQDropEvent</Title> <Para> -<Literal>QDropEvent</Literal> is fully implemented. +<Literal>TQDropEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QFocusEvent</Title> +<Sect2><Title>TQFocusEvent</Title> <Para> -<Literal>QFocusEvent</Literal> is fully implemented. +<Literal>TQFocusEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QHideEvent</Title> +<Sect2><Title>TQHideEvent</Title> <Para> -<Literal>QHideEvent</Literal> is fully implemented. +<Literal>TQHideEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QIMComposeEvent (Qt v3.1+)</Title> +<Sect2><Title>TQIMComposeEvent (TQt v3.1+)</Title> <Para> -<Literal>QIMComposeEvent</Literal> is fully implemented. +<Literal>TQIMComposeEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QIMEvent (Qt v3+)</Title> +<Sect2><Title>TQIMEvent (TQt v3+)</Title> <Para> -<Literal>QIMEvent</Literal> is fully implemented. +<Literal>TQIMEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QKeyEvent</Title> +<Sect2><Title>TQKeyEvent</Title> <Para> -<Literal>QKeyEvent</Literal> is fully implemented. +<Literal>TQKeyEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QMouseEvent</Title> +<Sect2><Title>TQMouseEvent</Title> <Para> -<Literal>QMouseEvent</Literal> is fully implemented. +<Literal>TQMouseEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QMoveEvent</Title> +<Sect2><Title>TQMoveEvent</Title> <Para> -<Literal>QMoveEvent</Literal> is fully implemented. +<Literal>TQMoveEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QPaintEvent</Title> +<Sect2><Title>TQPaintEvent</Title> <Para> -<Literal>QPaintEvent</Literal> is fully implemented. +<Literal>TQPaintEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QResizeEvent</Title> +<Sect2><Title>TQResizeEvent</Title> <Para> -<Literal>QResizeEvent</Literal> is fully implemented. +<Literal>TQResizeEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QShowEvent</Title> +<Sect2><Title>TQShowEvent</Title> <Para> -<Literal>QShowEvent</Literal> is fully implemented. +<Literal>TQShowEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QTabletEvent (Qt v3+)</Title> +<Sect2><Title>TQTabletEvent (TQt v3+)</Title> <Para> -<Literal>QTabletEvent</Literal> is fully implemented. +<Literal>TQTabletEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QTimerEvent</Title> +<Sect2><Title>TQTimerEvent</Title> <Para> -<Literal>QTimerEvent</Literal> is fully implemented. +<Literal>TQTimerEvent</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QWheelEvent (Qt v2+)</Title> +<Sect2><Title>TQWheelEvent (TQt v2+)</Title> <Para> -<Literal>QWheelEvent</Literal> is fully implemented. +<Literal>TQWheelEvent</Literal> is fully implemented. </Para> </Sect2> %End @@ -175,7 +175,7 @@ passed as the event data and its reference count is increased. %End -%If (- Qt_2_00) +%If (- TQt_2_00) const int Event_None; const int Event_Timer; @@ -227,15 +227,15 @@ enum ButtonState { }; -class QEvent +class TQEvent { %TypeHeaderCode #include <qevent.h> %End public: - QEvent(int); - QEvent(QEvent&); + TQEvent(int); + TQEvent(TQEvent&); int type() const; @@ -316,9 +316,9 @@ public: %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) -class QEvent : Qt +class TQEvent : TQt { %TypeHeaderCode #include <qevent.h> @@ -348,7 +348,7 @@ public: Hide, Close, Quit, -%If (Qt_2_1_0 -) +%If (TQt_2_1_0 -) Reparent, ShowMinimized, ShowNormal, @@ -358,13 +358,13 @@ public: HideToParent, ShowMaximized, %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) ShowFullScreen, %End Accel, Wheel, AccelAvailable, -%If (Qt_2_1_0 -) +%If (TQt_2_1_0 -) CaptionChange, IconChange, ParentFontChange, @@ -372,18 +372,18 @@ public: ParentPaletteChange, ApplicationPaletteChange, %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) PaletteChange, %End Clipboard, -%If (Qt_2_2_0 -) +%If (TQt_2_2_0 -) Speech, %End SockAct, -%If (Qt_2_2_0 -) +%If (TQt_2_2_0 -) AccelOverride, %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) DeferredDelete, %End DragEnter, @@ -394,30 +394,30 @@ public: ChildInserted, ChildRemoved, LayoutHint, -%If (Qt_2_2_0 -) +%If (TQt_2_2_0 -) ShowWindowRequest, %End -%If (Qt_3_3_0 -) +%If (TQt_3_3_0 -) WindowBlocked, WindowUnblocked, %End ActivateControl, DeactivateControl, -%If (Qt_2_1_0 - Qt_2_2_0) +%If (TQt_2_1_0 - TQt_2_2_0) Configure, ConfigureLayout, %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) ContextMenu, IMStart, IMCompose, IMEnd, Accessibility, %End -%If (Qt_3_0_0 - Qt_3_1_0) +%If (TQt_3_0_0 - TQt_3_1_0) Tablet, %End -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) TabletMove, LocaleChange, LanguageChange, @@ -426,147 +426,147 @@ public: TabletPress, TabletRelease, %End -%If (Qt_3_3_0 -) +%If (TQt_3_3_0 -) OkRequest, HelpRequest, IconDrag, WindowStateChange, %End User, -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) MaxUser, %End }; - QEvent(Type); - QEvent(QEvent&); - virtual ~QEvent(); + TQEvent(Type); + TQEvent(TQEvent&); + virtual ~TQEvent(); Type type() const; -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) bool spontaneous() const; %End %ConvertToSubClassCode switch (sipCpp -> type()) { - case QEvent::Timer: + case TQEvent::Timer: sipClass = sipClass_QTimerEvent; break; - case QEvent::MouseButtonPress: - case QEvent::MouseButtonRelease: - case QEvent::MouseButtonDblClick: - case QEvent::MouseMove: + case TQEvent::MouseButtonPress: + case TQEvent::MouseButtonRelease: + case TQEvent::MouseButtonDblClick: + case TQEvent::MouseMove: sipClass = sipClass_QMouseEvent; break; - case QEvent::Accel: + case TQEvent::Accel: #if QT_VERSION >= 220 - case QEvent::AccelOverride: + case TQEvent::AccelOverride: #endif - case QEvent::KeyPress: - case QEvent::KeyRelease: + case TQEvent::KeyPress: + case TQEvent::KeyRelease: sipClass = sipClass_QKeyEvent; break; - case QEvent::FocusIn: - case QEvent::FocusOut: + case TQEvent::FocusIn: + case TQEvent::FocusOut: sipClass = sipClass_QFocusEvent; break; - case QEvent::Paint: + case TQEvent::Paint: sipClass = sipClass_QPaintEvent; break; - case QEvent::Move: + case TQEvent::Move: sipClass = sipClass_QMoveEvent; break; - case QEvent::Resize: + case TQEvent::Resize: sipClass = sipClass_QResizeEvent; break; - case QEvent::Close: + case TQEvent::Close: sipClass = sipClass_QCloseEvent; break; #if QT_VERSION >= 0x030300 - case QEvent::IconDrag: + case TQEvent::IconDrag: sipClass = sipClass_QIconDragEvent; break; #endif - case QEvent::Wheel: + case TQEvent::Wheel: sipClass = sipClass_QWheelEvent; break; - case QEvent::Show: + case TQEvent::Show: sipClass = sipClass_QShowEvent; break; - case QEvent::Hide: + case TQEvent::Hide: sipClass = sipClass_QHideEvent; break; -#if defined(SIP_FEATURE_Qt_DRAGANDDROP) - case QEvent::DragMove: +#if defined(SIP_FEATURE_TQt_DRAGANDDROP) + case TQEvent::DragMove: sipClass = sipClass_QDragMoveEvent; break; - case QEvent::DragEnter: + case TQEvent::DragEnter: sipClass = sipClass_QDragEnterEvent; break; - case QEvent::DragLeave: + case TQEvent::DragLeave: sipClass = sipClass_QDragLeaveEvent; break; - case QEvent::Drop: + case TQEvent::Drop: sipClass = sipClass_QDropEvent; break; #endif - case QEvent::ChildInserted: - case QEvent::ChildRemoved: + case TQEvent::ChildInserted: + case TQEvent::ChildRemoved: sipClass = sipClass_QChildEvent; break; #if QT_VERSION >= 0x030000 - case QEvent::ContextMenu: + case TQEvent::ContextMenu: sipClass = sipClass_QContextMenuEvent; break; - case QEvent::IMStart: - case QEvent::IMEnd: + case TQEvent::IMStart: + case TQEvent::IMEnd: sipClass = sipClass_QIMEvent; break; #endif #if QT_VERSION >= 0x030000 && QT_VERSION < 0x030100 - case QEvent::IMCompose: + case TQEvent::IMCompose: sipClass = sipClass_QIMEvent; break; - case QEvent::Tablet: + case TQEvent::Tablet: sipClass = sipClass_QTabletEvent; break; #endif #if QT_VERSION >= 0x030100 - case QEvent::IMCompose: + case TQEvent::IMCompose: sipClass = sipClass_QIMComposeEvent; break; - case QEvent::TabletMove: - case QEvent::TabletPress: - case QEvent::TabletRelease: + case TQEvent::TabletMove: + case TQEvent::TabletPress: + case TQEvent::TabletRelease: sipClass = sipClass_QTabletEvent; break; #endif default: - sipClass = (sipCpp -> type() < QEvent::User ? + sipClass = (sipCpp -> type() < TQEvent::User ? sipClass_QEvent : sipClass_QCustomEvent); } @@ -576,51 +576,51 @@ public: %End -class QTimerEvent : QEvent +class TQTimerEvent : TQEvent { %TypeHeaderCode #include <qevent.h> %End public: - QTimerEvent(int); + TQTimerEvent(int); int timerId() const; }; -class QMouseEvent : QEvent +class TQMouseEvent : TQEvent { %TypeHeaderCode #include <qevent.h> %End public: -%If (- Qt_2_00) - QMouseEvent(int,const QPoint &,int,int); - QMouseEvent(int,const QPoint &,const QPoint &,int,int); +%If (- TQt_2_00) + TQMouseEvent(int,const TQPoint &,int,int); + TQMouseEvent(int,const TQPoint &,const TQPoint &,int,int); %End -%If (Qt_2_00 -) - QMouseEvent(Type,const QPoint &,int,int); - QMouseEvent(Type,const QPoint &,const QPoint &,int,int); +%If (TQt_2_00 -) + TQMouseEvent(Type,const TQPoint &,int,int); + TQMouseEvent(Type,const TQPoint &,const TQPoint &,int,int); %End - const QPoint &pos() const; - const QPoint &globalPos() const; + const TQPoint &pos() const; + const TQPoint &globalPos() const; int x() const; int y() const; int globalX() const; int globalY() const; -%If (- Qt_2_00) +%If (- TQt_2_00) int button() const; int state() const; %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) ButtonState button() const; ButtonState state() const; ButtonState stateAfter() const; %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) bool isAccepted() const; void accept(); void ignore(); @@ -628,34 +628,34 @@ public: }; -%If (Qt_2_00 -) +%If (TQt_2_00 -) -class QWheelEvent : QEvent +class TQWheelEvent : TQEvent { %TypeHeaderCode #include <qevent.h> %End public: -%If (- Qt_3_0_0) - QWheelEvent(const QPoint &,int,int); - QWheelEvent(const QPoint &,const QPoint &,int,int); +%If (- TQt_3_0_0) + TQWheelEvent(const TQPoint &,int,int); + TQWheelEvent(const TQPoint &,const TQPoint &,int,int); %End -%If (Qt_3_0_0 -) - QWheelEvent(const QPoint &,int,int,Orientation = Vertical); - QWheelEvent(const QPoint &,const QPoint &,int,int, +%If (TQt_3_0_0 -) + TQWheelEvent(const TQPoint &,int,int,Orientation = Vertical); + TQWheelEvent(const TQPoint &,const TQPoint &,int,int, Orientation = Vertical); %End int delta() const; - const QPoint &pos() const; - const QPoint &globalPos() const; + const TQPoint &pos() const; + const TQPoint &globalPos() const; int x() const; int y() const; int globalX() const; int globalY() const; ButtonState state() const; -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) Orientation orientation() const; %End bool isAccepted() const; @@ -666,9 +666,9 @@ public: %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QTabletEvent : QEvent +class TQTabletEvent : TQEvent { %TypeHeaderCode #include <qevent.h> @@ -682,21 +682,21 @@ public: Eraser }; -%If (- Qt_3_1_0) - QTabletEvent(const QPoint &,int,int,int,int,const QPair<int,int> &); +%If (- TQt_3_1_0) + TQTabletEvent(const TQPoint &,int,int,int,int,const TQPair<int,int> &); %End -%If (Qt_3_1_0 -) - QTabletEvent(Type,const QPoint &,const QPoint &,int,int,int,int, - const QPair<int,int> &); +%If (TQt_3_1_0 -) + TQTabletEvent(Type,const TQPoint &,const TQPoint &,int,int,int,int, + const TQPair<int,int> &); %End - QTabletEvent(const QPoint &,const QPoint &,int,int,int,int, - const QPair<int,int> &); + TQTabletEvent(const TQPoint &,const TQPoint &,int,int,int,int, + const TQPair<int,int> &); int pressure() const; int xTilt() const; int yTilt() const; - const QPoint &pos() const; - const QPoint &globalPos() const; + const TQPoint &pos() const; + const TQPoint &globalPos() const; int x() const; int y() const; int globalX() const; @@ -705,24 +705,24 @@ public: int isAccepted() const; void accept(); void ignore(); - QPair<int,int> uniqueId(); + TQPair<int,int> uniqueId(); }; %End -class QKeyEvent : QEvent +class TQKeyEvent : TQEvent { %TypeHeaderCode #include <qevent.h> %End public: -%If (- Qt_2_00) - QKeyEvent(int,int,int,int); +%If (- TQt_2_00) + TQKeyEvent(int,int,int,int); %End -%If (Qt_2_00 -) - QKeyEvent(Type,int,int,int,const QString & = QString::null,bool = 0, +%If (TQt_2_00 -) + TQKeyEvent(Type,int,int,int,const TQString & = TQString::null,bool = 0, ushort = 1); %End @@ -732,39 +732,39 @@ public: void accept(); void ignore(); -%If (- Qt_2_00) +%If (- TQt_2_00) int state() const; %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) ButtonState state() const; ButtonState stateAfter() const; - QString text() const; + TQString text() const; bool isAutoRepeat() const; int count() const; %End }; -class QFocusEvent : QEvent +class TQFocusEvent : TQEvent { %TypeHeaderCode #include <qevent.h> %End public: -%If (- Qt_2_00) - QFocusEvent(int); +%If (- TQt_2_00) + TQFocusEvent(int); %End -%If (Qt_2_00 -) - QFocusEvent(Type); +%If (TQt_2_00 -) + TQFocusEvent(Type); %End bool gotFocus() const; bool lostFocus() const; -%If (Qt_2_1_0 -) -%If (- Qt_3_0_0) +%If (TQt_2_1_0 -) +%If (- TQt_3_0_0) enum Reason { Mouse, Tab, @@ -774,7 +774,7 @@ public: Other }; %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) enum Reason { Mouse, Tab, @@ -793,68 +793,68 @@ public: }; -class QPaintEvent : QEvent +class TQPaintEvent : TQEvent { %TypeHeaderCode #include <qevent.h> %End public: -%If (- Qt_2_00) - QPaintEvent(const QRect &); +%If (- TQt_2_00) + TQPaintEvent(const TQRect &); %End -%If (Qt_2_00 -) - QPaintEvent(const QRegion &,bool = 1); - QPaintEvent(const QRect &,bool = 1); +%If (TQt_2_00 -) + TQPaintEvent(const TQRegion &,bool = 1); + TQPaintEvent(const TQRect &,bool = 1); %End -%If (Qt_3_3_0 -) - QPaintEvent(const QRegion &,const QRect &,bool = 1); +%If (TQt_3_3_0 -) + TQPaintEvent(const TQRegion &,const TQRect &,bool = 1); %End - const QRect &rect() const; -%If (Qt_2_00 -) - const QRegion ®ion() const; + const TQRect &rect() const; +%If (TQt_2_00 -) + const TQRegion ®ion() const; bool erased() const; %End }; -class QMoveEvent : QEvent +class TQMoveEvent : TQEvent { %TypeHeaderCode #include <qevent.h> %End public: - QMoveEvent(const QPoint &,const QPoint &); + TQMoveEvent(const TQPoint &,const TQPoint &); - const QPoint &pos() const; - const QPoint &oldPos() const; + const TQPoint &pos() const; + const TQPoint &oldPos() const; }; -class QResizeEvent : QEvent +class TQResizeEvent : TQEvent { %TypeHeaderCode #include <qevent.h> %End public: - QResizeEvent(const QSize &,const QSize &); + TQResizeEvent(const TQSize &,const TQSize &); - const QSize &size() const; - const QSize &oldSize() const; + const TQSize &size() const; + const TQSize &oldSize() const; }; -class QCloseEvent : QEvent +class TQCloseEvent : TQEvent { %TypeHeaderCode #include <qevent.h> %End public: - QCloseEvent(); + TQCloseEvent(); bool isAccepted() const; void accept(); @@ -862,16 +862,16 @@ public: }; -%If (Qt_3_3_0 -) +%If (TQt_3_3_0 -) -class QIconDragEvent : QEvent +class TQIconDragEvent : TQEvent { %TypeHeaderCode #include <qevent.h> %End public: - QIconDragEvent(); + TQIconDragEvent(); bool isAccepted() const; void accept(); @@ -881,45 +881,45 @@ public: %End -class QShowEvent : QEvent +class TQShowEvent : TQEvent { %TypeHeaderCode #include <qevent.h> %End public: -%If (- Qt_3_0_0) - QShowEvent(bool); +%If (- TQt_3_0_0) + TQShowEvent(bool); bool spontaneous() const; %End -%If (Qt_3_0_0 -) - QShowEvent(); +%If (TQt_3_0_0 -) + TQShowEvent(); %End }; -class QHideEvent : QEvent +class TQHideEvent : TQEvent { %TypeHeaderCode #include <qevent.h> %End public: -%If (- Qt_3_0_0) - QHideEvent(bool); +%If (- TQt_3_0_0) + TQHideEvent(bool); bool spontaneous() const; %End -%If (Qt_3_0_0 -) - QHideEvent(); +%If (TQt_3_0_0 -) + TQHideEvent(); %End }; -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QContextMenuEvent : QEvent +class TQContextMenuEvent : TQEvent { %TypeHeaderCode #include <qevent.h> @@ -932,16 +932,16 @@ public: Other }; - QContextMenuEvent(Reason,const QPoint &,const QPoint &,int); - QContextMenuEvent(Reason,const QPoint &,int); + TQContextMenuEvent(Reason,const TQPoint &,const TQPoint &,int); + TQContextMenuEvent(Reason,const TQPoint &,int); int x() const; int y() const; int globalX() const; int globalY() const; - const QPoint &pos() const; - const QPoint &globalPos() const; + const TQPoint &pos() const; + const TQPoint &globalPos() const; ButtonState state() const; bool isAccepted() const; @@ -955,23 +955,23 @@ public: %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QIMEvent : QEvent +class TQIMEvent : TQEvent { %TypeHeaderCode #include <qevent.h> %End public: - QIMEvent(Type,const QString &,int); + TQIMEvent(Type,const TQString &,int); - const QString &text() const; + const TQString &text() const; int cursorPos() const; bool isAccepted() const; void accept(); void ignore(); -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) int selectionLength() const; %End }; @@ -979,55 +979,55 @@ public: %End -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) -class QIMComposeEvent : QIMEvent +class TQIMComposeEvent : TQIMEvent { %TypeHeaderCode #include <qevent.h> %End public: - QIMComposeEvent(Type,const QString &,int,int); + TQIMComposeEvent(Type,const TQString &,int,int); }; %End -%If (- Qt_2_00) +%If (- TQt_2_00) -class QDropEvent : QEvent +class TQDropEvent : TQEvent { %TypeHeaderCode #include <qevent.h> %End public: - QDropEvent(const QPoint &); + TQDropEvent(const TQPoint &); - const QPoint &pos() const; + const TQPoint &pos() const; bool isAccepted() const; void accept(); void ignore(); - QByteArray data(const char *); + TQByteArray data(const char *); }; %End -%If (Qt_2_00 -) -%If (Qt_DRAGANDDROP) +%If (TQt_2_00 -) +%If (TQt_DRAGANDDROP) -class QDropEvent : QEvent, QMimeSource +class TQDropEvent : TQEvent, TQMimeSource { %TypeHeaderCode #include <qevent.h> %End public: - QDropEvent(const QPoint &,Type = Drop); + TQDropEvent(const TQPoint &,Type = Drop); - const QPoint &pos() const; + const TQPoint &pos() const; bool isAccepted() const; void accept(bool = 1); void ignore(); @@ -1045,135 +1045,135 @@ public: void setAction(Action); Action action() const; - QWidget *source() const; + TQWidget *source() const; const char *format(int = 0) const; - QByteArray encodedData(const char *) const; + TQByteArray encodedData(const char *) const; bool provides(const char *) const; - QByteArray data(const char *) const; - void setPoint(const QPoint &); + TQByteArray data(const char *) const; + void setPoint(const TQPoint &); }; %End %End -%If (- Qt_2_00) +%If (- TQt_2_00) -class QDragMoveEvent : QEvent +class TQDragMoveEvent : TQEvent { %TypeHeaderCode #include <qevent.h> %End public: - QDragMoveEvent(const QPoint &); + TQDragMoveEvent(const TQPoint &); - const QPoint &pos() const; + const TQPoint &pos() const; bool isAccepted() const; void accept(); void ignore(); - void accept(const QRect &); - void ignore(const QRect &); - QRect answerRect() const; + void accept(const TQRect &); + void ignore(const TQRect &); + TQRect answerRect() const; const char *format(int = 0); bool provides(const char *); - QByteArray data(const char *); + TQByteArray data(const char *); protected: - QDragMoveEvent(const QPoint &,int); + TQDragMoveEvent(const TQPoint &,int); }; %End -%If (Qt_DRAGANDDROP) -%If (Qt_2_00 -) +%If (TQt_DRAGANDDROP) +%If (TQt_2_00 -) -class QDragMoveEvent : QDropEvent +class TQDragMoveEvent : TQDropEvent { %TypeHeaderCode #include <qevent.h> %End public: - QDragMoveEvent(const QPoint &,Type = DragMove); + TQDragMoveEvent(const TQPoint &,Type = DragMove); - QRect answerRect() const; + TQRect answerRect() const; void accept(bool = 1); - void accept(const QRect &); - void ignore(const QRect &); + void accept(const TQRect &); + void ignore(const TQRect &); void ignore(); }; %End -class QDragEnterEvent : QDragMoveEvent +class TQDragEnterEvent : TQDragMoveEvent { %TypeHeaderCode #include <qevent.h> %End public: - QDragEnterEvent(const QPoint &); + TQDragEnterEvent(const TQPoint &); }; -class QDragLeaveEvent : QEvent +class TQDragLeaveEvent : TQEvent { %TypeHeaderCode #include <qevent.h> %End public: - QDragLeaveEvent(); + TQDragLeaveEvent(); }; %End -class QChildEvent : QEvent +class TQChildEvent : TQEvent { %TypeHeaderCode #include <qevent.h> %End public: -%If (- Qt_2_00) - QChildEvent(int,QWidget *); +%If (- TQt_2_00) + TQChildEvent(int,TQWidget *); %End -%If (Qt_2_00 -) - QChildEvent(Type,QObject *); +%If (TQt_2_00 -) + TQChildEvent(Type,TQObject *); %End -%If (- Qt_2_00) - QWidget *child() const; +%If (- TQt_2_00) + TQWidget *child() const; %End -%If (Qt_2_00 -) - QObject *child() const; +%If (TQt_2_00 -) + TQObject *child() const; %End bool inserted() const; bool removed() const; }; -class QCustomEvent : QEvent +class TQCustomEvent : TQEvent { %TypeHeaderCode #include <qevent.h> %End public: -%If (- Qt_2_00) - QCustomEvent(int,SIP_PYOBJECT /Transfer/); +%If (- TQt_2_00) + TQCustomEvent(int,SIP_PYOBJECT /Transfer/); %End -%If (Qt_2_00 -) - QCustomEvent(Type,SIP_PYOBJECT /Transfer/); +%If (TQt_2_00 -) + TQCustomEvent(Type,SIP_PYOBJECT /Transfer/); %End -%If (Qt_2_1_0 -) - QCustomEvent(int); +%If (TQt_2_1_0 -) + TQCustomEvent(int); %End - ~QCustomEvent(); + ~TQCustomEvent(); %VirtualCatcherCode // We need to garbage collect any current data. @@ -1188,7 +1188,7 @@ public: %MethodCode // We need to cast the result. - sipRes = reinterpret_cast<PyObject *>(sipCpp -> QCustomEvent::data()); + sipRes = reinterpret_cast<PyObject *>(sipCpp -> TQCustomEvent::data()); // In case the event has been created from C++ code. if (!sipRes) @@ -1197,13 +1197,13 @@ public: Py_INCREF(sipRes); %End -%If (Qt_2_1_0 -) +%If (TQt_2_1_0 -) void setData(SIP_PYOBJECT /Transfer/); %MethodCode // We need to garbage collect any current data. - PyObject *old = reinterpret_cast<PyObject *>(sipCpp -> QCustomEvent::data()); - sipCpp -> QCustomEvent::setData(a0); + PyObject *old = reinterpret_cast<PyObject *>(sipCpp -> TQCustomEvent::data()); + sipCpp -> TQCustomEvent::setData(a0); Py_XDECREF(old); %End @@ -1213,7 +1213,7 @@ public: // Support the Python garbage collector. Although it's not obviously // documented, we can't release the GIL in traverse code. - PyObject *obj = reinterpret_cast<PyObject *>(sipCpp -> QCustomEvent::data()); + PyObject *obj = reinterpret_cast<PyObject *>(sipCpp -> TQCustomEvent::data()); if (obj) sipRes = sipVisit(obj, sipArg); @@ -1224,9 +1224,9 @@ public: %GCClearCode // Support the Python garbage collector. - PyObject *obj = reinterpret_cast<PyObject *>(sipCpp -> QCustomEvent::data()); + PyObject *obj = reinterpret_cast<PyObject *>(sipCpp -> TQCustomEvent::data()); - sipCpp -> QCustomEvent::setData(0); + sipCpp -> TQCustomEvent::setData(0); Py_XDECREF(obj); |