kalarm Library API Documentation

buttongroup.h

00001 /*
00002  *  buttongroup.h  -  QButtonGroup with an extra signal and KDE 2 compatibility
00003  *  Program:  kalarm
00004  *  (C) 2002 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
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  *
00020  *  As a special exception, permission is given to link this program
00021  *  with any edition of Qt, and distribute the resulting executable,
00022  *  without including the source code for Qt in the source distribution.
00023  */
00024 #ifndef BUTTONGROUP_H
00025 #define BUTTONGROUP_H
00026 
00027 #include <qbuttongroup.h>
00028 
00029 
00030 class ButtonGroup : public QButtonGroup
00031 {
00032                 Q_OBJECT
00033         public:
00034                 ButtonGroup(QWidget* parent, const char* name = 0L);
00035                 ButtonGroup(const QString& title, QWidget* parent, const char* name = 0L);
00036                 ButtonGroup(int strips, Qt::Orientation, QWidget* parent, const char* name = 0L);
00037                 ButtonGroup(int strips, Qt::Orientation, const QString& title, QWidget* parent, const char* name = 0L);
00038                 virtual void setButton(int id)  { QButtonGroup::setButton(id);  emit buttonSet(id); }
00039 #if QT_VERSION < 300
00040                 void setInsideMargin(int) { }
00041         protected:
00042                 virtual void childEvent(QChildEvent*);
00043         private:
00044                 int  defaultAlignment;
00045 #endif
00046         signals:
00047                 void buttonSet(int id);
00048 };
00049 
00050 #endif // BUTTONGROUP_H
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:41:02 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001