You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
172 lines
5.2 KiB
172 lines
5.2 KiB
13 years ago
|
// This is the SIP interface definition for TQMainWindow.
|
||
13 years ago
|
//
|
||
|
// Copyright (c) 2007
|
||
|
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
|
||
|
//
|
||
13 years ago
|
// This file is part of PyTQt.
|
||
13 years ago
|
//
|
||
13 years ago
|
// This copy of PyTQt is free software; you can redistribute it and/or modify it
|
||
13 years ago
|
// 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.
|
||
|
//
|
||
13 years ago
|
// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY
|
||
13 years ago
|
// 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
|
||
13 years ago
|
// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation,
|
||
13 years ago
|
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||
|
|
||
3 years ago
|
%DefaultEncoding "UTF-8"
|
||
13 years ago
|
|
||
|
%ExportedDoc
|
||
13 years ago
|
<Sect2><Title>TQMainWindow</Title>
|
||
13 years ago
|
<FuncSynopsis>
|
||
13 years ago
|
<FuncDef>TQTextStream &<Function>operator<<</Function></FuncDef>
|
||
|
<ParamDef>TQTextStream &<Parameter></Parameter></ParamDef>
|
||
|
<ParamDef>const TQMainWindow &<Parameter></Parameter></ParamDef>
|
||
13 years ago
|
</FuncSynopsis>
|
||
|
<Para>
|
||
13 years ago
|
This operator is fully implemented. (TQt v3+)
|
||
13 years ago
|
</Para>
|
||
|
|
||
|
<FuncSynopsis>
|
||
13 years ago
|
<FuncDef>TQTextStream &<Function>operator>></Function></FuncDef>
|
||
|
<ParamDef>TQTextStream &<Parameter></Parameter></ParamDef>
|
||
|
<ParamDef>TQMainWindow &<Parameter></Parameter></ParamDef>
|
||
13 years ago
|
</FuncSynopsis>
|
||
|
<Para>
|
||
13 years ago
|
This operator is fully implemented. (TQt v3+)
|
||
13 years ago
|
</Para>
|
||
|
|
||
|
<FuncSynopsis>
|
||
|
<FuncDef>bool <Function>getLocation</Function></FuncDef>
|
||
13 years ago
|
<ParamDef>TQToolBar *<Parameter>tb</Parameter></ParamDef>
|
||
13 years ago
|
<ParamDef>ToolBarDock &<Parameter>dock</Parameter></ParamDef>
|
||
|
<ParamDef>int &<Parameter>index</Parameter></ParamDef>
|
||
|
<ParamDef>bool &<Parameter>nl</Parameter></ParamDef>
|
||
|
<ParamDef>int &<Parameter>extraOffset</Parameter></ParamDef>
|
||
|
</FuncSynopsis>
|
||
|
<Para>
|
||
|
This takes only the <Literal>tb</Literal> parameter and returns a tuple of the
|
||
|
result, <Literal>dock</Literal>, <Literal>index</Literal>,
|
||
13 years ago
|
<Literal>nl</Literal> and <Literal>extraOffset</Literal> values. (TQt v2.1.0+)
|
||
13 years ago
|
</Para>
|
||
|
|
||
|
<FuncSynopsis>
|
||
6 years ago
|
<FuncDef>TQPtrList<TQToolBar> <Function>toolBars</Function></FuncDef>
|
||
13 years ago
|
<ParamDef>ToolBarDock <Parameter>dock</Parameter></ParamDef>
|
||
|
</FuncSynopsis>
|
||
|
<Para>
|
||
13 years ago
|
This returns a list of <Literal>TQToolBar</Literal> instances. (TQt v2.1.0+)
|
||
13 years ago
|
</Para>
|
||
|
</Sect2>
|
||
|
%End
|
||
|
|
||
|
|
||
13 years ago
|
class TQMainWindow : TQWidget
|
||
13 years ago
|
{
|
||
|
%TypeHeaderCode
|
||
13 years ago
|
#include <tqmainwindow.h>
|
||
13 years ago
|
%End
|
||
|
|
||
|
public:
|
||
13 years ago
|
TQMainWindow(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = WType_TopLevel);
|
||
13 years ago
|
|
||
13 years ago
|
TQMenuBar *menuBar() const;
|
||
|
TQStatusBar *statusBar() const;
|
||
|
TQToolTipGroup *toolTipGroup() const;
|
||
|
virtual void setCentralWidget(TQWidget *);
|
||
|
TQWidget *centralWidget() const;
|
||
13 years ago
|
|
||
|
virtual void setDockEnabled(Dock,bool);
|
||
|
bool isDockEnabled(Dock) const;
|
||
13 years ago
|
bool isDockEnabled(TQDockArea *) const;
|
||
|
virtual void setDockEnabled(TQDockWindow *,Dock,bool);
|
||
|
bool isDockEnabled(TQDockWindow *,Dock) const;
|
||
|
bool isDockEnabled(TQDockWindow *,TQDockArea *) const;
|
||
13 years ago
|
|
||
13 years ago
|
virtual void addDockWindow(TQDockWindow *,Dock = DockTop,bool = 0);
|
||
|
virtual void addDockWindow(TQDockWindow *,const TQString &,
|
||
13 years ago
|
Dock = DockTop,bool = 0);
|
||
13 years ago
|
virtual void moveDockWindow(TQDockWindow *,Dock = DockTop);
|
||
|
virtual void moveDockWindow(TQDockWindow *,Dock,bool,int,int = -1);
|
||
|
virtual void removeDockWindow(TQDockWindow *);
|
||
13 years ago
|
|
||
|
void show();
|
||
|
void hide();
|
||
13 years ago
|
TQSize sizeHint() const;
|
||
|
TQSize minimumSizeHint() const;
|
||
13 years ago
|
|
||
|
bool rightJustification() const;
|
||
|
bool usesBigPixmaps() const;
|
||
|
bool usesTextLabel() const;
|
||
|
bool dockWindowsMovable() const;
|
||
|
bool opaqueMoving() const;
|
||
|
|
||
13 years ago
|
bool eventFilter(TQObject *,TQEvent *);
|
||
13 years ago
|
|
||
13 years ago
|
bool getLocation(TQDockWindow *,Dock &,int &,bool &,int &) const;
|
||
13 years ago
|
|
||
13 years ago
|
TQPtrList<TQDockWindow> dockWindows(Dock) const;
|
||
|
TQPtrList<TQDockWindow> dockWindows() const;
|
||
13 years ago
|
void lineUpDockWindows(bool = 0);
|
||
|
|
||
|
void lineUpToolBars(bool = 0);
|
||
|
bool isDockMenuEnabled() const;
|
||
|
|
||
13 years ago
|
bool hasDockWindow(TQDockWindow *);
|
||
|
TQPtrList<TQToolBar> toolBars(Dock) const;
|
||
13 years ago
|
|
||
13 years ago
|
// 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;
|
||
13 years ago
|
|
||
|
virtual bool isCustomizable() const;
|
||
|
|
||
13 years ago
|
bool appropriate(TQDockWindow *) const;
|
||
13 years ago
|
|
||
|
enum DockWindows {
|
||
|
OnlyToolBars,
|
||
|
NoToolBars,
|
||
|
AllDockWindows
|
||
|
};
|
||
|
|
||
13 years ago
|
TQPopupMenu *createDockWindowMenu(DockWindows = AllDockWindows) const;
|
||
13 years ago
|
|
||
|
public slots:
|
||
|
virtual void setRightJustification(bool);
|
||
|
virtual void setUsesBigPixmaps(bool);
|
||
|
virtual void setUsesTextLabel(bool);
|
||
|
virtual void setDockWindowsMovable(bool);
|
||
|
virtual void setOpaqueMoving(bool);
|
||
|
virtual void setDockMenuEnabled(bool);
|
||
|
virtual void whatsThis();
|
||
13 years ago
|
virtual void setAppropriate(TQDockWindow *,bool);
|
||
13 years ago
|
virtual void customize();
|
||
|
|
||
|
signals:
|
||
|
void pixmapSizeChanged(bool);
|
||
|
void usesTextLabelChanged(bool);
|
||
13 years ago
|
void dockWindowPositionChanged(TQDockWindow *);
|
||
13 years ago
|
|
||
|
protected slots:
|
||
|
virtual void setUpLayout();
|
||
13 years ago
|
virtual bool showDockMenu(const TQPoint &);
|
||
13 years ago
|
void menuAboutToShow();
|
||
|
|
||
|
protected:
|
||
13 years ago
|
void paintEvent(TQPaintEvent *);
|
||
|
void childEvent(TQChildEvent *);
|
||
|
bool event(TQEvent *);
|
||
|
void styleChange(TQStyle &);
|
||
13 years ago
|
|
||
|
private:
|
||
13 years ago
|
TQMainWindow(const TQMainWindow &);
|
||
13 years ago
|
};
|