diff -r ceb1b1aaf7db -r c254ddc6618b src/radioGroup.h --- a/src/radioGroup.h Wed Jun 04 02:08:18 2014 +0300 +++ b/src/radioGroup.h Thu Jun 05 23:18:13 2014 +0300 @@ -29,64 +29,62 @@ class QBoxLayout; class QRadioButton; -// ============================================================================= -// RadioGroup // // Convenience widget - is a groupbox of radio buttons. -// ============================================================================= +// class RadioGroup : public QGroupBox { Q_OBJECT - public: - typedef QList::Iterator Iterator; +public: + typedef QList::Iterator Iterator; - explicit RadioGroup() - { - init (Qt::Vertical); - } + explicit RadioGroup() + { + init (Qt::Vertical); + } - explicit RadioGroup (QWidget* parent = null) : QGroupBox (parent) - { - init (Qt::Vertical); - } + explicit RadioGroup (QWidget* parent = null) : QGroupBox (parent) + { + init (Qt::Vertical); + } - explicit RadioGroup (const QString& title, QWidget* parent = null); - explicit RadioGroup (const QString& title, QList entries, int const defaultId, - const Qt::Orientation orient = Qt::Vertical, QWidget* parent = null); + explicit RadioGroup (const QString& title, QWidget* parent = null); + explicit RadioGroup (const QString& title, QList entries, int const defaultId, + const Qt::Orientation orient = Qt::Vertical, QWidget* parent = null); - void addButton (const char* entry); - void addButton (QRadioButton* button); - Iterator begin(); - Iterator end(); - void init (Qt::Orientation orient); - bool isChecked (int n) const; - void rowBreak(); - void setCurrentRow (int row); - void setValue (int val); - int value() const; + void addButton (const char* entry); + void addButton (QRadioButton* button); + Iterator begin(); + Iterator end(); + void init (Qt::Orientation orient); + bool isChecked (int n) const; + void rowBreak(); + void setCurrentRow (int row); + void setValue (int val); + int value() const; - QRadioButton* operator[] (int n) const; - RadioGroup& operator<< (QRadioButton* button); - RadioGroup& operator<< (const char* entry); + QRadioButton* operator[] (int n) const; + RadioGroup& operator<< (QRadioButton* button); + RadioGroup& operator<< (const char* entry); - signals: - void buttonPressed (int btn); - void buttonReleased (int btn); - void valueChanged (int val); +signals: + void buttonPressed (int btn); + void buttonReleased (int btn); + void valueChanged (int val); - private: - QList m_objects; - QList m_layouts; - QBoxLayout* m_coreLayout; - QBoxLayout* m_currentLayout; - bool m_vert; - int m_curId, m_defId, m_oldId; - QButtonGroup* m_buttonGroup; +private: + QList m_objects; + QList m_layouts; + QBoxLayout* m_coreLayout; + QBoxLayout* m_currentLayout; + bool m_vert; + int m_curId, m_defId, m_oldId; + QButtonGroup* m_buttonGroup; - Q_DISABLE_COPY (RadioGroup) + Q_DISABLE_COPY (RadioGroup) - private slots: - void slot_buttonPressed (int btn); - void slot_buttonReleased (int btn); +private slots: + void slot_buttonPressed (int btn); + void slot_buttonReleased (int btn); };