summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/appearance2/appearance.cpp62
-rw-r--r--noncore/settings/appearance2/appearance.h50
-rw-r--r--noncore/settings/appearance2/colorlistitem.h28
-rw-r--r--noncore/settings/appearance2/decolistitem.h27
-rw-r--r--noncore/settings/appearance2/editScheme.cpp116
-rw-r--r--noncore/settings/appearance2/editScheme.h73
-rw-r--r--noncore/settings/appearance2/main.cpp46
-rw-r--r--noncore/settings/appearance2/sample.cpp29
-rw-r--r--noncore/settings/appearance2/sample.h29
-rw-r--r--noncore/settings/appearance2/stylelistitem.h28
10 files changed, 318 insertions, 170 deletions
diff --git a/noncore/settings/appearance2/appearance.cpp b/noncore/settings/appearance2/appearance.cpp
index 23630c5..66cf2c3 100644
--- a/noncore/settings/appearance2/appearance.cpp
+++ b/noncore/settings/appearance2/appearance.cpp
@@ -1,26 +1,30 @@
1/********************************************************************** 1/*
2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. 2               =. This file is part of the OPIE Project
3** 3             .=l. Copyright (c) 2002 Robert Griebl <sandman@handhelds.org>
4** This file is part of the Qtopia Environment. 4           .>+-=
5** 5 _;:,     .>    :=|. This library is free software; you can
6** This file may be distributed and/or modified under the terms of the 6.> <`_,   >  .   <= redistribute it and/or modify it under
7** GNU General Public License version 2 as published by the Free Software 7:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
8** Foundation and appearing in the file LICENSE.GPL included in the 8.="- .-=="i,     .._ License as published by the Free Software
9** packaging of this file. 9 - .   .-<_>     .<> Foundation; either version 2 of the License,
10** 10     ._= =}       : or (at your option) any later version.
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11    .%`+i>       _;_.
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12    .i_,=:_.      -<s. This library is distributed in the hope that
13** 13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14    : ..    .:,     . . . without even the implied warranty of
15** 15    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
16** Contact info@trolltech.com if any conditions of this licensing are 16  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
17** not clear to you. 17..}^=.=       =       ; Library General Public License for more
18** 18++=   -.     .`     .: details.
19*********************************************************************** 19 :     =  ...= . :.=-
20** 20 -.   .:....=;==+<; You should have received a copy of the GNU
21** Enhancements by: Dan Williams, <williamsdr@acm.org> 21  -_. . .   )=.  = Library General Public License along with
22** 22    --        :-=` this library; see the file COPYING.LIB.
23**********************************************************************/ 23 If not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA.
26
27*/
24 28
25#include "appearance.h" 29#include "appearance.h"
26#include "editScheme.h" 30#include "editScheme.h"
@@ -490,21 +494,21 @@ void Appearance::editSchemeClicked ( )
490 ColorListItem *item = (ColorListItem *) m_color_list-> item ( m_color_list-> currentItem ( )); 494 ColorListItem *item = (ColorListItem *) m_color_list-> item ( m_color_list-> currentItem ( ));
491 495
492 int cnt = 0; 496 int cnt = 0;
493 QString controlLabel [QColorGroup::NColorRoles]; 497 QString labels [QColorGroup::NColorRoles];
494 QString controlColor [QColorGroup::NColorRoles]; 498 QColor colors [QColorGroup::NColorRoles];
495 499
496 for ( QColorGroup::ColorRole role = (QColorGroup::ColorRole) 0; role != QColorGroup::NColorRoles; ((int) role )++ ) { 500 for ( QColorGroup::ColorRole role = (QColorGroup::ColorRole) 0; role != QColorGroup::NColorRoles; ((int) role )++ ) {
497 QColor col = item-> color ( role ); 501 QColor col = item-> color ( role );
498 502
499 if ( col. isValid ( )) { 503 if ( col. isValid ( )) {
500 controlLabel [cnt] = item-> label ( role ); 504 labels [cnt] = item-> label ( role );
501 controlColor [cnt] = col. name ( ); 505 colors [cnt] = col;
502 506
503 cnt++; 507 cnt++;
504 } 508 }
505 } 509 }
506 510
507 EditScheme* editdlg = new EditScheme( this, "editScheme", true, 0, cnt, controlLabel, controlColor ); 511 EditScheme* editdlg = new EditScheme( cnt, labels, colors, this, "editScheme", true );
508 editdlg-> showMaximized ( ); 512 editdlg-> showMaximized ( );
509 if ( editdlg-> exec ( ) == QDialog::Accepted ) { 513 if ( editdlg-> exec ( ) == QDialog::Accepted ) {
510 ColorListItem *citem = (ColorListItem *) m_color_list-> item ( 0 ); 514 ColorListItem *citem = (ColorListItem *) m_color_list-> item ( 0 );
@@ -512,7 +516,7 @@ void Appearance::editSchemeClicked ( )
512 516
513 for ( QColorGroup::ColorRole role = (QColorGroup::ColorRole) 0; role != QColorGroup::NColorRoles; ((int) role )++ ) { 517 for ( QColorGroup::ColorRole role = (QColorGroup::ColorRole) 0; role != QColorGroup::NColorRoles; ((int) role )++ ) {
514 if ( item-> color ( role ). isValid ( )) { 518 if ( item-> color ( role ). isValid ( )) {
515 citem-> setColor ( role, QColor ( controlColor [cnt] )); 519 citem-> setColor ( role, colors [cnt] );
516 cnt++; 520 cnt++;
517 } 521 }
518 } 522 }
diff --git a/noncore/settings/appearance2/appearance.h b/noncore/settings/appearance2/appearance.h
index 4a86e57..ddf94f2 100644
--- a/noncore/settings/appearance2/appearance.h
+++ b/noncore/settings/appearance2/appearance.h
@@ -1,26 +1,30 @@
1/********************************************************************** 1/*
2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. 2               =. This file is part of the OPIE Project
3** 3             .=l. Copyright (c) 2002 Robert Griebl <sandman@handhelds.org>
4** This file is part of the Qtopia Environment. 4           .>+-=
5** 5 _;:,     .>    :=|. This library is free software; you can
6** This file may be distributed and/or modified under the terms of the 6.> <`_,   >  .   <= redistribute it and/or modify it under
7** GNU General Public License version 2 as published by the Free Software 7:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
8** Foundation and appearing in the file LICENSE.GPL included in the 8.="- .-=="i,     .._ License as published by the Free Software
9** packaging of this file. 9 - .   .-<_>     .<> Foundation; either version 2 of the License,
10** 10     ._= =}       : or (at your option) any later version.
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11    .%`+i>       _;_.
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12    .i_,=:_.      -<s. This library is distributed in the hope that
13** 13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14    : ..    .:,     . . . without even the implied warranty of
15** 15    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
16** Contact info@trolltech.com if any conditions of this licensing are 16  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
17** not clear to you. 17..}^=.=       =       ; Library General Public License for more
18** 18++=   -.     .`     .: details.
19*********************************************************************** 19 :     =  ...= . :.=-
20** 20 -.   .:....=;==+<; You should have received a copy of the GNU
21** Enhancements by: Dan Williams, <williamsdr@acm.org> 21  -_. . .   )=.  = Library General Public License along with
22** 22    --        :-=` this library; see the file COPYING.LIB.
23**********************************************************************/ 23 If not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA.
26
27*/
24 28
25#ifndef APPEARANCESETTINGS_H 29#ifndef APPEARANCESETTINGS_H
26#define APPEARANCESETTINGS_H 30#define APPEARANCESETTINGS_H
diff --git a/noncore/settings/appearance2/colorlistitem.h b/noncore/settings/appearance2/colorlistitem.h
index 1ff6ecc..1df541b 100644
--- a/noncore/settings/appearance2/colorlistitem.h
+++ b/noncore/settings/appearance2/colorlistitem.h
@@ -1,3 +1,31 @@
1/*
2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2002 Robert Griebl <sandman@handhelds.org>
4           .>+-=
5 _;:,     .>    :=|. This library is free software; you can
6.> <`_,   >  .   <= redistribute it and/or modify it under
7:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
8.="- .-=="i,     .._ License as published by the Free Software
9 - .   .-<_>     .<> Foundation; either version 2 of the License,
10     ._= =}       : or (at your option) any later version.
11    .%`+i>       _;_.
12    .i_,=:_.      -<s. This library is distributed in the hope that
13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
14    : ..    .:,     . . . without even the implied warranty of
15    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
16  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
17..}^=.=       =       ; Library General Public License for more
18++=   -.     .`     .: details.
19 :     =  ...= . :.=-
20 -.   .:....=;==+<; You should have received a copy of the GNU
21  -_. . .   )=.  = Library General Public License along with
22    --        :-=` this library; see the file COPYING.LIB.
23 If not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA.
26
27*/
28
1#ifndef COLORLISTITEM_H 29#ifndef COLORLISTITEM_H
2#define COLORLISTITEM_H 30#define COLORLISTITEM_H
3 31
diff --git a/noncore/settings/appearance2/decolistitem.h b/noncore/settings/appearance2/decolistitem.h
index dfdce47..953a939 100644
--- a/noncore/settings/appearance2/decolistitem.h
+++ b/noncore/settings/appearance2/decolistitem.h
@@ -1,3 +1,30 @@
1/*
2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2002 Robert Griebl <sandman@handhelds.org>
4           .>+-=
5 _;:,     .>    :=|. This library is free software; you can
6.> <`_,   >  .   <= redistribute it and/or modify it under
7:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
8.="- .-=="i,     .._ License as published by the Free Software
9 - .   .-<_>     .<> Foundation; either version 2 of the License,
10     ._= =}       : or (at your option) any later version.
11    .%`+i>       _;_.
12    .i_,=:_.      -<s. This library is distributed in the hope that
13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
14    : ..    .:,     . . . without even the implied warranty of
15    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
16  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
17..}^=.=       =       ; Library General Public License for more
18++=   -.     .`     .: details.
19 :     =  ...= . :.=-
20 -.   .:....=;==+<; You should have received a copy of the GNU
21  -_. . .   )=.  = Library General Public License along with
22    --        :-=` this library; see the file COPYING.LIB.
23 If not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA.
26
27*/
1#ifndef DECOLISTITEM_H 28#ifndef DECOLISTITEM_H
2#define DECOLISTITEM_H 29#define DECOLISTITEM_H
3 30
diff --git a/noncore/settings/appearance2/editScheme.cpp b/noncore/settings/appearance2/editScheme.cpp
index 4f2ac2c..8cb0f1c 100644
--- a/noncore/settings/appearance2/editScheme.cpp
+++ b/noncore/settings/appearance2/editScheme.cpp
@@ -1,25 +1,34 @@
1/********************************************************************** 1/*
2** EditScheme 2               =. This file is part of the OPIE Project
3** 3             .=l. Copyright (c) 2002 Robert Griebl <sandman@handhelds.org>
4** Dialog for editing color scheme 4           .>+-=
5** 5 _;:,     .>    :=|. This library is free software; you can
6** Copyright (C) 2002, Dan Williams 6.> <`_,   >  .   <= redistribute it and/or modify it under
7** williamsdr@acm.org 7:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
8** http://draknor.net 8.="- .-=="i,     .._ License as published by the Free Software
9** 9 - .   .-<_>     .<> Foundation; either version 2 of the License,
10** This file may be distributed and/or modified under the terms of the 10     ._= =}       : or (at your option) any later version.
11** GNU General Public License version 2 as published by the Free Software 11    .%`+i>       _;_.
12** Foundation and appearing in the file LICENSE.GPL included in the 12    .i_,=:_.      -<s. This library is distributed in the hope that
13** packaging of this file. 13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
14** 14    : ..    .:,     . . . without even the implied warranty of
15** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 15    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
16** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
17** 17..}^=.=       =       ; Library General Public License for more
18**********************************************************************/ 18++=   -.     .`     .: details.
19 :     =  ...= . :.=-
20 -.   .:....=;==+<; You should have received a copy of the GNU
21  -_. . .   )=.  = Library General Public License along with
22    --        :-=` this library; see the file COPYING.LIB.
23 If not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA.
26
27*/
19 28
20#include "editScheme.h" 29#include "editScheme.h"
21 30
22#include "opie/colorpopupmenu.h" 31#include <opie/ocolorbutton.h>
23 32
24#include <qaction.h> 33#include <qaction.h>
25#include <qlabel.h> 34#include <qlabel.h>
@@ -28,60 +37,37 @@
28#include <qscrollview.h> 37#include <qscrollview.h>
29#include <qtoolbutton.h> 38#include <qtoolbutton.h>
30 39
31EditScheme::EditScheme( QWidget* parent, const char* name, bool modal, WFlags fl, 40EditScheme::EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget* parent, const char* name, bool modal, WFlags fl )
32 int max, QString *list, QString *colors ) 41 : QDialog ( parent, name, modal, fl )
33 : QDialog( parent, name, modal, fl )
34{ 42{
35 setCaption( tr( "Edit scheme" ) ); 43 setCaption ( tr( "Edit scheme" ) );
36 QGridLayout* layout = new QGridLayout( this ); 44 QGridLayout *layout = new QGridLayout ( this, 0, 0, 4, 4 );
37 layout->setSpacing( 4 );
38 layout->setMargin( 4 );
39
40 45
41 maxCount = max; 46 m_count = cnt;
42 colorList = colors; 47 m_buttons = new OColorButton * [cnt];
43 surfaceList = list; 48 m_colors = colors;
44 colorButtons = new QToolButton * [max]; 49
45 int i; 50 for ( int i = 0; i < cnt; i++ )
46 QLabel* label;
47 ColorPopupMenu* colorPopupMenu;
48 for ( i = 0; i < max; i++ )
49 { 51 {
50// colorList[i] = colors[i]; 52 QLabel *l = new QLabel ( labels [i], this );
51// surfaceList[i] = list[i]; 53 layout-> addWidget ( l, i, 0 );
52 label = new QLabel( tr( surfaceList[i] ), this ); 54
53 layout->addWidget( label, i, 0 ); 55 m_buttons [i] = new OColorButton ( this );
54 colorButtons[i] = new QToolButton( this, list[i] ); 56 m_buttons [i]-> setColor ( colors [i] );
55 colorButtons[i]->setPalette( QPalette( QColor( colors[i] ) ) ); 57 layout-> addWidget ( m_buttons [i], i, 1 );
56 layout->addWidget( colorButtons[i], i, 1 );
57
58 colorPopupMenu = new ColorPopupMenu( colors[i], 0, list[i] );
59 colorButtons[i]->setPopup( colorPopupMenu );
60 colorButtons[i]->setPopupDelay( 0 );
61 connect( colorPopupMenu, SIGNAL( colorSelected( const QColor& ) ), this, SLOT( changeColor( const QColor& ) ) );
62 } 58 }
63} 59}
64 60
65EditScheme::~EditScheme() 61EditScheme::~EditScheme ( )
66{ 62{
67 delete [] colorButtons; 63 delete [] m_buttons;
68} 64}
69 65
70void EditScheme::changeColor( const QColor& color ) 66void EditScheme::accept ( )
71{ 67{
72 QString name( sender()->name() ); 68 for ( int i = 0; i < m_count; i++ )
73 int i; 69 m_colors [i] = m_buttons [i]-> color ( );
74 70
75 for ( i = 0; i < maxCount; i++ ) 71 QDialog::accept ( );
76 {
77 if ( name == colorButtons[i]->name() )
78 {
79 break;
80 }
81 }
82 if ( i < maxCount && name == colorButtons[i]->name() )
83 {
84 colorList[i] = color.name();
85 colorButtons[i]->setPalette( QPalette( QColor( colorList[i] ) ) );
86 }
87} 72}
73
diff --git a/noncore/settings/appearance2/editScheme.h b/noncore/settings/appearance2/editScheme.h
index 583050f..0a025bd 100644
--- a/noncore/settings/appearance2/editScheme.h
+++ b/noncore/settings/appearance2/editScheme.h
@@ -1,48 +1,53 @@
1/********************************************************************** 1/*
2** EditScheme 2               =. This file is part of the OPIE Project
3** 3             .=l. Copyright (c) 2002 Robert Griebl <sandman@handhelds.org>
4** Dialog for editing color scheme 4           .>+-=
5** 5 _;:,     .>    :=|. This library is free software; you can
6** Copyright (C) 2002, Dan Williams 6.> <`_,   >  .   <= redistribute it and/or modify it under
7** williamsdr@acm.org 7:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
8** http://draknor.net 8.="- .-=="i,     .._ License as published by the Free Software
9** 9 - .   .-<_>     .<> Foundation; either version 2 of the License,
10** This file may be distributed and/or modified under the terms of the 10     ._= =}       : or (at your option) any later version.
11** GNU General Public License version 2 as published by the Free Software 11    .%`+i>       _;_.
12** Foundation and appearing in the file LICENSE.GPL included in the 12    .i_,=:_.      -<s. This library is distributed in the hope that
13** packaging of this file. 13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
14** 14    : ..    .:,     . . . without even the implied warranty of
15** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 15    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
16** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
17** 17..}^=.=       =       ; Library General Public License for more
18**********************************************************************/ 18++=   -.     .`     .: details.
19 :     =  ...= . :.=-
20 -.   .:....=;==+<; You should have received a copy of the GNU
21  -_. . .   )=.  = Library General Public License along with
22    --        :-=` this library; see the file COPYING.LIB.
23 If not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA.
26
27*/
19 28
20#ifndef EDITSCHEME_H 29#ifndef EDITSCHEME_H
21#define EDITSCHEME_H 30#define EDITSCHEME_H
22 31
23#include <qdialog.h> 32#include <qdialog.h>
24#include <qtoolbutton.h>
25 33
26class QColor; 34class QColor;
35class OColorButton;
27 36
28class EditScheme : public QDialog 37class EditScheme : public QDialog {
29{ 38 Q_OBJECT
30 Q_OBJECT
31 39
32public: 40public:
33 EditScheme( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0, 41 EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
34 int = 0, QString * = 0, QString * = 0 ); 42 virtual ~EditScheme ( );
35 ~EditScheme();
36
37 int maxCount;
38 QString * surfaceList;
39 QString * colorList;
40
41
42 QToolButton** colorButtons;
43 43
44protected slots: 44protected slots:
45 void changeColor( const QColor& ); 45 virtual void accept ( );
46
47private:
48 int m_count;
49 QColor *m_colors;
50 OColorButton **m_buttons;
46}; 51};
47 52
48#endif // EDITSCHEME_H 53#endif
diff --git a/noncore/settings/appearance2/main.cpp b/noncore/settings/appearance2/main.cpp
index cfbab0b..3afec46 100644
--- a/noncore/settings/appearance2/main.cpp
+++ b/noncore/settings/appearance2/main.cpp
@@ -1,22 +1,30 @@
1/********************************************************************** 1/*
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2               =. This file is part of the OPIE Project
3** 3             .=l. Copyright (c) 2002 Robert Griebl <sandman@handhelds.org>
4** This file is part of Qtopia Environment. 4           .>+-=
5** 5 _;:,     .>    :=|. This library is free software; you can
6** This file may be distributed and/or modified under the terms of the 6.> <`_,   >  .   <= redistribute it and/or modify it under
7** GNU General Public License version 2 as published by the Free Software 7:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
8** Foundation and appearing in the file LICENSE.GPL included in the 8.="- .-=="i,     .._ License as published by the Free Software
9** packaging of this file. 9 - .   .-<_>     .<> Foundation; either version 2 of the License,
10** 10     ._= =}       : or (at your option) any later version.
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11    .%`+i>       _;_.
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12    .i_,=:_.      -<s. This library is distributed in the hope that
13** 13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14    : ..    .:,     . . . without even the implied warranty of
15** 15    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
16** Contact info@trolltech.com if any conditions of this licensing are 16  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
17** not clear to you. 17..}^=.=       =       ; Library General Public License for more
18** 18++=   -.     .`     .: details.
19**********************************************************************/ 19 :     =  ...= . :.=-
20 -.   .:....=;==+<; You should have received a copy of the GNU
21  -_. . .   )=.  = Library General Public License along with
22    --        :-=` this library; see the file COPYING.LIB.
23 If not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA.
26
27*/
20 28
21#include "appearance.h" 29#include "appearance.h"
22 30
diff --git a/noncore/settings/appearance2/sample.cpp b/noncore/settings/appearance2/sample.cpp
index e447002..0d8b003 100644
--- a/noncore/settings/appearance2/sample.cpp
+++ b/noncore/settings/appearance2/sample.cpp
@@ -1,3 +1,32 @@
1/*
2                This file is part of the OPIE Project
3 =. Copyright (c) 2002 Trolltech AS <info@trolltech.com>
4             .=l. Copyright (c) 2002 Robert Griebl <sandman@handhelds.org>
5           .>+-=
6 _;:,     .>    :=|. This library is free software; you can
7.> <`_,   >  .   <= redistribute it and/or modify it under
8:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
9.="- .-=="i,     .._ License as published by the Free Software
10 - .   .-<_>     .<> Foundation; either version 2 of the License,
11     ._= =}       : or (at your option) any later version.
12    .%`+i>       _;_.
13    .i_,=:_.      -<s. This library is distributed in the hope that
14     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
15    : ..    .:,     . . . without even the implied warranty of
16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
18..}^=.=       =       ; Library General Public License for more
19++=   -.     .`     .: details.
20 :     =  ...= . :.=-
21 -.   .:....=;==+<; You should have received a copy of the GNU
22  -_. . .   )=.  = Library General Public License along with
23    --        :-=` this library; see the file COPYING.LIB.
24 If not, write to the Free Software Foundation,
25 Inc., 59 Temple Place - Suite 330,
26 Boston, MA 02111-1307, USA.
27
28*/
29
1#include <qvbox.h> 30#include <qvbox.h>
2#include <qpopupmenu.h> 31#include <qpopupmenu.h>
3#include <qpainter.h> 32#include <qpainter.h>
diff --git a/noncore/settings/appearance2/sample.h b/noncore/settings/appearance2/sample.h
index c6f9b5a..a189f69 100644
--- a/noncore/settings/appearance2/sample.h
+++ b/noncore/settings/appearance2/sample.h
@@ -1,3 +1,32 @@
1/*
2                This file is part of the OPIE Project
3 =. Copyright (c) 2002 Trolltech AS <info@trolltech.com>
4             .=l. Copyright (c) 2002 Robert Griebl <sandman@handhelds.org>
5           .>+-=
6 _;:,     .>    :=|. This library is free software; you can
7.> <`_,   >  .   <= redistribute it and/or modify it under
8:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
9.="- .-=="i,     .._ License as published by the Free Software
10 - .   .-<_>     .<> Foundation; either version 2 of the License,
11     ._= =}       : or (at your option) any later version.
12    .%`+i>       _;_.
13    .i_,=:_.      -<s. This library is distributed in the hope that
14     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
15    : ..    .:,     . . . without even the implied warranty of
16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
18..}^=.=       =       ; Library General Public License for more
19++=   -.     .`     .: details.
20 :     =  ...= . :.=-
21 -.   .:....=;==+<; You should have received a copy of the GNU
22  -_. . .   )=.  = Library General Public License along with
23    --        :-=` this library; see the file COPYING.LIB.
24 If not, write to the Free Software Foundation,
25 Inc., 59 Temple Place - Suite 330,
26 Boston, MA 02111-1307, USA.
27
28*/
29
1#ifndef __PREVIEW_H__ 30#ifndef __PREVIEW_H__
2#define __PREVIEW_H__ 31#define __PREVIEW_H__
3 32
diff --git a/noncore/settings/appearance2/stylelistitem.h b/noncore/settings/appearance2/stylelistitem.h
index 3cc63dc..bbfbd41 100644
--- a/noncore/settings/appearance2/stylelistitem.h
+++ b/noncore/settings/appearance2/stylelistitem.h
@@ -1,3 +1,31 @@
1/*
2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2002 Robert Griebl <sandman@handhelds.org>
4           .>+-=
5 _;:,     .>    :=|. This library is free software; you can
6.> <`_,   >  .   <= redistribute it and/or modify it under
7:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
8.="- .-=="i,     .._ License as published by the Free Software
9 - .   .-<_>     .<> Foundation; either version 2 of the License,
10     ._= =}       : or (at your option) any later version.
11    .%`+i>       _;_.
12    .i_,=:_.      -<s. This library is distributed in the hope that
13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
14    : ..    .:,     . . . without even the implied warranty of
15    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
16  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
17..}^=.=       =       ; Library General Public License for more
18++=   -.     .`     .: details.
19 :     =  ...= . :.=-
20 -.   .:....=;==+<; You should have received a copy of the GNU
21  -_. . .   )=.  = Library General Public License along with
22    --        :-=` this library; see the file COPYING.LIB.
23 If not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA.
26
27*/
28
1#ifndef STYLELISTITEM_H 29#ifndef STYLELISTITEM_H
2#define STYLELISTITEM_H 30#define STYLELISTITEM_H
3 31