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

KDEUI

  • 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
25class KActionCollection;
26
27class KEditToolBarPrivate;
28class KXMLGUIFactory;
68class KDEUI_EXPORT KEditToolBar : public KDialog
69{
70 Q_OBJECT
71public:
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
146Q_SIGNALS:
152 void newToolBarConfig();
153
154 QT_MOC_COMPAT void newToolbarConfig();
155
156protected:
157 virtual void showEvent(QShowEvent* event);
158 virtual void hideEvent(QHideEvent* event);
159
160private:
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
KActionCollection
A container for a set of QAction objects.
Definition: kactioncollection.h:57
KDialog
A dialog base class with standard buttons and predefined layouts.
Definition: kdialog.h:129
KEditToolBar
A dialog used to customize or configure toolbars.
Definition: kedittoolbar.h:69
KEditToolBar::newToolBarConfig
void newToolBarConfig()
Signal emitted when 'apply' or 'ok' is clicked or toolbars were reset.
KEditToolBar::newToolbarConfig
QT_MOC_COMPAT void newToolbarConfig()
KXMLGUIFactory
KXMLGUIFactory, together with KXMLGUIClient objects, can be used to create a GUI of container widgets...
Definition: kxmlguifactory.h:66
QWidget
kdialog.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
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