-rw-r--r-- | libopie/otabinfo.h | 2 | ||||
-rw-r--r-- | libopie/otabwidget.cpp | 2 | ||||
-rw-r--r-- | libopie/otabwidget.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libopie/otabinfo.h b/libopie/otabinfo.h index afdd225..8dbbcc2 100644 --- a/libopie/otabinfo.h +++ b/libopie/otabinfo.h | |||
@@ -1,106 +1,106 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the Opie Project | 2 | This file is part of the Opie Project |
3 | 3 | ||
4 | Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | 4 | Copyright (c) 2002 Dan Williams <williamsdr@acm.org> |
5 | =. | 5 | =. |
6 | .=l. | 6 | .=l. |
7 | .>+-= | 7 | .>+-= |
8 | _;:, .> :=|. This program is free software; you can | 8 | _;:, .> :=|. This program is free software; you can |
9 | .> <`_, > . <= redistribute it and/or modify it under | 9 | .> <`_, > . <= redistribute it and/or modify it under |
10 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 10 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
11 | .="- .-=="i, .._ License as published by the Free Software | 11 | .="- .-=="i, .._ License as published by the Free Software |
12 | - . .-<_> .<> Foundation; either version 2 of the License, | 12 | - . .-<_> .<> Foundation; either version 2 of the License, |
13 | ._= =} : or (at your option) any later version. | 13 | ._= =} : or (at your option) any later version. |
14 | .%`+i> _;_. | 14 | .%`+i> _;_. |
15 | .i_,=:_. -<s. This program is distributed in the hope that | 15 | .i_,=:_. -<s. This program is distributed in the hope that |
16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
17 | : .. .:, . . . without even the implied warranty of | 17 | : .. .:, . . . without even the implied warranty of |
18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
20 | ..}^=.= = ; Library General Public License for more | 20 | ..}^=.= = ; Library General Public License for more |
21 | ++= -. .` .: details. | 21 | ++= -. .` .: details. |
22 | : = ...= . :.=- | 22 | : = ...= . :.=- |
23 | -. .:....=;==+<; You should have received a copy of the GNU | 23 | -. .:....=;==+<; You should have received a copy of the GNU |
24 | -_. . . )=. = Library General Public License along with | 24 | -_. . . )=. = Library General Public License along with |
25 | -- :-=` this library; see the file COPYING.LIB. | 25 | -- :-=` this library; see the file COPYING.LIB. |
26 | If not, write to the Free Software Foundation, | 26 | If not, write to the Free Software Foundation, |
27 | Inc., 59 Temple Place - Suite 330, | 27 | Inc., 59 Temple Place - Suite 330, |
28 | Boston, MA 02111-1307, USA. | 28 | Boston, MA 02111-1307, USA. |
29 | 29 | ||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #ifndef OTABINFO_H | 32 | #ifndef OTABINFO_H |
33 | #define OTABINFO_H | 33 | #define OTABINFO_H |
34 | 34 | ||
35 | #include <qlist.h> | 35 | #include <qlist.h> |
36 | #include <qstring.h> | 36 | #include <qstring.h> |
37 | 37 | ||
38 | class QWidget; | 38 | class QWidget; |
39 | 39 | ||
40 | /** | 40 | /** |
41 | * @class OTabInfo | 41 | * @class OTabInfo |
42 | * @brief The OTabInfo class is used internally by OTabWidget to keep track | 42 | * @brief The OTabInfo class is used internally by OTabWidget to keep track |
43 | * of widgets added to the control. | 43 | * of widgets added to the control. |
44 | * | 44 | * |
45 | * OTabInfo provides the following information about a widget added to an | 45 | * OTabInfo provides the following information about a widget added to an |
46 | * OTabWidget control: | 46 | * OTabWidget control: |
47 | * | 47 | * |
48 | * ID - integer tab bar ID | 48 | * ID - integer tab bar ID |
49 | * Control - QWidget pointer to child widget | 49 | * Control - QWidget pointer to child widget |
50 | * Label - QString text label for OTabWidget selection control | 50 | * Label - QString text label for OTabWidget selection control |
51 | * Icon - QString name of icon file | 51 | * Icon - QString name of icon file |
52 | */ | 52 | */ |
53 | class OTabInfo | 53 | class OTabInfo |
54 | { | 54 | { |
55 | public: | 55 | public: |
56 | /** | 56 | /** |
57 | * @fn OTabInfo() | 57 | * @fn OTabInfo() |
58 | * @brief Object constructor. | 58 | * @brief Object constructor. |
59 | * | 59 | * |
60 | * @param parent Pointer to parent of this control. | 60 | * @param parent Pointer to parent of this control. |
61 | * @param name Name of control. | 61 | * @param name Name of control. |
62 | * @param s Style of widget selection control. | 62 | * @param s Style of widget selection control. |
63 | * @param p Position of the widget selection control. | 63 | * @param p Position of the widget selection control. |
64 | */ | 64 | */ |
65 | OTabInfo() : i( -1 ), c( 0 ), p( 0 ), l( QString::null ) {} | 65 | OTabInfo() : i( -1 ), c( 0 ), p( 0 ), l( QString::null ) {} |
66 | 66 | ||
67 | /** | 67 | /** |
68 | * @fn OTabInfo( int id, QWidget *control, const QString &icon, const QString &label ) | 68 | * @fn OTabInfo( int id, QWidget *control, const QString &icon, const QString &label ) |
69 | * @brief Object constructor. | 69 | * @brief Object constructor. |
70 | * | 70 | * |
71 | * @param id TabBar identifier for widget. | 71 | * @param id TabBar identifier for widget. |
72 | * @param control QWidget pointer to widget. | 72 | * @param control QWidget pointer to widget. |
73 | * @param icon QString name of icon file. | 73 | * @param icon QString name of icon file. |
74 | * @param label QString text label for OTabWidget selection control. | 74 | * @param label QString text label for OTabWidget selection control. |
75 | */ | 75 | */ |
76 | OTabInfo( int id, QWidget *control, const QString &icon, const QString &label ) | 76 | OTabInfo( int id, QWidget *control, const QString &icon, const QString &label ) |
77 | : i( id ), c( control ), p( icon ), l( label ) {} | 77 | : i( id ), c( control ), p( icon ), l( label ) {} |
78 | 78 | ||
79 | /** | 79 | /** |
80 | * @fn id() | 80 | * @fn id() |
81 | * @brief Returns TabBar ID. | 81 | * @brief Returns TabBar ID. |
82 | */ | 82 | */ |
83 | int id() const { return i; } | 83 | int id() const { return i; } |
84 | 84 | ||
85 | /** | 85 | /** |
86 | * @fn label() | 86 | * @fn label() |
87 | * @brief Returns text label for widget. | 87 | * @brief Returns text label for widget. |
88 | */ | 88 | */ |
89 | const QString &label() const { return l; } | 89 | const QString &label() const { return l; } |
90 | 90 | ||
91 | /** | 91 | /** |
92 | * @fn control() | 92 | * @fn control() |
93 | * @brief Returns pointer to widget. | 93 | * @brief Returns pointer to widget. |
94 | */ | 94 | */ |
95 | QWidget *control() const { return c; } | 95 | QWidget *control() const { return c; } |
96 | 96 | ||
97 | /** | 97 | /** |
98 | * @fn icon() | 98 | * @fn icon() |
99 | * @brief Returns name of icon file. | 99 | * @brief Returns name of icon file. |
100 | */ | 100 | */ |
101 | const QString &icon() const { return p; } | 101 | const QString &icon() const { return p; } |
102 | 102 | ||
103 | private: | 103 | private: |
104 | int i; | 104 | int i; |
105 | QWidget *c; | 105 | QWidget *c; |
106 | QString p; | 106 | QString p; |
diff --git a/libopie/otabwidget.cpp b/libopie/otabwidget.cpp index 6e10be9..b60d472 100644 --- a/libopie/otabwidget.cpp +++ b/libopie/otabwidget.cpp | |||
@@ -1,106 +1,106 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the Opie Project | 2 | This file is part of the Opie Project |
3 | 3 | ||
4 | Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | 4 | Copyright (c) 2002 Dan Williams <williamsdr@acm.org> |
5 | =. | 5 | =. |
6 | .=l. | 6 | .=l. |
7 | .>+-= | 7 | .>+-= |
8 | _;:, .> :=|. This program is free software; you can | 8 | _;:, .> :=|. This program is free software; you can |
9 | .> <`_, > . <= redistribute it and/or modify it under | 9 | .> <`_, > . <= redistribute it and/or modify it under |
10 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 10 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
11 | .="- .-=="i, .._ License as published by the Free Software | 11 | .="- .-=="i, .._ License as published by the Free Software |
12 | - . .-<_> .<> Foundation; either version 2 of the License, | 12 | - . .-<_> .<> Foundation; either version 2 of the License, |
13 | ._= =} : or (at your option) any later version. | 13 | ._= =} : or (at your option) any later version. |
14 | .%`+i> _;_. | 14 | .%`+i> _;_. |
15 | .i_,=:_. -<s. This program is distributed in the hope that | 15 | .i_,=:_. -<s. This program is distributed in the hope that |
16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
17 | : .. .:, . . . without even the implied warranty of | 17 | : .. .:, . . . without even the implied warranty of |
18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
20 | ..}^=.= = ; Library General Public License for more | 20 | ..}^=.= = ; Library General Public License for more |
21 | ++= -. .` .: details. | 21 | ++= -. .` .: details. |
22 | : = ...= . :.=- | 22 | : = ...= . :.=- |
23 | -. .:....=;==+<; You should have received a copy of the GNU | 23 | -. .:....=;==+<; You should have received a copy of the GNU |
24 | -_. . . )=. = Library General Public License along with | 24 | -_. . . )=. = Library General Public License along with |
25 | -- :-=` this library; see the file COPYING.LIB. | 25 | -- :-=` this library; see the file COPYING.LIB. |
26 | If not, write to the Free Software Foundation, | 26 | If not, write to the Free Software Foundation, |
27 | Inc., 59 Temple Place - Suite 330, | 27 | Inc., 59 Temple Place - Suite 330, |
28 | Boston, MA 02111-1307, USA. | 28 | Boston, MA 02111-1307, USA. |
29 | 29 | ||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #include "otabwidget.h" | 32 | #include "otabwidget.h" |
33 | 33 | ||
34 | #include <qpe/config.h> | 34 | #include <qpe/config.h> |
35 | #include <qpe/resource.h> | 35 | #include <qpe/resource.h> |
36 | 36 | ||
37 | #include <qcombobox.h> | 37 | #include <qcombobox.h> |
38 | #include <qtabbar.h> | 38 | #include <qtabbar.h> |
39 | #include <qwidgetstack.h> | 39 | #include <qwidgetstack.h> |
40 | 40 | ||
41 | OTabWidget::OTabWidget( QWidget *parent, const char *name, TabStyle s, TabPosition p ) | 41 | OTabWidget::OTabWidget( QWidget *parent, const char *name, TabStyle s, TabPosition p ) |
42 | : QWidget( parent, name ) | 42 | : QWidget( parent, name ) |
43 | { | 43 | { |
44 | if ( s == Global ) | 44 | if ( s == Global ) |
45 | { | 45 | { |
46 | Config config( "qpe" ); | 46 | Config config( "qpe" ); |
47 | config.setGroup( "Appearance" ); | 47 | config.setGroup( "Appearance" ); |
48 | tabBarStyle = ( TabStyle ) config.readNumEntry( "TabStyle", (int) IconTab ); | 48 | tabBarStyle = ( TabStyle ) config.readNumEntry( "TabStyle", (int) IconTab ); |
49 | if ( tabBarStyle <= Global || tabBarStyle > IconList) | 49 | if ( tabBarStyle <= Global || tabBarStyle > IconList) |
50 | { | 50 | { |
51 | tabBarStyle = IconTab; | 51 | tabBarStyle = IconTab; |
52 | } | 52 | } |
53 | QString pos = config.readEntry( "TabPosition", "Top"); | 53 | QString pos = config.readEntry( "TabPosition", "Top"); |
54 | if ( pos == "Bottom" ) | 54 | if ( pos == "Bottom" ) |
55 | { | 55 | { |
56 | tabBarPosition = Bottom; | 56 | tabBarPosition = Bottom; |
57 | } | 57 | } |
58 | else | 58 | else |
59 | { | 59 | { |
60 | tabBarPosition = Top; | 60 | tabBarPosition = Top; |
61 | } | 61 | } |
62 | } | 62 | } |
63 | else | 63 | else |
64 | { | 64 | { |
65 | tabBarStyle = s; | 65 | tabBarStyle = s; |
66 | tabBarPosition = p; | 66 | tabBarPosition = p; |
67 | } | 67 | } |
68 | 68 | ||
69 | widgetStack = new QWidgetStack( this, "widgetstack" ); | 69 | widgetStack = new QWidgetStack( this, "widgetstack" ); |
70 | widgetStack->setFrameStyle( QFrame::StyledPanel | QFrame::Raised ); | 70 | widgetStack->setFrameStyle( QFrame::StyledPanel | QFrame::Raised ); |
71 | widgetStack->setLineWidth( style().defaultFrameWidth() ); | 71 | widgetStack->setLineWidth( style().defaultFrameWidth() ); |
72 | 72 | ||
73 | tabBarStack = new QWidgetStack( this, "tabbarstack" ); | 73 | tabBarStack = new QWidgetStack( this, "tabbarstack" ); |
74 | 74 | ||
75 | tabBar = new QTabBar( tabBarStack, "tabbar" ); | 75 | tabBar = new QTabBar( tabBarStack, "tabbar" ); |
76 | tabBarStack->addWidget( tabBar, 0 ); | 76 | tabBarStack->addWidget( tabBar, 0 ); |
77 | connect( tabBar, SIGNAL( selected( int ) ), this, SLOT( slotTabBarSelected( int ) ) ); | 77 | connect( tabBar, SIGNAL( selected( int ) ), this, SLOT( slotTabBarSelected( int ) ) ); |
78 | 78 | ||
79 | tabList = new QComboBox( false, tabBarStack, "tablist" ); | 79 | tabList = new QComboBox( false, tabBarStack, "tablist" ); |
80 | tabBarStack->addWidget( tabList, 1 ); | 80 | tabBarStack->addWidget( tabList, 1 ); |
81 | connect( tabList, SIGNAL( activated( int ) ), this, SLOT( slotTabListSelected( int ) ) ); | 81 | connect( tabList, SIGNAL( activated( int ) ), this, SLOT( slotTabListSelected( int ) ) ); |
82 | 82 | ||
83 | if ( tabBarStyle == TextTab || tabBarStyle == IconTab ) | 83 | if ( tabBarStyle == TextTab || tabBarStyle == IconTab ) |
84 | { | 84 | { |
85 | tabBarStack->raiseWidget( tabBar ); | 85 | tabBarStack->raiseWidget( tabBar ); |
86 | } | 86 | } |
87 | else if ( tabBarStyle == TextList || tabBarStyle == IconList ) | 87 | else if ( tabBarStyle == TextList || tabBarStyle == IconList ) |
88 | { | 88 | { |
89 | tabBarStack->raiseWidget( tabList ); | 89 | tabBarStack->raiseWidget( tabList ); |
90 | } | 90 | } |
91 | 91 | ||
92 | if ( tabBarPosition == Bottom ) | 92 | if ( tabBarPosition == Bottom ) |
93 | { | 93 | { |
94 | tabBar->setShape( QTabBar::RoundedBelow ); | 94 | tabBar->setShape( QTabBar::RoundedBelow ); |
95 | } | 95 | } |
96 | 96 | ||
97 | currentTab= 0x0; | 97 | currentTab= 0x0; |
98 | } | 98 | } |
99 | 99 | ||
100 | OTabWidget::~OTabWidget() | 100 | OTabWidget::~OTabWidget() |
101 | { | 101 | { |
102 | } | 102 | } |
103 | 103 | ||
104 | void OTabWidget::addTab( QWidget *child, const QString &icon, const QString &label ) | 104 | void OTabWidget::addTab( QWidget *child, const QString &icon, const QString &label ) |
105 | { | 105 | { |
106 | QPixmap iconset = loadSmooth( icon ); | 106 | QPixmap iconset = loadSmooth( icon ); |
diff --git a/libopie/otabwidget.h b/libopie/otabwidget.h index 9f16f14..6a0fbe8 100644 --- a/libopie/otabwidget.h +++ b/libopie/otabwidget.h | |||
@@ -1,106 +1,106 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the Opie Project | 2 | This file is part of the Opie Project |
3 | 3 | ||
4 | Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | 4 | Copyright (c) 2002 Dan Williams <williamsdr@acm.org> |
5 | =. | 5 | =. |
6 | .=l. | 6 | .=l. |
7 | .>+-= | 7 | .>+-= |
8 | _;:, .> :=|. This program is free software; you can | 8 | _;:, .> :=|. This program is free software; you can |
9 | .> <`_, > . <= redistribute it and/or modify it under | 9 | .> <`_, > . <= redistribute it and/or modify it under |
10 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 10 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
11 | .="- .-=="i, .._ License as published by the Free Software | 11 | .="- .-=="i, .._ License as published by the Free Software |
12 | - . .-<_> .<> Foundation; either version 2 of the License, | 12 | - . .-<_> .<> Foundation; either version 2 of the License, |
13 | ._= =} : or (at your option) any later version. | 13 | ._= =} : or (at your option) any later version. |
14 | .%`+i> _;_. | 14 | .%`+i> _;_. |
15 | .i_,=:_. -<s. This program is distributed in the hope that | 15 | .i_,=:_. -<s. This program is distributed in the hope that |
16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
17 | : .. .:, . . . without even the implied warranty of | 17 | : .. .:, . . . without even the implied warranty of |
18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
20 | ..}^=.= = ; Library General Public License for more | 20 | ..}^=.= = ; Library General Public License for more |
21 | ++= -. .` .: details. | 21 | ++= -. .` .: details. |
22 | : = ...= . :.=- | 22 | : = ...= . :.=- |
23 | -. .:....=;==+<; You should have received a copy of the GNU | 23 | -. .:....=;==+<; You should have received a copy of the GNU |
24 | -_. . . )=. = Library General Public License along with | 24 | -_. . . )=. = Library General Public License along with |
25 | -- :-=` this library; see the file COPYING.LIB. | 25 | -- :-=` this library; see the file COPYING.LIB. |
26 | If not, write to the Free Software Foundation, | 26 | If not, write to the Free Software Foundation, |
27 | Inc., 59 Temple Place - Suite 330, | 27 | Inc., 59 Temple Place - Suite 330, |
28 | Boston, MA 02111-1307, USA. | 28 | Boston, MA 02111-1307, USA. |
29 | 29 | ||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #ifndef OTABWIDGET_H | 32 | #ifndef OTABWIDGET_H |
33 | #define OTABWIDGET_H | 33 | #define OTABWIDGET_H |
34 | 34 | ||
35 | #include "otabinfo.h" | 35 | #include "otabinfo.h" |
36 | 36 | ||
37 | #include <qwidget.h> | 37 | #include <qwidget.h> |
38 | #include <qlist.h> | 38 | #include <qlist.h> |
39 | 39 | ||
40 | class QComboBox; | 40 | class QComboBox; |
41 | class QPixmap; | 41 | class QPixmap; |
42 | class QTabBar; | 42 | class QTabBar; |
43 | class QWidgetStack; | 43 | class QWidgetStack; |
44 | 44 | ||
45 | /** | 45 | /** |
46 | * @class OTabWidget | 46 | * @class OTabWidget |
47 | * @brief The OTabWidget class provides a stack of widgets. | 47 | * @brief The OTabWidget class provides a stack of widgets. |
48 | * | 48 | * |
49 | * OTabWidget is a derivation of TrollTech's QTabWidget which provides | 49 | * OTabWidget is a derivation of TrollTech's QTabWidget which provides |
50 | * a stack of widgets. Widgets can be selected using either a tab bar or | 50 | * a stack of widgets. Widgets can be selected using either a tab bar or |
51 | * drop down list box. | 51 | * drop down list box. |
52 | * | 52 | * |
53 | * The normal way to use OTabWidget is to do the following in the | 53 | * The normal way to use OTabWidget is to do the following in the |
54 | * constructor: | 54 | * constructor: |
55 | * - Create a OTabWidget. | 55 | * - Create a OTabWidget. |
56 | * - Create a QWidget for each of the pages in the control, insert | 56 | * - Create a QWidget for each of the pages in the control, insert |
57 | * children into it, set up geometry management for it, and use addTab() | 57 | * children into it, set up geometry management for it, and use addTab() |
58 | * to add the widget. | 58 | * to add the widget. |
59 | */ | 59 | */ |
60 | class OTabWidget : public QWidget | 60 | class OTabWidget : public QWidget |
61 | { | 61 | { |
62 | Q_OBJECT | 62 | Q_OBJECT |
63 | public: | 63 | public: |
64 | 64 | ||
65 | /** | 65 | /** |
66 | * @enum TabStyle | 66 | * @enum TabStyle |
67 | * @brief Defines how the widget selection control is displayed. | 67 | * @brief Defines how the widget selection control is displayed. |
68 | * | 68 | * |
69 | * Valid values: | 69 | * Valid values: |
70 | * - Global: use globally selected options (qpe.conf - TabStyle & TabPosition) | 70 | * - Global: use globally selected options (qpe.conf - TabStyle & TabPosition) |
71 | * - TextTab: Tabbed widget selection with text labels | 71 | * - TextTab: Tabbed widget selection with text labels |
72 | * - IconTab: Tabbed widget selection with icon labels, text label for active widget | 72 | * - IconTab: Tabbed widget selection with icon labels, text label for active widget |
73 | * (similar to Opie launcher) | 73 | * (similar to Opie launcher) |
74 | * - TextList: Drop down list widget selection with text labels | 74 | * - TextList: Drop down list widget selection with text labels |
75 | * - IconList: Drop down list widget selection with icon & text labels | 75 | * - IconList: Drop down list widget selection with icon & text labels |
76 | */ | 76 | */ |
77 | enum TabStyle { Global, TextTab, IconTab, TextList, IconList }; | 77 | enum TabStyle { Global, TextTab, IconTab, TextList, IconList }; |
78 | 78 | ||
79 | /** | 79 | /** |
80 | * @enum TabPosition | 80 | * @enum TabPosition |
81 | * @brief Defines where the widget selection control is drawn. | 81 | * @brief Defines where the widget selection control is drawn. |
82 | * | 82 | * |
83 | * Valid values: | 83 | * Valid values: |
84 | * - Top: Widget selection control is drawn above widgets | 84 | * - Top: Widget selection control is drawn above widgets |
85 | * - Bottom: Widget selection control is drawn below widgets | 85 | * - Bottom: Widget selection control is drawn below widgets |
86 | */ | 86 | */ |
87 | enum TabPosition { Top, Bottom }; | 87 | enum TabPosition { Top, Bottom }; |
88 | 88 | ||
89 | /** | 89 | /** |
90 | * @fn OTabWidget( QWidget *parent = 0, const char *name = 0, TabStyle s = Global, TabPosition p = Top ) | 90 | * @fn OTabWidget( QWidget *parent = 0, const char *name = 0, TabStyle s = Global, TabPosition p = Top ) |
91 | * @brief Object constructor. | 91 | * @brief Object constructor. |
92 | * | 92 | * |
93 | * @param parent Pointer to parent of this control. | 93 | * @param parent Pointer to parent of this control. |
94 | * @param name Name of control. | 94 | * @param name Name of control. |
95 | * @param s Style of widget selection control. | 95 | * @param s Style of widget selection control. |
96 | * @param p Position of the widget selection control. | 96 | * @param p Position of the widget selection control. |
97 | * | 97 | * |
98 | * Constructs a new OTabWidget control with parent and name. The style and position parameters | 98 | * Constructs a new OTabWidget control with parent and name. The style and position parameters |
99 | * determine how the widget selection control will be displayed. | 99 | * determine how the widget selection control will be displayed. |
100 | */ | 100 | */ |
101 | OTabWidget( QWidget * = 0, const char * = 0, TabStyle = Global, TabPosition = Top ); | 101 | OTabWidget( QWidget * = 0, const char * = 0, TabStyle = Global, TabPosition = Top ); |
102 | 102 | ||
103 | /** | 103 | /** |
104 | * @fn ~OTabWidget() | 104 | * @fn ~OTabWidget() |
105 | * @brief Object destructor. | 105 | * @brief Object destructor. |
106 | */ | 106 | */ |