Public Methods
- MainWindow ( QWidget* parent, const char *name = 0L, WFlags f = WType_TopLevel | WDestructiveClose )
- MainWindow ( const char *name = 0L, WFlags f = WDestructiveClose )
- virtual ~ MainWindow ()
- protected slots: /** * Create the GUI (by merging the host's and the active part's) * * For this you need to connect this slot to the * @ref KPartManager::activePartChanged() signal * * @param part The active part (set to 0L if no part). */ void createGUI( KParts::Part * part )
- virtual void slotSetStatusBarText ( const QString & )
- virtual protected: void createShellGUI ( bool create = true )
Detailed Description
A KPart-aware main window, whose user interface is described in XML.
Inherit your main window from this class
and don't forget to call setXMLFile() in the inherited constructor.
It implements all internal interfaces in the case of a
KMainWindow as host: the builder and servant interface (for menu
merging).
MainWindow ( QWidget* parent, const char *name = 0L, WFlags f = WType_TopLevel | WDestructiveClose )
|
Constructor, same signature as KMainWindow.
MainWindow ( const char *name = 0L, WFlags f = WDestructiveClose )
|
Compatibility Constructor, same signature as KTMainWindow.
[virtual]
Destructor.
protected slots: /** * Create the GUI (by merging the host's and the active part's) * * For this you need to connect this slot to the * @ref KPartManager::activePartChanged() signal * * @param part The active part (set to 0L if no part). */ void createGUI( KParts::Part * part )
|
void slotSetStatusBarText ( const QString & )
|
[virtual]
Called when the active part wants to change the statusbar message
Reimplement if your mainwindow has a complex statusbar
(with several items)
protected: void createShellGUI ( bool create = true )
|
[virtual]