KDEUI
kmainwindow.h
Go to the documentation of this file.
49 inline classname ## Private *k_func() { return reinterpret_cast<classname ## Private *>(k_ptr); } \
virtual void applyMainWindowSettings(const KConfigGroup &config, bool forceGlobal=false)
Read settings for statusbar, menubar and toolbar from their respective groups in the config file and ...
Definition kmainwindow.cpp:746
KToolBar * toolBar(const QString &name=QString())
Returns a pointer to the toolbar with the specified name.
Definition kmainwindow.cpp:1193
bool restore(int number, bool show=true)
Try to restore the toplevel widget as defined by number (1..X).
Definition kmainwindow.cpp:534
virtual void saveProperties(KConfigGroup &)
Save your instance-specific properties.
Definition kmainwindow.h:585
static bool canBeRestored(int number)
If the session did contain so high a number, true is returned, else false.
Definition kmainwindow.cpp:503
void setSettingsDirty()
Tell the main window that it should save its settings when being closed.
Definition kmainwindow.cpp:991
KConfigGroup autoSaveConfigGroup() const
Definition kmainwindow.cpp:1045
virtual void setCaption(const QString &caption)
Makes a KDE compliant caption (window title).
Definition kmainwindow.cpp:547
void saveWindowSize(const KConfigGroup &config) const
For inherited classes.
Definition kmainwindow.cpp:845
static QList< KMainWindow * > memberList()
List of members of KMainWindow class.
Definition kmainwindow.cpp:1218
static const QString classNameOfToplevel(int number)
Returns the className() of the number of the toplevel window which should be restored.
Definition kmainwindow.cpp:516
virtual void setPlainCaption(const QString &caption)
Make a plain caption without any modifications.
Definition kmainwindow.cpp:564
void saveMainWindowSettings(const KConfigGroup &config)
Save settings for statusbar, menubar and toolbar to their respective groups in the config group confi...
Definition kmainwindow.cpp:659
virtual bool event(QEvent *event)
Reimplemented to catch QEvent::Polish in order to adjust the object name if needed,...
Definition kmainwindow.cpp:1061
KMainWindow(QWidget *parent=0, Qt::WindowFlags f=KDE_DEFAULT_WINDOWFLAGS)
Construct a main window.
Definition kmainwindow.cpp:217
virtual void readProperties(const KConfigGroup &)
Read your instance-specific properties.
Definition kmainwindow.h:592
virtual void closeEvent(QCloseEvent *)
Reimplemented to call the queryClose() and queryExit() handlers.
Definition kmainwindow.cpp:580
QString dbusName() const
Returns the path under which this window's D-Bus object is exported.
Definition kmainwindow.cpp:1220
void setAutoSaveSettings(const QString &groupName=QLatin1String("MainWindow"), bool saveWindowSize=true)
Call this to enable "auto-save" of toolbar/menubar/statusbar settings (and optionally window size).
Definition kmainwindow.cpp:1003
KMenu * helpMenu(const QString &aboutAppText=QString(), bool showWhatsThis=true)
Retrieve the standard help menu.
Definition kmainwindow.cpp:475
virtual bool queryClose()
Called before the window is closed, either by the user or indirectly by the session manager.
Definition kmainwindow.cpp:617
#define T
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.