author | zecke <zecke> | 2003-05-07 14:45:49 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-05-07 14:45:49 (UTC) |
commit | 9602e59e3baf01465f4b4139715f2196bb01e012 (patch) (unidiff) | |
tree | 2d7f0dbf91e88de3981fcc82d49ba8ddc05cfbd5 /libopie/otabwidget.h | |
parent | da949558a957ec4817bf610d7c9186585c0d2d92 (diff) | |
download | opie-9602e59e3baf01465f4b4139715f2196bb01e012.zip opie-9602e59e3baf01465f4b4139715f2196bb01e012.tar.gz opie-9602e59e3baf01465f4b4139715f2196bb01e012.tar.bz2 |
Add d ptr
add comments and FIXMEs
three new signals for otodoaccess
-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 a67fe06..c140c0b 100644 --- a/libopie/otabwidget.h +++ b/libopie/otabwidget.h | |||
@@ -160,117 +160,119 @@ public: | |||
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()const | 192 | * @fn sizeHint()const |
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 currentTab( ) | 198 | * @fn currentTab( ) |
199 | * @brief returns current tab id. | 199 | * @brief returns current tab id. |
200 | */ | 200 | */ |
201 | int currentTab(); | 201 | int currentTab(); |
202 | 202 | ||
203 | 203 | ||
204 | protected: | 204 | protected: |
205 | 205 | ||
206 | /** | 206 | /** |
207 | * @fn resizeEvent( QResizeEvent * ) | 207 | * @fn resizeEvent( QResizeEvent * ) |
208 | * @brief Reimplemented for internal purposes. | 208 | * @brief Reimplemented for internal purposes. |
209 | */ | 209 | */ |
210 | void resizeEvent( QResizeEvent * ); | 210 | void resizeEvent( QResizeEvent * ); |
211 | 211 | ||
212 | private: | 212 | private: |
213 | OTabInfoList tabs; | 213 | OTabInfoList tabs; |
214 | OTabInfo *currTab; | 214 | OTabInfo *currTab; |
215 | 215 | ||
216 | TabStyle tabBarStyle; | 216 | TabStyle tabBarStyle; |
217 | TabPosition tabBarPosition; | 217 | TabPosition tabBarPosition; |
218 | 218 | ||
219 | QWidgetStack *tabBarStack; | 219 | QWidgetStack *tabBarStack; |
220 | OTabBar *tabBar; | 220 | OTabBar *tabBar; |
221 | QComboBox *tabList; | 221 | QComboBox *tabList; |
222 | 222 | ||
223 | QWidgetStack *widgetStack; | 223 | QWidgetStack *widgetStack; |
224 | class Private; | ||
225 | Private* d; | ||
224 | 226 | ||
225 | /** | 227 | /** |
226 | * @fn loadSmooth( const QString &name ) | 228 | * @fn loadSmooth( const QString &name ) |
227 | * @brief Loads icon for widget. | 229 | * @brief Loads icon for widget. |
228 | * | 230 | * |
229 | * @param name Name of icon image file. | 231 | * @param name Name of icon image file. |
230 | */ | 232 | */ |
231 | QPixmap loadSmooth( const QString & ); | 233 | QPixmap loadSmooth( const QString & ); |
232 | 234 | ||
233 | /** | 235 | /** |
234 | * @fn selectTab( OTabInfo *tab ) | 236 | * @fn selectTab( OTabInfo *tab ) |
235 | * @brief Internal function to select desired widget. | 237 | * @brief Internal function to select desired widget. |
236 | * | 238 | * |
237 | * @param tab Pointer to data for widget. | 239 | * @param tab Pointer to data for widget. |
238 | */ | 240 | */ |
239 | void selectTab( OTabInfo * ); | 241 | void selectTab( OTabInfo * ); |
240 | 242 | ||
241 | /** | 243 | /** |
242 | * @fn setUpLayout() | 244 | * @fn setUpLayout() |
243 | * @brief Internal function to adjust layout. | 245 | * @brief Internal function to adjust layout. |
244 | */ | 246 | */ |
245 | void setUpLayout(); | 247 | void setUpLayout(); |
246 | 248 | ||
247 | 249 | ||
248 | signals: | 250 | signals: |
249 | /** | 251 | /** |
250 | * @fn currentChanegd( QWidget *widget ) | 252 | * @fn currentChanegd( QWidget *widget ) |
251 | * @brief This signal is emitted whenever the widget has changed. | 253 | * @brief This signal is emitted whenever the widget has changed. |
252 | * | 254 | * |
253 | * @param widget Pointer to new current widget. | 255 | * @param widget Pointer to new current widget. |
254 | */ | 256 | */ |
255 | void currentChanged( QWidget * ); | 257 | void currentChanged( QWidget * ); |
256 | 258 | ||
257 | private slots: | 259 | private slots: |
258 | 260 | ||
259 | /** | 261 | /** |
260 | * @fn slotTabBarSelected( int id ) | 262 | * @fn slotTabBarSelected( int id ) |
261 | * @brief Slot which is called when a tab is selected. | 263 | * @brief Slot which is called when a tab is selected. |
262 | * | 264 | * |
263 | * @param id ID of widget selected. | 265 | * @param id ID of widget selected. |
264 | */ | 266 | */ |
265 | void slotTabBarSelected( int ); | 267 | void slotTabBarSelected( int ); |
266 | 268 | ||
267 | /** | 269 | /** |
268 | * @fn slotTabListSelected( int index ) | 270 | * @fn slotTabListSelected( int index ) |
269 | * @brief Slot which is called when a drop down selection is made. | 271 | * @brief Slot which is called when a drop down selection is made. |
270 | * | 272 | * |
271 | * @param id Index of widget selected. | 273 | * @param id Index of widget selected. |
272 | */ | 274 | */ |
273 | void slotTabListSelected( int ); | 275 | void slotTabListSelected( int ); |
274 | }; | 276 | }; |
275 | 277 | ||
276 | #endif | 278 | #endif |