52 |
52 |
53 explicit RadioGroup (const QString& title, QWidget* parent = null); |
53 explicit RadioGroup (const QString& title, QWidget* parent = null); |
54 explicit RadioGroup (const QString& title, initlist<char const*> entries, int const defaultId, |
54 explicit RadioGroup (const QString& title, initlist<char const*> entries, int const defaultId, |
55 const Qt::Orientation orient = Qt::Vertical, QWidget* parent = null); |
55 const Qt::Orientation orient = Qt::Vertical, QWidget* parent = null); |
56 |
56 |
57 void addButton (const char* entry); |
57 void addButton (const char* entry); |
58 void addButton (QRadioButton* button); |
58 void addButton (QRadioButton* button); |
59 it begin (); |
59 Iterator begin(); |
60 it end (); |
60 Iterator end(); |
61 void init (Qt::Orientation orient); |
61 void init (Qt::Orientation orient); |
62 bool isChecked (int n) const; |
62 bool isChecked (int n) const; |
63 void rowBreak (); |
63 void rowBreak(); |
64 void setCurrentRow (uint row); |
64 void setCurrentRow (uint row); |
65 void setValue (int val); |
65 void setValue (int val); |
66 int value () const; |
66 int value() const; |
67 |
67 |
68 QRadioButton* operator[] (uint n) const; |
68 QRadioButton* operator[] (uint n) const; |
69 RadioGroup& operator<< (QRadioButton* button); |
69 RadioGroup& operator<< (QRadioButton* button); |
70 RadioGroup& operator<< (const char* entry); |
70 RadioGroup& operator<< (const char* entry); |
71 |
71 |
72 signals: |
72 signals: |
73 void buttonPressed (int btn); |
73 void buttonPressed (int btn); |
74 void buttonReleased (int btn); |
74 void buttonReleased (int btn); |
75 void valueChanged (int val); |
75 void valueChanged (int val); |