-rw-r--r-- | libopie/otabwidget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie/otabwidget.h b/libopie/otabwidget.h index 0aa9bb8..23fe774 100644 --- a/libopie/otabwidget.h +++ b/libopie/otabwidget.h | |||
@@ -78,48 +78,49 @@ public: | |||
78 | enum TabStyle { Global, TextTab, IconTab, TextList, IconList }; | 78 | enum TabStyle { Global, TextTab, IconTab, TextList, IconList }; |
79 | 79 | ||
80 | /** | 80 | /** |
81 | * @enum TabPosition | 81 | * @enum TabPosition |
82 | * @brief Defines where the widget selection control is drawn. | 82 | * @brief Defines where the widget selection control is drawn. |
83 | * | 83 | * |
84 | * Valid values: | 84 | * Valid values: |
85 | * - Top: Widget selection control is drawn above widgets | 85 | * - Top: Widget selection control is drawn above widgets |
86 | * - Bottom: Widget selection control is drawn below widgets | 86 | * - Bottom: Widget selection control is drawn below widgets |
87 | */ | 87 | */ |
88 | enum TabPosition { Top, Bottom }; | 88 | enum TabPosition { Top, Bottom }; |
89 | 89 | ||
90 | /** | 90 | /** |
91 | * @fn OTabWidget( QWidget *parent = 0, const char *name = 0, TabStyle s = Global, TabPosition p = Top ) | 91 | * @fn OTabWidget( QWidget *parent = 0, const char *name = 0, TabStyle s = Global, TabPosition p = Top ) |
92 | * @brief Object constructor. | 92 | * @brief Object constructor. |
93 | * | 93 | * |
94 | * @param parent Pointer to parent of this control. | 94 | * @param parent Pointer to parent of this control. |
95 | * @param name Name of control. | 95 | * @param name Name of control. |
96 | * @param s Style of widget selection control. | 96 | * @param s Style of widget selection control. |
97 | * @param p Position of the widget selection control. | 97 | * @param p Position of the widget selection control. |
98 | * | 98 | * |
99 | * Constructs a new OTabWidget control with parent and name. The style and position parameters | 99 | * Constructs a new OTabWidget control with parent and name. The style and position parameters |
100 | * determine how the widget selection control will be displayed. | 100 | * determine how the widget selection control will be displayed. |
101 | */ | 101 | */ |
102 | // FIXME WFlags? -zecke | ||
102 | OTabWidget( QWidget * = 0, const char * = 0, TabStyle = Global, TabPosition = Top ); | 103 | OTabWidget( QWidget * = 0, const char * = 0, TabStyle = Global, TabPosition = Top ); |
103 | 104 | ||
104 | /** | 105 | /** |
105 | * @fn ~OTabWidget() | 106 | * @fn ~OTabWidget() |
106 | * @brief Object destructor. | 107 | * @brief Object destructor. |
107 | */ | 108 | */ |
108 | ~OTabWidget(); | 109 | ~OTabWidget(); |
109 | 110 | ||
110 | /** | 111 | /** |
111 | * @fn addTab( QWidget *child, const QString &icon, const QString &label ) | 112 | * @fn addTab( QWidget *child, const QString &icon, const QString &label ) |
112 | * @brief Add new widget to control. | 113 | * @brief Add new widget to control. |
113 | * | 114 | * |
114 | * @param child Widget control. | 115 | * @param child Widget control. |
115 | * @param icon Path to icon. | 116 | * @param icon Path to icon. |
116 | * @param label Text label. | 117 | * @param label Text label. |
117 | */ | 118 | */ |
118 | void addTab( QWidget *, const QString &, const QString & ); | 119 | void addTab( QWidget *, const QString &, const QString & ); |
119 | 120 | ||
120 | /** | 121 | /** |
121 | * @fn removePage( QWidget *widget ) | 122 | * @fn removePage( QWidget *widget ) |
122 | * @brief Remove widget from control. Does not delete widget. | 123 | * @brief Remove widget from control. Does not delete widget. |
123 | * | 124 | * |
124 | * @param widget Widget control to be removed. | 125 | * @param widget Widget control to be removed. |
125 | */ | 126 | */ |
@@ -176,48 +177,49 @@ public: | |||
176 | * @brief Selects and brings to top the desired widget, by using label. | 177 | * @brief Selects and brings to top the desired widget, by using label. |
177 | * | 178 | * |
178 | * @param tabname Text label for widget to select. | 179 | * @param tabname Text label for widget to select. |
179 | */ | 180 | */ |
180 | void setCurrentTab( const QString & ); | 181 | void setCurrentTab( const QString & ); |
181 | 182 | ||
182 | /** | 183 | /** |
183 | * @fn setCurrentTab( int ) | 184 | * @fn setCurrentTab( int ) |
184 | * @brief Selects and brings to top the desired widget, by using id. | 185 | * @brief Selects and brings to top the desired widget, by using id. |
185 | * | 186 | * |
186 | * @param tab id for widget to select. | 187 | * @param tab id for widget to select. |
187 | */ | 188 | */ |
188 | void setCurrentTab(int); | 189 | void setCurrentTab(int); |
189 | 190 | ||
190 | /** | 191 | /** |
191 | * @fn sizeHint() | 192 | * @fn sizeHint() |
192 | * @brief Reimplemented for internal purposes. | 193 | * @brief Reimplemented for internal purposes. |
193 | */ | 194 | */ |
194 | QSize sizeHint() const; | 195 | QSize sizeHint() const; |
195 | 196 | ||
196 | /** | 197 | /** |
197 | * @fn getCurrentTab( ) | 198 | * @fn getCurrentTab( ) |
198 | * @brief returns current tab id. | 199 | * @brief returns current tab id. |
199 | */ | 200 | */ |
201 | //FIXME TT coding style currentTab() -zecke | ||
200 | int getCurrentTab(); | 202 | int getCurrentTab(); |
201 | 203 | ||
202 | 204 | ||
203 | protected: | 205 | protected: |
204 | 206 | ||
205 | /** | 207 | /** |
206 | * @fn resizeEvent( QResizeEvent * ) | 208 | * @fn resizeEvent( QResizeEvent * ) |
207 | * @brief Reimplemented for internal purposes. | 209 | * @brief Reimplemented for internal purposes. |
208 | */ | 210 | */ |
209 | void resizeEvent( QResizeEvent * ); | 211 | void resizeEvent( QResizeEvent * ); |
210 | 212 | ||
211 | private: | 213 | private: |
212 | OTabInfoList tabs; | 214 | OTabInfoList tabs; |
213 | OTabInfo *currentTab; | 215 | OTabInfo *currentTab; |
214 | 216 | ||
215 | TabStyle tabBarStyle; | 217 | TabStyle tabBarStyle; |
216 | TabPosition tabBarPosition; | 218 | TabPosition tabBarPosition; |
217 | 219 | ||
218 | QWidgetStack *tabBarStack; | 220 | QWidgetStack *tabBarStack; |
219 | OTabBar *tabBar; | 221 | OTabBar *tabBar; |
220 | QComboBox *tabList; | 222 | QComboBox *tabList; |
221 | 223 | ||
222 | QWidgetStack *widgetStack; | 224 | QWidgetStack *widgetStack; |
223 | 225 | ||