-rw-r--r-- | libqtaux/ocolorpopupmenu.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libqtaux/ocolorpopupmenu.h b/libqtaux/ocolorpopupmenu.h index 90cfbed..7ab3ca6 100644 --- a/libqtaux/ocolorpopupmenu.h +++ b/libqtaux/ocolorpopupmenu.h | |||
@@ -9,57 +9,62 @@ | |||
9 | _;:, .> :=|. This program is free software; you can | 9 | _;:, .> :=|. This program is free software; you can |
10 | .> <`_, > . <= redistribute it and/or modify it under | 10 | .> <`_, > . <= redistribute it and/or modify it under |
11 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | 11 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
12 | .="- .-=="i, .._ License as published by the Free Software | 12 | .="- .-=="i, .._ License as published by the Free Software |
13 | - . .-<_> .<> Foundation; either version 2 of the License, | 13 | - . .-<_> .<> Foundation; either version 2 of the License, |
14 | ._= =} : or (at your option) any later version. | 14 | ._= =} : or (at your option) any later version. |
15 | .%`+i> _;_. | 15 | .%`+i> _;_. |
16 | .i_,=:_. -<s. This program is distributed in the hope that | 16 | .i_,=:_. -<s. This program is distributed in the hope that |
17 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 17 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
18 | : .. .:, . . . without even the implied warranty of | 18 | : .. .:, . . . without even the implied warranty of |
19 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 19 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
20 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 20 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
21 | ..}^=.= = ; Library General Public License for more | 21 | ..}^=.= = ; Library General Public License for more |
22 | ++= -. .` .: details. | 22 | ++= -. .` .: details. |
23 | : = ...= . :.=- | 23 | : = ...= . :.=- |
24 | -. .:....=;==+<; You should have received a copy of the GNU | 24 | -. .:....=;==+<; You should have received a copy of the GNU |
25 | -_. . . )=. = Library General Public License along with | 25 | -_. . . )=. = Library General Public License along with |
26 | -- :-=` this library; see the file COPYING.LIB. | 26 | -- :-=` this library; see the file COPYING.LIB. |
27 | If not, write to the Free Software Foundation, | 27 | If not, write to the Free Software Foundation, |
28 | Inc., 59 Temple Place - Suite 330, | 28 | Inc., 59 Temple Place - Suite 330, |
29 | Boston, MA 02111-1307, USA. | 29 | Boston, MA 02111-1307, USA. |
30 | 30 | ||
31 | */ | 31 | */ |
32 | 32 | ||
33 | #ifndef COLORPOPUPMENU_H | 33 | #ifndef OCOLORPOPUPMENU_H |
34 | #define COLORPOPUPMENU_H | 34 | #define OCOLORPOPUPMENU_H |
35 | |||
36 | /* QT */ | ||
35 | 37 | ||
36 | #include <qframe.h> | 38 | #include <qframe.h> |
37 | #include <qpopupmenu.h> | 39 | #include <qpopupmenu.h> |
38 | 40 | ||
39 | class QWidget; | 41 | class QWidget; |
40 | class QGridLayout; | 42 | class QGridLayout; |
41 | 43 | ||
44 | namespace Opie | ||
45 | { | ||
46 | |||
42 | /** | 47 | /** |
43 | * @class OColorPanelButton | 48 | * @class OColorPanelButton |
44 | * @brief The OColorPanelButton class provides a button for color selection. | 49 | * @brief The OColorPanelButton class provides a button for color selection. |
45 | * | 50 | * |
46 | * @see OColorPopupMenu | 51 | * @see OColorPopupMenu |
47 | * | 52 | * |
48 | * The OColorPanelButton class provides a button for color selection. The button | 53 | * The OColorPanelButton class provides a button for color selection. The button |
49 | * is drawn with the desired color and no border. This class is used internally | 54 | * is drawn with the desired color and no border. This class is used internally |
50 | * by the OColorPopupMenu class to displaying colors in its menu. | 55 | * by the OColorPopupMenu class to displaying colors in its menu. |
51 | */ | 56 | */ |
52 | class OColorPanelButton : public QFrame | 57 | class OColorPanelButton : public QFrame |
53 | { | 58 | { |
54 | Q_OBJECT | 59 | Q_OBJECT |
55 | 60 | ||
56 | public: | 61 | public: |
57 | 62 | ||
58 | /** | 63 | /** |
59 | * @fn OColorPanelButton( const QColor& color, QWidget* parent = 0, const char* name = 0 ) | 64 | * @fn OColorPanelButton( const QColor& color, QWidget* parent = 0, const char* name = 0 ) |
60 | * @brief Object constructor. | 65 | * @brief Object constructor. |
61 | * | 66 | * |
62 | * @param color Desired color. | 67 | * @param color Desired color. |
63 | * @param parent Pointer to parent of this control. | 68 | * @param parent Pointer to parent of this control. |
64 | * @param name Name of control. | 69 | * @param name Name of control. |
65 | * | 70 | * |
@@ -231,25 +236,27 @@ protected slots: | |||
231 | * @see colorSelected() | 236 | * @see colorSelected() |
232 | * | 237 | * |
233 | * This slot executes when a color has been selected from the menu. It performs | 238 | * This slot executes when a color has been selected from the menu. It performs |
234 | * two functions: | 239 | * two functions: |
235 | * - Emit the colorSelected signal with the color selected. | 240 | * - Emit the colorSelected signal with the color selected. |
236 | * - Hide the menu. | 241 | * - Hide the menu. |
237 | */ | 242 | */ |
238 | void buttonSelected( const QColor& color ); | 243 | void buttonSelected( const QColor& color ); |
239 | 244 | ||
240 | /** | 245 | /** |
241 | * @fn moreColorClicked() | 246 | * @fn moreColorClicked() |
242 | * @brief Slot to process display color selection dialog. | 247 | * @brief Slot to process display color selection dialog. |
243 | * | 248 | * |
244 | * @see colorSelected() | 249 | * @see colorSelected() |
245 | * | 250 | * |
246 | * This slot executes when the 'More...' option is selected at the bottom of the menu. | 251 | * This slot executes when the 'More...' option is selected at the bottom of the menu. |
247 | * It performs the following functions: | 252 | * It performs the following functions: |
248 | * - Constructs and executes a QColorDialog to allow finer color selection. | 253 | * - Constructs and executes a QColorDialog to allow finer color selection. |
249 | * - Emit the colorSelected signal with the color selected. | 254 | * - Emit the colorSelected signal with the color selected. |
250 | * - Hide the menu. | 255 | * - Hide the menu. |
251 | */ | 256 | */ |
252 | void moreColorClicked(); | 257 | void moreColorClicked(); |
253 | }; | 258 | }; |
254 | 259 | ||
260 | }; | ||
261 | |||
255 | #endif // COLORPOPUPMENUANEL_H | 262 | #endif // COLORPOPUPMENUANEL_H |