KParts::MainWindow Class Reference
A KPart-aware main window, whose user interface is described in XML. More...
#include <mainwindow.h>
Inheritance diagram for KParts::MainWindow:


Public Member Functions | |
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 KMainWindow. | |
virtual | ~MainWindow () |
Destructor. | |
Protected Slots | |
void | createGUI (KParts::Part *part) |
Create the GUI (by merging the host's and the active part's) You _must_ call this in order to see any GUI being created. | |
virtual void | slotSetStatusBarText (const QString &) |
Called when the active part wants to change the statusbar message Reimplement if your mainwindow has a complex statusbar (with several items). | |
Protected Member Functions | |
virtual 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).
Definition at line 47 of file mainwindow.h.
Constructor & Destructor Documentation
|
Constructor, same signature as KMainWindow.
Definition at line 60 of file mainwindow.cpp. References KStdAccel::name(). |
|
Compatibility Constructor, same signature as KMainWindow.
Definition at line 67 of file mainwindow.cpp. References KStdAccel::name(). |
|
Destructor.
Definition at line 74 of file mainwindow.cpp. |
Member Function Documentation
|
Create the GUI (by merging the host's and the active part's) You _must_ call this in order to see any GUI being created. In a main window with multiple parts being shown (e.g. as in Konqueror) you need to connect this slot to the KPartManager::activePartChanged() signal
Definition at line 79 of file mainwindow.cpp. References KXMLGUIFactory::addClient(), QObject::className(), KXMLGUIClient::factory(), KMainWindow::guiFactory(), KGlobal::instance(), KParts::PartBase::loadPlugins(), QObject::name(), KXMLGUIFactory::removeClient(), QApplication::sendEvent(), KMainWindow::setCaption(), and slotSetStatusBarText(). |
|
Called when the active part wants to change the statusbar message Reimplement if your mainwindow has a complex statusbar (with several items).
Definition at line 135 of file mainwindow.cpp. References QStatusBar::message(), and KMainWindow::statusBar(). Referenced by createGUI(). |
The documentation for this class was generated from the following files: