-rw-r--r-- | libopie/otabwidget.h | 2 | ||||
-rw-r--r-- | libopie2/opieui/otabwidget.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libopie/otabwidget.h b/libopie/otabwidget.h index acb9223..047eaa1 100644 --- a/libopie/otabwidget.h +++ b/libopie/otabwidget.h | |||
@@ -163,123 +163,123 @@ public: | |||
163 | * | 163 | * |
164 | * @param p New position of widget selection control. | 164 | * @param p New position of widget selection control. |
165 | */ | 165 | */ |
166 | void setTabPosition( TabPosition ); | 166 | void setTabPosition( TabPosition ); |
167 | 167 | ||
168 | /** | 168 | /** |
169 | * @fn setCurrentTab( QWidget *childwidget ) | 169 | * @fn setCurrentTab( QWidget *childwidget ) |
170 | * @brief Selects and brings to top the desired widget by using widget pointer. | 170 | * @brief Selects and brings to top the desired widget by using widget pointer. |
171 | * | 171 | * |
172 | * @param childwidget Widget to select. | 172 | * @param childwidget Widget to select. |
173 | */ | 173 | */ |
174 | void setCurrentTab( QWidget * ); | 174 | void setCurrentTab( QWidget * ); |
175 | 175 | ||
176 | /** | 176 | /** |
177 | * @fn setCurrentTab( const QString &tabname ) | 177 | * @fn setCurrentTab( const QString &tabname ) |
178 | * @brief Selects and brings to top the desired widget, by using label. | 178 | * @brief Selects and brings to top the desired widget, by using label. |
179 | * | 179 | * |
180 | * @param tabname Text label for widget to select. | 180 | * @param tabname Text label for widget to select. |
181 | */ | 181 | */ |
182 | void setCurrentTab( const QString & ); | 182 | void setCurrentTab( const QString & ); |
183 | 183 | ||
184 | /** | 184 | /** |
185 | * @fn setCurrentTab( int ) | 185 | * @fn setCurrentTab( int ) |
186 | * @brief Selects and brings to top the desired widget, by using id. | 186 | * @brief Selects and brings to top the desired widget, by using id. |
187 | * | 187 | * |
188 | * @param tab id for widget to select. | 188 | * @param tab id for widget to select. |
189 | */ | 189 | */ |
190 | void setCurrentTab(int); | 190 | void setCurrentTab(int); |
191 | 191 | ||
192 | /** | 192 | /** |
193 | * @fn sizeHint()const | 193 | * @fn sizeHint()const |
194 | * @brief Reimplemented for internal purposes. | 194 | * @brief Reimplemented for internal purposes. |
195 | */ | 195 | */ |
196 | QSize sizeHint() const; | 196 | QSize sizeHint() const; |
197 | 197 | ||
198 | /** | 198 | /** |
199 | * @fn currentTab( ) | 199 | * @fn currentTab( ) |
200 | * @brief returns current tab id. | 200 | * @brief returns current tab id. |
201 | */ | 201 | */ |
202 | // ### make const | 202 | // ### make const |
203 | int currentTab()/* const */; | 203 | int currentTab()/* const */; |
204 | /** | 204 | /** |
205 | * @brief returns the current page of the active tab | 205 | * @brief returns the current page of the active tab |
206 | * | 206 | * |
207 | * @since 1.2 | 207 | * @since 1.2 |
208 | */ | 208 | */ |
209 | QWidget* currentWidget()const; | 209 | QWidget* currentWidget()const; |
210 | 210 | ||
211 | protected: | 211 | protected: |
212 | 212 | ||
213 | /** | 213 | /** |
214 | * @fn resizeEvent( QResizeEvent * ) | 214 | * @fn resizeEvent( QResizeEvent * ) |
215 | * @brief Reimplemented for internal purposes. | 215 | * @brief Reimplemented for internal purposes. |
216 | */ | 216 | */ |
217 | void resizeEvent( QResizeEvent * ); | 217 | void resizeEvent( QResizeEvent * ); |
218 | 218 | ||
219 | private: | 219 | private: |
220 | OTabInfoList tabs; | 220 | OTabInfoList tabs; |
221 | OTabInfo *currTab; | 221 | OTabInfo *currTab; |
222 | 222 | ||
223 | TabStyle tabBarStyle; | 223 | TabStyle tabBarStyle; |
224 | TabPosition tabBarPosition; | 224 | TabPosition tabBarPosition; |
225 | 225 | ||
226 | QWidgetStack *tabBarStack; | 226 | QWidgetStack *tabBarStack; |
227 | OTabBar *tabBar; | 227 | OTabBar *tabBar; |
228 | QComboBox *tabList; | 228 | QComboBox *tabList; |
229 | 229 | ||
230 | QWidgetStack *widgetStack; | 230 | QWidgetStack *widgetStack; |
231 | class Private; | 231 | class Private; |
232 | Private* d; | 232 | Private* d; |
233 | 233 | ||
234 | /** | 234 | /** |
235 | * @fn loadSmooth( const QString &name ) | 235 | * @fn loadSmooth( const QString &name ) |
236 | * @brief Loads icon for widget. | 236 | * @brief Loads icon for widget. |
237 | * | 237 | * |
238 | * @param name Name of icon image file. | 238 | * @param name Name of icon image file. |
239 | */ | 239 | */ |
240 | QPixmap loadSmooth( const QString & ); | 240 | QPixmap loadSmooth( const QString & ); |
241 | 241 | ||
242 | /** | 242 | /** |
243 | * @fn selectTab( OTabInfo *tab ) | 243 | * @fn selectTab( OTabInfo *tab ) |
244 | * @brief Internal function to select desired widget. | 244 | * @brief Internal function to select desired widget. |
245 | * | 245 | * |
246 | * @param tab Pointer to data for widget. | 246 | * @param tab Pointer to data for widget. |
247 | */ | 247 | */ |
248 | void selectTab( OTabInfo * ); | 248 | void selectTab( OTabInfo * ); |
249 | 249 | ||
250 | /** | 250 | /** |
251 | * @fn setUpLayout() | 251 | * @fn setUpLayout() |
252 | * @brief Internal function to adjust layout. | 252 | * @brief Internal function to adjust layout. |
253 | */ | 253 | */ |
254 | void setUpLayout(); | 254 | void setUpLayout(); |
255 | 255 | ||
256 | 256 | ||
257 | signals: | 257 | signals: |
258 | /** | 258 | /** |
259 | * @fn currentChanegd( QWidget *widget ) | 259 | * @fn currentChanged( QWidget *widget ) |
260 | * @brief This signal is emitted whenever the widget has changed. | 260 | * @brief This signal is emitted whenever the widget has changed. |
261 | * | 261 | * |
262 | * @param widget Pointer to new current widget. | 262 | * @param widget Pointer to new current widget. |
263 | */ | 263 | */ |
264 | void currentChanged( QWidget * ); | 264 | void currentChanged( QWidget * ); |
265 | 265 | ||
266 | private slots: | 266 | private slots: |
267 | 267 | ||
268 | /** | 268 | /** |
269 | * @fn slotTabBarSelected( int id ) | 269 | * @fn slotTabBarSelected( int id ) |
270 | * @brief Slot which is called when a tab is selected. | 270 | * @brief Slot which is called when a tab is selected. |
271 | * | 271 | * |
272 | * @param id ID of widget selected. | 272 | * @param id ID of widget selected. |
273 | */ | 273 | */ |
274 | void slotTabBarSelected( int ); | 274 | void slotTabBarSelected( int ); |
275 | 275 | ||
276 | /** | 276 | /** |
277 | * @fn slotTabListSelected( int index ) | 277 | * @fn slotTabListSelected( int index ) |
278 | * @brief Slot which is called when a drop down selection is made. | 278 | * @brief Slot which is called when a drop down selection is made. |
279 | * | 279 | * |
280 | * @param id Index of widget selected. | 280 | * @param id Index of widget selected. |
281 | */ | 281 | */ |
282 | void slotTabListSelected( int ); | 282 | void slotTabListSelected( int ); |
283 | }; | 283 | }; |
284 | 284 | ||
285 | #endif | 285 | #endif |
diff --git a/libopie2/opieui/otabwidget.h b/libopie2/opieui/otabwidget.h index 6a64b7d..b3423e8 100644 --- a/libopie2/opieui/otabwidget.h +++ b/libopie2/opieui/otabwidget.h | |||
@@ -167,126 +167,126 @@ class OTabWidget : public QWidget | |||
167 | * | 167 | * |
168 | * @param p New position of widget selection control. | 168 | * @param p New position of widget selection control. |
169 | */ | 169 | */ |
170 | void setTabPosition( TabPosition ); | 170 | void setTabPosition( TabPosition ); |
171 | 171 | ||
172 | /** | 172 | /** |
173 | * @fn setCurrentTab( QWidget *childwidget ) | 173 | * @fn setCurrentTab( QWidget *childwidget ) |
174 | * @brief Selects and brings to top the desired widget by using widget pointer. | 174 | * @brief Selects and brings to top the desired widget by using widget pointer. |
175 | * | 175 | * |
176 | * @param childwidget Widget to select. | 176 | * @param childwidget Widget to select. |
177 | */ | 177 | */ |
178 | void setCurrentTab( QWidget * ); | 178 | void setCurrentTab( QWidget * ); |
179 | 179 | ||
180 | /** | 180 | /** |
181 | * @fn setCurrentTab( const QString &tabname ) | 181 | * @fn setCurrentTab( const QString &tabname ) |
182 | * @brief Selects and brings to top the desired widget, by using label. | 182 | * @brief Selects and brings to top the desired widget, by using label. |
183 | * | 183 | * |
184 | * @param tabname Text label for widget to select. | 184 | * @param tabname Text label for widget to select. |
185 | */ | 185 | */ |
186 | void setCurrentTab( const QString & ); | 186 | void setCurrentTab( const QString & ); |
187 | 187 | ||
188 | /** | 188 | /** |
189 | * @fn setCurrentTab( int ) | 189 | * @fn setCurrentTab( int ) |
190 | * @brief Selects and brings to top the desired widget, by using id. | 190 | * @brief Selects and brings to top the desired widget, by using id. |
191 | * | 191 | * |
192 | * @param tab id for widget to select. | 192 | * @param tab id for widget to select. |
193 | */ | 193 | */ |
194 | void setCurrentTab(int); | 194 | void setCurrentTab(int); |
195 | 195 | ||
196 | /** | 196 | /** |
197 | * @fn sizeHint()const | 197 | * @fn sizeHint()const |
198 | * @brief Reimplemented for internal purposes. | 198 | * @brief Reimplemented for internal purposes. |
199 | */ | 199 | */ |
200 | QSize sizeHint() const; | 200 | QSize sizeHint() const; |
201 | 201 | ||
202 | /** | 202 | /** |
203 | * @fn currentTab( ) | 203 | * @fn currentTab( ) |
204 | * @brief returns current tab id. | 204 | * @brief returns current tab id. |
205 | */ | 205 | */ |
206 | // ### make const | 206 | // ### make const |
207 | int currentTab()/* const */; | 207 | int currentTab()/* const */; |
208 | /** | 208 | /** |
209 | * @brief returns the current page of the active tab | 209 | * @brief returns the current page of the active tab |
210 | * | 210 | * |
211 | * @since 1.2 | 211 | * @since 1.2 |
212 | */ | 212 | */ |
213 | QWidget* currentWidget()const; | 213 | QWidget* currentWidget()const; |
214 | 214 | ||
215 | protected: | 215 | protected: |
216 | 216 | ||
217 | /** | 217 | /** |
218 | * @fn resizeEvent( QResizeEvent * ) | 218 | * @fn resizeEvent( QResizeEvent * ) |
219 | * @brief Reimplemented for internal purposes. | 219 | * @brief Reimplemented for internal purposes. |
220 | */ | 220 | */ |
221 | void resizeEvent( QResizeEvent * ); | 221 | void resizeEvent( QResizeEvent * ); |
222 | 222 | ||
223 | private: | 223 | private: |
224 | OTabInfoList tabs; | 224 | OTabInfoList tabs; |
225 | OTabInfo *currTab; | 225 | OTabInfo *currTab; |
226 | 226 | ||
227 | TabStyle tabBarStyle; | 227 | TabStyle tabBarStyle; |
228 | TabPosition tabBarPosition; | 228 | TabPosition tabBarPosition; |
229 | 229 | ||
230 | QWidgetStack *tabBarStack; | 230 | QWidgetStack *tabBarStack; |
231 | OTabBar *tabBar; | 231 | OTabBar *tabBar; |
232 | QComboBox *tabList; | 232 | QComboBox *tabList; |
233 | 233 | ||
234 | QWidgetStack *widgetStack; | 234 | QWidgetStack *widgetStack; |
235 | class Private; | 235 | class Private; |
236 | Private* d; | 236 | Private* d; |
237 | 237 | ||
238 | /** | 238 | /** |
239 | * @fn loadSmooth( const QString &name ) | 239 | * @fn loadSmooth( const QString &name ) |
240 | * @brief Loads icon for widget. | 240 | * @brief Loads icon for widget. |
241 | * | 241 | * |
242 | * @param name Name of icon image file. | 242 | * @param name Name of icon image file. |
243 | */ | 243 | */ |
244 | QPixmap loadSmooth( const QString & ); | 244 | QPixmap loadSmooth( const QString & ); |
245 | 245 | ||
246 | /** | 246 | /** |
247 | * @fn selectTab( OTabInfo *tab ) | 247 | * @fn selectTab( OTabInfo *tab ) |
248 | * @brief Internal function to select desired widget. | 248 | * @brief Internal function to select desired widget. |
249 | * | 249 | * |
250 | * @param tab Pointer to data for widget. | 250 | * @param tab Pointer to data for widget. |
251 | */ | 251 | */ |
252 | void selectTab( OTabInfo * ); | 252 | void selectTab( OTabInfo * ); |
253 | 253 | ||
254 | /** | 254 | /** |
255 | * @fn setUpLayout() | 255 | * @fn setUpLayout() |
256 | * @brief Internal function to adjust layout. | 256 | * @brief Internal function to adjust layout. |
257 | */ | 257 | */ |
258 | void setUpLayout(); | 258 | void setUpLayout(); |
259 | 259 | ||
260 | 260 | ||
261 | signals: | 261 | signals: |
262 | /** | 262 | /** |
263 | * @fn currentChanegd( QWidget *widget ) | 263 | * @fn currentChanged( QWidget *widget ) |
264 | * @brief This signal is emitted whenever the widget has changed. | 264 | * @brief This signal is emitted whenever the widget has changed. |
265 | * | 265 | * |
266 | * @param widget Pointer to new current widget. | 266 | * @param widget Pointer to new current widget. |
267 | */ | 267 | */ |
268 | void currentChanged( QWidget * ); | 268 | void currentChanged( QWidget * ); |
269 | 269 | ||
270 | private slots: | 270 | private slots: |
271 | 271 | ||
272 | /** | 272 | /** |
273 | * @fn slotTabBarSelected( int id ) | 273 | * @fn slotTabBarSelected( int id ) |
274 | * @brief Slot which is called when a tab is selected. | 274 | * @brief Slot which is called when a tab is selected. |
275 | * | 275 | * |
276 | * @param id ID of widget selected. | 276 | * @param id ID of widget selected. |
277 | */ | 277 | */ |
278 | void slotTabBarSelected( int ); | 278 | void slotTabBarSelected( int ); |
279 | 279 | ||
280 | /** | 280 | /** |
281 | * @fn slotTabListSelected( int index ) | 281 | * @fn slotTabListSelected( int index ) |
282 | * @brief Slot which is called when a drop down selection is made. | 282 | * @brief Slot which is called when a drop down selection is made. |
283 | * | 283 | * |
284 | * @param id Index of widget selected. | 284 | * @param id Index of widget selected. |
285 | */ | 285 | */ |
286 | void slotTabListSelected( int ); | 286 | void slotTabListSelected( int ); |
287 | }; | 287 | }; |
288 | 288 | ||
289 | } | 289 | } |
290 | } | 290 | } |
291 | 291 | ||
292 | #endif | 292 | #endif |