• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • 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;
00066 class KDEUI_EXPORT KEditToolBar : public KDialog
00067 {
00068     Q_OBJECT
00069 public:
00082   explicit KEditToolBar(KActionCollection *collection,
00083                         QWidget* parent = 0);
00084 
00103   explicit KEditToolBar( KXMLGUIFactory* factory,
00104                          QWidget* parent = 0 );
00105 
00107   ~KEditToolBar();
00108 
00116   void setDefaultToolBar( const QString& toolBarName );
00117 
00135   void setResourceFile( const QString& file, bool global = true );
00136 
00143   static void setGlobalDefaultToolBar(const char *toolBarName); // TODO should be const QString&
00144 
00145 Q_SIGNALS:
00151   void newToolBarConfig();
00152 
00153   QT_MOC_COMPAT void newToolbarConfig();
00154 
00155 protected:
00156   virtual void showEvent(QShowEvent* event);
00157   virtual void hideEvent(QHideEvent* event);
00158 
00159 private:
00160   friend class KEditToolBarPrivate;
00161   KEditToolBarPrivate *const d;
00162 
00163   Q_PRIVATE_SLOT( d, void _k_slotOk() )
00164   Q_PRIVATE_SLOT( d, void _k_slotApply() )
00165   Q_PRIVATE_SLOT( d, void _k_acceptOK(bool) )
00166   Q_PRIVATE_SLOT( d, void _k_slotDefault() )
00167 
00168   Q_DISABLE_COPY(KEditToolBar)
00169 };
00170 
00171 #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
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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