diff options
Diffstat (limited to 'sip/qt/qmainwindow.sip')
-rw-r--r-- | sip/qt/qmainwindow.sip | 222 |
1 files changed, 111 insertions, 111 deletions
diff --git a/sip/qt/qmainwindow.sip b/sip/qt/qmainwindow.sip index 11a2f12..f582ce5 100644 --- a/sip/qt/qmainwindow.sip +++ b/sip/qt/qmainwindow.sip @@ -1,48 +1,48 @@ -// This is the SIP interface definition for QMainWindow. +// This is the SIP interface definition for TQMainWindow. // // 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>QMainWindow</Title> +<Sect2><Title>TQMainWindow</Title> <FuncSynopsis> - <FuncDef>QTextStream &<Function>operator<<</Function></FuncDef> - <ParamDef>QTextStream &<Parameter></Parameter></ParamDef> - <ParamDef>const QMainWindow &<Parameter></Parameter></ParamDef> + <FuncDef>TQTextStream &<Function>operator<<</Function></FuncDef> + <ParamDef>TQTextStream &<Parameter></Parameter></ParamDef> + <ParamDef>const TQMainWindow &<Parameter></Parameter></ParamDef> </FuncSynopsis> <Para> -This operator is fully implemented. (Qt v3+) +This operator is fully implemented. (TQt v3+) </Para> <FuncSynopsis> - <FuncDef>QTextStream &<Function>operator>></Function></FuncDef> - <ParamDef>QTextStream &<Parameter></Parameter></ParamDef> - <ParamDef>QMainWindow &<Parameter></Parameter></ParamDef> + <FuncDef>TQTextStream &<Function>operator>></Function></FuncDef> + <ParamDef>TQTextStream &<Parameter></Parameter></ParamDef> + <ParamDef>TQMainWindow &<Parameter></Parameter></ParamDef> </FuncSynopsis> <Para> -This operator is fully implemented. (Qt v3+) +This operator is fully implemented. (TQt v3+) </Para> <FuncSynopsis> <FuncDef>bool <Function>getLocation</Function></FuncDef> - <ParamDef>QToolBar *<Parameter>tb</Parameter></ParamDef> + <ParamDef>TQToolBar *<Parameter>tb</Parameter></ParamDef> <ParamDef>ToolBarDock &<Parameter>dock</Parameter></ParamDef> <ParamDef>int &<Parameter>index</Parameter></ParamDef> <ParamDef>bool &<Parameter>nl</Parameter></ParamDef> @@ -51,41 +51,41 @@ This operator is fully implemented. (Qt v3+) <Para> This takes only the <Literal>tb</Literal> parameter and returns a tuple of the result, <Literal>dock</Literal>, <Literal>index</Literal>, -<Literal>nl</Literal> and <Literal>extraOffset</Literal> values. (Qt v2.1.0+) +<Literal>nl</Literal> and <Literal>extraOffset</Literal> values. (TQt v2.1.0+) </Para> <FuncSynopsis> - <FuncDef>QList<QToolBar> <Function>toolBars</Function></FuncDef> + <FuncDef>TQList<TQToolBar> <Function>toolBars</Function></FuncDef> <ParamDef>ToolBarDock <Parameter>dock</Parameter></ParamDef> </FuncSynopsis> <Para> -This returns a list of <Literal>QToolBar</Literal> instances. (Qt v2.1.0+) +This returns a list of <Literal>TQToolBar</Literal> instances. (TQt v2.1.0+) </Para> </Sect2> %End -class QMainWindow : QWidget +class TQMainWindow : TQWidget { %TypeHeaderCode #include <qmainwindow.h> %End public: -%If (- Qt_2_00) - QMainWindow(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); +%If (- TQt_2_00) + TQMainWindow(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); %End -%If (Qt_2_00 -) - QMainWindow(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = WType_TopLevel); +%If (TQt_2_00 -) + TQMainWindow(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = WType_TopLevel); %End - QMenuBar *menuBar() const; - QStatusBar *statusBar() const; - QToolTipGroup *toolTipGroup() const; - virtual void setCentralWidget(QWidget *); - QWidget *centralWidget() const; + TQMenuBar *menuBar() const; + TQStatusBar *statusBar() const; + TQToolTipGroup *toolTipGroup() const; + virtual void setCentralWidget(TQWidget *); + TQWidget *centralWidget() const; -%If (- Qt_2_1_0) +%If (- TQt_2_1_0) enum ToolBarDock { Unmanaged, TornOff, @@ -95,7 +95,7 @@ public: Left }; %End -%If (Qt_2_1_0 - Qt_3_0_0) +%If (TQt_2_1_0 - TQt_3_0_0) enum ToolBarDock { Unmanaged, TornOff, @@ -107,102 +107,102 @@ public: }; %End -%If (- Qt_2_00) +%If (- TQt_2_00) void setDockEnabled(ToolBarDock,bool); - void addToolBar(QToolBar *,const char *,ToolBarDock = Top,bool = 0); + void addToolBar(TQToolBar *,const char *,ToolBarDock = Top,bool = 0); %End -%If (Qt_2_00 - Qt_3_0_0) +%If (TQt_2_00 - TQt_3_0_0) virtual void setDockEnabled(ToolBarDock,bool); - void addToolBar(QToolBar *,ToolBarDock = Top,bool = 0); - void addToolBar(QToolBar *,const QString &,ToolBarDock = Top,bool = 0); - void moveToolBar(QToolBar *,ToolBarDock = Top); -%End -%If (Qt_2_1_0 - Qt_3_0_0) - void setDockEnabled(QToolBar *,ToolBarDock,bool); - bool isDockEnabled(QToolBar *,ToolBarDock) const; - void moveToolBar(QToolBar *,ToolBarDock,bool,int,int = -1); + void addToolBar(TQToolBar *,ToolBarDock = Top,bool = 0); + void addToolBar(TQToolBar *,const TQString &,ToolBarDock = Top,bool = 0); + void moveToolBar(TQToolBar *,ToolBarDock = Top); +%End +%If (TQt_2_1_0 - TQt_3_0_0) + void setDockEnabled(TQToolBar *,ToolBarDock,bool); + bool isDockEnabled(TQToolBar *,ToolBarDock) const; + void moveToolBar(TQToolBar *,ToolBarDock,bool,int,int = -1); bool toolBarsMovable() const; %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) virtual void setDockEnabled(Dock,bool); %End -%If (- Qt_3_0_0) +%If (- TQt_3_0_0) bool isDockEnabled(ToolBarDock) const; - void removeToolBar(QToolBar *); + void removeToolBar(TQToolBar *); %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) bool isDockEnabled(Dock) const; - bool isDockEnabled(QDockArea *) const; - virtual void setDockEnabled(QDockWindow *,Dock,bool); - bool isDockEnabled(QDockWindow *,Dock) const; - bool isDockEnabled(QDockWindow *,QDockArea *) const; + bool isDockEnabled(TQDockArea *) const; + virtual void setDockEnabled(TQDockWindow *,Dock,bool); + bool isDockEnabled(TQDockWindow *,Dock) const; + bool isDockEnabled(TQDockWindow *,TQDockArea *) const; - virtual void addDockWindow(QDockWindow *,Dock = DockTop,bool = 0); - virtual void addDockWindow(QDockWindow *,const QString &, + virtual void addDockWindow(TQDockWindow *,Dock = DockTop,bool = 0); + virtual void addDockWindow(TQDockWindow *,const TQString &, Dock = DockTop,bool = 0); - virtual void moveDockWindow(QDockWindow *,Dock = DockTop); - virtual void moveDockWindow(QDockWindow *,Dock,bool,int,int = -1); - virtual void removeDockWindow(QDockWindow *); + virtual void moveDockWindow(TQDockWindow *,Dock = DockTop); + virtual void moveDockWindow(TQDockWindow *,Dock,bool,int,int = -1); + virtual void removeDockWindow(TQDockWindow *); %End void show(); -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) void hide(); %End -%If (Qt_2_1_0 -) - QSize sizeHint() const; - QSize minimumSizeHint() const; +%If (TQt_2_1_0 -) + TQSize sizeHint() const; + TQSize minimumSizeHint() const; %End bool rightJustification() const; bool usesBigPixmaps() const; -%If (Qt_2_1_0 -) +%If (TQt_2_1_0 -) bool usesTextLabel() const; %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) bool dockWindowsMovable() const; %End -%If (Qt_2_1_0 -) +%If (TQt_2_1_0 -) bool opaqueMoving() const; %End - bool eventFilter(QObject *,QEvent *); + bool eventFilter(TQObject *,TQEvent *); -%If (Qt_3_0_0 -) - bool getLocation(QDockWindow *,Dock &,int &,bool &,int &) const; +%If (TQt_3_0_0 -) + bool getLocation(TQDockWindow *,Dock &,int &,bool &,int &) const; %End -%If (Qt_2_1_0 - Qt_3_0_0) - bool getLocation(QToolBar *,ToolBarDock &,int &,bool &,int &) const; +%If (TQt_2_1_0 - TQt_3_0_0) + bool getLocation(TQToolBar *,ToolBarDock &,int &,bool &,int &) const; %End -%If (Qt_2_1_0 - Qt_3_0_0) - QList<QToolBar> toolBars(ToolBarDock) const; +%If (TQt_2_1_0 - TQt_3_0_0) + TQList<TQToolBar> toolBars(ToolBarDock) const; %End -%If (Qt_3_0_0 -) - QPtrList<QDockWindow> dockWindows(Dock) const; - QPtrList<QDockWindow> dockWindows() const; +%If (TQt_3_0_0 -) + TQPtrList<TQDockWindow> dockWindows(Dock) const; + TQPtrList<TQDockWindow> dockWindows() const; void lineUpDockWindows(bool = 0); %End -%If (Qt_2_1_0 -) +%If (TQt_2_1_0 -) void lineUpToolBars(bool = 0); bool isDockMenuEnabled() const; %End -%If (Qt_3_0_0 -) - bool hasDockWindow(QDockWindow *); - QPtrList<QToolBar> toolBars(Dock) const; +%If (TQt_3_0_0 -) + bool hasDockWindow(TQDockWindow *); + TQPtrList<TQToolBar> toolBars(Dock) const; - // The following one is in Qt3 but not documented. - //virtual QDockArea *dockingArea(const QPoint &); - QDockArea *leftDock() const; - QDockArea *rightDock() const; - QDockArea *topDock() const; - QDockArea *bottomDock() const; + // The following one is in TQt3 but not documented. + //virtual TQDockArea *dockingArea(const TQPoint &); + TQDockArea *leftDock() const; + TQDockArea *rightDock() const; + TQDockArea *topDock() const; + TQDockArea *bottomDock() const; virtual bool isCustomizable() const; - bool appropriate(QDockWindow *) const; + bool appropriate(TQDockWindow *) const; enum DockWindows { OnlyToolBars, @@ -210,80 +210,80 @@ public: AllDockWindows }; - QPopupMenu *createDockWindowMenu(DockWindows = AllDockWindows) const; + TQPopupMenu *createDockWindowMenu(DockWindows = AllDockWindows) const; %End public slots: -%If (- Qt_2_00) +%If (- TQt_2_00) void setRightJustification(bool); void setUsesBigPixmaps(bool); %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) virtual void setRightJustification(bool); virtual void setUsesBigPixmaps(bool); %End -%If (Qt_2_1_0 - Qt_3_0_0) +%If (TQt_2_1_0 - TQt_3_0_0) void setUsesTextLabel(bool); void setToolBarsMovable(bool); void setOpaqueMoving(bool); void setDockMenuEnabled(bool); %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) virtual void setUsesTextLabel(bool); virtual void setDockWindowsMovable(bool); virtual void setOpaqueMoving(bool); virtual void setDockMenuEnabled(bool); %End -%If (Qt_2_00 - Qt_3_0_0) +%If (TQt_2_00 - TQt_3_0_0) void whatsThis(); %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) virtual void whatsThis(); - virtual void setAppropriate(QDockWindow *,bool); + virtual void setAppropriate(TQDockWindow *,bool); virtual void customize(); %End signals: void pixmapSizeChanged(bool); -%If (Qt_2_1_0 -) +%If (TQt_2_1_0 -) void usesTextLabelChanged(bool); %End -%If (Qt_2_1_0 - Qt_3_0_0) - void startMovingToolBar(QToolBar *); - void endMovingToolBar(QToolBar *); - void toolBarPositionChanged(QToolBar *); +%If (TQt_2_1_0 - TQt_3_0_0) + void startMovingToolBar(TQToolBar *); + void endMovingToolBar(TQToolBar *); + void toolBarPositionChanged(TQToolBar *); %End -%If (Qt_3_0_0 -) - void dockWindowPositionChanged(QDockWindow *); +%If (TQt_3_0_0 -) + void dockWindowPositionChanged(TQDockWindow *); %End protected slots: -%If (- Qt_2_00) +%If (- TQt_2_00) void setUpLayout(); %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) virtual void setUpLayout(); %End -%If (Qt_3_0_0 -) - virtual bool showDockMenu(const QPoint &); +%If (TQt_3_0_0 -) + virtual bool showDockMenu(const TQPoint &); void menuAboutToShow(); %End protected: - void paintEvent(QPaintEvent *); -%If (Qt_2_00 -) - void childEvent(QChildEvent *); + void paintEvent(TQPaintEvent *); +%If (TQt_2_00 -) + void childEvent(TQChildEvent *); %End - bool event(QEvent *); -%If (Qt_2_00 - Qt_3_0_0) - void resizeEvent(QResizeEvent *); + bool event(TQEvent *); +%If (TQt_2_00 - TQt_3_0_0) + void resizeEvent(TQResizeEvent *); %End -%If (Qt_2_00 -) - void styleChange(QStyle &); +%If (TQt_2_00 -) + void styleChange(TQStyle &); %End private: -%If (Qt_2_00 -) - QMainWindow(const QMainWindow &); +%If (TQt_2_00 -) + TQMainWindow(const TQMainWindow &); %End }; |