kalarm/lib

buttongroup.h

00001 /*
00002  *  buttongroup.h  -  QButtonGroup with an extra signal and Qt 2 compatibility
00003  *  Program:  kalarm
00004  *  Copyright (c) 2002, 2004 by David Jarvie <software@astrojar.org.uk>
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program 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
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License along
00017  *  with this program; if not, write to the Free Software Foundation, Inc.,
00018  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019  */
00020 #ifndef BUTTONGROUP_H
00021 #define BUTTONGROUP_H
00022 
00023 #include <qbuttongroup.h>
00024 
00025 
00038 class ButtonGroup : public QButtonGroup
00039 {
00040         Q_OBJECT
00041     public:
00046         ButtonGroup(QWidget* parent, const char* name = 0);
00052         ButtonGroup(const QString& title, QWidget* parent, const char* name = 0);
00059         ButtonGroup(int strips, Qt::Orientation orient, QWidget* parent, const char* name = 0);
00067         ButtonGroup(int strips, Qt::Orientation orient, const QString& title, QWidget* parent, const char* name = 0);
00074         int          insert(QButton* button, int id = -1);
00079         virtual void setButton(int id)  { QButtonGroup::setButton(id);  emit buttonSet(id); }
00080     private slots:
00081         void         slotButtonToggled(bool);
00082     signals:
00087         void         buttonSet(int id);
00088 };
00089 
00090 #endif // BUTTONGROUP_H
KDE Home | KDE Accessibility Home | Description of Access Keys