/****************************************************************************
** $Id: qbuttongroup.h,v 2.7.2.2 1998/08/21 19:13:24 hanord Exp $
**
** Definition of QButtonGroup class
**
** Created : 950130
**
** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved.
**
** This file is part of Troll Tech's internal development tree for Qt.
**
** This header text will be replaced by an appropriate text by the
** mkdist script which generates external distributions.
**
** If you are using the Qt Professional Edition or the Qt Free Edition,
** please notify Troll Tech at <info@troll.no> if you see this text.
**
** To Troll Tech developers: This header was generated by the script
** fixcopyright-int. It has the same number of text lines as the free
** and professional editions to avoid line number inconsistency.
**
*****************************************************************************/
#ifndef QBUTTONGROUP_H
#define QBUTTONGROUP_H
#ifndef QT_H
#include "qgroupbox.h"
#endif // QT_H
class QButton;
class QButtonList;
class Q_EXPORT QButtonGroup : public QGroupBox
{
Q_OBJECT
public:
QButtonGroup( QWidget *parent=0, const char *name=0 );
QButtonGroup( const char *title, QWidget *parent=0, const char *name=0 );
~QButtonGroup();
bool isExclusive() const;
void setExclusive( bool );
int insert( QButton *, int id=-1 );
void remove( QButton * );
QButton *find( int id ) const;
void setButton( int id );
signals:
void pressed( int id );
void released( int id );
void clicked( int id );
protected slots:
void buttonPressed();
void buttonReleased();
void buttonClicked();
void buttonToggled( bool on );
private:
void init();
bool excl_grp;
QButtonList *buttons;
private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY)
QButtonGroup( const QButtonGroup & );
QButtonGroup &operator=( const QButtonGroup & );
#endif
};
#endif // QBUTTONGROUP_H
| Copyright © 1998 Troll Tech | Trademarks | Qt version 1.41
|