author | sandman <sandman> | 2002-09-26 01:14:30 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-09-26 01:14:30 (UTC) |
commit | 056f01ffc3b32de4dbf4fca79917198951e59d60 (patch) (unidiff) | |
tree | 7c3331a038a85480c120b92dddb6277d97fe81da /noncore/settings/appearance2/editScheme.cpp | |
parent | 8c831e3a8cc9cf7ee120a3a227b6698aa797f740 (diff) | |
download | opie-056f01ffc3b32de4dbf4fca79917198951e59d60.zip opie-056f01ffc3b32de4dbf4fca79917198951e59d60.tar.gz opie-056f01ffc3b32de4dbf4fca79917198951e59d60.tar.bz2 |
Corrected the copyright headers (LGPL -> GPL)
Diffstat (limited to 'noncore/settings/appearance2/editScheme.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/appearance2/editScheme.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/noncore/settings/appearance2/editScheme.cpp b/noncore/settings/appearance2/editScheme.cpp index 8cb0f1c..c2e5355 100644 --- a/noncore/settings/appearance2/editScheme.cpp +++ b/noncore/settings/appearance2/editScheme.cpp | |||
@@ -1,72 +1,72 @@ | |||
1 | /* | 1 | /* |
2 | =. This file is part of the OPIE Project | 2 | This file is part of the OPIE Project |
3 | =. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | ||
3 | .=l. Copyright (c) 2002 Robert Griebl <sandman@handhelds.org> | 4 | .=l. Copyright (c) 2002 Robert Griebl <sandman@handhelds.org> |
4 | .>+-= | 5 | .>+-= |
5 | _;:, .> :=|. This library is free software; you can | 6 | _;:, .> :=|. This file is free software; you can |
6 | .> <`_, > . <= redistribute it and/or modify it under | 7 | .> <`_, > . <= redistribute it and/or modify it under |
7 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | 8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
8 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
9 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
10 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
11 | .%`+i> _;_. | 12 | .%`+i> _;_. |
12 | .i_,=:_. -<s. This library is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
14 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
15 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
16 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General |
17 | ..}^=.= = ; Library General Public License for more | 18 | ..}^=.= = ; Public License for more details. |
18 | ++= -. .` .: details. | 19 | ++= -. .` .: |
19 | : = ...= . :.=- | 20 | : = ...= . :.=- You should have received a copy of the GNU |
20 | -. .:....=;==+<; You should have received a copy of the GNU | 21 | -. .:....=;==+<; General Public License along with this file; |
21 | -_. . . )=. = Library General Public License along with | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
22 | -- :-=` this library; see the file COPYING.LIB. | 23 | -- :-=` Free Software Foundation, Inc., |
23 | If not, write to the Free Software Foundation, | 24 | 59 Temple Place - Suite 330, |
24 | Inc., 59 Temple Place - Suite 330, | ||
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "editScheme.h" | 29 | #include "editScheme.h" |
30 | 30 | ||
31 | #include <opie/ocolorbutton.h> | 31 | #include <opie/ocolorbutton.h> |
32 | 32 | ||
33 | #include <qaction.h> | 33 | #include <qaction.h> |
34 | #include <qlabel.h> | 34 | #include <qlabel.h> |
35 | #include <qlayout.h> | 35 | #include <qlayout.h> |
36 | #include <qpopupmenu.h> | 36 | #include <qpopupmenu.h> |
37 | #include <qscrollview.h> | 37 | #include <qscrollview.h> |
38 | #include <qtoolbutton.h> | 38 | #include <qtoolbutton.h> |
39 | 39 | ||
40 | EditScheme::EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget* parent, const char* name, bool modal, WFlags fl ) | 40 | EditScheme::EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget* parent, const char* name, bool modal, WFlags fl ) |
41 | : QDialog ( parent, name, modal, fl ) | 41 | : QDialog ( parent, name, modal, fl ) |
42 | { | 42 | { |
43 | setCaption ( tr( "Edit scheme" ) ); | 43 | setCaption ( tr( "Edit scheme" ) ); |
44 | QGridLayout *layout = new QGridLayout ( this, 0, 0, 4, 4 ); | 44 | QGridLayout *layout = new QGridLayout ( this, 0, 0, 4, 4 ); |
45 | 45 | ||
46 | m_count = cnt; | 46 | m_count = cnt; |
47 | m_buttons = new OColorButton * [cnt]; | 47 | m_buttons = new OColorButton * [cnt]; |
48 | m_colors = colors; | 48 | m_colors = colors; |
49 | 49 | ||
50 | for ( int i = 0; i < cnt; i++ ) | 50 | for ( int i = 0; i < cnt; i++ ) |
51 | { | 51 | { |
52 | QLabel *l = new QLabel ( labels [i], this ); | 52 | QLabel *l = new QLabel ( labels [i], this ); |
53 | layout-> addWidget ( l, i, 0 ); | 53 | layout-> addWidget ( l, i, 0 ); |
54 | 54 | ||
55 | m_buttons [i] = new OColorButton ( this ); | 55 | m_buttons [i] = new OColorButton ( this ); |
56 | m_buttons [i]-> setColor ( colors [i] ); | 56 | m_buttons [i]-> setColor ( colors [i] ); |
57 | layout-> addWidget ( m_buttons [i], i, 1 ); | 57 | layout-> addWidget ( m_buttons [i], i, 1 ); |
58 | } | 58 | } |
59 | } | 59 | } |
60 | 60 | ||
61 | EditScheme::~EditScheme ( ) | 61 | EditScheme::~EditScheme ( ) |
62 | { | 62 | { |
63 | delete [] m_buttons; | 63 | delete [] m_buttons; |
64 | } | 64 | } |
65 | 65 | ||
66 | void EditScheme::accept ( ) | 66 | void EditScheme::accept ( ) |
67 | { | 67 | { |
68 | for ( int i = 0; i < m_count; i++ ) | 68 | for ( int i = 0; i < m_count; i++ ) |
69 | m_colors [i] = m_buttons [i]-> color ( ); | 69 | m_colors [i] = m_buttons [i]-> color ( ); |
70 | 70 | ||
71 | QDialog::accept ( ); | 71 | QDialog::accept ( ); |
72 | } | 72 | } |