ktoolbarradiogroup.h

00001 /* This file is part of the KDE libraries
00002     Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org)
00003               (C) 1997, 1998 Sven Radej (radej@kde.org)
00004               (C) 1997, 1998 Mark Donohoe (donohoe@kde.org)
00005               (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org)
00006 
00007     This library is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU Library General Public
00009     License version 2 as published by the Free Software Foundation.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to
00018     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019     Boston, MA 02110-1301, USA.
00020     */
00021 
00022 #ifndef _KTOOLBARRADIOGROUP_H
00023 #define _KTOOLBARRADIOGROUP_H
00024 
00025 #include <qobject.h>
00026 
00027 #include <kdelibs_export.h>
00028 
00029 class KToolBar;
00030 class KToolBarButtonList;
00031 class KToolBarRadioGroupPrivate;
00032 
00033 /*************************************************************************
00034  *                          KToolBarRadioGroup                                  *
00035  *************************************************************************/
00049 class KDEUI_EXPORT KToolBarRadioGroup : public QObject
00050 {
00051   Q_OBJECT
00052 
00053 public:
00057   KToolBarRadioGroup (KToolBar *_parent, const char *_name=0);
00061   ~KToolBarRadioGroup ();
00062 
00067   void addButton (int id);
00068 
00073   void removeButton (int id);
00074 
00075 public slots:
00079   void slotToggled (int);
00080 
00081 private:
00082   KToolBarButtonList *buttons;
00083   KToolBar *tb;
00084 
00085   KToolBarRadioGroupPrivate *d;
00086 };
00087 
00088 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys