Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > 6282078ae76a671f49c6af38c67b1a07 > files > 933

kdelibs-devel-2.2.2-49.2mdk.i586.rpm

<HTML>
<HEAD>
<TITLE>class KMainWindow</TITLE>

<META NAME="Generator" CONTENT="KDOC ">
</HEAD>
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
<TABLE WIDTH="100%" BORDER="0">
<TR>
<TD>
	<TABLE BORDER="0">
		<TR><TD valign="top" align="left" cellspacing="10">
		<h1>class KMainWindow</h1>
		</TD>
		<TD valign="top" align="right" colspan="1">KDE top level main window. <small><A HREF="#longdesc">More...</A></small></TD></TR>
	</TABLE>
	<HR>
	<TABLE BORDER="0">
		<TR><TH>Definition</TH><TD><code>#include &lt;<A HREF="kmainwindow_h.html">kmainwindow.h</A>&gt;</code></TD></TR>
<TR><TH>Inherits</TH><TD><A HREF="KXMLGUIBuilder.html">KXMLGUIBuilder</A> <small>[public ]</small>, <A HREF="KXMLGUIClient.html">KXMLGUIClient</A> <small>[virtual public ]</small>, <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qmainwindow.html">QMainWindow</A> <small>(qt)</small> <small>[public ]</small></TD></TR>
<TR><TH>Inherited by</TH><TD><A HREF="KDockMainWindow.html">KDockMainWindow</A>, <A HREF="KTMainWindow.html">KTMainWindow</A></TD></TR>
<TR><TH><A HREF="full-list-KMainWindow.html">List of all Methods</A></TH></TR>
	</TABLE>
	</TD>
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR>
<TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR>
<TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR>
<TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR>
<TR><TD><small><A HREF="index.html">Index</A></small></TD></TR>
</TABLE></TD></TR></TABLE>
<h4>Public Methods</h4><ul><LI>&nbsp;<b><A HREF="#ref3">KMainWindow</A></b> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qwidget.html">QWidget</A>* parent = 0, const char *name = 0, WFlags f = WType_TopLevel | WDestructiveClose ) 
</LI>
<LI>virtual  &nbsp;<b><A HREF="#ref4">~KMainWindow</A></b> () 
</LI>
<LI><A HREF="KPopupMenu.html">KPopupMenu</A>* &nbsp;<b><A HREF="#ref5">helpMenu</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &aboutAppText = QString::null,
			  bool showWhatsThis = TRUE ) 
</LI>
<LI><A HREF="KPopupMenu.html">KPopupMenu</A>* &nbsp;<b><A HREF="#ref6">customHelpMenu</A></b> ( bool showWhatsThis = TRUE ) 
</LI>
<LI>bool &nbsp;<b><A HREF="#ref9">restore</A></b> ( int number, bool show = TRUE ) 
</LI>
<LI>virtual  <A HREF="KXMLGUIFactory.html">KXMLGUIFactory</A> *&nbsp;<b><A HREF="#ref10">guiFactory</A></b> () 
</LI>
<LI>void &nbsp;<b><A HREF="#ref11">createGUI</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &xmlfile = QString::null, bool _conserveMemory = TRUE ) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref12">setHelpMenuEnabled</A></b> (bool showHelpMenu = true) 
</LI>
<LI>bool &nbsp;<b><A HREF="#ref13">isHelpMenuEnabled</A></b> () 
</LI>
<LI><A HREF="KMenuBar.html">KMenuBar</A> *&nbsp;<b><A HREF="#ref14">menuBar</A></b> () 
</LI>
<LI><A HREF="KStatusBar.html">KStatusBar</A> *&nbsp;<b><A HREF="#ref15">statusBar</A></b> () 
</LI>
<LI><A HREF="KToolBar.html">KToolBar</A> *&nbsp;<b><A HREF="#ref17">toolBar</A></b> ( const char *name=0 ) 
</LI>
<LI><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlistiterator.html">QListIterator</A><<A HREF="KToolBar.html">KToolBar</A>> &nbsp;<b><A HREF="#ref18">toolBarIterator</A></b> () 
</LI>
<LI><A HREF="../kdecore/KAccel.html">KAccel</A> *&nbsp;<b><A HREF="#ref19">accel</A></b> () 
</LI>
<LI>void &nbsp;<b><A HREF="#ref20">setFrameBorderWidth</A></b> ( int ) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref21">setAutoSaveSettings</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> & groupName = <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html#8d722f">QString::fromLatin1</A>("MainWindow"),
                              bool saveWindowSize = true ) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref22">resetAutoSaveSettings</A></b> () 
</LI>
<LI>void &nbsp;<b><A HREF="#ref23">applyMainWindowSettings</A></b> (<A HREF="../kdecore/KConfig.html">KConfig</A> *config, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &groupName = QString::null) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref24">saveMainWindowSettings</A></b> (<A HREF="../kdecore/KConfig.html">KConfig</A> *config, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &groupName = QString::null) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref25">finalizeGUI</A></b> ( bool force ) 
</LI>
<LI>bool &nbsp;<b><A HREF="#ref26">initialGeometrySet</A></b> ()  const
</LI>
</ul><h4>Public Slots</h4><ul><LI>virtual  void &nbsp;<b><A HREF="#ref27">setCaption</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &caption ) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref28">setCaption</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &caption, bool modified ) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref29">setPlainCaption</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &caption ) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref30">appHelpActivated</A></b> ( void ) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref31">setSettingsDirty</A></b> () 
</LI>
</ul><h4>Public Static Methods</h4><ul><LI>static  bool &nbsp;<b><A HREF="#ref7">canBeRestored</A></b> ( int number ) 
</LI>
<LI>static  const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &nbsp;<b><A HREF="#ref8">classNameOfToplevel</A></b> ( int number ) 
</LI>
</ul><h4>Public Members</h4><ul><LI>static QList<KMainWindow>* <b><A HREF="#ref16">memberList</A></b></LI>
</ul><h4>Protected Methods</h4><ul><LI>void &nbsp;<b><A HREF="#ref32">paintEvent</A></b> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qpaintevent.html">QPaintEvent</A>* e ) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref33">childEvent</A></b> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qchildevent.html">QChildEvent</A>* e) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref34">resizeEvent</A></b> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qresizeevent.html">QResizeEvent</A>* e) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref35">closeEvent</A></b> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcloseevent.html">QCloseEvent</A> *) 
</LI>
<LI>virtual  bool &nbsp;<b><A HREF="#ref36">queryExit</A></b> () 
</LI>
<LI>virtual  bool &nbsp;<b><A HREF="#ref37">queryClose</A></b> () 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref38">saveProperties</A></b> ( <A HREF="../kdecore/KConfig.html">KConfig</A>* ) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref39">readProperties</A></b> ( <A HREF="../kdecore/KConfig.html">KConfig</A>* ) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref40">saveGlobalProperties</A></b> ( <A HREF="../kdecore/KConfig.html">KConfig</A>* sessionConfig ) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref41">readGlobalProperties</A></b> ( <A HREF="../kdecore/KConfig.html">KConfig</A>* sessionConfig ) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref42">savePropertiesInternal</A></b> ( <A HREF="../kdecore/KConfig.html">KConfig</A>*, int ) 
</LI>
<LI>bool &nbsp;<b><A HREF="#ref43">readPropertiesInternal</A></b> ( <A HREF="../kdecore/KConfig.html">KConfig</A>*, int ) 
</LI>
<LI>bool &nbsp;<b><A HREF="#ref44">settingsDirty</A></b> ()  const
</LI>
<LI><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &nbsp;<b><A HREF="#ref45">settingsGroup</A></b> ()  const
</LI>
<LI>void &nbsp;<b><A HREF="#ref46">saveWindowSize</A></b> ( <A HREF="../kdecore/KConfig.html">KConfig</A> * config )  const
</LI>
<LI>void &nbsp;<b><A HREF="#ref47">restoreWindowSize</A></b> ( <A HREF="../kdecore/KConfig.html">KConfig</A> * config ) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref48">parseGeometry</A></b> (bool parsewidth) 
</LI>
</ul><h4>Protected Slots</h4><ul><LI>void &nbsp;<b><A HREF="#ref49">showAboutApplication</A></b> ( void ) 
</LI>
</ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p>
 Top level widget that provides toolbars, a status line and a frame.
</p>
<p> It should be used as a top level (parent-less) widget.
 It manages the geometry for all its children, including your
 main widget.
</p>
<p> Normally, you will inherit from KMainWindow,
 then construct (or use some existing) widget as
 your main view. You can set only one main view.
</p>
<p> You can add as many toolbars as you like. There can be only one menubar
 and only one statusbar.
</p>
<p> The toolbars, menubar, and statusbar can be created by the
 KMainWindow and - unlike the old KMainWindow - may, but do not
 have to, be deleted by you. KMainWindow will handle that internally.
</p>
<p> Height and width can be operated independently from each other. Simply
 define the minimum/maximum height/width of your main widget and
 KMainWindow will take this into account. For fixed size windows set
 your main widget to a fixed size.
</p>
<p> Fixed aspect ratios (heightForWidth()) and fixed width widgets are
 not supported.
</p>
<p> KMainWindow will set icon, mini icon and caption, which it gets
 from <A HREF="../kdecore/KApplication.html">KApplication</A>. It provides full session management, and
 will save its position, geometry and positions of toolbars and
 menubar on logout. If you want to save additional data, reimplement
 <A HREF="KMainWindow.html#saveProperties">saveProperties</A>() and (to read them again on next login) <A HREF="KMainWindow.html#readProperties">readProperties</A>(). To save special data about your data, reimplement
 <A HREF="KMainWindow.html#saveGlobalProperties">saveGlobalProperties</A>(). To warn user that application or
 windows have unsaved data on close or logout, reimplement <A HREF="KMainWindow.html#queryClose">queryClose</A>() and/or <A HREF="KMainWindow.html#queryExit">queryExit</A>().
</p>
<p> There is also a macro RESTORE which can restore all your windows
 on next login.
</p>
<p>  Note that a KMainWindow per-default is created with the
  WDestructiveClose flag, i.e. it is automatically destroyed when the
  window is closed. If you do not want this behavior, specify 0 as
  widget flag in the constructor.
</p>
<p></p>
<p> </p>
<p><b>See also</b>: <A HREF="../kdecore/KApplication.html">KApplication</A></p>
<A NAME="KMainWindow"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>KMainWindow</strong> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qwidget.html">QWidget</A>* parent = 0, const char *name = 0, WFlags f = WType_TopLevel | WDestructiveClose )
<br></td><td align="right"><h3><strong>KMainWindow</strong></h3></td></tr></table><p></p><p>
 Construct a main window.
</p>
<p></p>
<p></p>
<p></p>
<p> KMainWindows must be created on the heap with 'new', like:
</p><table border="0" width="100%">
<tr>
<td bgcolor="#BEEAE0">
<pre>
 <A HREF="KMainWindow.html#KMainWindow">KMainWindow</A> *kmw = new <A HREF="KMainWindow.html#KMainWindow">KMainWindow</A> (...</pre>

</pre>
</td></tr>

</table> <p>
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>parent</i></TD><TD align="left" valign="top">The widget parent. This is usually 0 but it may also be the window
 group leader. In that case, the KMainWindow becomes sort of a
 secondary window.
</TD></TR>
<TR><TD align="left" valign="top"><i>name</i></TD><TD align="left" valign="top">The object name. For session management to work
 properly, all main windows in the application have to have a
 different name. When passing 0 (the default), KMainWindow will create
 such a name for you. So simply never pass anything else ;-)
</TD></TR>
<TR><TD align="left" valign="top"><i>f</i></TD><TD align="left" valign="top">Specify the widget flags. The default is
 WType_TopLevel and WDestructiveClose.  TopLevel indicates that a
 main window is a toplevel window, regardless of whether it has a
 parent or not. DestructiveClose indicates that a main window is
 automatically destroyed when its window is closed. Pass 0 if
 you do not want this behaviour.
</TD></TR>
</TABLE></P>
<A NAME="~KMainWindow"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td> &nbsp;<strong>~KMainWindow</strong> ()
<br></td><td align="right"><h3><strong>~KMainWindow</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p>
 Destructor.
</p>
<p> Will also destroy the toolbars, and menubar if
 needed.
     </p>
<A NAME="helpMenu"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="KPopupMenu.html">KPopupMenu</A>* &nbsp;<strong>helpMenu</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &aboutAppText = QString::null,
			  bool showWhatsThis = TRUE )
<br></td><td align="right"><h3><strong>helpMenu</strong></h3></td></tr></table><p></p><p>
 Retrieve the standard help menu.
</p>
<p> It contains entires for the
 help system (activated by F1), an optional "What's This?" entry
 (activated by Shift F1), an application specific dialog box,
 and an "About KDE" dialog box.
</p>
<p> Example (adding a standard help menu to your application):
</p><table border="0" width="100%">
<tr>
<td bgcolor="#BEEAE0">
<pre>

 <A HREF="KPopupMenu.html">KPopupMenu</A> *help = <A HREF="KMainWindow.html#helpMenu">helpMenu</A>( <myTextString> );
 <A HREF="KMainWindow.html#menuBar">menuBar</A>()->insertItem( <A HREF="../kdecore/.html#i18n">i18n</A>("&Help"), help );

</pre>
</td></tr>

</table> <p>
</p>
<p></p>
<p></p>
<p></p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>aboutAppText</i></TD><TD align="left" valign="top">The string that is used in the application
        specific dialog box. If you leave this string empty the
        information in the global <A HREF="../kdecore/KAboutData.html">KAboutData</A> of the
        application will be used to make a standard dialog box.
</TD></TR>
<TR><TD align="left" valign="top"><i>showWhatsThis</i></TD><TD align="left" valign="top">Set this to false if you do not want to include
        the "What's This" menu entry.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: A standard help menu.
     </p>
<A NAME="customHelpMenu"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="KPopupMenu.html">KPopupMenu</A>* &nbsp;<strong>customHelpMenu</strong> ( bool showWhatsThis = TRUE )
<br></td><td align="right"><h3><strong>customHelpMenu</strong></h3></td></tr></table><p></p><p>
 Retrieve the standard help menu.
</p>
<p> It contains entires for the
 help system (activated by F1), an optional "What's This?" entry
 (activated by Shift F1), an application specific dialog box,
 and an "About KDE" dialog box. You must create the application
 specific dialog box yourself. When the "About application"
 menu entry is activated, a signal will trigger the
 <A HREF="KMainWindow.html#showAboutApplication">showAboutApplication</A> slot. See <A HREF="KMainWindow.html#showAboutApplication">showAboutApplication</A> for more
 information.
</p>
<p> Example (adding a help menu to your application):
</p><table border="0" width="100%">
<tr>
<td bgcolor="#BEEAE0">
<pre>

 <A HREF="KMainWindow.html#menuBar">menuBar</A>()->insertItem( <A HREF="../kdecore/.html#i18n">i18n</A>("&Help"), <A HREF="KMainWindow.html#customHelpMenu">customHelpMenu</A>() );

</pre>
</td></tr>

</table> <p>
</p>
<p></p>
<p></p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>showWhatsThis</i></TD><TD align="left" valign="top">Set this to <code>false</code> if you do not want to include
        the "What's This" menu entry.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: A standard help menu.
     </p>
<A NAME="canBeRestored"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td> bool &nbsp;<strong>canBeRestored</strong> ( int number )
<br></td><td align="right"><h3><strong>canBeRestored</strong></h3></td></tr></table><p> <small>[static]</small></p><p>
</p>

<H3>Session Management
</H3>
<p>
</p>
<p> Try to restore the toplevel widget as defined by the number (1..X).
</p>
<p> If the session did not contain so high a number, the configuration
 is not changed and <code>false</code> returned.
</p>
<p> That means clients could simply do the following:
</p><table border="0" width="100%">
<tr>
<td bgcolor="#BEEAE0">
<pre>

 if (kapp->isRestored()){
   int n = 1;
   while (KMainWindow::canBeRestored(n)){
     (new childMW)-><A HREF="KMainWindow.html#restore">restore</A>(n);
     n++;
   }
 } else {
 // create default application as usual
 }

</pre>
</td></tr>

</table> <p>
 Note that <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qwidget.html#ccc8f7">QWidget::show</A>() is called implicitly in restore.
</p>
<p> With this you can easily restore all toplevel windows of your
 application.
</p>
<p> If your application uses different kinds of toplevel
 windows, then you can use KMainWindow::classNameOfToplevel(n)
 to determine the exact type before calling the childMW
 constructor in the example from above.
</p>
<p> If your client has only one kind of toplevel widgets (which should
 be pretty usual) then you should use the RESTORE-macro:
</p>
<p></p><table border="0" width="100%">
<tr>
<td bgcolor="#BEEAE0">
<pre>

 if (kapp->isRestored())
   RESTORE(childMW)
 else {
 // create default application as usual
 }

</pre>
</td></tr>

</table> <p>
</p>
<p> The macro expands to the term above but is easier to use and
 less code to write.
</p>
<p></p>
<p>     </p>
<p><b>See also</b>: restore(), classNameOfToplevel()</p>
<A NAME="classNameOfToplevel"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td> const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &nbsp;<strong>classNameOfToplevel</strong> ( int number )
<br></td><td align="right"><h3><strong>classNameOfToplevel</strong></h3></td></tr></table><p> <small>[static]</small></p><p>
 Retrieve the className() of the <code>number</code> of the toplevel window which
 should be restored.
</p>
<p>  This is only useful if your application uses
 different kinds of toplevel windows.
     </p>
<A NAME="restore"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>restore</strong> ( int number, bool show = TRUE )
<br></td><td align="right"><h3><strong>restore</strong></h3></td></tr></table><p></p><p>
 Restore the session specified by <code>number</code>.
</p>
<p> Returns <code>false</code> if this
 fails, otherwise returns <code>true</code> and shows the window.
 You should call <A HREF="KMainWindow.html#canBeRestored">canBeRestored</A>() first.
 If <code>show</code> is true (default), this widget will be shown automatically.
     </p>
<A NAME="guiFactory"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="KXMLGUIFactory.html">KXMLGUIFactory</A> *&nbsp;<strong>guiFactory</strong> ()
<br></td><td align="right"><h3><strong>guiFactory</strong></h3></td></tr></table><p> <small>[virtual]</small></p><A NAME="createGUI"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>createGUI</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &xmlfile = QString::null, bool _conserveMemory = TRUE )
<br></td><td align="right"><h3><strong>createGUI</strong></h3></td></tr></table><p></p><p>
 Create a GUI given a local XML file.
</p>
<p> If xmlfile is NULL,
 then it will try to construct a local XML filename like
 appnameui.rc where 'appname' is your app's name.  If that file
 does not exist, then the XML UI code will only use the global
 (standard) XML file for the layout purposes.
</p>
<p></p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>xmlfile</i></TD><TD align="left" valign="top">The local xmlfile (relative or absolute)
</TD></TR>
<TR><TD align="left" valign="top"><i>_conserveMemory</i></TD><TD align="left" valign="top">Specifiy whether createGUI() should call
     KXMLGuiClient::conserveMemory() to free all memory
     allocated by the <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qdomdocument.html">QDomDocument</A> .
     </TD></TR>
</TABLE></P>
<A NAME="setHelpMenuEnabled"></A><A NAME="ref12"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>setHelpMenuEnabled</strong> (bool showHelpMenu = true)
<br></td><td align="right"><h3><strong>setHelpMenuEnabled</strong></h3></td></tr></table><p></p><p>
 Enables the build of a standard help menu when calling createGUI().
</p>
<p> The default behavior is to build one, you must call this function
 to disable it
     </p>
<A NAME="isHelpMenuEnabled"></A><A NAME="ref13"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>isHelpMenuEnabled</strong> ()
<br></td><td align="right"><h3><strong>isHelpMenuEnabled</strong></h3></td></tr></table><p></p><p>
 Return <code>true</code> when the help menu is enabled
     </p>
<A NAME="menuBar"></A><A NAME="ref14"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="KMenuBar.html">KMenuBar</A> *&nbsp;<strong>menuBar</strong> ()
<br></td><td align="right"><h3><strong>menuBar</strong></h3></td></tr></table><p></p><p>
 Retrieve a pointer to the menu bar.
</p>
<p> If there is no menu bar yet on will be created.
</p>
<p>Reimplemented from <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qmainwindow.html#2fcbc3">QMainWindow</A>.</p>
<A NAME="statusBar"></A><A NAME="ref15"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="KStatusBar.html">KStatusBar</A> *&nbsp;<strong>statusBar</strong> ()
<br></td><td align="right"><h3><strong>statusBar</strong></h3></td></tr></table><p></p><p>
 Retrieve a pointer to the status bar.
</p>
<p>  If there is no
 status bar yet one will be created.
     </p>
<p>Reimplemented from <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qmainwindow.html#14153d">QMainWindow</A>.</p>
<A NAME="memberList"></A><A NAME="ref16"></A><table width="100%"><tr bgcolor="#eeeeee"><td>static <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlist.html">QList</A><<A HREF="KMainWindow.html">KMainWindow</A>>*  <strong>memberList</strong>
</td><td align="right"><h3><strong>memberList</strong></h3></td></tr></table><p></p><A NAME="toolBar"></A><A NAME="ref17"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="KToolBar.html">KToolBar</A> *&nbsp;<strong>toolBar</strong> ( const char *name=0 )
<br></td><td align="right"><h3><strong>toolBar</strong></h3></td></tr></table><p></p><p>
 Retrieve a pointer to the toolbar with the specified name.
 This refers to toolbars created dynamically from the XML UI
 framework.  If the toolbar does not exist one will be created.
</p>
<p></p>
<p></p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>name</i></TD><TD align="left" valign="top">The internal name of the toolbar. If no name is
             specified "mainToolBar" is assumed.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: A pointer to the toolbar or <code>0L</code> if it doesn't exist
</p>
<A NAME="toolBarIterator"></A><A NAME="ref18"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlistiterator.html">QListIterator</A><<A HREF="KToolBar.html">KToolBar</A>> &nbsp;<strong>toolBarIterator</strong> ()
<br></td><td align="right"><h3><strong>toolBarIterator</strong></h3></td></tr></table><p></p><p>
</p>
<p><b>Returns</b>: An iterator over the list of all toolbars for this window.
     </p>
<A NAME="accel"></A><A NAME="ref19"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="../kdecore/KAccel.html">KAccel</A> *&nbsp;<strong>accel</strong> ()
<br></td><td align="right"><h3><strong>accel</strong></h3></td></tr></table><p></p><p>
</p>
<p><b>Returns</b>: A KAccel instance bound to this mainwindow. Used automatically
 by KAction to make keybindings work in all cases.
     </p>
<A NAME="setFrameBorderWidth"></A><A NAME="ref20"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>setFrameBorderWidth</strong> ( int )
<br></td><td align="right"><h3><strong>setFrameBorderWidth</strong></h3></td></tr></table><p></p><A NAME="setAutoSaveSettings"></A><A NAME="ref21"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>setAutoSaveSettings</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> & groupName = <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html#8d722f">QString::fromLatin1</A>("MainWindow"),
                              bool saveWindowSize = true )
<br></td><td align="right"><h3><strong>setAutoSaveSettings</strong></h3></td></tr></table><p></p><p>
 Call this to enable "auto-save" of toolbar/menubar/statusbar settings
 (and optionally window size).
 If the *bars were moved around/shown/hidden when the window is closed,
 saveMainWindowSettings( KGlobal::config(), groupName ) will be called.
</p>
<p></p>
<p></p>
<p> Typically, you will call setAutoSaveSettings() in your
 KMainWindow-inherited class constructor, and it will take care
 of restoring and saving automatically. Make sure you call this
 _after all_ your *bars have been created.
     </p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>groupName</i></TD><TD align="left" valign="top">a name that identifies this "type of window".
 You can have several types of window in the same application.
</TD></TR>
<TR><TD align="left" valign="top"><i>saveWindowSize</i></TD><TD align="left" valign="top">set it to true to include the window size
 when saving.
</TD></TR>
</TABLE></P>
<A NAME="resetAutoSaveSettings"></A><A NAME="ref22"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>resetAutoSaveSettings</strong> ()
<br></td><td align="right"><h3><strong>resetAutoSaveSettings</strong></h3></td></tr></table><p></p><p>
 Disable the auto-save-settings feature.
 You don't normally need to call this, ever.
     </p>
<A NAME="applyMainWindowSettings"></A><A NAME="ref23"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>applyMainWindowSettings</strong> (<A HREF="../kdecore/KConfig.html">KConfig</A> *config, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &groupName = QString::null)
<br></td><td align="right"><h3><strong>applyMainWindowSettings</strong></h3></td></tr></table><p></p><p>
 Read settings for statusbar, menubar and toolbar from their respective
 groups in the config file and apply them.
</p>
<p></p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>config</i></TD><TD align="left" valign="top">Config file to read the settings from.
</TD></TR>
<TR><TD align="left" valign="top"><i>groupName</i></TD><TD align="left" valign="top">For internal use only.
     </TD></TR>
</TABLE></P>
<A NAME="saveMainWindowSettings"></A><A NAME="ref24"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>saveMainWindowSettings</strong> (<A HREF="../kdecore/KConfig.html">KConfig</A> *config, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &groupName = QString::null)
<br></td><td align="right"><h3><strong>saveMainWindowSettings</strong></h3></td></tr></table><p></p><p>
 Save settings for statusbar, menubar and toolbar to their respective
 groups in the config file <code>config</code>.
</p>
<p></p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>config</i></TD><TD align="left" valign="top">Config file to save the settings to.
</TD></TR>
<TR><TD align="left" valign="top"><i>groupName</i></TD><TD align="left" valign="top">For internal use only.
     </TD></TR>
</TABLE></P>
<A NAME="finalizeGUI"></A><A NAME="ref25"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>finalizeGUI</strong> ( bool force )
<br></td><td align="right"><h3><strong>finalizeGUI</strong></h3></td></tr></table><p></p><p>
     </p>
<p>Reimplemented from <A HREF="KXMLGUIBuilder.html#finalizeGUI">KXMLGUIBuilder</A>.</p>
<A NAME="initialGeometrySet"></A><A NAME="ref26"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>initialGeometrySet</strong> ()
<br></td><td align="right"><h3><strong>initialGeometrySet</strong></h3></td></tr></table><p> <small>[const]</small></p><p>
</p>
<p><b>Returns</b>: true if a -geometry argument was given on the command line,
 and this is the first window created (the one on which this option applies)
     </p>
<A NAME="setCaption"></A><A NAME="ref27"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>setCaption</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &caption )
<br></td><td align="right"><h3><strong>setCaption</strong></h3></td></tr></table><p> <small>[virtual slot]</small></p><p>
 Makes a KDE compliant caption.
</p>
<p></p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>caption</i></TD><TD align="left" valign="top">Your caption. <em>Do</em> <em>notx</em> include the application name
 in this string. It will be added automatically according to the KDE
 standard.
     </TD></TR>
</TABLE></P>
<A NAME="setCaption"></A><A NAME="ref28"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>setCaption</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &caption, bool modified )
<br></td><td align="right"><h3><strong>setCaption</strong></h3></td></tr></table><p> <small>[virtual slot]</small></p><p>
 Makes a KDE compliant caption.
</p>
<p></p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>caption</i></TD><TD align="left" valign="top">Your caption. <em>Do</em> <em>not</em> include the application name
 in this string. It will be added automatically according to the KDE
 standard.
</TD></TR>
<TR><TD align="left" valign="top"><i>modified</i></TD><TD align="left" valign="top">Specify whether the document is modified. This displays
 an additionnal sign in the title bar, usually "**".
     </TD></TR>
</TABLE></P>
<A NAME="setPlainCaption"></A><A NAME="ref29"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>setPlainCaption</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &caption )
<br></td><td align="right"><h3><strong>setPlainCaption</strong></h3></td></tr></table><p> <small>[virtual slot]</small></p><p>
 Make a plain caption without any modifications.
</p>
<p></p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>caption</i></TD><TD align="left" valign="top">Your caption. This is the string that will be
 displayed in the window title.
     </TD></TR>
</TABLE></P>
<A NAME="appHelpActivated"></A><A NAME="ref30"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>appHelpActivated</strong> ( void )
<br></td><td align="right"><h3><strong>appHelpActivated</strong></h3></td></tr></table><p> <small>[slot]</small></p><p>
 Open the help page for the application.
</p>
<p>  The application name is
 used as a key to determine what to display and the system will attempt
 to open <appName>/index.html.
</p>
<p> This method is intended for use by a help button in the toolbar or
 components outside the regular help menu. Use <A HREF="KMainWindow.html#helpMenu">helpMenu</A>() when you
 want to provide access to the help system from the help menu.
</p>
<p> Example (adding a help button to the first toolbar):
</p>
<p></p><table border="0" width="100%">
<tr>
<td bgcolor="#BEEAE0">
<pre>

 <A HREF="../kdecore/KIconLoader.html">KIconLoader</A> &loader = *<A HREF="../kdecore/KGlobal.html#iconLoader">KGlobal::iconLoader</A>();
 <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qpixmap.html">QPixmap</A> pixmap = loader.loadIcon( "help" );
 <A HREF="KMainWindow.html#toolBar">toolBar</A>(0)->insertButton( pixmap, 0, SIGNAL(clicked()),
   this, SLOT(<A HREF="KMainWindow.html#appHelpActivated">appHelpActivated</A>()), true, <A HREF="../kdecore/.html#i18n">i18n</A>("Help") );

</pre>
</td></tr>

</table> <p>
</p>
<p>     </p>
<A NAME="setSettingsDirty"></A><A NAME="ref31"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>setSettingsDirty</strong> ()
<br></td><td align="right"><h3><strong>setSettingsDirty</strong></h3></td></tr></table><p> <small>[slot]</small></p><p>
     </p>
<A NAME="paintEvent"></A><A NAME="ref32"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>paintEvent</strong> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qpaintevent.html">QPaintEvent</A>* e )
<br></td><td align="right"><h3><strong>paintEvent</strong></h3></td></tr></table><p> <small>[protected]</small></p><p>Reimplemented from <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qmainwindow.html#2ead64">QMainWindow</A>.</p>
<A NAME="childEvent"></A><A NAME="ref33"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>childEvent</strong> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qchildevent.html">QChildEvent</A>* e)
<br></td><td align="right"><h3><strong>childEvent</strong></h3></td></tr></table><p> <small>[protected]</small></p><p>Reimplemented from <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qmainwindow.html#366599">QMainWindow</A>.</p>
<A NAME="resizeEvent"></A><A NAME="ref34"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>resizeEvent</strong> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qresizeevent.html">QResizeEvent</A>* e)
<br></td><td align="right"><h3><strong>resizeEvent</strong></h3></td></tr></table><p> <small>[protected]</small></p><p>Reimplemented from <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qmainwindow.html#c1fe7b">QMainWindow</A>.</p>
<A NAME="closeEvent"></A><A NAME="ref35"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>closeEvent</strong> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcloseevent.html">QCloseEvent</A> *)
<br></td><td align="right"><h3><strong>closeEvent</strong></h3></td></tr></table><p> <small>[protected virtual]</small></p><p>
 Reimplemented to call the queryClose() and queryExit() handlers.
</p>
<p> We recommend that you reimplement the handlers rather than <A HREF="KMainWindow.html#closeEvent">closeEvent</A>().
 If you do it anyway, ensure to call the base implementation to keep
 <A HREF="KMainWindow.html#queryExit">queryExit</A>() running.
     </p>
<A NAME="queryExit"></A><A NAME="ref36"></A><table width="100%"><tr bgcolor="#eeeeee"><td> bool &nbsp;<strong>queryExit</strong> ()
<br></td><td align="right"><h3><strong>queryExit</strong></h3></td></tr></table><p> <small>[protected virtual]</small></p><p>
       Called before the very last window is closed, either by the
       user or indirectely by the session manager.
</p>
<p>       It is not recommended to do any user interaction in this
       function other than indicating severe errors. Better ask the
       user on <A HREF="KMainWindow.html#queryClose">queryClose</A>() (see below).
</p>
<p>       However, <A HREF="KMainWindow.html#queryExit">queryExit</A>() is useful to do some final cleanups. A
       typical example would be to write configuration data back.
</p>
<p>       Note that the application may continue to run after <A HREF="KMainWindow.html#queryExit">queryExit</A>()
       (the user may have cancelled a shutdown). The purpose of
       <A HREF="KMainWindow.html#queryExit">queryExit</A>() is purely to prepare the application (with possible
       user interaction) so it can safely be closed later (without
       user interaction).
</p>
<p>       If you need to do serious things on exit (like shutting a
       dial-up connection down), connect to the signal
       <A HREF="../kdecore/KApplication.html#shutDown">KApplication::shutDown</A>().
</p>
<p>       Default implementation returns <code>true</code>. Returning <code>false</code> will
       cancel the exiting. In the latter case, the last window will
       remain visible.
</p>
<p></p>
<p><b>See also</b>: queryClose()</p>
<A NAME="queryClose"></A><A NAME="ref37"></A><table width="100%"><tr bgcolor="#eeeeee"><td> bool &nbsp;<strong>queryClose</strong> ()
<br></td><td align="right"><h3><strong>queryClose</strong></h3></td></tr></table><p> <small>[protected virtual]</small></p><p>
       Called before the window is closed, either by the user or indirectely by
       the session manager.
</p>
<p>       The purpose of this function is to prepare the window in a way that it is
       safe to close it, i.e. without the user losing some data.
</p>
<p>       Default implementation returns true. Returning <code>false</code> will cancel
       the closing.
</p>
<p>       Reimplement this function to prevent the user from losing data.
       Example:
</p><table border="0" width="100%">
<tr>
<td bgcolor="#BEEAE0">
<pre>


           switch ( <A HREF="KMessageBox.html#warningYesNoCancel">KMessageBox::warningYesNoCancel</A>( this,
				   <A HREF="../kdecore/.html#i18n">i18n</A>("Save changes to Document Foo?")) ) {
           case KMessageBox::Yes :
             // save document here. If saving fails, return FALSE;
             return TRUE;
           case KMessageBox::No :
             return TRUE;
           default: // cancel
             return FALSE;


</pre>
</td></tr>

</table> <p>
</p>
<p></p>
<p>    </p>
<p><b>See also</b>: queryExit()</p>
<A NAME="saveProperties"></A><A NAME="ref38"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>saveProperties</strong> ( <A HREF="../kdecore/KConfig.html">KConfig</A>* )
<br></td><td align="right"><h3><strong>saveProperties</strong></h3></td></tr></table><p> <small>[protected virtual]</small></p><p>
 Save your instance-specific properties. The function is
 invoked when the session manager requests your application
 to save its state.
</p>
<p> You <em>must</em> <em>not</em> change the group of the <code>kconfig</code> object, since
 <A HREF="KMainWindow.html#KMainWindow">KMainWindow</A> uses one group for each window.  Please
 reimplement these function in childclasses.
</p>
<p> Note: No user interaction is allowed
 in this function!
</p>
<p>     </p>
<A NAME="readProperties"></A><A NAME="ref39"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>readProperties</strong> ( <A HREF="../kdecore/KConfig.html">KConfig</A>* )
<br></td><td align="right"><h3><strong>readProperties</strong></h3></td></tr></table><p> <small>[protected virtual]</small></p><p>
 Read your instance-specific properties.
    </p>
<A NAME="saveGlobalProperties"></A><A NAME="ref40"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>saveGlobalProperties</strong> ( <A HREF="../kdecore/KConfig.html">KConfig</A>* sessionConfig )
<br></td><td align="right"><h3><strong>saveGlobalProperties</strong></h3></td></tr></table><p> <small>[protected virtual]</small></p><p>
 Save your application-wide properties. The function is
 invoked when the session manager requests your application
 to save its state.
</p>
<p> This function is similar to <A HREF="KMainWindow.html#saveProperties">saveProperties</A>() but is only called for
 the very first main window, regardless how many main window are open.
</p>
<p> Override it if you need to save other data about your documents on
 session end. sessionConfig is a config to which that data should be
 saved. Normally, you don't need this function. But if you want to save
 data about your documents that are not in opened windows you might need
 it.
</p>
<p> Default implementation does nothing.
     </p>
<A NAME="readGlobalProperties"></A><A NAME="ref41"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>readGlobalProperties</strong> ( <A HREF="../kdecore/KConfig.html">KConfig</A>* sessionConfig )
<br></td><td align="right"><h3><strong>readGlobalProperties</strong></h3></td></tr></table><p> <small>[protected virtual]</small></p><p>
 The counterpart of <A HREF="KMainWindow.html#saveGlobalProperties">saveGlobalProperties</A>().
</p>
<p> Read the application-specific properties in again.
     </p>
<A NAME="savePropertiesInternal"></A><A NAME="ref42"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>savePropertiesInternal</strong> ( <A HREF="../kdecore/KConfig.html">KConfig</A>*, int )
<br></td><td align="right"><h3><strong>savePropertiesInternal</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="readPropertiesInternal"></A><A NAME="ref43"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>readPropertiesInternal</strong> ( <A HREF="../kdecore/KConfig.html">KConfig</A>*, int )
<br></td><td align="right"><h3><strong>readPropertiesInternal</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="settingsDirty"></A><A NAME="ref44"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>settingsDirty</strong> ()
<br></td><td align="right"><h3><strong>settingsDirty</strong></h3></td></tr></table><p> <small>[protected const]</small></p><p>
 For inherited classes
     </p>
<A NAME="settingsGroup"></A><A NAME="ref45"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &nbsp;<strong>settingsGroup</strong> ()
<br></td><td align="right"><h3><strong>settingsGroup</strong></h3></td></tr></table><p> <small>[protected const]</small></p><p>
 For inherited classes
     </p>
<A NAME="saveWindowSize"></A><A NAME="ref46"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>saveWindowSize</strong> ( <A HREF="../kdecore/KConfig.html">KConfig</A> * config )
<br></td><td align="right"><h3><strong>saveWindowSize</strong></h3></td></tr></table><p> <small>[protected const]</small></p><p>
 For inherited classes
 Note that the group must be set before calling
     </p>
<A NAME="restoreWindowSize"></A><A NAME="ref47"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>restoreWindowSize</strong> ( <A HREF="../kdecore/KConfig.html">KConfig</A> * config )
<br></td><td align="right"><h3><strong>restoreWindowSize</strong></h3></td></tr></table><p> <small>[protected]</small></p><p>
 For inherited classes
 Note that the group must be set before calling, and that
 a -geometry on the command line has priority.
     </p>
<A NAME="parseGeometry"></A><A NAME="ref48"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>parseGeometry</strong> (bool parsewidth)
<br></td><td align="right"><h3><strong>parseGeometry</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="showAboutApplication"></A><A NAME="ref49"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>showAboutApplication</strong> ( void )
<br></td><td align="right"><h3><strong>showAboutApplication</strong></h3></td></tr></table><p> <small>[protected slots slot]</small></p><p>
 This slot does nothing.
</p>
<p> It must be reimplemented if you want
 to use a custom About Application dialog box. This slot is
 connected to the About Application entry in the menu returned
 by <A HREF="KMainWindow.html#customHelpMenu">customHelpMenu</A>.
</p>
<p> Example:
</p><table border="0" width="100%">
<tr>
<td bgcolor="#BEEAE0">
<pre>


 void MyMainLevel::setupInterface()
 {
   ..
   <A HREF="KMainWindow.html#menuBar">menuBar</A>()->insertItem( <A HREF="../kdecore/.html#i18n">i18n</A>("&Help"), <A HREF="KMainWindow.html#customHelpMenu">customHelpMenu</A>() );
   ..
 }

 void MyMainLevel::showAboutApplication( void )
 {
   <activate your custom dialog>
 }

</pre>
</td></tr>

</table> <p>
    </p>
<HR><UL><LI><i>Author</i>: Reginald Stadlbauer (reggie@kde.org) Stephan Kulow (coolo@kde.org), Matthias Ettrich (ettrich@kde.org), Chris Schlaeger (cs@kde.org), Sven Radej (radej@kde.org). Maintained by Sven Radej (radej@kde.org)
</LI><LI><i>Generated</i>: qateam on updates.mandrakesoft.com on Mon Dec 30 16:09:05 2002, using kdoc 2.0a53.</LI></UL></BODY></HTML>