Diffstat (limited to 'libopie2/opieui/otabwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opieui/otabwidget.h | 52 |
1 files changed, 22 insertions, 30 deletions
diff --git a/libopie2/opieui/otabwidget.h b/libopie2/opieui/otabwidget.h index e925592..3af8fac 100644 --- a/libopie2/opieui/otabwidget.h +++ b/libopie2/opieui/otabwidget.h | |||
@@ -1,40 +1,40 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the Opie Project | 2 | This file is part of the Opie Project |
3 | Copyright (C) 2002, 2005 Dan Williams <drw@handhelds.org> | 3 | |
4 | Copyright (C) 2002, 2005 Dan Williams <drw@handhelds.org> | ||
4 | =. | 5 | =. |
5 | .=l. | 6 | .=l. |
6 | .>+-= | 7 | .>+-= |
7 | _;:, .> :=|. This program is free software; you can | 8 | _;:, .> :=|. This program is free software; you can |
8 | .> <`_, > . <= redistribute it and/or modify it under | 9 | .> <`_, > . <= redistribute it and/or modify it under |
9 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | 10 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
10 | .="- .-=="i, .._ License as published by the Free Software | 11 | .="- .-=="i, .._ License as published by the Free Software |
11 | - . .-<_> .<> Foundation; either version 2 of the License, | 12 | - . .-<_> .<> Foundation; either version 2 of the License, |
12 | ._= =} : or (at your option) any later version. | 13 | ._= =} : or (at your option) any later version. |
13 | .%`+i> _;_. | 14 | .%`+i> _;_. |
14 | .i_,=:_. -<s. This program is distributed in the hope that | 15 | .i_,=:_. -<s. This program is distributed in the hope that |
15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
16 | : .. .:, . . . without even the implied warranty of | 17 | : .. .:, . . . without even the implied warranty of |
17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
19 | ..}^=.= = ; Library General Public License for more | 20 | ..}^=.= = ; Library General Public License for more |
20 | ++= -. .` .: details. | 21 | ++= -. .` .: details. |
21 | : = ...= . :.=- | 22 | : = ...= . :.=- |
22 | -. .:....=;==+<; You should have received a copy of the GNU | 23 | -. .:....=;==+<; You should have received a copy of the GNU |
23 | -_. . . )=. = Library General Public License along with | 24 | -_. . . )=. = Library General Public License along with |
24 | -- :-=` this library; see the file COPYING.LIB. | 25 | -- :-=` this library; see the file COPYING.LIB. |
25 | If not, write to the Free Software Foundation, | 26 | If not, write to the Free Software Foundation, |
26 | Inc., 59 Temple Place - Suite 330, | 27 | Inc., 59 Temple Place - Suite 330, |
27 | Boston, MA 02111-1307, USA. | 28 | Boston, MA 02111-1307, USA. |
28 | |||
29 | */ | 29 | */ |
30 | 30 | ||
31 | #ifndef OTABWIDGET_H | 31 | #ifndef OTABWIDGET_H |
32 | #define OTABWIDGET_H | 32 | #define OTABWIDGET_H |
33 | 33 | ||
34 | /* OPIE */ | 34 | /* OPIE */ |
35 | #include <opie2/otabinfo.h> | 35 | #include <opie2/otabinfo.h> |
36 | 36 | ||
37 | /* QT */ | 37 | /* QT */ |
38 | #include <qwidget.h> | 38 | #include <qwidget.h> |
39 | #include <qlist.h> | 39 | #include <qlist.h> |
40 | 40 | ||
@@ -222,32 +222,24 @@ private: | |||
222 | bool m_usingTabs; // Indicates whether style is either TextTab or IconTab | 222 | bool m_usingTabs; // Indicates whether style is either TextTab or IconTab |
223 | // (saves from having to always check for these 2 values) | 223 | // (saves from having to always check for these 2 values) |
224 | 224 | ||
225 | // UI components | 225 | // UI components |
226 | OTabBar *m_tabBar; | 226 | OTabBar *m_tabBar; |
227 | QComboBox *m_tabList; | 227 | QComboBox *m_tabList; |
228 | QWidgetStack *m_widgetStack; | 228 | QWidgetStack *m_widgetStack; |
229 | 229 | ||
230 | class Private; | 230 | class Private; |
231 | Private* d; | 231 | Private* d; |
232 | 232 | ||
233 | /** | 233 | /** |
234 | * @fn loadSmooth( const QString &name ) | ||
235 | * @brief Loads icon for widget. | ||
236 | * | ||
237 | * @param name Name of icon image file. | ||
238 | */ | ||
239 | QPixmap loadSmooth( const QString & ); | ||
240 | |||
241 | /** | ||
242 | * @fn selectTab( OTabInfo *tab ) | 234 | * @fn selectTab( OTabInfo *tab ) |
243 | * @brief Internal function to select desired widget. | 235 | * @brief Internal function to select desired widget. |
244 | * | 236 | * |
245 | * @param tab Pointer to data for widget. | 237 | * @param tab Pointer to data for widget. |
246 | */ | 238 | */ |
247 | void selectTab( OTabInfo * ); | 239 | void selectTab( OTabInfo * ); |
248 | 240 | ||
249 | /** | 241 | /** |
250 | * @fn setUpLayout() | 242 | * @fn setUpLayout() |
251 | * @brief Internal function to adjust layout. | 243 | * @brief Internal function to adjust layout. |
252 | */ | 244 | */ |
253 | void setUpLayout(); | 245 | void setUpLayout(); |