summaryrefslogtreecommitdiffstats
path: root/sip/qt/qevent.sip
diff options
context:
space:
mode:
Diffstat (limited to 'sip/qt/qevent.sip')
-rw-r--r--sip/qt/qevent.sip378
1 files changed, 0 insertions, 378 deletions
diff --git a/sip/qt/qevent.sip b/sip/qt/qevent.sip
index a0fc01d..7fa9592 100644
--- a/sip/qt/qevent.sip
+++ b/sip/qt/qevent.sip
@@ -175,149 +175,6 @@ passed as the event data and its reference count is increased.
%End
-%If (- TQt_2_00)
-
-const int Event_None;
-const int Event_Timer;
-const int Event_MouseButtonPress;
-const int Event_MouseButtonRelease;
-const int Event_MouseButtonDblClick;
-const int Event_MouseMove;
-const int Event_KeyPress;
-const int Event_KeyRelease;
-const int Event_FocusIn;
-const int Event_FocusOut;
-const int Event_Enter;
-const int Event_Leave;
-const int Event_Paint;
-const int Event_Move;
-const int Event_Resize;
-const int Event_Create;
-const int Event_Destroy;
-const int Event_Show;
-const int Event_Hide;
-const int Event_Close;
-const int Event_Quit;
-const int Event_Accel;
-const int Event_Clipboard;
-const int Event_SockAct;
-const int Event_DragEnter;
-const int Event_DragMove;
-const int Event_DragLeave;
-const int Event_Drop;
-const int Event_DragResponse;
-const int Event_ChildInserted;
-const int Event_ChildRemoved;
-const int Event_LayoutHint;
-const int Event_ActivateControl;
-const int Event_DeactivateControl;
-const int Event_User;
-
-
-enum ButtonState {
- NoButton = 0x00,
- LeftButton = 0x01,
- RightButton = 0x02,
- MidButton = 0x04,
- MouseButtonMask = 0x07,
- ShiftButton = 0x08,
- ControlButton = 0x10,
- AltButton = 0x20,
- KeyButtonMask = 0x38
-};
-
-
-class TQEvent
-{
-%TypeHeaderCode
-#include <tqevent.h>
-%End
-
-public:
- TQEvent(int);
- TQEvent(TQEvent&);
-
- int type() const;
-
-%ConvertToSubClassCode
- switch (sipCpp -> type())
- {
- case Event_Timer:
- sipClass = sipClass_TQTimerEvent;
- break;
-
- case Event_MouseButtonPress:
- case Event_MouseButtonRelease:
- case Event_MouseButtonDblClick:
- case Event_MouseMove:
- sipClass = sipClass_TQMouseEvent;
- break;
-
- case Event_KeyPress:
- case Event_KeyRelease:
- sipClass = sipClass_TQKeyEvent;
- break;
-
- case Event_FocusIn:
- case Event_FocusOut:
- sipClass = sipClass_TQFocusEvent;
- break;
-
- case Event_Paint:
- sipClass = sipClass_TQPaintEvent;
- break;
-
- case Event_Move:
- sipClass = sipClass_TQMoveEvent;
- break;
-
- case Event_Resize:
- sipClass = sipClass_TQResizeEvent;
- break;
-
- case Event_Close:
- sipClass = sipClass_TQCloseEvent;
- break;
-
- case Event_Show:
- sipClass = sipClass_TQShowEvent;
- break;
-
- case Event_Hide:
- sipClass = sipClass_TQHideEvent;
- break;
-
- case Event_DragMove:
- sipClass = sipClass_TQDragMoveEvent;
- break;
-
- case Event_DragEnter:
- sipClass = sipClass_TQDragEnterEvent;
- break;
-
- case Event_DragLeave:
- sipClass = sipClass_TQDragLeaveEvent;
- break;
-
- case Event_Drop:
- sipClass = sipClass_TQDropEvent;
- break;
-
- case Event_ChildInserted:
- case Event_ChildRemoved:
- sipClass = sipClass_TQChildEvent;
- break;
-
- default:
- sipClass = NULL;
- }
-%End
-};
-
-%End
-
-%If (TQt_2_00 -)
-
class TQEvent : TQt
{
%TypeHeaderCode
@@ -348,7 +205,6 @@ public:
Hide,
Close,
Quit,
-%If (TQt_2_1_0 -)
Reparent,
ShowMinimized,
ShowNormal,
@@ -357,35 +213,22 @@ public:
ShowToParent,
HideToParent,
ShowMaximized,
-%End
-%If (TQt_3_0_0 -)
ShowFullScreen,
-%End
Accel,
Wheel,
AccelAvailable,
-%If (TQt_2_1_0 -)
CaptionChange,
IconChange,
ParentFontChange,
ApplicationFontChange,
ParentPaletteChange,
ApplicationPaletteChange,
-%End
-%If (TQt_3_0_0 -)
PaletteChange,
-%End
Clipboard,
-%If (TQt_2_2_0 -)
Speech,
-%End
SockAct,
-%If (TQt_2_2_0 -)
AccelOverride,
-%End
-%If (TQt_3_0_0 -)
DeferredDelete,
-%End
DragEnter,
DragMove,
DragLeave,
@@ -394,30 +237,16 @@ public:
ChildInserted,
ChildRemoved,
LayoutHint,
-%If (TQt_2_2_0 -)
ShowWindowRequest,
-%End
-%If (TQt_3_3_0 -)
WindowBlocked,
WindowUnblocked,
-%End
ActivateControl,
DeactivateControl,
-%If (TQt_2_1_0 - TQt_2_2_0)
- Configure,
- ConfigureLayout,
-%End
-%If (TQt_3_0_0 -)
ContextMenu,
IMStart,
IMCompose,
IMEnd,
Accessibility,
-%End
-%If (TQt_3_0_0 - TQt_3_1_0)
- Tablet,
-%End
-%If (TQt_3_1_0 -)
TabletMove,
LocaleChange,
LanguageChange,
@@ -425,17 +254,12 @@ public:
Style,
TabletPress,
TabletRelease,
-%End
-%If (TQt_3_3_0 -)
OkRequest,
HelpRequest,
IconDrag,
WindowStateChange,
-%End
User,
-%If (TQt_3_0_0 -)
MaxUser,
-%End
};
TQEvent(Type);
@@ -443,9 +267,7 @@ public:
virtual ~TQEvent();
Type type() const;
-%If (TQt_3_0_0 -)
bool spontaneous() const;
-%End
%ConvertToSubClassCode
switch (sipCpp -> type())
@@ -462,9 +284,7 @@ public:
break;
case TQEvent::Accel:
-#if TQT_VERSION >= 220
case TQEvent::AccelOverride:
-#endif
case TQEvent::KeyPress:
case TQEvent::KeyRelease:
sipClass = sipClass_TQKeyEvent;
@@ -491,11 +311,9 @@ public:
sipClass = sipClass_TQCloseEvent;
break;
-#if TQT_VERSION >= 0x030300
case TQEvent::IconDrag:
sipClass = sipClass_TQIconDragEvent;
break;
-#endif
case TQEvent::Wheel:
sipClass = sipClass_TQWheelEvent;
@@ -532,7 +350,6 @@ public:
sipClass = sipClass_TQChildEvent;
break;
-#if TQT_VERSION >= 0x030000
case TQEvent::ContextMenu:
sipClass = sipClass_TQContextMenuEvent;
break;
@@ -541,19 +358,7 @@ public:
case TQEvent::IMEnd:
sipClass = sipClass_TQIMEvent;
break;
-#endif
-#if TQT_VERSION >= 0x030000 && TQT_VERSION < 0x030100
- case TQEvent::IMCompose:
- sipClass = sipClass_TQIMEvent;
- break;
-
- case TQEvent::Tablet:
- sipClass = sipClass_TQTabletEvent;
- break;
-#endif
-
-#if TQT_VERSION >= 0x030100
case TQEvent::IMCompose:
sipClass = sipClass_TQIMComposeEvent;
break;
@@ -563,7 +368,6 @@ public:
case TQEvent::TabletRelease:
sipClass = sipClass_TQTabletEvent;
break;
-#endif
default:
sipClass = (sipCpp -> type() < TQEvent::User ?
@@ -573,8 +377,6 @@ public:
%End
};
-%End
-
class TQTimerEvent : TQEvent
{
@@ -596,14 +398,8 @@ class TQMouseEvent : TQEvent
%End
public:
-%If (- TQt_2_00)
- TQMouseEvent(int,const TQPoint &,int,int);
- TQMouseEvent(int,const TQPoint &,const TQPoint &,int,int);
-%End
-%If (TQt_2_00 -)
TQMouseEvent(Type,const TQPoint &,int,int);
TQMouseEvent(Type,const TQPoint &,const TQPoint &,int,int);
-%End
const TQPoint &pos() const;
const TQPoint &globalPos() const;
@@ -611,25 +407,15 @@ public:
int y() const;
int globalX() const;
int globalY() const;
-%If (- TQt_2_00)
- int button() const;
- int state() const;
-%End
-%If (TQt_2_00 -)
ButtonState button() const;
ButtonState state() const;
ButtonState stateAfter() const;
-%End
-%If (TQt_3_0_0 -)
bool isAccepted() const;
void accept();
void ignore();
-%End
};
-%If (TQt_2_00 -)
-
class TQWheelEvent : TQEvent
{
%TypeHeaderCode
@@ -637,15 +423,9 @@ class TQWheelEvent : TQEvent
%End
public:
-%If (- TQt_3_0_0)
- TQWheelEvent(const TQPoint &,int,int);
- TQWheelEvent(const TQPoint &,const TQPoint &,int,int);
-%End
-%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 TQPoint &pos() const;
@@ -655,18 +435,12 @@ public:
int globalX() const;
int globalY() const;
ButtonState state() const;
-%If (TQt_3_0_0 -)
Orientation orientation() const;
-%End
bool isAccepted() const;
void accept();
void ignore();
};
-%End
-
-
-%If (TQt_3_0_0 -)
class TQTabletEvent : TQEvent
{
@@ -682,13 +456,8 @@ public:
Eraser
};
-%If (- TQt_3_1_0)
- TQTabletEvent(const TQPoint &,int,int,int,int,const TQPair<int,int> &);
-%End
-%If (TQt_3_1_0 -)
TQTabletEvent(Type,const TQPoint &,const TQPoint &,int,int,int,int,
const TQPair<int,int> &);
-%End
TQTabletEvent(const TQPoint &,const TQPoint &,int,int,int,int,
const TQPair<int,int> &);
@@ -708,8 +477,6 @@ public:
TQPair<int,int> uniqueId();
};
-%End
-
class TQKeyEvent : TQEvent
{
@@ -718,13 +485,8 @@ class TQKeyEvent : TQEvent
%End
public:
-%If (- TQt_2_00)
- TQKeyEvent(int,int,int,int);
-%End
-%If (TQt_2_00 -)
TQKeyEvent(Type,int,int,int,const TQString & = TQString::null,bool = 0,
ushort = 1);
-%End
int key() const;
int ascii() const;
@@ -732,17 +494,11 @@ public:
void accept();
void ignore();
-%If (- TQt_2_00)
- int state() const;
-%End
-
-%If (TQt_2_00 -)
ButtonState state() const;
ButtonState stateAfter() const;
TQString text() const;
bool isAutoRepeat() const;
int count() const;
-%End
};
@@ -753,28 +509,11 @@ class TQFocusEvent : TQEvent
%End
public:
-%If (- TQt_2_00)
- TQFocusEvent(int);
-%End
-%If (TQt_2_00 -)
TQFocusEvent(Type);
-%End
bool gotFocus() const;
bool lostFocus() const;
-%If (TQt_2_1_0 -)
-%If (- TQt_3_0_0)
- enum Reason {
- Mouse,
- Tab,
- ActiveWindow,
- Popup,
- Shortcut,
- Other
- };
-%End
-%If (TQt_3_0_0 -)
enum Reason {
Mouse,
Tab,
@@ -784,12 +523,10 @@ public:
Shortcut,
Other
};
-%End
static Reason reason();
static void setReason(Reason);
static void resetReason();
-%End
};
@@ -800,22 +537,13 @@ class TQPaintEvent : TQEvent
%End
public:
-%If (- TQt_2_00)
- TQPaintEvent(const TQRect &);
-%End
-%If (TQt_2_00 -)
TQPaintEvent(const TQRegion &,bool = 1);
TQPaintEvent(const TQRect &,bool = 1);
-%End
-%If (TQt_3_3_0 -)
TQPaintEvent(const TQRegion &,const TQRect &,bool = 1);
-%End
const TQRect &rect() const;
-%If (TQt_2_00 -)
const TQRegion &region() const;
bool erased() const;
-%End
};
@@ -862,8 +590,6 @@ public:
};
-%If (TQt_3_3_0 -)
-
class TQIconDragEvent : TQEvent
{
%TypeHeaderCode
@@ -878,8 +604,6 @@ public:
void ignore();
};
-%End
-
class TQShowEvent : TQEvent
{
@@ -888,14 +612,7 @@ class TQShowEvent : TQEvent
%End
public:
-%If (- TQt_3_0_0)
- TQShowEvent(bool);
-
- bool spontaneous() const;
-%End
-%If (TQt_3_0_0 -)
TQShowEvent();
-%End
};
@@ -906,19 +623,10 @@ class TQHideEvent : TQEvent
%End
public:
-%If (- TQt_3_0_0)
- TQHideEvent(bool);
-
- bool spontaneous() const;
-%End
-%If (TQt_3_0_0 -)
TQHideEvent();
-%End
};
-%If (TQt_3_0_0 -)
-
class TQContextMenuEvent : TQEvent
{
%TypeHeaderCode
@@ -952,10 +660,6 @@ public:
Reason reason() const;
};
-%End
-
-
-%If (TQt_3_0_0 -)
class TQIMEvent : TQEvent
{
@@ -971,15 +675,9 @@ public:
bool isAccepted() const;
void accept();
void ignore();
-%If (TQt_3_1_0 -)
int selectionLength() const;
-%End
};
-%End
-
-
-%If (TQt_3_1_0 -)
class TQIMComposeEvent : TQIMEvent
{
@@ -991,31 +689,7 @@ public:
TQIMComposeEvent(Type,const TQString &,int,int);
};
-%End
-
-
-%If (- TQt_2_00)
-
-class TQDropEvent : TQEvent
-{
-%TypeHeaderCode
-#include <tqevent.h>
-%End
-
-public:
- TQDropEvent(const TQPoint &);
-
- const TQPoint &pos() const;
- bool isAccepted() const;
- void accept();
- void ignore();
- TQByteArray data(const char *);
-};
-%End
-
-
-%If (TQt_2_00 -)
%If (TQt_DRAGANDDROP)
class TQDropEvent : TQEvent, TQMimeSource
@@ -1054,40 +728,9 @@ public:
};
%End
-%End
-
-
-%If (- TQt_2_00)
-
-class TQDragMoveEvent : TQEvent
-{
-%TypeHeaderCode
-#include <tqevent.h>
-%End
-
-public:
- TQDragMoveEvent(const TQPoint &);
-
- const TQPoint &pos() const;
- bool isAccepted() const;
- void accept();
- void ignore();
- void accept(const TQRect &);
- void ignore(const TQRect &);
- TQRect answerRect() const;
- const char *format(int = 0);
- bool provides(const char *);
- TQByteArray data(const char *);
-
-protected:
- TQDragMoveEvent(const TQPoint &,int);
-};
-
-%End
%If (TQt_DRAGANDDROP)
-%If (TQt_2_00 -)
class TQDragMoveEvent : TQDropEvent
{
@@ -1105,8 +748,6 @@ public:
void ignore();
};
-%End
-
class TQDragEnterEvent : TQDragMoveEvent
{
@@ -1139,19 +780,9 @@ class TQChildEvent : TQEvent
%End
public:
-%If (- TQt_2_00)
- TQChildEvent(int,TQWidget *);
-%End
-%If (TQt_2_00 -)
TQChildEvent(Type,TQObject *);
-%End
-%If (- TQt_2_00)
- TQWidget *child() const;
-%End
-%If (TQt_2_00 -)
TQObject *child() const;
-%End
bool inserted() const;
bool removed() const;
};
@@ -1164,15 +795,8 @@ class TQCustomEvent : TQEvent
%End
public:
-%If (- TQt_2_00)
- TQCustomEvent(int,SIP_PYOBJECT /Transfer/);
-%End
-%If (TQt_2_00 -)
TQCustomEvent(Type,SIP_PYOBJECT /Transfer/);
-%End
-%If (TQt_2_1_0 -)
TQCustomEvent(int);
-%End
~TQCustomEvent();
%VirtualCatcherCode
// We need to garbage collect any current data.
@@ -1197,7 +821,6 @@ public:
Py_INCREF(sipRes);
%End
-%If (TQt_2_1_0 -)
void setData(SIP_PYOBJECT /Transfer/);
%MethodCode
// We need to garbage collect any current data.
@@ -1207,7 +830,6 @@ public:
Py_XDECREF(old);
%End
-%End
%GCTraverseCode
// Support the Python garbage collector. Although it's not obviously