summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/appearance2/appearance.cpp3
-rw-r--r--noncore/settings/appearance2/appearance.h6
-rw-r--r--noncore/settings/appearance2/editScheme.cpp5
-rw-r--r--noncore/settings/appearance2/editScheme.h6
-rw-r--r--noncore/settings/appearance2/main.cpp1
5 files changed, 11 insertions, 10 deletions
diff --git a/noncore/settings/appearance2/appearance.cpp b/noncore/settings/appearance2/appearance.cpp
index 8ae87fe..6b9fe4d 100644
--- a/noncore/settings/appearance2/appearance.cpp
+++ b/noncore/settings/appearance2/appearance.cpp
@@ -68,17 +68,18 @@
68#include <qtoolbutton.h> 68#include <qtoolbutton.h>
69#include <qwindowsstyle.h> 69#include <qwindowsstyle.h>
70#include <qlistview.h> 70#include <qlistview.h>
71#include <qheader.h> 71#include <qheader.h>
72#include <qvbox.h> 72#include <qvbox.h>
73#include <qwhatsthis.h> 73#include <qwhatsthis.h>
74 74
75using namespace Opie; 75using namespace Opie;
76 76using namespace Opie::Ui;
77using namespace Opie::Core;
77 78
78class DefaultWindowDecoration : public WindowDecorationInterface 79class DefaultWindowDecoration : public WindowDecorationInterface
79{ 80{
80public: 81public:
81 DefaultWindowDecoration() : ref(0) {} 82 DefaultWindowDecoration() : ref(0) {}
82 QString name() const 83 QString name() const
83 { 84 {
84 return "Default"; 85 return "Default";
diff --git a/noncore/settings/appearance2/appearance.h b/noncore/settings/appearance2/appearance.h
index f45f549..134a918 100644
--- a/noncore/settings/appearance2/appearance.h
+++ b/noncore/settings/appearance2/appearance.h
@@ -30,29 +30,29 @@
30#define APPEARANCESETTINGS_H 30#define APPEARANCESETTINGS_H
31 31
32#include <opie2/ofontselector.h> 32#include <opie2/ofontselector.h>
33 33
34#include <qpe/fontdatabase.h> 34#include <qpe/fontdatabase.h>
35 35
36#include <qdialog.h> 36#include <qdialog.h>
37 37
38using Opie::OFontSelector; 38using Opie::Ui::OFontSelector;
39 39
40class QCheckBox; 40class QCheckBox;
41class QComboBox; 41class QComboBox;
42class QLabel; 42class QLabel;
43class QLineEdit; 43class QLineEdit;
44class QListBox; 44class QListBox;
45class QMultiLineEdit; 45class QMultiLineEdit;
46class QPushButton; 46class QPushButton;
47class QRadioButton; 47class QRadioButton;
48class QToolButton; 48class QToolButton;
49class SampleWindow; 49class SampleWindow;
50class OFontSelector; 50namespace Opie {namespace Ui {class OFontSelector;}}
51class QListView; 51class QListView;
52class QListViewItem; 52class QListViewItem;
53class Config; 53class Config;
54 54
55class Appearance : public QDialog 55class Appearance : public QDialog
56{ 56{
57 Q_OBJECT 57 Q_OBJECT
58 58
@@ -107,17 +107,17 @@ private:
107 107
108 QListBox * m_style_list; 108 QListBox * m_style_list;
109 QPushButton * m_style_settings; 109 QPushButton * m_style_settings;
110 110
111 QListBox * m_deco_list; 111 QListBox * m_deco_list;
112 112
113 QListBox * m_color_list; 113 QListBox * m_color_list;
114 114
115 OFontSelector *m_fontselect; 115 Opie::Ui::OFontSelector *m_fontselect;
116 116
117 SampleWindow *m_sample; 117 SampleWindow *m_sample;
118 118
119 QComboBox * m_tabstyle_list; 119 QComboBox * m_tabstyle_list;
120 QRadioButton *m_tabstyle_top; 120 QRadioButton *m_tabstyle_top;
121 QRadioButton *m_tabstyle_bottom; 121 QRadioButton *m_tabstyle_bottom;
122 122
123 QRadioButton *m_rotdir_cw; 123 QRadioButton *m_rotdir_cw;
diff --git a/noncore/settings/appearance2/editScheme.cpp b/noncore/settings/appearance2/editScheme.cpp
index 0f3702f..18c69a5 100644
--- a/noncore/settings/appearance2/editScheme.cpp
+++ b/noncore/settings/appearance2/editScheme.cpp
@@ -31,33 +31,34 @@
31#include <qaction.h> 31#include <qaction.h>
32#include <qlabel.h> 32#include <qlabel.h>
33#include <qlayout.h> 33#include <qlayout.h>
34#include <qpopupmenu.h> 34#include <qpopupmenu.h>
35#include <qscrollview.h> 35#include <qscrollview.h>
36#include <qtoolbutton.h> 36#include <qtoolbutton.h>
37#include <qwhatsthis.h> 37#include <qwhatsthis.h>
38 38
39using namespace Opie::Ui;
39EditScheme::EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget* parent, const char* name, bool modal, WFlags ) 40EditScheme::EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget* parent, const char* name, bool modal, WFlags )
40 : QDialog ( parent, name, modal, WStyle_ContextHelp ) 41 : QDialog ( parent, name, modal, WStyle_ContextHelp )
41{ 42{
42 setCaption ( tr( "Edit scheme" ) ); 43 setCaption ( tr( "Edit scheme" ) );
43 QGridLayout *layout = new QGridLayout ( this, 0, 0, 4, 4 ); 44 QGridLayout *layout = new QGridLayout ( this, 0, 0, 4, 4 );
44 45
45 m_count = cnt; 46 m_count = cnt;
46 m_buttons = new OColorButton * [cnt]; 47 m_buttons = new Opie::OColorButton * [cnt];
47 m_colors = colors; 48 m_colors = colors;
48 49
49 for ( int i = 0; i < cnt; i++ ) 50 for ( int i = 0; i < cnt; i++ )
50 { 51 {
51 QLabel *l = new QLabel ( labels [i], this ); 52 QLabel *l = new QLabel ( labels [i], this );
52 layout-> addWidget ( l, i, 0 ); 53 layout-> addWidget ( l, i, 0 );
53 QWhatsThis::add( l, tr( "Click here to select a color for: " ).arg( labels [i] ) ); 54 QWhatsThis::add( l, tr( "Click here to select a color for: " ).arg( labels [i] ) );
54 55
55 m_buttons [i] = new OColorButton ( this, colors [i] ); 56 m_buttons [i] = new Opie::OColorButton ( this, colors [i] );
56 layout-> addWidget ( m_buttons [i], i, 1 ); 57 layout-> addWidget ( m_buttons [i], i, 1 );
57 QWhatsThis::add( m_buttons [i], tr( "Click here to select a color for: " ).arg( labels [i] ) ); 58 QWhatsThis::add( m_buttons [i], tr( "Click here to select a color for: " ).arg( labels [i] ) );
58 } 59 }
59} 60}
60 61
61EditScheme::~EditScheme ( ) 62EditScheme::~EditScheme ( )
62{ 63{
63 delete [] m_buttons; 64 delete [] m_buttons;
diff --git a/noncore/settings/appearance2/editScheme.h b/noncore/settings/appearance2/editScheme.h
index c7539cb..302652c 100644
--- a/noncore/settings/appearance2/editScheme.h
+++ b/noncore/settings/appearance2/editScheme.h
@@ -28,30 +28,28 @@
28 28
29#ifndef EDITSCHEME_H 29#ifndef EDITSCHEME_H
30#define EDITSCHEME_H 30#define EDITSCHEME_H
31 31
32#include <opie2/ocolorbutton.h> 32#include <opie2/ocolorbutton.h>
33 33
34#include <qdialog.h> 34#include <qdialog.h>
35 35
36using Opie::OColorButton;
37
38class QColor; 36class QColor;
39class OColorButton; 37namespace Opie {namespace Ui {class OColor;}}
40 38
41class EditScheme : public QDialog { 39class EditScheme : public QDialog {
42 Q_OBJECT 40 Q_OBJECT
43 41
44public: 42public:
45 EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); 43 EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
46 virtual ~EditScheme ( ); 44 virtual ~EditScheme ( );
47 45
48protected slots: 46protected slots:
49 virtual void accept ( ); 47 virtual void accept ( );
50 48
51private: 49private:
52 int m_count; 50 int m_count;
53 QColor *m_colors; 51 QColor *m_colors;
54 OColorButton **m_buttons; 52 Opie::OColorButton **m_buttons;
55}; 53};
56 54
57#endif 55#endif
diff --git a/noncore/settings/appearance2/main.cpp b/noncore/settings/appearance2/main.cpp
index 8ac45d8..87061e3 100644
--- a/noncore/settings/appearance2/main.cpp
+++ b/noncore/settings/appearance2/main.cpp
@@ -25,9 +25,10 @@
25 25
26*/ 26*/
27 27
28#include "appearance.h" 28#include "appearance.h"
29 29
30#include <opie2/oapplicationfactory.h> 30#include <opie2/oapplicationfactory.h>
31 31
32 32
33using namespace Opie::Core;
33OPIE_EXPORT_APP( OApplicationFactory<Appearance> ) 34OPIE_EXPORT_APP( OApplicationFactory<Appearance> )