• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEUI

  • sources
  • kde-4.14
  • kdelibs
  • kdeui
  • xmlgui
kxmlguiwindow.cpp
Go to the documentation of this file.
1  /* This file is part of the KDE libraries
2  Copyright
3  (C) 2000 Reginald Stadlbauer (reggie@kde.org)
4  (C) 1997 Stephan Kulow (coolo@kde.org)
5  (C) 1997-2000 Sven Radej (radej@kde.org)
6  (C) 1997-2000 Matthias Ettrich (ettrich@kde.org)
7  (C) 1999 Chris Schlaeger (cs@kde.org)
8  (C) 2002 Joseph Wenninger (jowenn@kde.org)
9  (C) 2005-2006 Hamish Rodda (rodda@kde.org)
10 
11  This library is free software; you can redistribute it and/or
12  modify it under the terms of the GNU Library General Public
13  License version 2 as published by the Free Software Foundation.
14 
15  This library is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Library General Public License for more details.
19 
20  You should have received a copy of the GNU Library General Public License
21  along with this library; see the file COPYING.LIB. If not, write to
22  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23  Boston, MA 02110-1301, USA.
24  */
25 
26 #include "kxmlguiwindow.h"
27 #include "kmainwindow_p.h"
28 #include "kactioncollection.h"
29 #include "kmainwindowiface_p.h"
30 #include "ktoolbarhandler_p.h"
31 #include "kxmlguifactory.h"
32 #include "kcmdlineargs.h"
33 #include "ktoggleaction.h"
34 #include "ksessionmanager.h"
35 #include "kstandardaction.h"
36 
37 #include <config.h>
38 
39 #include <QCloseEvent>
40 #include <QDesktopWidget>
41 #include <QDockWidget>
42 #include <QtXml/QDomDocument>
43 #include <QtGui/QLayout>
44 #include <QtCore/QObject>
45 #include <QtGui/QSessionManager>
46 #include <QtGui/QStyle>
47 #include <QtCore/QTimer>
48 #include <QtGui/QWidget>
49 #include <QtCore/QList>
50 #include <kaction.h>
51 #include <kapplication.h>
52 #include <kauthorized.h>
53 #include <kconfig.h>
54 #include <kdebug.h>
55 #include <kedittoolbar.h>
56 #include <khelpmenu.h>
57 #include <klocale.h>
58 #include <kmenubar.h>
59 #include <kstandarddirs.h>
60 #include <kstatusbar.h>
61 #include <ktoolbar.h>
62 #include <kwindowsystem.h>
63 #include <kconfiggroup.h>
64 
65 #include <stdlib.h>
66 #include <ctype.h>
67 #include <assert.h>
68 
69 class KXmlGuiWindowPrivate : public KMainWindowPrivate {
70 public:
71  void _k_slotFactoryMakingChanges(bool b)
72  {
73  // While the GUI factory is adding/removing clients,
74  // don't let KMainWindow think those are changes made by the user
75  // #105525
76  letDirtySettings = !b;
77  }
78 
79  bool showHelpMenu:1;
80  QSize defaultSize;
81 
82  KDEPrivate::ToolBarHandler *toolBarHandler;
83  KToggleAction *showStatusBarAction;
84  QPointer<KEditToolBar> toolBarEditor;
85  KXMLGUIFactory *factory;
86 };
87 
88 KXmlGuiWindow::KXmlGuiWindow( QWidget* parent, Qt::WindowFlags f )
89  : KMainWindow(*new KXmlGuiWindowPrivate, parent, f), KXMLGUIBuilder( this )
90 {
91  K_D(KXmlGuiWindow);
92  d->showHelpMenu = true;
93  d->toolBarHandler = 0;
94  d->showStatusBarAction = 0;
95  d->factory = 0;
96  new KMainWindowInterface(this);
97 }
98 
99 
100 QAction *KXmlGuiWindow::toolBarMenuAction()
101 {
102  K_D(KXmlGuiWindow);
103  if ( !d->toolBarHandler )
104  return 0;
105 
106  return d->toolBarHandler->toolBarMenuAction();
107 }
108 
109 
110 void KXmlGuiWindow::setupToolbarMenuActions()
111 {
112  K_D(KXmlGuiWindow);
113  if ( d->toolBarHandler )
114  d->toolBarHandler->setupActions();
115 }
116 
117 
118 KXmlGuiWindow::~KXmlGuiWindow()
119 {
120  K_D(KXmlGuiWindow);
121  delete d->factory;
122 }
123 
124 bool KXmlGuiWindow::event( QEvent* ev )
125 {
126  bool ret = KMainWindow::event(ev);
127  if (ev->type()==QEvent::Polish) {
128  QDBusConnection::sessionBus().registerObject(dbusName() + "/actions", actionCollection(),
129  QDBusConnection::ExportScriptableSlots |
130  QDBusConnection::ExportScriptableProperties |
131  QDBusConnection::ExportNonScriptableSlots |
132  QDBusConnection::ExportNonScriptableProperties |
133  QDBusConnection::ExportChildObjects);
134  }
135  return ret;
136 }
137 
138 void KXmlGuiWindow::setHelpMenuEnabled(bool showHelpMenu)
139 {
140  K_D(KXmlGuiWindow);
141  d->showHelpMenu = showHelpMenu;
142 }
143 
144 bool KXmlGuiWindow::isHelpMenuEnabled() const
145 {
146  K_D(const KXmlGuiWindow);
147  return d->showHelpMenu;
148 }
149 
150 KXMLGUIFactory *KXmlGuiWindow::guiFactory()
151 {
152  K_D(KXmlGuiWindow);
153  if (!d->factory) {
154  d->factory = new KXMLGUIFactory( this, this );
155  connect(d->factory, SIGNAL(makingChanges(bool)),
156  this, SLOT(_k_slotFactoryMakingChanges(bool)));
157  }
158  return d->factory;
159 }
160 
161 void KXmlGuiWindow::configureToolbars()
162 {
163  K_D(KXmlGuiWindow);
164  KConfigGroup cg(KGlobal::config(), QString());
165  saveMainWindowSettings(cg);
166  if (!d->toolBarEditor) {
167  d->toolBarEditor = new KEditToolBar(guiFactory(), this);
168  d->toolBarEditor->setAttribute(Qt::WA_DeleteOnClose);
169  connect(d->toolBarEditor, SIGNAL(newToolBarConfig()), SLOT(saveNewToolbarConfig()));
170  }
171  d->toolBarEditor->show();
172 }
173 
174 void KXmlGuiWindow::saveNewToolbarConfig()
175 {
176  // createGUI(xmlFile()); // this loses any plugged-in guiclients, so we use remove+add instead.
177 
178  guiFactory()->removeClient(this);
179  guiFactory()->addClient(this);
180 
181  KConfigGroup cg(KGlobal::config(), QString());
182  applyMainWindowSettings(cg);
183 }
184 
185 void KXmlGuiWindow::setupGUI( StandardWindowOptions options, const QString & xmlfile ) {
186  setupGUI(QSize(), options, xmlfile);
187 }
188 
189 void KXmlGuiWindow::setupGUI( const QSize & defaultSize, StandardWindowOptions options, const QString & xmlfile ) {
190  K_D(KXmlGuiWindow);
191 
192  if( options & Keys ){
193  KStandardAction::keyBindings(guiFactory(),
194  SLOT(configureShortcuts()), actionCollection());
195  }
196 
197  if( (options & StatusBar) && statusBar() ){
198  createStandardStatusBarAction();
199  }
200 
201  if( options & ToolBar ){
202  setStandardToolBarMenuEnabled( true );
203  KStandardAction::configureToolbars(this,
204  SLOT(configureToolbars()), actionCollection());
205  }
206 
207  d->defaultSize = defaultSize;
208 
209  if( options & Create ){
210  createGUI(xmlfile);
211  }
212 
213  if (initialGeometrySet()) {
214  // Do nothing...
215  }
216  else if (d->defaultSize.isValid()) {
217  resize(d->defaultSize);
218  }
219  else if (isHidden()) {
220  adjustSize();
221  }
222 
223  if( options & Save ){
224  const KConfigGroup cg(autoSaveConfigGroup());
225  if (cg.isValid()) {
226  setAutoSaveSettings(cg);
227  } else {
228  setAutoSaveSettings();
229  }
230  }
231 }
232 void KXmlGuiWindow::createGUI( const QString &xmlfile )
233 {
234  K_D(KXmlGuiWindow);
235  // disabling the updates prevents unnecessary redraws
236  //setUpdatesEnabled( false );
237 
238  // just in case we are rebuilding, let's remove our old client
239  guiFactory()->removeClient( this );
240 
241  // make sure to have an empty GUI
242  QMenuBar* mb = menuBar();
243  if ( mb )
244  mb->clear();
245 
246  qDeleteAll( toolBars() ); // delete all toolbars
247 
248  // don't build a help menu unless the user ask for it
249  if (d->showHelpMenu) {
250  delete d->helpMenu;
251  // we always want a help menu
252  d->helpMenu = new KHelpMenu(this, componentData().aboutData(), true, actionCollection());
253  }
254 
255  const QString windowXmlFile = xmlfile.isNull() ? componentData().componentName() + "ui.rc" : xmlfile;
256 
257  // Help beginners who call setXMLFile and then setupGUI...
258  if (!xmlFile().isEmpty() && xmlFile() != windowXmlFile) {
259  kWarning() << "You called setXMLFile(" << xmlFile() << ") and then createGUI or setupGUI,"
260  << "which also calls setXMLFile and will overwrite the file you have previously set.\n"
261  << "You should call createGUI("<<xmlFile()<<") or setupGUI(<options>,"<<xmlFile()<<") instead.";
262  }
263 
264  // we always want to load in our global standards file
265  loadStandardsXmlFile();
266 
267  // now, merge in our local xml file.
268  setXMLFile(windowXmlFile, true);
269 
270  // make sure we don't have any state saved already
271  setXMLGUIBuildDocument( QDomDocument() );
272 
273  // do the actual GUI building
274  guiFactory()->reset();
275  guiFactory()->addClient( this );
276 
277  // setUpdatesEnabled( true );
278 }
279 
280 void KXmlGuiWindow::slotStateChanged(const QString &newstate)
281 {
282  stateChanged(newstate, KXMLGUIClient::StateNoReverse);
283 }
284 
285 void KXmlGuiWindow::slotStateChanged(const QString &newstate,
286  bool reverse)
287 {
288  stateChanged(newstate,
289  reverse ? KXMLGUIClient::StateReverse : KXMLGUIClient::StateNoReverse);
290 }
291 
292 void KXmlGuiWindow::setStandardToolBarMenuEnabled( bool enable )
293 {
294  K_D(KXmlGuiWindow);
295  if ( enable ) {
296  if ( d->toolBarHandler )
297  return;
298 
299  d->toolBarHandler = new KDEPrivate::ToolBarHandler( this );
300 
301  if ( factory() )
302  factory()->addClient( d->toolBarHandler );
303  } else {
304  if ( !d->toolBarHandler )
305  return;
306 
307  if ( factory() )
308  factory()->removeClient( d->toolBarHandler );
309 
310  delete d->toolBarHandler;
311  d->toolBarHandler = 0;
312  }
313 }
314 
315 bool KXmlGuiWindow::isStandardToolBarMenuEnabled() const
316 {
317  K_D(const KXmlGuiWindow);
318  return ( d->toolBarHandler );
319 }
320 
321 void KXmlGuiWindow::createStandardStatusBarAction(){
322  K_D(KXmlGuiWindow);
323  if(!d->showStatusBarAction){
324  d->showStatusBarAction = KStandardAction::showStatusbar(this, SLOT(setSettingsDirty()), actionCollection());
325  KStatusBar *sb = statusBar(); // Creates statusbar if it doesn't exist already.
326  connect(d->showStatusBarAction, SIGNAL(toggled(bool)), sb, SLOT(setVisible(bool)));
327  d->showStatusBarAction->setChecked(sb->isHidden());
328  } else {
329  // If the language has changed, we'll need to grab the new text and whatsThis
330  KAction *tmpStatusBar = KStandardAction::showStatusbar(NULL, NULL, NULL);
331  d->showStatusBarAction->setText(tmpStatusBar->text());
332  d->showStatusBarAction->setWhatsThis(tmpStatusBar->whatsThis());
333  delete tmpStatusBar;
334  }
335 }
336 
337 void KXmlGuiWindow::finalizeGUI( bool /*force*/ )
338 {
339  // FIXME: this really needs to be removed with a code more like the one we had on KDE3.
340  // what we need to do here is to position correctly toolbars so they don't overlap.
341  // Also, take in count plugins could provide their own toolbars and those also need to
342  // be restored.
343  if (autoSaveSettings() && autoSaveConfigGroup().isValid()) {
344  applyMainWindowSettings(autoSaveConfigGroup());
345  }
346 }
347 
348 void KXmlGuiWindow::applyMainWindowSettings(const KConfigGroup &config, bool force)
349 {
350  K_D(KXmlGuiWindow);
351  KMainWindow::applyMainWindowSettings(config, force);
352  KStatusBar *sb = qFindChild<KStatusBar *>(this);
353  if (sb && d->showStatusBarAction)
354  d->showStatusBarAction->setChecked(!sb->isHidden());
355 }
356 
357 // KDE5 TODO: change it to "using KXMLGUIBuilder::finalizeGUI;" in the header
358 // and remove the reimplementation
359 void KXmlGuiWindow::finalizeGUI( KXMLGUIClient *client )
360 { KXMLGUIBuilder::finalizeGUI( client ); }
361 
362 #include "kxmlguiwindow.moc"
363 
KXmlGuiWindow::toolBarMenuAction
QAction * toolBarMenuAction()
Returns a pointer to the mainwindows action responsible for the toolbars menu.
Definition: kxmlguiwindow.cpp:100
QAction::text
text
KXmlGuiWindow::configureToolbars
virtual void configureToolbars()
Show a standard configure toolbar dialog.
Definition: kxmlguiwindow.cpp:161
KXmlGuiWindow::StatusBar
adds action to show/hide the statusbar if the statusbar exists.
Definition: kxmlguiwindow.h:210
QMenuBar
QEvent
QWidget
QEvent::type
Type type() const
KXmlGuiWindow::createGUI
void createGUI(const QString &xmlfile=QString())
Create a GUI given a local XML file.
Definition: kxmlguiwindow.cpp:232
QWidget::isHidden
bool isHidden() const
KMainWindow::setSettingsDirty
void setSettingsDirty()
Tell the main window that it should save its settings when being closed.
Definition: kmainwindow.cpp:991
KXMLGUIClient::actionCollection
virtual KActionCollection * actionCollection() const
Retrieves the entire action collection for the GUI client.
Definition: kxmlguiclient.cpp:128
kdebug.h
KXMLGUIClient
A KXMLGUIClient can be used with KXMLGUIFactory to create a GUI from actions and an XML document...
Definition: kxmlguiclient.h:46
kapplication.h
KXmlGuiWindow::setHelpMenuEnabled
void setHelpMenuEnabled(bool showHelpMenu=true)
Enables the build of a standard help menu when calling createGUI/setupGUI().
Definition: kxmlguiwindow.cpp:138
KMainWindow::event
virtual bool event(QEvent *event)
Reimplemented to catch QEvent::Polish in order to adjust the object name if needed, once all constructor code for the main window has run.
Definition: kmainwindow.cpp:1061
KXMLGUIFactory::removeClient
void removeClient(KXMLGUIClient *client)
Removes the GUI described by the client, by unplugging all provided actions and removing all owned co...
Definition: kxmlguifactory.cpp:411
kauthorized.h
QMenuBar::clear
void clear()
KStandardAction::showStatusbar
KToggleAction * showStatusbar(const QObject *recvr, const char *slot, QObject *parent)
Show/Hide the statusbar.
Definition: kstandardaction.cpp:542
kactioncollection.h
KXMLGUIFactory::addClient
void addClient(KXMLGUIClient *client)
Creates the GUI described by the QDomDocument of the client, using the client's actions, and merges it with the previously created GUI.
Definition: kxmlguifactory.cpp:210
kconfig.h
QPointer< KEditToolBar >
QDBusConnection::registerObject
bool registerObject(const QString &path, QObject *object, QFlags< QDBusConnection::RegisterOption > options)
KXMLGUIClient::loadStandardsXmlFile
void loadStandardsXmlFile()
Load the ui_standards.rc file.
Definition: kxmlguiclient.cpp:192
QWidget::setVisible
virtual void setVisible(bool visible)
kxmlguifactory.h
ksessionmanager.h
KXMLGUIClient::setXMLFile
virtual void setXMLFile(const QString &file, bool merge=false, bool setXMLDoc=true)
Sets the name of the rc file containing the XML for the part.
Definition: kxmlguiclient.cpp:203
QDBusConnection::sessionBus
QDBusConnection sessionBus()
KXMLGUIClient::factory
KXMLGUIFactory * factory() const
Retrieves a pointer to the KXMLGUIFactory this client is associated with (will return 0 if the client...
Definition: kxmlguiclient.cpp:602
KXMLGUIClient::xmlFile
virtual QString xmlFile() const
This will return the name of the XML file as set by setXMLFile().
Definition: kxmlguiclient.cpp:154
KConfigGroup::isValid
bool isValid() const
KXmlGuiWindow::slotStateChanged
virtual void slotStateChanged(const QString &newstate)
Apply a state change.
Definition: kxmlguiwindow.cpp:280
KXMLGUIFactory::reset
void reset()
Use this method to free all memory allocated by the KXMLGUIFactory.
Definition: kxmlguifactory.cpp:496
kstatusbar.h
klocale.h
QWidget::adjustSize
void adjustSize()
KStatusBar
KDE statusbar widget
Definition: kstatusbar.h:59
kxmlguiwindow.h
KXMLGUIClient::StateNoReverse
Definition: kxmlguiclient.h:262
KGlobal::config
KSharedConfigPtr config()
QString::isNull
bool isNull() const
KMainWindow::menuBar
KMenuBar * menuBar()
Returns a pointer to the menu bar.
Definition: kmainwindow.cpp:1134
KXmlGuiWindow::isStandardToolBarMenuEnabled
bool isStandardToolBarMenuEnabled() const
Definition: kxmlguiwindow.cpp:315
QWidget::resize
void resize(int w, int h)
KHelpMenu
Standard KDE help menu with dialog boxes.
Definition: khelpmenu.h:110
KXmlGuiWindow
KDE top level main window with predefined action layout
Definition: kxmlguiwindow.h:61
KXMLGUIClient::stateChanged
virtual void stateChanged(const QString &newstate, ReverseStateChange reverse=StateNoReverse)
Actions can collectively be assigned a "State".
Definition: kxmlguiclient.cpp:705
KXmlGuiWindow::~KXmlGuiWindow
virtual ~KXmlGuiWindow()
Destructor.
Definition: kxmlguiwindow.cpp:118
KStandardAction::keyBindings
KAction * keyBindings(const QObject *recvr, const char *slot, QObject *parent)
Display the configure key bindings dialog.
Definition: kstandardaction.cpp:576
KXmlGuiWindow::ToolBar
adds action to show/hide the toolbar(s) and adds action to configure the toolbar(s).
Definition: kxmlguiwindow.h:199
KMainWindow
KDE top level main window
Definition: kmainwindow.h:106
KXMLGUIBuilder
Implements the creation of the GUI (menubar, menus and toolbars) as requested by the GUI factory...
Definition: kxmlguibuilder.h:41
KXMLGUIClient::componentData
virtual KComponentData componentData() const
Definition: kxmlguiclient.cpp:144
KXmlGuiWindow::setupToolbarMenuActions
void setupToolbarMenuActions()
Definition: kxmlguiwindow.cpp:110
khelpmenu.h
KXmlGuiWindow::Save
auto-saves (and loads) the toolbar/menubar/statusbar settings and window size using the default name...
Definition: kxmlguiwindow.h:222
KEditToolBar
A dialog used to customize or configure toolbars.
Definition: kedittoolbar.h:68
kcmdlineargs.h
kmenubar.h
KXmlGuiWindow::createStandardStatusBarAction
void createStandardStatusBarAction()
Sets whether KMainWindow should provide a menu that allows showing/hiding of the statusbar ( using KT...
Definition: kxmlguiwindow.cpp:321
KMainWindow::saveMainWindowSettings
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
KMainWindow::autoSaveSettings
bool autoSaveSettings() const
KComponentData::componentName
QString componentName() const
QString
kstandardaction.h
KXmlGuiWindow::event
virtual bool event(QEvent *event)
Reimplemented to catch QEvent::Polish in order to adjust the object name if needed, once all constructor code for the main window has run.
Definition: kxmlguiwindow.cpp:124
kedittoolbar.h
QAction::whatsThis
whatsThis
KXmlGuiWindow::Keys
adds action to show the key configure action.
Definition: kxmlguiwindow.h:204
KXmlGuiWindow::setupGUI
void setupGUI(StandardWindowOptions options=Default, const QString &xmlfile=QString())
Configures the current windows and its actions in the typical KDE fashion.
Definition: kxmlguiwindow.cpp:185
kaction.h
QSize
KXmlGuiWindow::guiFactory
virtual KXMLGUIFactory * guiFactory()
Definition: kxmlguiwindow.cpp:150
KMainWindow::initialGeometrySet
bool initialGeometrySet() const
KXMLGUIFactory
KXMLGUIFactory, together with KXMLGUIClient objects, can be used to create a GUI of container widgets...
Definition: kxmlguifactory.h:65
QDomDocument
KMainWindow::applyMainWindowSettings
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
KConfigGroup
KXmlGuiWindow::finalizeGUI
virtual void finalizeGUI(KXMLGUIClient *client)
Definition: kxmlguiwindow.cpp:359
ktoolbar.h
KMainWindow::setAutoSaveSettings
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
KXmlGuiWindow::saveNewToolbarConfig
virtual void saveNewToolbarConfig()
Rebuilds the GUI after KEditToolbar changed the toolbar layout.
Definition: kxmlguiwindow.cpp:174
KMainWindow::statusBar
KStatusBar * statusBar()
Returns a pointer to the status bar.
Definition: kmainwindow.cpp:1146
KXMLGUIClient::StateReverse
Definition: kxmlguiclient.h:262
KXmlGuiWindow::setStandardToolBarMenuEnabled
void setStandardToolBarMenuEnabled(bool enable)
Sets whether KMainWindow should provide a menu that allows showing/hiding the available toolbars ( us...
Definition: kxmlguiwindow.cpp:292
kstandarddirs.h
QAction
KAction
Class to encapsulate user-driven action or event.
Definition: kaction.h:216
KMainWindow::dbusName
QString dbusName() const
Returns the path under which this window's D-Bus object is exported.
Definition: kmainwindow.cpp:1220
kwindowsystem.h
kWarning
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
ktoggleaction.h
KStandardAction::configureToolbars
KAction * configureToolbars(const QObject *recvr, const char *slot, QObject *parent)
The Customize Toolbar dialog.
Definition: kstandardaction.cpp:586
KXmlGuiWindow::KXmlGuiWindow
KXmlGuiWindow(QWidget *parent=0, Qt::WindowFlags f=KDE_DEFAULT_WINDOWFLAGS)
Construct a main window.
Definition: kxmlguiwindow.cpp:88
KToggleAction
Checkbox like action.
Definition: ktoggleaction.h:40
Qt::WindowFlags
typedef WindowFlags
QObject::connect
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
KXMLGUIBuilder::finalizeGUI
virtual void finalizeGUI(KXMLGUIClient *client)
Definition: kxmlguibuilder.cpp:402
KXmlGuiWindow::Create
calls createGUI() once ToolBar, Keys and Statusbar have been taken care of.
Definition: kxmlguiwindow.h:234
KXmlGuiWindow::isHelpMenuEnabled
bool isHelpMenuEnabled() const
Return true when the help menu is enabled.
Definition: kxmlguiwindow.cpp:144
KXmlGuiWindow::applyMainWindowSettings
virtual void applyMainWindowSettings(const KConfigGroup &config, bool force=false)
Read settings for statusbar, menubar and toolbar from their respective groups in the config file and ...
Definition: kxmlguiwindow.cpp:348
kconfiggroup.h
KMainWindow::autoSaveConfigGroup
KConfigGroup autoSaveConfigGroup() const
Definition: kmainwindow.cpp:1045
KMainWindow::toolBars
QList< KToolBar * > toolBars() const
Definition: kmainwindow.cpp:1207
KXMLGUIClient::setXMLGUIBuildDocument
void setXMLGUIBuildDocument(const QDomDocument &doc)
Definition: kxmlguiclient.cpp:587
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal