author | drw <drw> | 2003-04-13 23:00:25 (UTC) |
---|---|---|
committer | drw <drw> | 2003-04-13 23:00:25 (UTC) |
commit | 377a172d8b497674d14d7e3580a008228f83d081 (patch) (unidiff) | |
tree | 7a4fdb5986db9ce9b3b26c9c0b56ece9ec63a468 /libopie/otabwidget.h | |
parent | f744559411664bc8c017bd642302ffe72dfbbb84 (diff) | |
download | opie-377a172d8b497674d14d7e3580a008228f83d081.zip opie-377a172d8b497674d14d7e3580a008228f83d081.tar.gz opie-377a172d8b497674d14d7e3580a008228f83d081.tar.bz2 |
OTabWidget::getCurrentTab() is now OTabWidget::currentTab()
-rw-r--r-- | libopie/otabwidget.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libopie/otabwidget.h b/libopie/otabwidget.h index 23fe774..bcd9a85 100644 --- a/libopie/otabwidget.h +++ b/libopie/otabwidget.h | |||
@@ -134,144 +134,143 @@ public: | |||
134 | * @param icon Path to icon. | 134 | * @param icon Path to icon. |
135 | * @param label Text label. | 135 | * @param label Text label. |
136 | */ | 136 | */ |
137 | void changeTab( QWidget *, const QString &, const QString & ); | 137 | void changeTab( QWidget *, const QString &, const QString & ); |
138 | 138 | ||
139 | /** | 139 | /** |
140 | * @fn tabStyle() | 140 | * @fn tabStyle() |
141 | * @brief Returns current widget selection control style. | 141 | * @brief Returns current widget selection control style. |
142 | */ | 142 | */ |
143 | TabStyle tabStyle() const; | 143 | TabStyle tabStyle() const; |
144 | 144 | ||
145 | /** | 145 | /** |
146 | * @fn setTabStyle( TabStyle s ) | 146 | * @fn setTabStyle( TabStyle s ) |
147 | * @brief Set the current widget selection control style. | 147 | * @brief Set the current widget selection control style. |
148 | * | 148 | * |
149 | * @param s New style to be used. | 149 | * @param s New style to be used. |
150 | */ | 150 | */ |
151 | void setTabStyle( TabStyle ); | 151 | void setTabStyle( TabStyle ); |
152 | 152 | ||
153 | /** | 153 | /** |
154 | * @fn tabPosition() | 154 | * @fn tabPosition() |
155 | * @brief Returns current widget selection control position. | 155 | * @brief Returns current widget selection control position. |
156 | */ | 156 | */ |
157 | TabPosition tabPosition() const; | 157 | TabPosition tabPosition() const; |
158 | 158 | ||
159 | /** | 159 | /** |
160 | * @fn setTabPosition( TabPosition p ) | 160 | * @fn setTabPosition( TabPosition p ) |
161 | * @brief Set the current widget selection control position. | 161 | * @brief Set the current widget selection control position. |
162 | * | 162 | * |
163 | * @param p New position of widget selection control. | 163 | * @param p New position of widget selection control. |
164 | */ | 164 | */ |
165 | void setTabPosition( TabPosition ); | 165 | void setTabPosition( TabPosition ); |
166 | 166 | ||
167 | /** | 167 | /** |
168 | * @fn setCurrentTab( QWidget *childwidget ) | 168 | * @fn setCurrentTab( QWidget *childwidget ) |
169 | * @brief Selects and brings to top the desired widget by using widget pointer. | 169 | * @brief Selects and brings to top the desired widget by using widget pointer. |
170 | * | 170 | * |
171 | * @param childwidget Widget to select. | 171 | * @param childwidget Widget to select. |
172 | */ | 172 | */ |
173 | void setCurrentTab( QWidget * ); | 173 | void setCurrentTab( QWidget * ); |
174 | 174 | ||
175 | /** | 175 | /** |
176 | * @fn setCurrentTab( const QString &tabname ) | 176 | * @fn setCurrentTab( const QString &tabname ) |
177 | * @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. |
178 | * | 178 | * |
179 | * @param tabname Text label for widget to select. | 179 | * @param tabname Text label for widget to select. |
180 | */ | 180 | */ |
181 | void setCurrentTab( const QString & ); | 181 | void setCurrentTab( const QString & ); |
182 | 182 | ||
183 | /** | 183 | /** |
184 | * @fn setCurrentTab( int ) | 184 | * @fn setCurrentTab( int ) |
185 | * @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. |
186 | * | 186 | * |
187 | * @param tab id for widget to select. | 187 | * @param tab id for widget to select. |
188 | */ | 188 | */ |
189 | void setCurrentTab(int); | 189 | void setCurrentTab(int); |
190 | 190 | ||
191 | /** | 191 | /** |
192 | * @fn sizeHint() | 192 | * @fn sizeHint() |
193 | * @brief Reimplemented for internal purposes. | 193 | * @brief Reimplemented for internal purposes. |
194 | */ | 194 | */ |
195 | QSize sizeHint() const; | 195 | QSize sizeHint() const; |
196 | 196 | ||
197 | /** | 197 | /** |
198 | * @fn getCurrentTab( ) | 198 | * @fn currentTab( ) |
199 | * @brief returns current tab id. | 199 | * @brief returns current tab id. |
200 | */ | 200 | */ |
201 | //FIXME TT coding style currentTab() -zecke | 201 | int currentTab(); |
202 | int getCurrentTab(); | ||
203 | 202 | ||
204 | 203 | ||
205 | protected: | 204 | protected: |
206 | 205 | ||
207 | /** | 206 | /** |
208 | * @fn resizeEvent( QResizeEvent * ) | 207 | * @fn resizeEvent( QResizeEvent * ) |
209 | * @brief Reimplemented for internal purposes. | 208 | * @brief Reimplemented for internal purposes. |
210 | */ | 209 | */ |
211 | void resizeEvent( QResizeEvent * ); | 210 | void resizeEvent( QResizeEvent * ); |
212 | 211 | ||
213 | private: | 212 | private: |
214 | OTabInfoList tabs; | 213 | OTabInfoList tabs; |
215 | OTabInfo *currentTab; | 214 | OTabInfo *currTab; |
216 | 215 | ||
217 | TabStyle tabBarStyle; | 216 | TabStyle tabBarStyle; |
218 | TabPosition tabBarPosition; | 217 | TabPosition tabBarPosition; |
219 | 218 | ||
220 | QWidgetStack *tabBarStack; | 219 | QWidgetStack *tabBarStack; |
221 | OTabBar *tabBar; | 220 | OTabBar *tabBar; |
222 | QComboBox *tabList; | 221 | QComboBox *tabList; |
223 | 222 | ||
224 | QWidgetStack *widgetStack; | 223 | QWidgetStack *widgetStack; |
225 | 224 | ||
226 | /** | 225 | /** |
227 | * @fn loadSmooth( const QString &name ) | 226 | * @fn loadSmooth( const QString &name ) |
228 | * @brief Loads icon for widget. | 227 | * @brief Loads icon for widget. |
229 | * | 228 | * |
230 | * @param name Name of icon image file. | 229 | * @param name Name of icon image file. |
231 | */ | 230 | */ |
232 | QPixmap loadSmooth( const QString & ); | 231 | QPixmap loadSmooth( const QString & ); |
233 | 232 | ||
234 | /** | 233 | /** |
235 | * @fn selectTab( OTabInfo *tab ) | 234 | * @fn selectTab( OTabInfo *tab ) |
236 | * @brief Internal function to select desired widget. | 235 | * @brief Internal function to select desired widget. |
237 | * | 236 | * |
238 | * @param tab Pointer to data for widget. | 237 | * @param tab Pointer to data for widget. |
239 | */ | 238 | */ |
240 | void selectTab( OTabInfo * ); | 239 | void selectTab( OTabInfo * ); |
241 | 240 | ||
242 | /** | 241 | /** |
243 | * @fn setUpLayout() | 242 | * @fn setUpLayout() |
244 | * @brief Internal function to adjust layout. | 243 | * @brief Internal function to adjust layout. |
245 | */ | 244 | */ |
246 | void setUpLayout(); | 245 | void setUpLayout(); |
247 | 246 | ||
248 | 247 | ||
249 | signals: | 248 | signals: |
250 | /** | 249 | /** |
251 | * @fn currentChanegd( QWidget *widget ) | 250 | * @fn currentChanegd( QWidget *widget ) |
252 | * @brief This signal is emitted whenever the widget has changed. | 251 | * @brief This signal is emitted whenever the widget has changed. |
253 | * | 252 | * |
254 | * @param widget Pointer to new current widget. | 253 | * @param widget Pointer to new current widget. |
255 | */ | 254 | */ |
256 | void currentChanged( QWidget * ); | 255 | void currentChanged( QWidget * ); |
257 | 256 | ||
258 | private slots: | 257 | private slots: |
259 | 258 | ||
260 | /** | 259 | /** |
261 | * @fn slotTabBarSelected( int id ) | 260 | * @fn slotTabBarSelected( int id ) |
262 | * @brief Slot which is called when a tab is selected. | 261 | * @brief Slot which is called when a tab is selected. |
263 | * | 262 | * |
264 | * @param id ID of widget selected. | 263 | * @param id ID of widget selected. |
265 | */ | 264 | */ |
266 | void slotTabBarSelected( int ); | 265 | void slotTabBarSelected( int ); |
267 | 266 | ||
268 | /** | 267 | /** |
269 | * @fn slotTabListSelected( int index ) | 268 | * @fn slotTabListSelected( int index ) |
270 | * @brief Slot which is called when a drop down selection is made. | 269 | * @brief Slot which is called when a drop down selection is made. |
271 | * | 270 | * |
272 | * @param id Index of widget selected. | 271 | * @param id Index of widget selected. |
273 | */ | 272 | */ |
274 | void slotTabListSelected( int ); | 273 | void slotTabListSelected( int ); |
275 | }; | 274 | }; |
276 | 275 | ||
277 | #endif | 276 | #endif |