10 #include <qstringlist.h>
13 #pragma warning( disable:4251 )
19 class QDS_EXPORT QDS_RadioBox : public QDS_Datum
24 QDS_RadioBox( const QString&, QWidget* = 0, const int = All, const QString& = QString::null );
25 virtual ~QDS_RadioBox();
27 int count( bool = false ) const;
28 void values( QValueList<int>&, bool = false ) const;
31 void setColumns( const int );
33 bool state( const int ) const;
34 void setState( const bool, const int, const bool = true );
35 void setState( const bool, const QValueList<int>&, const bool = true );
36 void setValues( const QValueList<int>&, const QStringList& );
37 void setValues( const QStringList& );
40 void activated( int );
43 virtual void onToggled( bool );
46 QButtonGroup* buttonGroup() const;
47 virtual QWidget* createControl( QWidget* );
48 void buttons( QPtrList<QRadioButton>& ) const;
50 virtual QString getString() const;
51 virtual void setString( const QString& );
53 virtual void unitSystemChanged( const QString& );
56 void updateRadioBox();
59 typedef QMap<int, QString> IdValueMap;
60 typedef QMap<int, bool> IdStateMap;
68 QStringList myUserNames;
72 #pragma warning( default:4251 )