KParts
#include <mainwindow.h>
Public Slots | |
virtual void | configureToolbars () |
Public Slots inherited from KXmlGuiWindow | |
virtual void | configureToolbars () |
void | slotStateChanged (const QString &newstate, bool reverse) |
virtual void | slotStateChanged (const QString &newstate) |
Public Slots inherited from KMainWindow | |
void | appHelpActivated (void) |
virtual void | setCaption (const QString &caption) |
virtual void | setCaption (const QString &caption, bool modified) |
virtual void | setPlainCaption (const QString &caption) |
void | setSettingsDirty () |
Protected Slots | |
void | createGUI (KParts::Part *part) |
void | saveNewToolbarConfig () |
virtual void | slotSetStatusBarText (const QString &) |
Protected Slots inherited from KXmlGuiWindow | |
virtual void | saveNewToolbarConfig () |
Protected Slots inherited from KMainWindow | |
void | saveAutoSaveSettings () |
virtual void | showAboutApplication () |
Protected Member Functions | |
virtual void | createShellGUI (bool create=true) |
Protected Member Functions inherited from KXmlGuiWindow | |
virtual bool | event (QEvent *event) |
Protected Member Functions inherited from KMainWindow | |
KMainWindow (KMainWindowPrivate &dd, QWidget *parent, Qt::WindowFlags f) | |
virtual void | closeEvent (QCloseEvent *) |
void | parseGeometry (bool parsewidth) |
virtual bool | queryClose () |
virtual bool | queryExit () |
virtual void | readGlobalProperties (KConfig *sessionConfig) |
virtual void | readProperties (const KConfigGroup &) |
bool | readPropertiesInternal (KConfig *, int) |
void | restoreWindowSize (const KConfigGroup &config) |
virtual void | saveGlobalProperties (KConfig *sessionConfig) |
virtual void | saveProperties (KConfigGroup &) |
void | savePropertiesInternal (KConfig *, int) |
void | saveWindowSize (const KConfigGroup &config) const |
bool | settingsDirty () const |
Protected Member Functions inherited from KXMLGUIBuilder | |
virtual void | virtual_hook (int id, void *data) |
Protected Member Functions inherited from KXMLGUIClient | |
void | loadStandardsXmlFile () |
virtual void | setDOMDocument (const QDomDocument &document, bool merge=false) |
virtual void | setLocalXMLFile (const QString &file) |
virtual void | setXML (const QString &document, bool merge=false) |
virtual void | setXMLFile (const QString &file, bool merge=false, bool setXMLDoc=true) |
virtual void | stateChanged (const QString &newstate, ReverseStateChange reverse=StateNoReverse) |
virtual void | virtual_hook (int id, void *data) |
Protected Member Functions inherited from KParts::PartBase | |
PartBase (PartBasePrivate &dd) | |
void | loadPlugins (QObject *parent, KXMLGUIClient *parentGUIClient, const KComponentData &componentData) |
virtual void | setComponentData (const KComponentData &componentData) |
virtual void | setComponentData (const KComponentData &componentData, bool loadPlugins) |
void | setPluginInterfaceVersion (int version) |
void | setPluginLoadingMode (PluginLoadingMode loadingMode) |
Additional Inherited Members | |
Public Types inherited from KXmlGuiWindow | |
enum | StandardWindowOption |
Public Types inherited from KXMLGUIClient | |
enum | ReverseStateChange |
Static Public Member Functions inherited from KMainWindow | |
static bool | canBeRestored (int number) |
static const QString | classNameOfToplevel (int number) |
static QList< KMainWindow * > | memberList () |
Static Public Member Functions inherited from KXMLGUIClient | |
static QString | findMostRecentXMLFile (const QStringList &files, QString &doc) |
Protected Types inherited from KParts::PartBase | |
enum | PluginLoadingMode { DoNotLoadPlugins = 0, LoadPlugins = 1, LoadPluginsIfEnabled = 2 } |
Protected Attributes inherited from KMainWindow | |
KMainWindowPrivate *const | k_ptr |
Protected Attributes inherited from KParts::PartBase | |
PartBasePrivate * | d_ptr |
Properties inherited from KXmlGuiWindow | |
QString | autoSaveGroup |
bool | autoSaveSettings |
bool | hasMenuBar |
bool | initialGeometrySet |
bool | standardToolBarMenuEnabled |
Properties inherited from KMainWindow | |
QString | autoSaveGroup |
bool | autoSaveSettings |
bool | hasMenuBar |
bool | initialGeometrySet |
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 46 of file mainwindow.h.
Constructor & Destructor Documentation
|
explicit |
Constructor, same signature as KMainWindow.
Definition at line 61 of file mainwindow.cpp.
|
explicit |
- Deprecated:
- , remove the name argument and use setObjectName instead
Definition at line 68 of file mainwindow.cpp.
|
virtual |
Destructor.
Definition at line 76 of file mainwindow.cpp.
Member Function Documentation
|
virtualslot |
Definition at line 180 of file mainwindow.cpp.
|
protectedslot |
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
- Parameters
-
part The active part (set to 0L if no part).
Definition at line 81 of file mainwindow.cpp.
|
protectedvirtual |
Definition at line 140 of file mainwindow.cpp.
|
protectedslot |
Rebuilds the GUI after KEditToolbar changed the toolbar layout.
- See also
- configureToolbars() KDE4: make this virtual. (For now we rely on the fact that it's called as a slot, so the metaobject finds it here).
Definition at line 173 of file mainwindow.cpp.
|
protectedvirtualslot |
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.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.