author | mickeyl <mickeyl> | 2004-01-15 15:04:23 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-01-15 15:04:23 (UTC) |
commit | ac1e2b945965ee8caabd658e90f9e234fc622619 (patch) (unidiff) | |
tree | d787cb386c6b1b5f69cb00809636299e66c56833 /libopie2/opieui/otabbar.h | |
parent | dde789ef19fa3a3913805e452ac1e3400688e8a0 (diff) | |
download | opie-ac1e2b945965ee8caabd658e90f9e234fc622619.zip opie-ac1e2b945965ee8caabd658e90f9e234fc622619.tar.gz opie-ac1e2b945965ee8caabd658e90f9e234fc622619.tar.bz2 |
libopie1 --> libopie2 + namespace cleanups, code layout, etc.
-rw-r--r-- | libopie2/opieui/otabbar.h | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/libopie2/opieui/otabbar.h b/libopie2/opieui/otabbar.h new file mode 100644 index 0000000..2f35c85 --- a/dev/null +++ b/libopie2/opieui/otabbar.h | |||
@@ -0,0 +1,85 @@ | |||
1 | /* | ||
2 | This file is part of the Opie Project | ||
3 | |||
4 | Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | ||
5 | =. | ||
6 | .=l. | ||
7 | .>+-= | ||
8 | _;:, .> :=|. This program is free software; you can | ||
9 | .> <`_, > . <= redistribute it and/or modify it under | ||
10 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | ||
11 | .="- .-=="i, .._ License as published by the Free Software | ||
12 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
13 | ._= =} : or (at your option) any later version. | ||
14 | .%`+i> _;_. | ||
15 | .i_,=:_. -<s. This program is distributed in the hope that | ||
16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
17 | : .. .:, . . . without even the implied warranty of | ||
18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
20 | ..}^=.= = ; Library General Public License for more | ||
21 | ++= -. .` .: details. | ||
22 | : = ...= . :.=- | ||
23 | -. .:....=;==+<; You should have received a copy of the GNU | ||
24 | -_. . . )=. = Library General Public License along with | ||
25 | -- :-=` this library; see the file COPYING.LIB. | ||
26 | If not, write to the Free Software Foundation, | ||
27 | Inc., 59 Temple Place - Suite 330, | ||
28 | Boston, MA 02111-1307, USA. | ||
29 | |||
30 | */ | ||
31 | |||
32 | #ifndef OTABBAR_H | ||
33 | #define OTABBAR_H | ||
34 | |||
35 | /* QT */ | ||
36 | #include <qtabbar.h> | ||
37 | |||
38 | namespace Opie | ||
39 | { | ||
40 | |||
41 | /** | ||
42 | * @class OTabBar | ||
43 | * @brief The OTabBar class is a derivative of QTabBar. | ||
44 | * | ||
45 | * OTabBar is a derivation of TrollTech's QTabBar which provides | ||
46 | * a row of tabs for selection. The only difference between this | ||
47 | * class and QTabBar is that there is no dotted line box around | ||
48 | * the label of the tab with the current focus. | ||
49 | */ | ||
50 | class OTabBar : public QTabBar | ||
51 | { | ||
52 | Q_OBJECT | ||
53 | |||
54 | public: | ||
55 | /** | ||
56 | * @fn OTabBar( QWidget *parent = 0, const char *name = 0 ) | ||
57 | * @brief Object constructor. | ||
58 | * | ||
59 | * @param parent Pointer to parent of this control. | ||
60 | * @param name Name of control. | ||
61 | * | ||
62 | * Constructs a new OTabBar control with parent and name. | ||
63 | */ | ||
64 | OTabBar( QWidget * = 0, const char * = 0 ); | ||
65 | |||
66 | protected: | ||
67 | /** | ||
68 | * @fn paintLabel( QPainter* p, const QRect& br , QTab* t, bool has_focus)const | ||
69 | * @brief Internal function to draw a tab's label. | ||
70 | * | ||
71 | * @param p Pointer to QPainter used for drawing. | ||
72 | * @param br QRect providing region to draw label in. | ||
73 | * @param t Tab to draw label for. | ||
74 | * @param has_focus Boolean value not used, retained for compatibility reasons. | ||
75 | */ | ||
76 | void paintLabel( QPainter *, const QRect &, QTab *, bool ) const; | ||
77 | |||
78 | private: | ||
79 | class Private; | ||
80 | Private *d; | ||
81 | }; | ||
82 | |||
83 | }; | ||
84 | |||
85 | #endif | ||