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

KDEUI

kedittoolbar.h

Go to the documentation of this file.
00001 // -*- mode: c++; c-basic-offset: 2 -*-
00002 /* This file is part of the KDE libraries
00003    Copyright (C) 2000 Kurt Granroth <granroth@kde.org>
00004    Copyright (C) 2006 Hamish Rodda <rodda@kde.org>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License version 2 as published by the Free Software Foundation.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 */
00020 #ifndef KEDITTOOLBAR_H
00021 #define KEDITTOOLBAR_H
00022 
00023 #include <kdialog.h>
00024 
00025 class KActionCollection;
00026 
00027 class KEditToolBarPrivate;
00028 class KXMLGUIFactory;
00068 class KDEUI_EXPORT KEditToolBar : public KDialog
00069 {
00070     Q_OBJECT
00071 public:
00083   explicit KEditToolBar(KActionCollection *collection,
00084                         QWidget* parent = 0);
00085 
00104   explicit KEditToolBar( KXMLGUIFactory* factory,
00105                          QWidget* parent = 0 );
00106 
00108   ~KEditToolBar();
00109 
00117   void setDefaultToolBar( const QString& toolBarName );
00118 
00136   void setResourceFile( const QString& file, bool global = true );
00137 
00144   static void setGlobalDefaultToolBar(const char *toolBarName); // TODO should be const QString&
00145 
00146 Q_SIGNALS:
00152   void newToolBarConfig();
00153 
00154   QT_MOC_COMPAT void newToolbarConfig();
00155 
00156 protected:
00157   virtual void showEvent(QShowEvent* event);
00158   virtual void hideEvent(QHideEvent* event);
00159 
00160 private:
00161   friend class KEditToolBarPrivate;
00162   KEditToolBarPrivate *const d;
00163 
00164   Q_PRIVATE_SLOT( d, void _k_slotOk() )
00165   Q_PRIVATE_SLOT( d, void _k_slotApply() )
00166   Q_PRIVATE_SLOT( d, void _k_acceptOK(bool) )
00167   Q_PRIVATE_SLOT( d, void _k_slotDefault() )
00168 
00169   Q_DISABLE_COPY(KEditToolBar)
00170 };
00171 
00172 #endif // _KEDITTOOLBAR_H

KDEUI

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • 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
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal