KXmlGui
kxmlguiwindow.h
77 * See https://develop.kde.org/docs/use/session-managment for more information on session management.
87class KXMLGUI_EXPORT KXmlGuiWindow : public KMainWindow, public KXMLGUIBuilder, virtual public KXMLGUIClient
93 Q_PROPERTY(bool standardToolBarMenuEnabled READ isStandardToolBarMenuEnabled WRITE setStandardToolBarMenuEnabled)
392 void setupGUI(const QSize &defaultSize, StandardWindowOptions options = Default, const QString &xmlfile = QString());
KMainWindow(QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())
Constructs a main window.
Definition kmainwindow.cpp:207
KXMLGUIClient()
Constructs a KXMLGUIClient which can be used with a KXMLGUIFactory to create a GUI from actions and a...
Definition kxmlguiclient.cpp:65
KXMLGUIFactory, together with KXMLGUIClient objects, can be used to create a GUI of container widgets...
Definition kxmlguifactory.h:56
void setToolBarVisible(const QString &name, bool visible)
Sets the visibility of a given toolbar.
Definition kxmlguiwindow.cpp:223
void createGUI(const QString &xmlfile=QString())
Generates the interface based on a local XML file.
Definition kxmlguiwindow.cpp:360
KXmlGuiWindow(QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())
Construct a main window.
Definition kxmlguiwindow.cpp:148
void createStandardStatusBarAction()
Creates a toggle under the 'Settings' menu to show/hide the statusbar.
Definition kxmlguiwindow.cpp:485
void setStandardToolBarMenuEnabled(bool showToolBarMenu)
Creates a toggle under the 'Settings' menu to show/hide the available toolbars.
Definition kxmlguiwindow.cpp:452
void applyMainWindowSettings(const KConfigGroup &config) override
Read settings for statusbar, menubar and toolbar from their respective groups in the config file and ...
Definition kxmlguiwindow.cpp:513
QFlags< StandardWindowOption > StandardWindowOptions
Stores a combination of StandardWindowOptions values.
Definition kxmlguiwindow.h:335
bool isStandardToolBarMenuEnabled() const
Returns whether setStandardToolBarMenuEnabled() was set.
Definition kxmlguiwindow.cpp:479
StandardWindowOption
Use these options for the first argument of setupGUI().
Definition kxmlguiwindow.h:264
@ StatusBar
Adds an action to show/hide the statusbar in the 'Settings' menu.
Definition kxmlguiwindow.h:287
@ Save
Autosaves (and loads) the toolbar/menubar/statusbar settings and window size using the default name.
Definition kxmlguiwindow.h:304
@ ToolBar
Adds action(s) to show/hide the toolbar(s) and adds a menu action to configure the toolbar(s).
Definition kxmlguiwindow.h:272
@ Create
Calls createGUI() once ToolBar, Keys and Statusbar have been taken care of.
Definition kxmlguiwindow.h:320
@ Keys
Adds an action in the 'Settings' menu to open the configure keyboard shortcuts dialog.
Definition kxmlguiwindow.h:278
void setupToolbarMenuActions()
Definition kxmlguiwindow.cpp:205
virtual void slotStateChanged(const QString &newstate)
Applies a state change.
Definition kxmlguiwindow.cpp:442
virtual void configureToolbars()
Show a standard configure toolbar dialog.
Definition kxmlguiwindow.cpp:293
bool isCommandBarEnabled() const
Returns whether a KCommandBar was set.
Definition kxmlguiwindow.cpp:594
void setHelpMenuEnabled(bool showHelpMenu=true)
Creates a standard help menu when calling createGUI() or setupGUI().
Definition kxmlguiwindow.cpp:269
bool event(QEvent *event) override
Reimplemented to catch QEvent::Polish in order to adjust the object name if needed,...
Definition kxmlguiwindow.cpp:251
virtual void saveNewToolbarConfig()
Rebuilds the GUI after KEditToolBar changes the toolbar layout.
Definition kxmlguiwindow.cpp:306
void setCommandBarEnabled(bool showCommandBar)
Enable a KCommandBar to list and quickly execute actions.
Definition kxmlguiwindow.cpp:578
bool isToolBarVisible(const QString &name)
Checks the visual state of a given toolbar.
Definition kxmlguiwindow.cpp:213
void checkAmbiguousShortcuts()
Checks if there are actions using the same shortcut.
Definition kxmlguiwindow.cpp:523
void setupGUI(StandardWindowOptions options=Default, const QString &xmlfile=QString())
Configures the current window and its actions in the typical KDE fashion.
Definition kxmlguiwindow.cpp:317
Q_FLAG(...)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SLOTSQ_SLOTS
QObject * parent() const const
typedef WindowFlags
QWidget(QWidget *parent, Qt::WindowFlags f)
visible
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:16 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:16 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.