00001 /* 00002 This file is part of the Opie Project 00003 00004 Copyright (c) 2002 Dan Williams <drw@handhelds.org> 00005 Copyright (c) 2002 Robert Griebl <sandman@handhelds.org> 00006 =. 00007 .=l. 00008 .>+-= 00009 _;:, .> :=|. This program is free software; you can 00010 .> <`_, > . <= redistribute it and/or modify it under 00011 :`=1 )Y*s>-.-- : the terms of the GNU Library General Public 00012 .="- .-=="i, .._ License as published by the Free Software 00013 - . .-<_> .<> Foundation; either version 2 of the License, 00014 ._= =} : or (at your option) any later version. 00015 .%`+i> _;_. 00016 .i_,=:_. -<s. This program is distributed in the hope that 00017 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 00018 : .. .:, . . . without even the implied warranty of 00019 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 00020 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU 00021 ..}^=.= = ; Library General Public License for more 00022 ++= -. .` .: details. 00023 : = ...= . :.=- 00024 -. .:....=;==+<; You should have received a copy of the GNU 00025 -_. . . )=. = Library General Public License along with 00026 -- :-=` this library; see the file COPYING.LIB. 00027 If not, write to the Free Software Foundation, 00028 Inc., 59 Temple Place - Suite 330, 00029 Boston, MA 02111-1307, USA. 00030 */ 00031 00032 #ifndef EDITSCHEME_H 00033 #define EDITSCHEME_H 00034 00035 #include <opie2/ocolorbutton.h> 00036 00037 #include <qdialog.h> 00038 00039 class QColor; 00040 namespace Opie {namespace Ui {class OColor;}} 00041 00042 class EditScheme : public QDialog { 00043 Q_OBJECT 00044 00045 public: 00046 EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); 00047 virtual ~EditScheme ( ); 00048 00049 protected slots: 00050 virtual void accept ( ); 00051 00052 private: 00053 int m_count; 00054 QColor *m_colors; 00055 Opie::OColorButton **m_buttons; 00056 }; 00057 00058 #endif
1.4.2