equal
deleted
inserted
replaced
23 |
23 |
24 #ifndef ABSTRACTPAGE_H |
24 #ifndef ABSTRACTPAGE_H |
25 #define ABSTRACTPAGE_H |
25 #define ABSTRACTPAGE_H |
26 |
26 |
27 #include <QWidget> |
27 #include <QWidget> |
28 #include <QPushButton> |
28 #include <qpushbuttonwithsound.h> |
29 #include <QFont> |
29 #include <QFont> |
30 #include <QGridLayout> |
30 #include <QGridLayout> |
31 #include <QComboBox> |
31 #include <QComboBox> |
32 #include <QSignalMapper> |
32 #include <QSignalMapper> |
33 |
33 |
34 class QPushButton; |
34 class QPushButtonWithSound; |
35 class QGroupBox; |
35 class QGroupBox; |
36 class QComboBox; |
36 class QComboBox; |
37 class QLabel; |
37 class QLabel; |
38 class QToolBox; |
38 class QToolBox; |
39 class QLineEdit; |
39 class QLineEdit; |
132 * @param name name of the button - used as its text if not hasIcon. |
132 * @param name name of the button - used as its text if not hasIcon. |
133 * @param hasIcon set to true if this is a picture button. |
133 * @param hasIcon set to true if this is a picture button. |
134 * |
134 * |
135 * @return the button. |
135 * @return the button. |
136 */ |
136 */ |
137 QPushButton * formattedButton(const QString & name, bool hasIcon = false); |
137 QPushButtonWithSound * formattedButton(const QString & name, bool hasIcon = false); |
138 |
138 |
139 /** |
139 /** |
140 * @brief Creates a default formatted button and adds it to a |
140 * @brief Creates a default formatted button and adds it to a |
141 * grid layout at the location specified. |
141 * grid layout at the location specified. |
142 * |
142 * |
148 * @param columnSpan how many layout columns the button will span. |
148 * @param columnSpan how many layout columns the button will span. |
149 * @param hasIcon set to true if this is a picture button. |
149 * @param hasIcon set to true if this is a picture button. |
150 * |
150 * |
151 * @return the button. |
151 * @return the button. |
152 */ |
152 */ |
153 QPushButton * addButton(const QString & name, QGridLayout * grid, int row, int column, int rowSpan = 1, int columnSpan = 1, bool hasIcon = false); |
153 QPushButtonWithSound * addButton(const QString & name, QGridLayout * grid, int row, int column, int rowSpan = 1, int columnSpan = 1, bool hasIcon = false); |
154 |
154 |
155 /** |
155 /** |
156 * @brief Creates a default formatted button and adds it to a |
156 * @brief Creates a default formatted button and adds it to a |
157 * grid layout at the location specified. |
157 * grid layout at the location specified. |
158 * |
158 * |
161 * @param where layout ndex in which to insert the button. |
161 * @param where layout ndex in which to insert the button. |
162 * @param hasIcon set to true if this is a picture button. |
162 * @param hasIcon set to true if this is a picture button. |
163 * |
163 * |
164 * @return the button. |
164 * @return the button. |
165 */ |
165 */ |
166 QPushButton * addButton(const QString & name, QBoxLayout * box, int where, bool hasIcon = false); |
166 QPushButtonWithSound * addButton(const QString & name, QBoxLayout * box, int where, bool hasIcon = false); |
167 |
167 |
168 /** |
168 /** |
169 * @brief Changes visibility of the back-button. |
169 * @brief Changes visibility of the back-button. |
170 * |
170 * |
171 * @param visible set to true if the button should be visible. |
171 * @param visible set to true if the button should be visible. |
175 QFont * font14; ///< used font |
175 QFont * font14; ///< used font |
176 |
176 |
177 QLabel * descLabel; ///< text description |
177 QLabel * descLabel; ///< text description |
178 QString * defautDesc; |
178 QString * defautDesc; |
179 |
179 |
180 private: |
180 QPushButtonWithSound * btnBack; ///< back button |
181 |
|
182 QPushButton * btnBack; ///< back button |
|
183 }; |
181 }; |
184 |
182 |
185 #endif |
183 #endif |
186 |
184 |