// qcoreevent.sip generated by MetaSIP on Fri Sep 28 17:07:47 2007 // // This file is part of the QtCore Python extension module. // // Copyright (c) 2007 // Phil Thompson // // This file is part of PyQt. // // This copy of PyQt is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License version 2 as published by // the Free Software Foundation and appearing in the file LICENSE included in the // packaging of this file. // // PyQt 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, // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. class QEvent { %TypeHeaderCode #include %End %ConvertToSubClassCode switch (sipCpp->type()) { case QEvent::Timer: sipClass = sipClass_QTimerEvent; break; case QEvent::ChildAdded: case QEvent::ChildPolished: case QEvent::ChildRemoved: sipClass = sipClass_QChildEvent; break; #if QT_VERSION >= 0x040200 case QEvent::DynamicPropertyChange: sipClass = sipClass_QDynamicPropertyChangeEvent; break; #endif default: sipClass = 0; } %End public: enum Type { None, Timer, MouseButtonPress, MouseButtonRelease, MouseButtonDblClick, MouseMove, KeyPress, KeyRelease, FocusIn, FocusOut, Enter, Leave, Paint, Move, Resize, Create, Destroy, Show, Hide, Close, Quit, ParentChange, ParentAboutToChange, ThreadChange, WindowActivate, WindowDeactivate, ShowToParent, HideToParent, Wheel, WindowTitleChange, WindowIconChange, ApplicationWindowIconChange, ApplicationFontChange, ApplicationLayoutDirectionChange, ApplicationPaletteChange, PaletteChange, Clipboard, Speech, MetaCall, SockAct, WinEventAct, DeferredDelete, DragEnter, DragMove, DragLeave, Drop, DragResponse, ChildAdded, ChildPolished, ChildRemoved, ShowWindowRequest, PolishRequest, Polish, LayoutRequest, UpdateRequest, UpdateLater, EmbeddingControl, ActivateControl, DeactivateControl, ContextMenu, InputMethod, AccessibilityPrepare, TabletMove, LocaleChange, LanguageChange, LayoutDirectionChange, Style, TabletPress, TabletRelease, OkRequest, HelpRequest, IconDrag, FontChange, EnabledChange, ActivationChange, StyleChange, IconTextChange, ModifiedChange, MouseTrackingChange, WindowBlocked, WindowUnblocked, WindowStateChange, ToolTip, WhatsThis, StatusTip, ActionChanged, ActionAdded, ActionRemoved, FileOpen, Shortcut, ShortcutOverride, WhatsThisClicked, ToolBarChange, %If (Qt_4_3_0 -) ApplicationActivate, %End ApplicationActivated, %If (Qt_4_3_0 -) ApplicationDeactivate, %End ApplicationDeactivated, QueryWhatsThis, EnterWhatsThisMode, LeaveWhatsThisMode, ZOrderChange, HoverEnter, HoverLeave, HoverMove, AccessibilityHelp, AccessibilityDescription, AcceptDropsChange, MenubarUpdated, ZeroTimerEvent, %If (Qt_4_2_0 -) GraphicsSceneMouseMove, %End %If (Qt_4_2_0 -) GraphicsSceneMousePress, %End %If (Qt_4_2_0 -) GraphicsSceneMouseRelease, %End %If (Qt_4_2_0 -) GraphicsSceneMouseDoubleClick, %End %If (Qt_4_2_0 -) GraphicsSceneContextMenu, %End %If (Qt_4_2_0 -) GraphicsSceneHoverEnter, %End %If (Qt_4_2_0 -) GraphicsSceneHoverMove, %End %If (Qt_4_2_0 -) GraphicsSceneHoverLeave, %End %If (Qt_4_2_0 -) GraphicsSceneHelp, %End %If (Qt_4_2_0 -) GraphicsSceneDragEnter, %End %If (Qt_4_2_0 -) GraphicsSceneDragMove, %End %If (Qt_4_2_0 -) GraphicsSceneDragLeave, %End %If (Qt_4_2_0 -) GraphicsSceneDrop, %End %If (Qt_4_2_0 -) GraphicsSceneWheel, %End %If (Qt_4_2_0 -) KeyboardLayoutChange, %End %If (Qt_4_2_0 -) DynamicPropertyChange, %End %If (Qt_4_2_0 -) TabletEnterProximity, %End %If (Qt_4_2_0 -) TabletLeaveProximity, %End User, MaxUser, }; QEvent(QEvent::Type type); virtual ~QEvent(); QEvent::Type type() const; bool spontaneous() const; void setAccepted(bool accepted); bool isAccepted() const; void accept(); void ignore(); }; class QTimerEvent : QEvent { %TypeHeaderCode #include %End public: QTimerEvent(int timerId); virtual ~QTimerEvent(); int timerId() const; }; class QChildEvent : QEvent { %TypeHeaderCode #include %End public: QChildEvent(QEvent::Type type, QObject *child); virtual ~QChildEvent(); QObject *child() const; bool added() const; bool polished() const; bool removed() const; }; %If (Qt_4_2_0 -) class QDynamicPropertyChangeEvent : QEvent { %TypeHeaderCode #include %End public: QDynamicPropertyChangeEvent(const QByteArray &name); virtual ~QDynamicPropertyChangeEvent(); QByteArray propertyName() const; }; %End