• 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
  • dialogs
kedittoolbar.h
Go to the documentation of this file.
1 // -*- mode: c++; c-basic-offset: 2 -*-
2 /* This file is part of the KDE libraries
3  Copyright (C) 2000 Kurt Granroth <granroth@kde.org>
4  Copyright (C) 2006 Hamish Rodda <rodda@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License version 2 as published by the Free Software Foundation.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 #ifndef KEDITTOOLBAR_H
21 #define KEDITTOOLBAR_H
22 
23 #include <kdialog.h>
24 
25 class KActionCollection;
26 
27 class KEditToolBarPrivate;
28 class KXMLGUIFactory;
68 class KDEUI_EXPORT KEditToolBar : public KDialog
69 {
70  Q_OBJECT
71 public:
83  explicit KEditToolBar(KActionCollection *collection,
84  QWidget* parent = 0);
85 
104  explicit KEditToolBar( KXMLGUIFactory* factory,
105  QWidget* parent = 0 );
106 
108  ~KEditToolBar();
109 
117  void setDefaultToolBar( const QString& toolBarName );
118 
136  void setResourceFile( const QString& file, bool global = true );
137 
144  static void setGlobalDefaultToolBar(const char *toolBarName); // TODO should be const QString&
145 
146 Q_SIGNALS:
152  void newToolBarConfig();
153 
154  QT_MOC_COMPAT void newToolbarConfig();
155 
156 protected:
157  virtual void showEvent(QShowEvent* event);
158  virtual void hideEvent(QHideEvent* event);
159 
160 private:
161  friend class KEditToolBarPrivate;
162  KEditToolBarPrivate *const d;
163 
164  Q_PRIVATE_SLOT( d, void _k_slotOk() )
165  Q_PRIVATE_SLOT( d, void _k_slotApply() )
166  Q_PRIVATE_SLOT( d, void _k_acceptOK(bool) )
167  Q_PRIVATE_SLOT( d, void _k_slotDefault() )
168 
169  Q_DISABLE_COPY(KEditToolBar)
170 };
171 
172 #endif // _KEDITTOOLBAR_H
QHideEvent
kdialog.h
QWidget
KActionCollection
A container for a set of QAction objects.
Definition: kactioncollection.h:56
KDialog
A dialog base class with standard buttons and predefined layouts.
Definition: kdialog.h:128
QShowEvent
KEditToolBar
A dialog used to customize or configure toolbars.
Definition: kedittoolbar.h:68
QString
KXMLGUIFactory
KXMLGUIFactory, together with KXMLGUIClient objects, can be used to create a GUI of container widgets...
Definition: kxmlguifactory.h:65
KDialog::hideEvent
virtual void hideEvent(QHideEvent *)
Emits the hidden signal.
Definition: kdialog.cpp:993
QDialog::showEvent
virtual void showEvent(QShowEvent *event)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 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