kalarm/lib

buttongroup.h

00001 /*
00002  *  buttongroup.h  -  TQButtonGroup with an extra signal and TQt 2 compatibility
00003  *  Program:  kalarm
00004  *  Copyright © 2002,2004,2006 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 <tqbuttongroup.h>
00024 
00025 
00038 class ButtonGroup : public TQButtonGroup
00039 {
00040         Q_OBJECT
00041   TQ_OBJECT
00042     public:
00047         explicit ButtonGroup(TQWidget* parent, const char* name = 0);
00053         ButtonGroup(const TQString& title, TQWidget* parent, const char* name = 0);
00060         ButtonGroup(int strips, Qt::Orientation orient, TQWidget* parent, const char* name = 0);
00068         ButtonGroup(int strips, Qt::Orientation orient, const TQString& title, TQWidget* parent, const char* name = 0);
00075         int          insert(TQButton* button, int id = -1);
00080         virtual void setButton(int id)  { TQButtonGroup::setButton(id);  emit buttonSet(id); }
00081     private slots:
00082         void         slotButtonToggled(bool);
00083     signals:
00088         void         buttonSet(int id);
00089 };
00090 
00091 #endif // BUTTONGROUP_H