21
22
<li><a href="q3mainwindow-members.html">List of all members, including inherited members</a></li>
23
25
<a name="public-types"></a>
26
<li><div class="fn"></div>enum <b><a href="q3mainwindow.html#DockWindows-enum">DockWindows</a></b> { OnlyToolBars, NoToolBars, AllDockWindows }</li>
27
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
28
<tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#DockWindows-enum">DockWindows</a></b> { OnlyToolBars, NoToolBars, AllDockWindows }</td></tr>
28
31
<a name="properties"></a>
30
<p><table width="100%" border="0" cellpadding="0" cellspacing="0">
33
<p><table class="propsummary" width="100%" border="0" cellpadding="0" cellspacing="0">
31
34
<tr><td width="45%" valign="top"><ul>
32
<li><div class="fn"></div><b><a href="q3mainwindow.html#dockWindowsMovable-prop">dockWindowsMovable</a></b> : bool</li>
33
<li><div class="fn"></div><b><a href="q3mainwindow.html#opaqueMoving-prop">opaqueMoving</a></b> : bool</li>
34
<li><div class="fn"></div><b><a href="q3mainwindow.html#rightJustification-prop">rightJustification</a></b> : bool</li>
35
<li><div class="fn"><b><a href="q3mainwindow.html#dockWindowsMovable-prop">dockWindowsMovable</a></b> : bool</div></li>
36
<li><div class="fn"><b><a href="q3mainwindow.html#opaqueMoving-prop">opaqueMoving</a></b> : bool</div></li>
37
<li><div class="fn"><b><a href="q3mainwindow.html#rightJustification-prop">rightJustification</a></b> : bool</div></li>
35
38
</ul></td><td valign="top"><ul>
36
<li><div class="fn"></div><b><a href="q3mainwindow.html#usesBigPixmaps-prop">usesBigPixmaps</a></b> : bool</li>
37
<li><div class="fn"></div><b><a href="q3mainwindow.html#usesTextLabel-prop">usesTextLabel</a></b> : bool</li>
39
<li><div class="fn"><b><a href="q3mainwindow.html#usesBigPixmaps-prop">usesBigPixmaps</a></b> : bool</div></li>
40
<li><div class="fn"><b><a href="q3mainwindow.html#usesTextLabel-prop">usesTextLabel</a></b> : bool</div></li>
42
<li><div class="fn"></div>57 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
43
<li><div class="fn"></div>1 property inherited from <a href="qobject.html#properties">QObject</a></li>
45
<li><div bar="2" class="fn"></div>58 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
46
<li><div bar="2" class="fn"></div>1 property inherited from <a href="qobject.html#properties">QObject</a></li>
45
49
<a name="public-functions"></a>
46
<h3>Public Functions</h3>
48
<li><div class="fn"></div><b><a href="q3mainwindow.html#Q3MainWindow">Q3MainWindow</a></b> ( QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0, Qt::WindowFlags <i>f</i> = Qt::WType_TopLevel )</li>
49
<li><div class="fn"></div><b><a href="q3mainwindow.html#dtor.Q3MainWindow">~Q3MainWindow</a></b> ()</li>
50
<li><div class="fn"></div>virtual void <b><a href="q3mainwindow.html#addDockWindow">addDockWindow</a></b> ( Q3DockWindow * <i>dockWindow</i>, Qt::Dock <i>edge</i> = Qt::DockTop, bool <i>newLine</i> = false )</li>
51
<li><div class="fn"></div>virtual void <b><a href="q3mainwindow.html#addDockWindow-2">addDockWindow</a></b> ( Q3DockWindow * <i>dockWindow</i>, const QString & <i>label</i>, Qt::Dock <i>edge</i> = Qt::DockTop, bool <i>newLine</i> = false )</li>
52
<li><div class="fn"></div>void <b><a href="q3mainwindow.html#addToolBar">addToolBar</a></b> ( Q3DockWindow * <i>dockWindow</i>, Qt::Dock <i>position</i> = Qt::DockTop, bool <i>newLine</i> = false )</li>
53
<li><div class="fn"></div>void <b><a href="q3mainwindow.html#addToolBar-2">addToolBar</a></b> ( Q3DockWindow * <i>dockWindow</i>, const QString & <i>label</i>, Qt::Dock <i>position</i> = Qt::DockTop, bool <i>newLine</i> = false )</li>
54
<li><div class="fn"></div>bool <b><a href="q3mainwindow.html#appropriate">appropriate</a></b> ( Q3DockWindow * <i>dw</i> ) const</li>
55
<li><div class="fn"></div>Q3DockArea * <b><a href="q3mainwindow.html#bottomDock">bottomDock</a></b> () const</li>
56
<li><div class="fn"></div>QWidget * <b><a href="q3mainwindow.html#centralWidget">centralWidget</a></b> () const</li>
57
<li><div class="fn"></div>virtual Q3PopupMenu * <b><a href="q3mainwindow.html#createDockWindowMenu">createDockWindowMenu</a></b> ( DockWindows <i>dockWindows</i> = AllDockWindows ) const</li>
58
<li><div class="fn"></div>QList<Q3DockWindow *> <b><a href="q3mainwindow.html#dockWindows">dockWindows</a></b> ( Qt::Dock <i>dock</i> ) const</li>
59
<li><div class="fn"></div>QList<Q3DockWindow *> <b><a href="q3mainwindow.html#dockWindows-2">dockWindows</a></b> () const</li>
60
<li><div class="fn"></div>bool <b><a href="q3mainwindow.html#dockWindowsMovable-prop">dockWindowsMovable</a></b> () const</li>
61
<li><div class="fn"></div>bool <b><a href="q3mainwindow.html#getLocation">getLocation</a></b> ( Q3DockWindow * <i>dw</i>, Qt::Dock & <i>dock</i>, int & <i>index</i>, bool & <i>nl</i>, int & <i>extraOffset</i> ) const</li>
62
<li><div class="fn"></div>bool <b><a href="q3mainwindow.html#hasDockWindow">hasDockWindow</a></b> ( Q3DockWindow * <i>dw</i> )</li>
63
<li><div class="fn"></div>virtual bool <b><a href="q3mainwindow.html#isCustomizable">isCustomizable</a></b> () const</li>
64
<li><div class="fn"></div>bool <b><a href="q3mainwindow.html#isDockEnabled">isDockEnabled</a></b> ( Qt::Dock <i>dock</i> ) const</li>
65
<li><div class="fn"></div>bool <b><a href="q3mainwindow.html#isDockEnabled-2">isDockEnabled</a></b> ( Q3DockArea * <i>area</i> ) const</li>
66
<li><div class="fn"></div>bool <b><a href="q3mainwindow.html#isDockEnabled-3">isDockEnabled</a></b> ( Q3DockWindow * <i>dw</i>, Q3DockArea * <i>area</i> ) const</li>
67
<li><div class="fn"></div>bool <b><a href="q3mainwindow.html#isDockEnabled-4">isDockEnabled</a></b> ( Q3DockWindow * <i>tb</i>, Qt::Dock <i>dock</i> ) const</li>
68
<li><div class="fn"></div>bool <b><a href="q3mainwindow.html#isDockMenuEnabled">isDockMenuEnabled</a></b> () const</li>
69
<li><div class="fn"></div>Q3DockArea * <b><a href="q3mainwindow.html#leftDock">leftDock</a></b> () const</li>
70
<li><div class="fn"></div>void <b><a href="q3mainwindow.html#lineUpDockWindows">lineUpDockWindows</a></b> ( bool <i>keepNewLines</i> = false )</li>
71
<li><div class="fn"></div>void <b><a href="q3mainwindow.html#lineUpToolBars">lineUpToolBars</a></b> ( bool <i>keepNewLines</i> = false )</li>
72
<li><div class="fn"></div>QMenuBar * <b><a href="q3mainwindow.html#menuBar">menuBar</a></b> () const</li>
73
<li><div class="fn"></div>virtual void <b><a href="q3mainwindow.html#moveDockWindow">moveDockWindow</a></b> ( Q3DockWindow * <i>dockWindow</i>, Qt::Dock <i>edge</i> = Qt::DockTop )</li>
74
<li><div class="fn"></div>virtual void <b><a href="q3mainwindow.html#moveDockWindow-2">moveDockWindow</a></b> ( Q3DockWindow * <i>dockWindow</i>, Qt::Dock <i>edge</i>, bool <i>nl</i>, int <i>index</i>, int <i>extraOffset</i> = -1 )</li>
75
<li><div class="fn"></div>void <b><a href="q3mainwindow.html#moveToolBar">moveToolBar</a></b> ( Q3DockWindow * <i>dockWindow</i>, Qt::Dock <i>position</i> = Qt::DockTop )</li>
76
<li><div class="fn"></div>void <b><a href="q3mainwindow.html#moveToolBar-2">moveToolBar</a></b> ( Q3DockWindow * <i>dockWindow</i>, Qt::Dock <i>position</i>, bool <i>nl</i>, int <i>index</i>, int <i>extraOffset</i> = -1 )</li>
77
<li><div class="fn"></div>bool <b><a href="q3mainwindow.html#opaqueMoving-prop">opaqueMoving</a></b> () const</li>
78
<li><div class="fn"></div>virtual void <b><a href="q3mainwindow.html#removeDockWindow">removeDockWindow</a></b> ( Q3DockWindow * <i>dockWindow</i> )</li>
79
<li><div class="fn"></div>void <b><a href="q3mainwindow.html#removeToolBar">removeToolBar</a></b> ( Q3DockWindow * <i>dockWindow</i> )</li>
80
<li><div class="fn"></div>Q3DockArea * <b><a href="q3mainwindow.html#rightDock">rightDock</a></b> () const</li>
81
<li><div class="fn"></div>bool <b><a href="q3mainwindow.html#rightJustification-prop">rightJustification</a></b> () const</li>
82
<li><div class="fn"></div>virtual void <b><a href="q3mainwindow.html#setCentralWidget">setCentralWidget</a></b> ( QWidget * <i>w</i> )</li>
83
<li><div class="fn"></div>virtual void <b><a href="q3mainwindow.html#setDockEnabled">setDockEnabled</a></b> ( Qt::Dock <i>dock</i>, bool <i>enable</i> )</li>
84
<li><div class="fn"></div>virtual void <b><a href="q3mainwindow.html#setDockEnabled-2">setDockEnabled</a></b> ( Q3DockWindow * <i>dw</i>, Qt::Dock <i>dock</i>, bool <i>enable</i> )</li>
85
<li><div class="fn"></div>QStatusBar * <b><a href="q3mainwindow.html#statusBar">statusBar</a></b> () const</li>
86
<li><div class="fn"></div>QList<Q3ToolBar *> <b><a href="q3mainwindow.html#toolBars">toolBars</a></b> ( Qt::Dock <i>dock</i> ) const</li>
87
<li><div class="fn"></div>bool <b><a href="q3mainwindow.html#toolBarsMovable">toolBarsMovable</a></b> () const</li>
88
<li><div class="fn"></div>Q3DockArea * <b><a href="q3mainwindow.html#topDock">topDock</a></b> () const</li>
89
<li><div class="fn"></div>bool <b><a href="q3mainwindow.html#usesBigPixmaps-prop">usesBigPixmaps</a></b> () const</li>
90
<li><div class="fn"></div>bool <b><a href="q3mainwindow.html#usesTextLabel-prop">usesTextLabel</a></b> () const</li>
93
<li><div class="fn"></div>207 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
94
<li><div class="fn"></div>29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
95
<li><div class="fn"></div>12 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
50
<h2>Public Functions</h2>
51
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
52
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#Q3MainWindow">Q3MainWindow</a></b> ( QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0, Qt::WindowFlags <i>f</i> = Qt::WType_TopLevel )</td></tr>
53
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#dtor.Q3MainWindow">~Q3MainWindow</a></b> ()</td></tr>
54
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#addDockWindow">addDockWindow</a></b> ( Q3DockWindow * <i>dockWindow</i>, Qt::Dock <i>edge</i> = Qt::DockTop, bool <i>newLine</i> = false )</td></tr>
55
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#addDockWindow-2">addDockWindow</a></b> ( Q3DockWindow * <i>dockWindow</i>, const QString & <i>label</i>, Qt::Dock <i>edge</i> = Qt::DockTop, bool <i>newLine</i> = false )</td></tr>
56
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#addToolBar">addToolBar</a></b> ( Q3DockWindow * <i>dockWindow</i>, Qt::Dock <i>position</i> = Qt::DockTop, bool <i>newLine</i> = false )</td></tr>
57
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#addToolBar-2">addToolBar</a></b> ( Q3DockWindow * <i>dockWindow</i>, const QString & <i>label</i>, Qt::Dock <i>position</i> = Qt::DockTop, bool <i>newLine</i> = false )</td></tr>
58
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#appropriate">appropriate</a></b> ( Q3DockWindow * <i>dw</i> ) const</td></tr>
59
<tr><td class="memItemLeft" align="right" valign="top">Q3DockArea * </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#bottomDock">bottomDock</a></b> () const</td></tr>
60
<tr><td class="memItemLeft" align="right" valign="top">QWidget * </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#centralWidget">centralWidget</a></b> () const</td></tr>
61
<tr><td class="memItemLeft" align="right" valign="top">virtual Q3PopupMenu * </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#createDockWindowMenu">createDockWindowMenu</a></b> ( DockWindows <i>dockWindows</i> = AllDockWindows ) const</td></tr>
62
<tr><td class="memItemLeft" align="right" valign="top">QList<Q3DockWindow *> </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#dockWindows">dockWindows</a></b> ( Qt::Dock <i>dock</i> ) const</td></tr>
63
<tr><td class="memItemLeft" align="right" valign="top">QList<Q3DockWindow *> </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#dockWindows-2">dockWindows</a></b> () const</td></tr>
64
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#dockWindowsMovable-prop">dockWindowsMovable</a></b> () const</td></tr>
65
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#getLocation">getLocation</a></b> ( Q3DockWindow * <i>dw</i>, Qt::Dock & <i>dock</i>, int & <i>index</i>, bool & <i>nl</i>, int & <i>extraOffset</i> ) const</td></tr>
66
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#hasDockWindow">hasDockWindow</a></b> ( Q3DockWindow * <i>dw</i> )</td></tr>
67
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#isCustomizable">isCustomizable</a></b> () const</td></tr>
68
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#isDockEnabled">isDockEnabled</a></b> ( Qt::Dock <i>dock</i> ) const</td></tr>
69
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#isDockEnabled-2">isDockEnabled</a></b> ( Q3DockArea * <i>area</i> ) const</td></tr>
70
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#isDockEnabled-3">isDockEnabled</a></b> ( Q3DockWindow * <i>dw</i>, Q3DockArea * <i>area</i> ) const</td></tr>
71
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#isDockEnabled-4">isDockEnabled</a></b> ( Q3DockWindow * <i>tb</i>, Qt::Dock <i>dock</i> ) const</td></tr>
72
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#isDockMenuEnabled">isDockMenuEnabled</a></b> () const</td></tr>
73
<tr><td class="memItemLeft" align="right" valign="top">Q3DockArea * </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#leftDock">leftDock</a></b> () const</td></tr>
74
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#lineUpDockWindows">lineUpDockWindows</a></b> ( bool <i>keepNewLines</i> = false )</td></tr>
75
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#lineUpToolBars">lineUpToolBars</a></b> ( bool <i>keepNewLines</i> = false )</td></tr>
76
<tr><td class="memItemLeft" align="right" valign="top">QMenuBar * </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#menuBar">menuBar</a></b> () const</td></tr>
77
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#moveDockWindow">moveDockWindow</a></b> ( Q3DockWindow * <i>dockWindow</i>, Qt::Dock <i>edge</i> = Qt::DockTop )</td></tr>
78
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#moveDockWindow-2">moveDockWindow</a></b> ( Q3DockWindow * <i>dockWindow</i>, Qt::Dock <i>edge</i>, bool <i>nl</i>, int <i>index</i>, int <i>extraOffset</i> = -1 )</td></tr>
79
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#moveToolBar">moveToolBar</a></b> ( Q3DockWindow * <i>dockWindow</i>, Qt::Dock <i>position</i> = Qt::DockTop )</td></tr>
80
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#moveToolBar-2">moveToolBar</a></b> ( Q3DockWindow * <i>dockWindow</i>, Qt::Dock <i>position</i>, bool <i>nl</i>, int <i>index</i>, int <i>extraOffset</i> = -1 )</td></tr>
81
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#opaqueMoving-prop">opaqueMoving</a></b> () const</td></tr>
82
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#removeDockWindow">removeDockWindow</a></b> ( Q3DockWindow * <i>dockWindow</i> )</td></tr>
83
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#removeToolBar">removeToolBar</a></b> ( Q3DockWindow * <i>dockWindow</i> )</td></tr>
84
<tr><td class="memItemLeft" align="right" valign="top">Q3DockArea * </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#rightDock">rightDock</a></b> () const</td></tr>
85
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#rightJustification-prop">rightJustification</a></b> () const</td></tr>
86
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#setCentralWidget">setCentralWidget</a></b> ( QWidget * <i>w</i> )</td></tr>
87
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#setDockEnabled">setDockEnabled</a></b> ( Qt::Dock <i>dock</i>, bool <i>enable</i> )</td></tr>
88
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#setDockEnabled-2">setDockEnabled</a></b> ( Q3DockWindow * <i>dw</i>, Qt::Dock <i>dock</i>, bool <i>enable</i> )</td></tr>
89
<tr><td class="memItemLeft" align="right" valign="top">QStatusBar * </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#statusBar">statusBar</a></b> () const</td></tr>
90
<tr><td class="memItemLeft" align="right" valign="top">QList<Q3ToolBar *> </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#toolBars">toolBars</a></b> ( Qt::Dock <i>dock</i> ) const</td></tr>
91
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#toolBarsMovable">toolBarsMovable</a></b> () const</td></tr>
92
<tr><td class="memItemLeft" align="right" valign="top">Q3DockArea * </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#topDock">topDock</a></b> () const</td></tr>
93
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#usesBigPixmaps-prop">usesBigPixmaps</a></b> () const</td></tr>
94
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#usesTextLabel-prop">usesTextLabel</a></b> () const</td></tr>
97
<a name="reimplemented-public-functions"></a>
98
<h2>Reimplemented Public Functions</h2>
99
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
100
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#eventFilter">eventFilter</a></b> ( QObject * <i>o</i>, QEvent * <i>e</i> )</td></tr>
101
<tr><td class="memItemLeft" align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#minimumSizeHint">minimumSizeHint</a></b> () const</td></tr>
102
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#setVisible">setVisible</a></b> ( bool <i>visible</i> )</td></tr>
103
<tr><td class="memItemLeft" align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#sizeHint">sizeHint</a></b> () const</td></tr>
106
<li><div bar="2" class="fn"></div>215 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
107
<li><div bar="2" class="fn"></div>29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
108
<li><div bar="2" class="fn"></div>12 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
97
111
<a name="public-slots"></a>
100
<li><div class="fn"></div>virtual void <b><a href="q3mainwindow.html#customize">customize</a></b> ()</li>
101
<li><div class="fn"></div>virtual void <b><a href="q3mainwindow.html#setAppropriate">setAppropriate</a></b> ( Q3DockWindow * <i>dw</i>, bool <i>a</i> )</li>
102
<li><div class="fn"></div>virtual void <b><a href="q3mainwindow.html#setDockMenuEnabled">setDockMenuEnabled</a></b> ( bool <i>b</i> )</li>
103
<li><div class="fn"></div>virtual void <b><a href="q3mainwindow.html#dockWindowsMovable-prop">setDockWindowsMovable</a></b> ( bool )</li>
104
<li><div class="fn"></div>virtual void <b><a href="q3mainwindow.html#opaqueMoving-prop">setOpaqueMoving</a></b> ( bool )</li>
105
<li><div class="fn"></div>virtual void <b><a href="q3mainwindow.html#rightJustification-prop">setRightJustification</a></b> ( bool )</li>
106
<li><div class="fn"></div>void <b><a href="q3mainwindow.html#setToolBarsMovable">setToolBarsMovable</a></b> ( bool <i>b</i> )</li>
107
<li><div class="fn"></div>virtual void <b><a href="q3mainwindow.html#usesBigPixmaps-prop">setUsesBigPixmaps</a></b> ( bool )</li>
108
<li><div class="fn"></div>virtual void <b><a href="q3mainwindow.html#usesTextLabel-prop">setUsesTextLabel</a></b> ( bool )</li>
109
<li><div class="fn"></div>virtual void <b><a href="q3mainwindow.html#whatsThis">whatsThis</a></b> ()</li>
112
<li><div class="fn"></div>19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
113
<li><div class="fn"></div>1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
112
<h2>Public Slots</h2>
113
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
114
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#customize">customize</a></b> ()</td></tr>
115
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#setAppropriate">setAppropriate</a></b> ( Q3DockWindow * <i>dw</i>, bool <i>a</i> )</td></tr>
116
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#setDockMenuEnabled">setDockMenuEnabled</a></b> ( bool <i>b</i> )</td></tr>
117
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#dockWindowsMovable-prop">setDockWindowsMovable</a></b> ( bool )</td></tr>
118
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#opaqueMoving-prop">setOpaqueMoving</a></b> ( bool )</td></tr>
119
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#rightJustification-prop">setRightJustification</a></b> ( bool )</td></tr>
120
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#setToolBarsMovable">setToolBarsMovable</a></b> ( bool <i>b</i> )</td></tr>
121
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#usesBigPixmaps-prop">setUsesBigPixmaps</a></b> ( bool )</td></tr>
122
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#usesTextLabel-prop">setUsesTextLabel</a></b> ( bool )</td></tr>
123
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#whatsThis">whatsThis</a></b> ()</td></tr>
126
<li><div bar="2" class="fn"></div>19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
127
<li><div bar="2" class="fn"></div>1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
115
130
<a name="signals"></a>
118
<li><div class="fn"></div>void <b><a href="q3mainwindow.html#dockWindowPositionChanged">dockWindowPositionChanged</a></b> ( Q3DockWindow * <i>dockWindow</i> )</li>
119
<li><div class="fn"></div>void <b><a href="q3mainwindow.html#pixmapSizeChanged">pixmapSizeChanged</a></b> ( bool <i>b</i> )</li>
120
<li><div class="fn"></div>void <b><a href="q3mainwindow.html#toolBarPositionChanged">toolBarPositionChanged</a></b> ( Q3ToolBar * <i>toolbar</i> )</li>
121
<li><div class="fn"></div>void <b><a href="q3mainwindow.html#usesTextLabelChanged">usesTextLabelChanged</a></b> ( bool <i>b</i> )</li>
124
<li><div class="fn"></div>1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
125
<li><div class="fn"></div>1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
127
<a name="protected-functions"></a>
128
<h3>Protected Functions</h3>
130
<li><div class="fn"></div>virtual void <b><a href="q3mainwindow.html#childEvent">childEvent</a></b> ( QChildEvent * <i>e</i> )</li>
133
<li><div class="fn"></div>37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
134
<li><div class="fn"></div>7 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
135
<li><div class="fn"></div>1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
132
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
133
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#dockWindowPositionChanged">dockWindowPositionChanged</a></b> ( Q3DockWindow * <i>dockWindow</i> )</td></tr>
134
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#pixmapSizeChanged">pixmapSizeChanged</a></b> ( bool <i>b</i> )</td></tr>
135
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#toolBarPositionChanged">toolBarPositionChanged</a></b> ( Q3ToolBar * <i>toolbar</i> )</td></tr>
136
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#usesTextLabelChanged">usesTextLabelChanged</a></b> ( bool <i>b</i> )</td></tr>
139
<li><div bar="2" class="fn"></div>1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
140
<li><div bar="2" class="fn"></div>1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
143
<a name="reimplemented-protected-functions"></a>
144
<h2>Reimplemented Protected Functions</h2>
145
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
146
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#childEvent">childEvent</a></b> ( QChildEvent * <i>e</i> )</td></tr>
147
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#event">event</a></b> ( QEvent * <i>e</i> )</td></tr>
148
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#paintEvent">paintEvent</a></b> ( QPaintEvent * )</td></tr>
151
<li><div bar="2" class="fn"></div>37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
152
<li><div bar="2" class="fn"></div>7 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
153
<li><div bar="2" class="fn"></div>1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
137
156
<a name="protected-slots"></a>
138
<h3>Protected Slots</h3>
140
<li><div class="fn"></div>void <b><a href="q3mainwindow.html#menuAboutToShow">menuAboutToShow</a></b> ()</li>
141
<li><div class="fn"></div>virtual void <b><a href="q3mainwindow.html#setUpLayout">setUpLayout</a></b> ()</li>
142
<li><div class="fn"></div>virtual bool <b><a href="q3mainwindow.html#showDockMenu">showDockMenu</a></b> ( const QPoint & <i>globalPos</i> )</li>
145
<li><div class="fn"></div>1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
157
<h2>Protected Slots</h2>
158
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
159
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#menuAboutToShow">menuAboutToShow</a></b> ()</td></tr>
160
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#setUpLayout">setUpLayout</a></b> ()</td></tr>
161
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#showDockMenu">showDockMenu</a></b> ( const QPoint & <i>globalPos</i> )</td></tr>
164
<li><div bar="2" class="fn"></div>1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
147
167
<a name="related-non-members"></a>
148
<h3>Related Non-Members</h3>
150
<li><div class="fn"></div>QTextStream & <b><a href="q3mainwindow.html#operator-lt-lt-15">operator<<</a></b> ( QTextStream & <i>ts</i>, const Q3MainWindow & <i>mainWindow</i> )</li>
151
<li><div class="fn"></div>QTextStream & <b><a href="q3mainwindow.html#operator-gt-gt-8">operator>></a></b> ( QTextStream & <i>ts</i>, Q3MainWindow & <i>mainWindow</i> )</li>
168
<h2>Related Non-Members</h2>
169
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
170
<tr><td class="memItemLeft" align="right" valign="top">QTextStream & </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#operator-lt-lt-77">operator<<</a></b> ( QTextStream & <i>ts</i>, const Q3MainWindow & <i>mainWindow</i> )</td></tr>
171
<tr><td class="memItemLeft" align="right" valign="top">QTextStream & </td><td class="memItemRight" valign="bottom"><b><a href="q3mainwindow.html#operator-gt-gt-42">operator>></a></b> ( QTextStream & <i>ts</i>, Q3MainWindow & <i>mainWindow</i> )</td></tr>
153
173
<h3>Additional Inherited Members</h3>
155
175
<li><div class="fn"></div>4 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
156
176
<li><div class="fn"></div>5 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
177
<li><div class="fn"></div>37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
178
<li><div class="fn"></div>7 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
179
<li><div class="fn"></div>1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
158
181
<a name="details"></a>
160
183
<h2>Detailed Description</h2>
161
184
<p>The Q3MainWindow class provides a main application window, with a menu bar, dock windows (e.g. for toolbars), and a status bar.</p>
162
<p>Main windows are most often used to provide menus, toolbars and a status bar around a large central widget, such as a text edit, drawing canvas or <a href="qworkspace.html">QWorkspace</a> (for MDI applications). Q3MainWindow is usually subclassed since this makes it easier to encapsulate the central widget, menus and toolbars as well as the window's state. Subclassing makes it possible to create the slots that are called when the user clicks menu items or toolbar buttons.</p>
185
<p>Main windows are most often used to provide menus, toolbars and a status bar around a large central widget, such as a text edit, drawing canvas or <a href="qworkspace.html" class="obsolete">QWorkspace</a> (for MDI applications). Q3MainWindow is usually subclassed since this makes it easier to encapsulate the central widget, menus and toolbars as well as the window's state. Subclassing makes it possible to create the slots that are called when the user clicks menu items or toolbar buttons.</p>
163
186
<p>We'll briefly review adding menu items and toolbar buttons then describe the facilities of Q3MainWindow itself.</p>
164
187
<pre> Q3MainWindow *mw = new Q3MainWindow;
165
188
QTextEdit *edit = new QTextEdit(mw, "editor");
223
250
<h2>Property Documentation</h2>
251
<a name="//apple_ref/cpp/instm/Q3MainWindow/dockWindowsMovable" />
252
<a name="//apple_ref/cpp/instm/Q3MainWindow/setDockWindowsMovable" />
224
253
<h3 class="fn"><a name="dockWindowsMovable-prop"></a>dockWindowsMovable : bool</h3>
225
254
<p>This property holds whether the dock windows are movable.</p>
226
<p>If true (the default), the user will be able to move movable dock windows from one <a href="q3mainwindow.html">Q3MainWindow</a> dock area to another, including the <tt>TearOff</tt> area (i.e. where the dock window floats freely as a window in its own right), and the <tt>Minimized</tt> area (where only the dock window's handle is shown below the menu bar). Movable dock windows can also be moved within <a href="q3mainwindow.html">Q3MainWindow</a> dock areas, i.e. to rearrange them within a dock area.</p>
255
<p>If true (the default), the user will be able to move movable dock windows from one <a href="q3mainwindow.html" class="compat">Q3MainWindow</a> dock area to another, including the <tt>TearOff</tt> area (i.e. where the dock window floats freely as a window in its own right), and the <tt>Minimized</tt> area (where only the dock window's handle is shown below the menu bar). Movable dock windows can also be moved within <a href="q3mainwindow.html" class="compat">Q3MainWindow</a> dock areas, i.e. to rearrange them within a dock area.</p>
227
256
<p>If false the user will not be able to move any dock windows.</p>
228
257
<p>By default dock windows are moved transparently (i.e. only an outline rectangle is shown during the drag), but this setting can be changed with <a href="q3mainwindow.html#opaqueMoving-prop">setOpaqueMoving</a>().</p>
229
<p>Access functions:</p>
231
<li><div class="fn"></div><b>bool dockWindowsMovable () const</b></li>
232
<li><div class="fn"></div><b>virtual void setDockWindowsMovable ( bool )</b></li>
258
<p><b>Access functions:</b></p>
259
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
260
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b>dockWindowsMovable</b> () const</td></tr>
261
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b>setDockWindowsMovable</b> ( bool )</td></tr>
234
263
<p>See also <a href="q3mainwindow.html#setDockEnabled">setDockEnabled</a>() and <a href="q3mainwindow.html#opaqueMoving-prop">setOpaqueMoving</a>().</p>
264
<a name="//apple_ref/cpp/instm/Q3MainWindow/opaqueMoving" />
265
<a name="//apple_ref/cpp/instm/Q3MainWindow/setOpaqueMoving" />
235
266
<h3 class="fn"><a name="opaqueMoving-prop"></a>opaqueMoving : bool</h3>
236
267
<p>This property holds whether dock windows are moved opaquely.</p>
237
268
<p>If true the dock windows of the main window are shown opaquely (i.e. it shows the toolbar as it looks when docked) whilst it is being moved. If false (the default) they are shown transparently, (i.e. as an outline rectangle).</p>
238
269
<p><b>Warning:</b> Opaque moving of toolbars and dockwindows is known to have several problems. We recommend avoiding the use of this feature for the time being. We intend fixing the problems in a future release.</p>
239
<p>Access functions:</p>
241
<li><div class="fn"></div><b>bool opaqueMoving () const</b></li>
242
<li><div class="fn"></div><b>virtual void setOpaqueMoving ( bool )</b></li>
270
<p><b>Access functions:</b></p>
271
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
272
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b>opaqueMoving</b> () const</td></tr>
273
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b>setOpaqueMoving</b> ( bool )</td></tr>
275
<a name="//apple_ref/cpp/instm/Q3MainWindow/rightJustification" />
276
<a name="//apple_ref/cpp/instm/Q3MainWindow/setRightJustification" />
244
277
<h3 class="fn"><a name="rightJustification-prop"></a>rightJustification : bool</h3>
245
278
<p>This property holds whether the main window right-justifies its dock windows.</p>
246
279
<p>If disabled (the default), stretchable dock windows are expanded, and non-stretchable dock windows are given the minimum space they need. Since most dock windows are not stretchable, this usually results in an unjustified right edge (or unjustified bottom edge for a vertical dock area). If enabled, the main window will right-justify its dock windows.</p>
247
<p>Access functions:</p>
249
<li><div class="fn"></div><b>bool rightJustification () const</b></li>
250
<li><div class="fn"></div><b>virtual void setRightJustification ( bool )</b></li>
280
<p><b>Access functions:</b></p>
281
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
282
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b>rightJustification</b> () const</td></tr>
283
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b>setRightJustification</b> ( bool )</td></tr>
252
285
<p>See also <a href="q3dockwindow.html#setVerticalStretchable">Q3DockWindow::setVerticalStretchable</a>() and <a href="q3dockwindow.html#setHorizontalStretchable">Q3DockWindow::setHorizontalStretchable</a>().</p>
286
<a name="//apple_ref/cpp/instm/Q3MainWindow/usesBigPixmaps" />
287
<a name="//apple_ref/cpp/instm/Q3MainWindow/setUsesBigPixmaps" />
253
288
<h3 class="fn"><a name="usesBigPixmaps-prop"></a>usesBigPixmaps : bool</h3>
254
289
<p>This property holds whether big pixmaps are enabled.</p>
255
290
<p>If false (the default), the tool buttons will use small pixmaps; otherwise big pixmaps will be used.</p>
256
291
<p>Tool buttons and other widgets that wish to respond to this setting are responsible for reading the correct state on startup, and for connecting to the main window's widget's <a href="q3mainwindow.html#pixmapSizeChanged">pixmapSizeChanged</a>() signal.</p>
257
<p>Access functions:</p>
259
<li><div class="fn"></div><b>bool usesBigPixmaps () const</b></li>
260
<li><div class="fn"></div><b>virtual void setUsesBigPixmaps ( bool )</b></li>
292
<p><b>Access functions:</b></p>
293
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
294
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b>usesBigPixmaps</b> () const</td></tr>
295
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b>setUsesBigPixmaps</b> ( bool )</td></tr>
297
<a name="//apple_ref/cpp/instm/Q3MainWindow/usesTextLabel" />
298
<a name="//apple_ref/cpp/instm/Q3MainWindow/setUsesTextLabel" />
262
299
<h3 class="fn"><a name="usesTextLabel-prop"></a>usesTextLabel : bool</h3>
263
300
<p>This property holds whether text labels for toolbar buttons are enabled.</p>
264
301
<p>If disabled (the default), the tool buttons will not use text labels. If enabled, text labels will be used.</p>
265
302
<p>Tool buttons and other widgets that wish to respond to this setting are responsible for reading the correct state on startup, and for connecting to the main window's widget's <a href="q3mainwindow.html#usesTextLabelChanged">usesTextLabelChanged</a>() signal.</p>
266
<p>Access functions:</p>
268
<li><div class="fn"></div><b>bool usesTextLabel () const</b></li>
269
<li><div class="fn"></div><b>virtual void setUsesTextLabel ( bool )</b></li>
271
<p>See also <a href="qtoolbutton-qt3.html#setUsesTextLabel">QToolButton::setUsesTextLabel</a>().</p>
303
<p><b>Access functions:</b></p>
304
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
305
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b>usesTextLabel</b> () const</td></tr>
306
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b>setUsesTextLabel</b> ( bool )</td></tr>
308
<p>See also <a href="qtoolbutton-qt3.html#setUsesTextLabel" class="compat">QToolButton::setUsesTextLabel</a>().</p>
273
310
<h2>Member Function Documentation</h2>
311
<a name="//apple_ref/cpp/instm/Q3MainWindow/Q3MainWindow" />
274
312
<h3 class="fn"><a name="Q3MainWindow"></a>Q3MainWindow::Q3MainWindow ( <a href="qwidget.html">QWidget</a> * <i>parent</i> = 0, const char * <i>name</i> = 0, <a href="qt.html#WindowType-enum">Qt::WindowFlags</a> <i>f</i> = Qt::WType_TopLevel )</h3>
275
313
<p>Constructs an empty main window. The <i>parent</i>, <i>name</i> and widget flags <i>f</i>, are passed on to the <a href="qwidget.html">QWidget</a> constructor.</p>
276
<p>By default, the widget flags are set to <a href="qt.html#WindowType-enum">Qt::WType_TopLevel</a> rather than 0 as they are with <a href="qwidget.html">QWidget</a>. If you don't want your <a href="q3mainwindow.html">Q3MainWindow</a> to be a top level widget then you will need to set <i>f</i> to 0.</p>
314
<p>By default, the widget flags are set to <a href="qt.html#WindowType-enum">Qt::WType_TopLevel</a> rather than 0 as they are with <a href="qwidget.html">QWidget</a>. If you don't want your <a href="q3mainwindow.html" class="compat">Q3MainWindow</a> to be a top level widget then you will need to set <i>f</i> to 0.</p>
315
<a name="//apple_ref/cpp/instm/Q3MainWindow/~Q3MainWindow" />
277
316
<h3 class="fn"><a name="dtor.Q3MainWindow"></a>Q3MainWindow::~Q3MainWindow ()</h3>
278
317
<p>Destroys the object and frees any allocated resources.</p>
318
<a name="//apple_ref/cpp/instm/Q3MainWindow/addDockWindow" />
279
319
<h3 class="fn"><a name="addDockWindow"></a>void Q3MainWindow::addDockWindow ( <a href="q3dockwindow.html">Q3DockWindow</a> * <i>dockWindow</i>, <a href="qt-qt3.html#Dock-enum">Qt::Dock</a> <i>edge</i> = Qt::DockTop, bool <i>newLine</i> = false ) <tt> [virtual]</tt></h3>
280
320
<p>Adds <i>dockWindow</i> to the <i>edge</i> dock area.</p>
281
321
<p>If <i>newLine</i> is false (the default) then the <i>dockWindow</i> is added at the end of the <i>edge</i>. For vertical edges the end is at the bottom, for horizontal edges (including <tt>Minimized</tt>) the end is at the right. If <i>newLine</i> is true a new line of dock windows is started with <i>dockWindow</i> as the first (left-most and top-most) dock window.</p>
313
359
<p>Toolbars and dock windows which are not appropriate in the current context (see <a href="q3mainwindow.html#setAppropriate">setAppropriate</a>()) are not listed in the menu.</p>
314
360
<p>The menu also has a menu item for lining up the dock windows.</p>
315
361
<p>If <a href="q3mainwindow.html#isCustomizable">isCustomizable</a>() returns true, a Customize menu item is added to the menu, which if clicked will call <a href="q3mainwindow.html#customize">customize</a>(). The <a href="q3mainwindow.html#isCustomizable">isCustomizable</a>() function we provide returns false and <a href="q3mainwindow.html#customize">customize</a>() does nothing, so they must be reimplemented in a subclass to be useful.</p>
362
<a name="//apple_ref/cpp/instm/Q3MainWindow/customize" />
316
363
<h3 class="fn"><a name="customize"></a>void Q3MainWindow::customize () <tt> [virtual slot]</tt></h3>
317
364
<p>This function is called when the user clicks the Customize menu item on the dock window menu.</p>
318
365
<p>The customize menu item will only appear if <a href="q3mainwindow.html#isCustomizable">isCustomizable</a>() returns true (it returns false by default).</p>
319
366
<p>The function is intended, for example, to provide the user with a means of telling the application that they wish to customize the main window, dock windows or dock areas.</p>
320
367
<p>The default implementation does nothing and the Customize menu item is not shown on the right-click menu by default. If you want the item to appear then reimplement <a href="q3mainwindow.html#isCustomizable">isCustomizable</a>() to return true, and reimplement this function to do whatever you want.</p>
321
368
<p>See also <a href="q3mainwindow.html#isCustomizable">isCustomizable</a>().</p>
369
<a name="//apple_ref/cpp/instm/Q3MainWindow/dockWindowPositionChanged" />
322
370
<h3 class="fn"><a name="dockWindowPositionChanged"></a>void Q3MainWindow::dockWindowPositionChanged ( <a href="q3dockwindow.html">Q3DockWindow</a> * <i>dockWindow</i> ) <tt> [signal]</tt></h3>
323
371
<p>This signal is emitted when the <i>dockWindow</i> has changed its position. A change in position occurs when a dock window is moved within its dock area or moved to another dock area (including the <tt>Minimized</tt> and <tt>TearOff</tt> dock areas).</p>
324
372
<p>See also <a href="q3mainwindow.html#getLocation">getLocation</a>().</p>
373
<a name="//apple_ref/cpp/instm/Q3MainWindow/dockWindows" />
325
374
<h3 class="fn"><a name="dockWindows"></a><a href="qlist.html">QList</a><<a href="q3dockwindow.html">Q3DockWindow</a> *> Q3MainWindow::dockWindows ( <a href="qt-qt3.html#Dock-enum">Qt::Dock</a> <i>dock</i> ) const</h3>
326
375
<p>Returns a list of all the dock windows which are in the <i>dock</i> dock area, regardless of their state.</p>
327
<p>For example, the <a href="qt-qt3.html#Dock-enum">Qt::DockTornOff</a> dock area may contain closed dock windows but these are returned along with the visible dock windows.</p>
376
<p>For example, the <a href="qt-qt3.html#Dock-enum" class="compat">Qt::DockTornOff</a> dock area may contain closed dock windows but these are returned along with the visible dock windows.</p>
328
377
<h3 class="fn"><a name="dockWindows-2"></a><a href="qlist.html">QList</a><<a href="q3dockwindow.html">Q3DockWindow</a> *> Q3MainWindow::dockWindows () const</h3>
329
378
<p>This is an overloaded function.</p>
330
379
<p>Returns the list of dock windows which belong to this main window, regardless of which dock area they are in or what their state is, (e.g. irrespective of whether they are visible or not).</p>
380
<a name="//apple_ref/cpp/instm/Q3MainWindow/event" />
381
<h3 class="fn"><a name="event"></a>bool Q3MainWindow::event ( <a href="qevent.html">QEvent</a> * <i>e</i> ) <tt> [virtual protected]</tt></h3>
382
<p>Reimplemented from <a href="qobject.html#event">QObject::event</a>().</p>
383
<a name="//apple_ref/cpp/instm/Q3MainWindow/eventFilter" />
384
<h3 class="fn"><a name="eventFilter"></a>bool Q3MainWindow::eventFilter ( <a href="qobject.html">QObject</a> * <i>o</i>, <a href="qevent.html">QEvent</a> * <i>e</i> ) <tt> [virtual]</tt></h3>
385
<p>Reimplemented from <a href="qobject.html#eventFilter">QObject::eventFilter</a>().</p>
386
<a name="//apple_ref/cpp/instm/Q3MainWindow/getLocation" />
331
387
<h3 class="fn"><a name="getLocation"></a>bool Q3MainWindow::getLocation ( <a href="q3dockwindow.html">Q3DockWindow</a> * <i>dw</i>, <a href="qt-qt3.html#Dock-enum">Qt::Dock</a> & <i>dock</i>, int & <i>index</i>, bool & <i>nl</i>, int & <i>extraOffset</i> ) const</h3>
332
388
<p>Finds the location of the dock window <i>dw</i>.</p>
333
389
<p>If the <i>dw</i> dock window is found in the main window the function returns true and populates the <i>dock</i> variable with the dw's dock area and the <i>index</i> with the dw's position within the dock area. It also sets <i>nl</i> to true if the <i>dw</i> begins a new line (otherwise false), and <i>extraOffset</i> with the dock window's offset.</p>
334
390
<p>If the <i>dw</i> dock window is not found then the function returns false and the state of <i>dock</i>, <i>index</i>, <i>nl</i> and <i>extraOffset</i> is undefined.</p>
335
391
<p>If you want to save and restore dock window positions then use operator>>() and operator<<().</p>
392
<a name="//apple_ref/cpp/instm/Q3MainWindow/hasDockWindow" />
336
393
<h3 class="fn"><a name="hasDockWindow"></a>bool Q3MainWindow::hasDockWindow ( <a href="q3dockwindow.html">Q3DockWindow</a> * <i>dw</i> )</h3>
337
394
<p>Returns true if <i>dw</i> is a dock window known to the main window; otherwise returns false.</p>
395
<a name="//apple_ref/cpp/instm/Q3MainWindow/isCustomizable" />
338
396
<h3 class="fn"><a name="isCustomizable"></a>bool Q3MainWindow::isCustomizable () const <tt> [virtual]</tt></h3>
339
397
<p>Returns true if the dock area dock window menu includes the Customize menu item (which calls <a href="q3mainwindow.html#customize">customize</a>() when clicked). Returns false by default, i.e. the popup menu will not contain a Customize menu item. You will need to reimplement this function and set it to return true if you wish the user to be able to see the dock window menu.</p>
340
398
<p>See also <a href="q3mainwindow.html#customize">customize</a>().</p>
399
<a name="//apple_ref/cpp/instm/Q3MainWindow/isDockEnabled" />
341
400
<h3 class="fn"><a name="isDockEnabled"></a>bool Q3MainWindow::isDockEnabled ( <a href="qt-qt3.html#Dock-enum">Qt::Dock</a> <i>dock</i> ) const</h3>
342
401
<p>Returns true if the <i>dock</i> dock area is enabled, i.e. it can accept user dragged dock windows; otherwise returns false.</p>
343
402
<p>See also <a href="q3mainwindow.html#setDockEnabled">setDockEnabled</a>().</p>
414
494
<p>This is an overloaded function.</p>
415
495
<p>If <i>enable</i> is true then users can dock the <i>dw</i> dock window in the <i>dock</i> area. If <i>enable</i> is false users cannot dock the <i>dw</i> dock window in the <i>dock</i> area.</p>
416
496
<p>In general users can dock (drag) dock windows into any enabled dock area. Using this function particular dock areas can be enabled (or disabled) as docking points for particular dock windows.</p>
497
<a name="//apple_ref/cpp/instm/Q3MainWindow/setDockMenuEnabled" />
417
498
<h3 class="fn"><a name="setDockMenuEnabled"></a>void Q3MainWindow::setDockMenuEnabled ( bool <i>b</i> ) <tt> [virtual slot]</tt></h3>
418
499
<p>If <i>b</i> is true, then right clicking on a dock window or dock area will pop up the dock window menu. If <i>b</i> is false, right clicking a dock window or dock area will not pop up the menu.</p>
419
500
<p>The menu lists the (<a href="q3mainwindow.html#appropriate">appropriate</a>()) dock windows (which may be shown or hidden), and has a "Line Up Dock Windows" item. It will also have a "Customize" menu item if <a href="q3mainwindow.html#isCustomizable">isCustomizable</a>() returns true.</p>
420
501
<p>See also <a href="q3mainwindow.html#lineUpDockWindows">lineUpDockWindows</a>() and <a href="q3mainwindow.html#isDockMenuEnabled">isDockMenuEnabled</a>().</p>
502
<a name="//apple_ref/cpp/instm/Q3MainWindow/setToolBarsMovable" />
421
503
<h3 class="fn"><a name="setToolBarsMovable"></a>void Q3MainWindow::setToolBarsMovable ( bool <i>b</i> ) <tt> [slot]</tt></h3>
422
504
<p>If <i>b</i> is true the tool bars can be moved.</p>
423
505
<p>See also <a href="q3mainwindow.html#toolBarsMovable">toolBarsMovable</a>().</p>
506
<a name="//apple_ref/cpp/instm/Q3MainWindow/setUpLayout" />
424
507
<h3 class="fn"><a name="setUpLayout"></a>void Q3MainWindow::setUpLayout () <tt> [virtual protected slot]</tt></h3>
425
508
<p>Sets up the geometry management of the window. It is called automatically when needed, so you shouldn't need to call it.</p>
509
<a name="//apple_ref/cpp/instm/Q3MainWindow/setVisible" />
510
<h3 class="fn"><a name="setVisible"></a>void Q3MainWindow::setVisible ( bool <i>visible</i> ) <tt> [virtual]</tt></h3>
511
<p>Reimplemented from <a href="qwidget.html#visible-prop">QWidget::setVisible</a>().</p>
512
<a name="//apple_ref/cpp/instm/Q3MainWindow/showDockMenu" />
426
513
<h3 class="fn"><a name="showDockMenu"></a>bool Q3MainWindow::showDockMenu ( const <a href="qpoint.html">QPoint</a> & <i>globalPos</i> ) <tt> [virtual protected slot]</tt></h3>
427
514
<p>Shows the dock menu at the position <i>globalPos</i>. The menu lists the dock windows so that they can be shown (or hidden), lined up, and possibly customized. Returns true if the menu is shown; otherwise returns false.</p>
428
515
<p>If you want a custom menu, reimplement this function. You can create the menu from scratch or call <a href="q3mainwindow.html#createDockWindowMenu">createDockWindowMenu</a>() and modify the result.</p>
429
516
<p>The default implementation uses the dock window menu which gets created by <a href="q3mainwindow.html#createDockWindowMenu">createDockWindowMenu</a>(). You can reimplement <a href="q3mainwindow.html#createDockWindowMenu">createDockWindowMenu</a>() if you want to use your own specialized popup menu.</p>
517
<a name="//apple_ref/cpp/instm/Q3MainWindow/sizeHint" />
518
<h3 class="fn"><a name="sizeHint"></a><a href="qsize.html">QSize</a> Q3MainWindow::sizeHint () const <tt> [virtual]</tt></h3>
519
<p>Reimplemented from <a href="qwidget.html#sizeHint-prop">QWidget::sizeHint</a>().</p>
520
<a name="//apple_ref/cpp/instm/Q3MainWindow/statusBar" />
430
521
<h3 class="fn"><a name="statusBar"></a><a href="qstatusbar.html">QStatusBar</a> * Q3MainWindow::statusBar () const</h3>
431
522
<p>Returns this main window's status bar. If there isn't one, statusBar() creates an empty status bar, and if necessary a tool tip group too.</p>
432
523
<p>See also <a href="q3mainwindow.html#menuBar">menuBar</a>().</p>
524
<a name="//apple_ref/cpp/instm/Q3MainWindow/toolBarPositionChanged" />
433
525
<h3 class="fn"><a name="toolBarPositionChanged"></a>void Q3MainWindow::toolBarPositionChanged ( <a href="q3toolbar.html">Q3ToolBar</a> * <i>toolbar</i> ) <tt> [signal]</tt></h3>
434
526
<p>This signal is emitted when a <i>toolbar</i> is moved.</p>
527
<a name="//apple_ref/cpp/instm/Q3MainWindow/toolBars" />
435
528
<h3 class="fn"><a name="toolBars"></a><a href="qlist.html">QList</a><<a href="q3toolbar.html">Q3ToolBar</a> *> Q3MainWindow::toolBars ( <a href="qt-qt3.html#Dock-enum">Qt::Dock</a> <i>dock</i> ) const</h3>
436
529
<p>Returns a list of all the toolbars which are in the <i>dock</i> dock area, regardless of their state.</p>
437
530
<p>For example, the <tt>TornOff</tt> dock area may contain closed toolbars but these are returned along with the visible toolbars.</p>
438
531
<p>See also <a href="q3mainwindow.html#dockWindows">dockWindows</a>().</p>
532
<a name="//apple_ref/cpp/instm/Q3MainWindow/toolBarsMovable" />
439
533
<h3 class="fn"><a name="toolBarsMovable"></a>bool Q3MainWindow::toolBarsMovable () const</h3>
440
534
<p>Returns true if the window allows its toolbars to be moved; otherwise returns false.</p>
441
535
<p>See also <a href="q3mainwindow.html#setToolBarsMovable">setToolBarsMovable</a>().</p>
536
<a name="//apple_ref/cpp/instm/Q3MainWindow/topDock" />
442
537
<h3 class="fn"><a name="topDock"></a><a href="q3dockarea.html">Q3DockArea</a> * Q3MainWindow::topDock () const</h3>
443
538
<p>Returns the <tt>Top</tt> dock area</p>
444
539
<p>See also <a href="q3mainwindow.html#bottomDock">bottomDock</a>(), <a href="q3mainwindow.html#leftDock">leftDock</a>(), and <a href="q3mainwindow.html#rightDock">rightDock</a>().</p>
540
<a name="//apple_ref/cpp/instm/Q3MainWindow/usesTextLabelChanged" />
445
541
<h3 class="fn"><a name="usesTextLabelChanged"></a>void Q3MainWindow::usesTextLabelChanged ( bool <i>b</i> ) <tt> [signal]</tt></h3>
446
542
<p>This signal is emitted whenever the <a href="q3mainwindow.html#usesTextLabel-prop">setUsesTextLabel</a>() is called with a value different to the current setting. The new value is passed in <i>b</i>. All widgets that should respond to such changes, e.g. toolbar buttons, must connect to this signal.</p>
543
<a name="//apple_ref/cpp/instm/Q3MainWindow/whatsThis" />
447
544
<h3 class="fn"><a name="whatsThis"></a>void Q3MainWindow::whatsThis () <tt> [virtual slot]</tt></h3>
448
545
<p>Enters 'What's This?' mode and returns immediately.</p>
449
546
<p>This is the same as <a href="qwhatsthis.html#enterWhatsThisMode">QWhatsThis::enterWhatsThisMode</a>(), but implemented as a main window object's slot. This way it can easily be used for popup menus, for example:</p>