author | zecke <zecke> | 2003-04-13 16:25:24 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-04-13 16:25:24 (UTC) |
commit | c27d6327b9be5792fa507557f03997a46f32cc26 (patch) (unidiff) | |
tree | 3332ed2d1c673a898ba1862276d8688918618d7f /libopie2/opieui | |
parent | 3e1f225ed1e515c3425361fdc90ac4d5b6d86941 (diff) | |
download | opie-c27d6327b9be5792fa507557f03997a46f32cc26.zip opie-c27d6327b9be5792fa507557f03997a46f32cc26.tar.gz opie-c27d6327b9be5792fa507557f03997a46f32cc26.tar.bz2 |
Add apie comments
QString -> const QString& fix
-rw-r--r-- | libopie2/opieui/odialog.h | 5 | ||||
-rw-r--r-- | libopie2/opieui/oimageeffect.h | 1 | ||||
-rw-r--r-- | libopie2/opieui/olistview.h | 4 | ||||
-rw-r--r-- | libopie2/opieui/opopupmenu.h | 3 |
4 files changed, 9 insertions, 4 deletions
diff --git a/libopie2/opieui/odialog.h b/libopie2/opieui/odialog.h index 7947dfb..4116ed7 100644 --- a/libopie2/opieui/odialog.h +++ b/libopie2/opieui/odialog.h | |||
@@ -1,88 +1,89 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the Opie Project | 2 | This file is part of the Opie Project |
3 | 3 | ||
4 | (C) 2003 Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> | 4 | (C) 2003 Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> |
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 Library 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 ODIALOG_H | 32 | #ifndef ODIALOG_H |
33 | #define ODIALOG_H | 33 | #define ODIALOG_H |
34 | 34 | ||
35 | class QLayoutItem; | 35 | class QLayoutItem; |
36 | 36 | ||
37 | #include <qdialog.h> | 37 | #include <qdialog.h> |
38 | 38 | ||
39 | /** | 39 | /** |
40 | * Dialog with extended nonmodal support and methods for OPIE standard | 40 | * Dialog with extended nonmodal support and methods for OPIE standard |
41 | * compliance. | 41 | * compliance. |
42 | * | 42 | * |
43 | * The @ref marginHint() and @ref spacingHint() sizes shall be used | 43 | * The @ref marginHint() and @ref spacingHint() sizes shall be used |
44 | * whenever you layout the interior of a dialog. One special note. If | 44 | * whenever you layout the interior of a dialog. One special note. If |
45 | * you make your own action buttons (OK, Cancel etc), the space | 45 | * you make your own action buttons (OK, Cancel etc), the space |
46 | * beteween the buttons shall be @ref spacingHint(), whereas the space | 46 | * beteween the buttons shall be @ref spacingHint(), whereas the space |
47 | * above, below, to the right and to the left shall be @ref marginHint(). | 47 | * above, below, to the right and to the left shall be @ref marginHint(). |
48 | * If you add a separator line above the buttons, there shall be a | 48 | * If you add a separator line above the buttons, there shall be a |
49 | * @ref marginHint() between the buttons and the separator and a | 49 | * @ref marginHint() between the buttons and the separator and a |
50 | * @ref marginHint() above the separator as well. | 50 | * @ref marginHint() above the separator as well. |
51 | * | 51 | * |
52 | * @author Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> | 52 | * @author Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> |
53 | */ | 53 | */ |
54 | // lets fix up Qt instead! Size does matter. -zecke | ||
54 | 55 | ||
55 | class ODialog : public QDialog | 56 | class ODialog : public QDialog |
56 | { | 57 | { |
57 | Q_OBJECT | 58 | Q_OBJECT |
58 | 59 | ||
59 | public: | 60 | public: |
60 | 61 | ||
61 | /** | 62 | /** |
62 | * Constructor. | 63 | * Constructor. |
63 | * | 64 | * |
64 | * Takes the same arguments as @ref QDialog. | 65 | * Takes the same arguments as @ref QDialog. |
65 | */ | 66 | */ |
66 | ODialog(QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags f = 0); | 67 | ODialog(QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags f = 0); |
67 | 68 | ||
68 | /** | 69 | /** |
69 | * Return the number of pixels you shall use between a | 70 | * Return the number of pixels you shall use between a |
70 | * dialog edge and the outermost widget(s) according to the KDE standard. | 71 | * dialog edge and the outermost widget(s) according to the KDE standard. |
71 | **/ | 72 | **/ |
72 | static int marginHint(); | 73 | static int marginHint(); |
73 | 74 | ||
74 | /** | 75 | /** |
75 | * Return the number of pixels you shall use between | 76 | * Return the number of pixels you shall use between |
76 | * widgets inside a dialog according to the KDE standard. | 77 | * widgets inside a dialog according to the KDE standard. |
77 | */ | 78 | */ |
78 | static int spacingHint(); | 79 | static int spacingHint(); |
79 | 80 | ||
80 | private: | 81 | private: |
81 | static int mMarginSize; | 82 | static int mMarginSize; |
82 | static int mSpacingSize; | 83 | static int mSpacingSize; |
83 | 84 | ||
84 | //class ODialogPrivate; | 85 | class ODialogPrivate; |
85 | //ODialogPrivate *d; | 86 | ODialogPrivate *d; // d pointer always needed! -zecke |
86 | 87 | ||
87 | }; | 88 | }; |
88 | #endif // ODIALOG_H | 89 | #endif // ODIALOG_H |
diff --git a/libopie2/opieui/oimageeffect.h b/libopie2/opieui/oimageeffect.h index 313ea50..fb4d22d 100644 --- a/libopie2/opieui/oimageeffect.h +++ b/libopie2/opieui/oimageeffect.h | |||
@@ -1,66 +1,67 @@ | |||
1 | //FIXME: Revise for Opie - do we really need such fancy stuff on PDA's? | 1 | //FIXME: Revise for Opie - do we really need such fancy stuff on PDA's? |
2 | //FIXME: Maybe not on SL5xxx, but surely on C700 :)) | 2 | //FIXME: Maybe not on SL5xxx, but surely on C700 :)) |
3 | //FIXME: I think we don#t need that -zecke | ||
3 | 4 | ||
4 | /* This file is part of the KDE libraries | 5 | /* This file is part of the KDE libraries |
5 | Copyright (C) 1998, 1999, 2001, 2002 Daniel M. Duley <mosfet@interaccess.com> | 6 | Copyright (C) 1998, 1999, 2001, 2002 Daniel M. Duley <mosfet@interaccess.com> |
6 | (C) 1998, 1999 Christian Tibirna <ctibirna@total.net> | 7 | (C) 1998, 1999 Christian Tibirna <ctibirna@total.net> |
7 | (C) 1998, 1999 Dirk A. Mueller <mueller@kde.org> | 8 | (C) 1998, 1999 Dirk A. Mueller <mueller@kde.org> |
8 | 9 | ||
9 | Redistribution and use in source and binary forms, with or without | 10 | Redistribution and use in source and binary forms, with or without |
10 | modification, are permitted provided that the following conditions | 11 | modification, are permitted provided that the following conditions |
11 | are met: | 12 | are met: |
12 | 13 | ||
13 | 1. Redistributions of source code must retain the above copyright | 14 | 1. Redistributions of source code must retain the above copyright |
14 | notice, this list of conditions and the following disclaimer. | 15 | notice, this list of conditions and the following disclaimer. |
15 | 2. Redistributions in binary form must reproduce the above copyright | 16 | 2. Redistributions in binary form must reproduce the above copyright |
16 | notice, this list of conditions and the following disclaimer in the | 17 | notice, this list of conditions and the following disclaimer in the |
17 | documentation and/or other materials provided with the distribution. | 18 | documentation and/or other materials provided with the distribution. |
18 | 19 | ||
19 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | 20 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
20 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | 21 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
21 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | 22 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
22 | IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | 23 | IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
23 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | 24 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
24 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 25 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 28 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
28 | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 | 30 | ||
30 | */ | 31 | */ |
31 | 32 | ||
32 | // $Id$ | 33 | // $Id$ |
33 | 34 | ||
34 | #ifndef OIMAGEEFFECT_H | 35 | #ifndef OIMAGEEFFECT_H |
35 | #define OIMAGEEFFECT_H | 36 | #define OIMAGEEFFECT_H |
36 | 37 | ||
37 | class QImage; | 38 | class QImage; |
38 | class QSize; | 39 | class QSize; |
39 | class QColor; | 40 | class QColor; |
40 | 41 | ||
41 | /** | 42 | /** |
42 | * This class includes various @ref QImage based graphical effects. | 43 | * This class includes various @ref QImage based graphical effects. |
43 | * | 44 | * |
44 | * Everything is | 45 | * Everything is |
45 | * static, so there is no need to create an instance of this class. You can | 46 | * static, so there is no need to create an instance of this class. You can |
46 | * just call the static methods. They are encapsulated here merely to provide | 47 | * just call the static methods. They are encapsulated here merely to provide |
47 | * a common namespace. | 48 | * a common namespace. |
48 | */ | 49 | */ |
49 | 50 | ||
50 | class OImageEffect | 51 | class OImageEffect |
51 | { | 52 | { |
52 | public: | 53 | public: |
53 | enum GradientType { VerticalGradient, HorizontalGradient, | 54 | enum GradientType { VerticalGradient, HorizontalGradient, |
54 | DiagonalGradient, CrossDiagonalGradient, | 55 | DiagonalGradient, CrossDiagonalGradient, |
55 | PyramidGradient, RectangleGradient, | 56 | PyramidGradient, RectangleGradient, |
56 | PipeCrossGradient, EllipticGradient }; | 57 | PipeCrossGradient, EllipticGradient }; |
57 | enum RGBComponent { Red, Green, Blue, Gray, All }; | 58 | enum RGBComponent { Red, Green, Blue, Gray, All }; |
58 | 59 | ||
59 | enum Lighting {NorthLite, NWLite, WestLite, SWLite, | 60 | enum Lighting {NorthLite, NWLite, WestLite, SWLite, |
60 | SouthLite, SELite, EastLite, NELite}; | 61 | SouthLite, SELite, EastLite, NELite}; |
61 | 62 | ||
62 | enum ModulationType { Intensity, Saturation, HueShift, Contrast }; | 63 | enum ModulationType { Intensity, Saturation, HueShift, Contrast }; |
63 | 64 | ||
64 | enum NoiseType { UniformNoise=0, GaussianNoise, MultiplicativeGaussianNoise, | 65 | enum NoiseType { UniformNoise=0, GaussianNoise, MultiplicativeGaussianNoise, |
65 | ImpulseNoise, LaplacianNoise, PoissonNoise}; | 66 | ImpulseNoise, LaplacianNoise, PoissonNoise}; |
66 | 67 | ||
diff --git a/libopie2/opieui/olistview.h b/libopie2/opieui/olistview.h index bafc67c..b62e278 100644 --- a/libopie2/opieui/olistview.h +++ b/libopie2/opieui/olistview.h | |||
@@ -58,141 +58,141 @@ class OListViewItem; | |||
58 | OListView ( QWidget *parent = 0, const char *name = 0 ); | 58 | OListView ( QWidget *parent = 0, const char *name = 0 ); |
59 | 59 | ||
60 | /** | 60 | /** |
61 | * Destructor. | 61 | * Destructor. |
62 | */ | 62 | */ |
63 | virtual ~OListView(); | 63 | virtual ~OListView(); |
64 | 64 | ||
65 | /** | 65 | /** |
66 | * Let the last column fit exactly all the available width. | 66 | * Let the last column fit exactly all the available width. |
67 | */ | 67 | */ |
68 | void setFullWidth( bool fullWidth ); | 68 | void setFullWidth( bool fullWidth ); |
69 | 69 | ||
70 | /** | 70 | /** |
71 | * Returns whether the last column is set to fit the available width. | 71 | * Returns whether the last column is set to fit the available width. |
72 | */ | 72 | */ |
73 | bool fullWidth() const; | 73 | bool fullWidth() const; |
74 | 74 | ||
75 | /** | 75 | /** |
76 | * Reimplemented for full width support | 76 | * Reimplemented for full width support |
77 | */ | 77 | */ |
78 | virtual int addColumn( const QString& label, int width = -1 ); | 78 | virtual int addColumn( const QString& label, int width = -1 ); |
79 | 79 | ||
80 | /** | 80 | /** |
81 | * Reimplemented for full width support | 81 | * Reimplemented for full width support |
82 | */ | 82 | */ |
83 | virtual int addColumn( const QIconSet& iconset, const QString& label, int width = -1 ); | 83 | virtual int addColumn( const QIconSet& iconset, const QString& label, int width = -1 ); |
84 | 84 | ||
85 | /** | 85 | /** |
86 | * Reimplemented for full width support | 86 | * Reimplemented for full width support |
87 | */ | 87 | */ |
88 | virtual void removeColumn(int index); | 88 | virtual void removeColumn(int index); |
89 | 89 | ||
90 | /** | 90 | /** |
91 | * sets the alternate background background color. | 91 | * sets the alternate background background color. |
92 | * This only has an effect if the items are OListViewItems | 92 | * This only has an effect if the items are OListViewItems |
93 | * | 93 | * |
94 | * @param c the color to use for every other item. Set to an invalid | 94 | * @param c the color to use for every other item. Set to an invalid |
95 | * color to disable alternate colors. | 95 | * color to disable alternate colors. |
96 | */ | 96 | */ |
97 | void setAlternateBackground( const QColor &c ); | 97 | void setAlternateBackground( const QColor &c ); |
98 | 98 | ||
99 | /** | 99 | /** |
100 | * sets the column separator pen. | 100 | * sets the column separator pen. |
101 | * | 101 | * |
102 | * @param p the pen used to draw the column separator. | 102 | * @param p the pen used to draw the column separator. |
103 | */ | 103 | */ |
104 | void setColumnSeparator( const QPen &p ); | 104 | void setColumnSeparator( const QPen &p ); |
105 | 105 | ||
106 | /** | 106 | /** |
107 | * @return the alternate background color | 107 | * @return the alternate background color |
108 | */ | 108 | */ |
109 | const QColor& alternateBackground() const; | 109 | const QColor& alternateBackground() const; |
110 | 110 | ||
111 | /** | 111 | /** |
112 | * @return the column separator pen | 112 | * @return the column separator pen |
113 | */ | 113 | */ |
114 | const QPen& columnSeparator() const; | 114 | const QPen& columnSeparator() const; |
115 | 115 | ||
116 | /** | 116 | /** |
117 | * create a list view item as child of this object | 117 | * create a list view item as child of this object |
118 | * @return the new object | 118 | * @return the new object |
119 | */ | 119 | */ |
120 | virtual OListViewItem* childFactory(); | 120 | virtual OListViewItem* childFactory(); |
121 | 121 | ||
122 | #ifndef QT_NO_DATASTREAM | 122 | #ifndef QT_NO_DATASTREAM |
123 | /** | 123 | /** |
124 | * serialize this object to a @ref QDataStream | 124 | * serialize this object to a @ref QDataStream |
125 | * @param s the stream used to serialize this object. | 125 | * @param s the stream used to serialize this object. |
126 | */ | 126 | */ |
127 | virtual void serializeTo( QDataStream& s ) const; | 127 | virtual void serializeTo( QDataStream& s ) const; |
128 | 128 | ||
129 | /** | 129 | /** |
130 | * serialize this object from a @ref QDataStream | 130 | * serialize this object from a @ref QDataStream |
131 | * @param s the stream used to serialize this object. | 131 | * @param s the stream used to serialize this object. |
132 | */ | 132 | */ |
133 | virtual void serializeFrom( QDataStream& s ); | 133 | virtual void serializeFrom( QDataStream& s ); |
134 | #endif | 134 | #endif |
135 | 135 | ||
136 | private: | 136 | private: |
137 | QColor m_alternateBackground; | 137 | QColor m_alternateBackground; |
138 | bool m_fullWidth; | 138 | bool m_fullWidth; |
139 | QPen m_columnSeparator; | 139 | QPen m_columnSeparator; |
140 | }; | 140 | }; |
141 | 141 | ||
142 | #ifndef QT_NO_DATASTREAM | 142 | #ifndef QT_NO_DATASTREAM |
143 | /** | 143 | /** |
144 | * \relates QListView | 144 | * \relates QListView |
145 | * Writes a listview to the stream and returns a reference to the stream. | 145 | * Writes a listview to the stream and returns a reference to the stream. |
146 | */ | 146 | */ |
147 | QDataStream& operator<<( QDataStream& s, const OListView& lv ); | 147 | QDataStream& operator<<( QDataStream& s, const OListView& lv ); |
148 | /** | 148 | /** |
149 | * \relates QListView | 149 | * \relates QListView |
150 | * Reads a listview from the stream and returns a reference to the stream. | 150 | * Reads a listview from the stream and returns a reference to the stream. |
151 | */ | 151 | */ |
152 | QDataStream& operator>>( QDataStream& s, OListView& lv ); | 152 | QDataStream& operator>>( QDataStream& s, OListView& lv ); |
153 | #endif // QT_NO_DATASTREAM | 153 | #endif // QT_NO_DATASTREAM |
154 | 154 | ||
155 | //****************************** OListViewItem ****************************************************************** | 155 | //****************************** OListViewItem ****************************************************************** |
156 | 156 | ||
157 | class OListViewItem: public QListViewItem | 157 | class OListViewItem: public QListViewItem |
158 | { | 158 | { |
159 | public: | 159 | public: |
160 | OListViewItem( QListView * parent ); | 160 | OListViewItem( QListView * parent ); |
161 | OListViewItem( QListViewItem * parent ); | 161 | OListViewItem( QListViewItem * parent ); |
162 | OListViewItem( QListView * parent, QListViewItem * after ); | 162 | OListViewItem( QListView * parent, QListViewItem * after ); |
163 | OListViewItem( QListViewItem * parent, QListViewItem * after ); | 163 | OListViewItem( QListViewItem * parent, QListViewItem * after ); |
164 | 164 | ||
165 | OListViewItem( QListView * parent, | 165 | OListViewItem( QListView * parent, |
166 | QString, QString = QString::null, | 166 | QString, QString = QString::null, |
167 | QString = QString::null, QString = QString::null, | 167 | QString = QString::null, QString = QString::null, |
168 | QString = QString::null, QString = QString::null, | 168 | QString = QString::null, QString = QString::null, |
169 | QString = QString::null, QString = QString::null ); | 169 | QString = QString::null, QString = QString::null ); |
170 | 170 | ||
171 | OListViewItem( QListViewItem * parent, | 171 | OListViewItem( QListViewItem * parent, |
172 | QString, QString = QString::null, | 172 | QString, QString = QString::null, |
173 | QString = QString::null, QString = QString::null, | 173 | QString = QString::null, QString = QString::null, |
174 | QString = QString::null, QString = QString::null, | 174 | QString = QString::null, QString = QString::null, |
175 | QString = QString::null, QString = QString::null ); | 175 | QString = QString::null, QString = QString::null ); |
176 | 176 | ||
177 | OListViewItem( QListView * parent, QListViewItem * after, | 177 | OListViewItem( QListView * parent, QListViewItem * after, |
178 | QString, QString = QString::null, | 178 | QString, QString = QString::null, |
179 | QString = QString::null, QString = QString::null, | 179 | QString = QString::null, QString = QString::null, |
180 | QString = QString::null, QString = QString::null, | 180 | QString = QString::null, QString = QString::null, |
181 | QString = QString::null, QString = QString::null ); | 181 | QString = QString::null, QString = QString::null ); |
182 | 182 | ||
183 | OListViewItem( QListViewItem * parent, QListViewItem * after, | 183 | OListViewItem( QListViewItem * parent, QListViewItem * after, |
184 | QString, QString = QString::null, | 184 | QString, QString = QString::null, |
185 | QString = QString::null, QString = QString::null, | 185 | QString = QString::null, QString = QString::null, |
186 | QString = QString::null, QString = QString::null, | 186 | QString = QString::null, QString = QString::null, |
187 | QString = QString::null, QString = QString::null ); | 187 | QString = QString::null, QString = QString::null ); |
188 | 188 | ||
189 | virtual ~OListViewItem(); | 189 | virtual ~OListViewItem(); |
190 | 190 | ||
191 | const QColor& backgroundColor(); | 191 | const QColor& backgroundColor(); |
192 | bool isAlternate(); | 192 | bool isAlternate(); |
193 | void paintCell( QPainter *p, const QColorGroup &cg, int column, int width, int alignment ); | 193 | void paintCell( QPainter *p, const QColorGroup &cg, int column, int width, int alignment ); |
194 | void init(); | 194 | void init(); |
195 | 195 | ||
196 | /** | 196 | /** |
197 | * create a list view item as child of this object | 197 | * create a list view item as child of this object |
198 | * @return the new object | 198 | * @return the new object |
diff --git a/libopie2/opieui/opopupmenu.h b/libopie2/opieui/opopupmenu.h index 94f05f4..54e4301 100644 --- a/libopie2/opieui/opopupmenu.h +++ b/libopie2/opieui/opopupmenu.h | |||
@@ -1,64 +1,67 @@ | |||
1 | //FIXME what is ODE? ODE Desktop Environemt? -zecke | ||
2 | //FIXME do we need titles? space is limited that is only eyecandy? -zecke | ||
3 | //FIXME keyboard navigation is also not that popular on a PDA might be with a keyboard (tuxphone) -zecke | ||
1 | /* This file is part of the ODE libraries | 4 | /* This file is part of the ODE libraries |
2 | Copyright (C) 2000 Daniel M. Duley <mosfet@kde.org> | 5 | Copyright (C) 2000 Daniel M. Duley <mosfet@kde.org> |
3 | 6 | ||
4 | This library is free software; you can redistribute it and/or | 7 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Library General Public | 8 | modify it under the terms of the GNU Library General Public |
6 | License version 2 as published by the Free Software Foundation. | 9 | License version 2 as published by the Free Software Foundation. |
7 | 10 | ||
8 | This library is distributed in the hope that it will be useful, | 11 | This library is distributed in the hope that it will be useful, |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
11 | Library General Public License for more details. | 14 | Library General Public License for more details. |
12 | 15 | ||
13 | You should have received a copy of the GNU Library General Public License | 16 | You should have received a copy of the GNU Library General Public License |
14 | along with this library; see the file COPYING.LIB. If not, write to | 17 | along with this library; see the file COPYING.LIB. If not, write to |
15 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 18 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
16 | Boston, MA 02111-1307, USA. | 19 | Boston, MA 02111-1307, USA. |
17 | */ | 20 | */ |
18 | #ifndef _OPOPUP_H | 21 | #ifndef _OPOPUP_H |
19 | #define _OPOPUP_H | 22 | #define _OPOPUP_H |
20 | 23 | ||
21 | #define INCLUDE_MENUITEM_DEF | 24 | #define INCLUDE_MENUITEM_DEF |
22 | 25 | ||
23 | /* QT */ | 26 | /* QT */ |
24 | 27 | ||
25 | #include <qpopupmenu.h> | 28 | #include <qpopupmenu.h> |
26 | 29 | ||
27 | /* OPIE */ | 30 | /* OPIE */ |
28 | 31 | ||
29 | #include <opie2/opixmapeffect.h> | 32 | #include <opie2/opixmapeffect.h> |
30 | 33 | ||
31 | /** | 34 | /** |
32 | * Title widget for use in @ref OPopupMenu. | 35 | * Title widget for use in @ref OPopupMenu. |
33 | * | 36 | * |
34 | * You usually don't have to create this manually since | 37 | * You usually don't have to create this manually since |
35 | * @ref OPopupMenu::insertTitle will do it for you, but it is allowed if | 38 | * @ref OPopupMenu::insertTitle will do it for you, but it is allowed if |
36 | * you wish to customize it's look. | 39 | * you wish to customize it's look. |
37 | * | 40 | * |
38 | * @author Daniel M. Duley <mosfet@kde.org> | 41 | * @author Daniel M. Duley <mosfet@kde.org> |
39 | * @short OPopupMenu title widget. | 42 | * @short OPopupMenu title widget. |
40 | */ | 43 | */ |
41 | class OPopupTitle : public QWidget | 44 | class OPopupTitle : public QWidget |
42 | { | 45 | { |
43 | Q_OBJECT | 46 | Q_OBJECT |
44 | 47 | ||
45 | public: | 48 | public: |
46 | /** | 49 | /** |
47 | * Constructs a title widget with the user specified gradient, pixmap, | 50 | * Constructs a title widget with the user specified gradient, pixmap, |
48 | * and colors. | 51 | * and colors. |
49 | */ | 52 | */ |
50 | OPopupTitle(QWidget *parent=0, const char *name=0); | 53 | OPopupTitle(QWidget *parent=0, const char *name=0); |
51 | /** | 54 | /** |
52 | * @deprecated | 55 | * @deprecated |
53 | * Constructs a title widget with the specified gradient and colors. | 56 | * Constructs a title widget with the specified gradient and colors. |
54 | */ | 57 | */ |
55 | OPopupTitle(OPixmapEffect::GradientType gradient, const QColor &color, | 58 | OPopupTitle(OPixmapEffect::GradientType gradient, const QColor &color, |
56 | const QColor &textColor, QWidget *parent=0, | 59 | const QColor &textColor, QWidget *parent=0, |
57 | const char *name=0); | 60 | const char *name=0); |
58 | /** | 61 | /** |
59 | * @deprecated | 62 | * @deprecated |
60 | * Constructs a title widget with the specified pixmap and colors. | 63 | * Constructs a title widget with the specified pixmap and colors. |
61 | */ | 64 | */ |
62 | OPopupTitle(const OPixmap &background, const QColor &color, | 65 | OPopupTitle(const OPixmap &background, const QColor &color, |
63 | const QColor &textColor, QWidget *parent=0, | 66 | const QColor &textColor, QWidget *parent=0, |
64 | const char *name=0); | 67 | const char *name=0); |