author | drw <drw> | 2004-02-21 22:55:22 (UTC) |
---|---|---|
committer | drw <drw> | 2004-02-21 22:55:22 (UTC) |
commit | c2a2f38b9b7af1f9a4d885c2527a4501425fb9a2 (patch) (unidiff) | |
tree | 7b8b464a300481cd76ca8610c8443c66cc5ecf95 | |
parent | f36efd3490299fb9402a2dc2a6bd2a029fcd93cb (diff) | |
download | opie-c2a2f38b9b7af1f9a4d885c2527a4501425fb9a2.zip opie-c2a2f38b9b7af1f9a4d885c2527a4501425fb9a2.tar.gz opie-c2a2f38b9b7af1f9a4d885c2527a4501425fb9a2.tar.bz2 |
Appearance: libopie->libopie2/libqtaux
-rw-r--r-- | noncore/settings/appearance2/appearance.cpp | 7 | ||||
-rw-r--r-- | noncore/settings/appearance2/appearance.h | 38 | ||||
-rw-r--r-- | noncore/settings/appearance2/appearance2.pro | 6 | ||||
-rw-r--r-- | noncore/settings/appearance2/editScheme.cpp | 22 | ||||
-rw-r--r-- | noncore/settings/appearance2/editScheme.h | 20 |
5 files changed, 48 insertions, 45 deletions
diff --git a/noncore/settings/appearance2/appearance.cpp b/noncore/settings/appearance2/appearance.cpp index ba12e55..b39203b 100644 --- a/noncore/settings/appearance2/appearance.cpp +++ b/noncore/settings/appearance2/appearance.cpp | |||
@@ -38,6 +38,5 @@ | |||
38 | /* OPIE */ | 38 | /* OPIE */ |
39 | #include <opie/ofontselector.h> | 39 | #include <opie2/odevice.h> |
40 | #include <opie/odevice.h> | 40 | #include <opie2/ofiledialog.h> |
41 | #include <opie/ofiledialog.h> | 41 | #include <opie2/otabwidget.h> |
42 | #include <opie/otabwidget.h> | ||
43 | 42 | ||
diff --git a/noncore/settings/appearance2/appearance.h b/noncore/settings/appearance2/appearance.h index 51e9636..f45f549 100644 --- a/noncore/settings/appearance2/appearance.h +++ b/noncore/settings/appearance2/appearance.h | |||
@@ -18,3 +18,3 @@ | |||
18 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
@@ -31,2 +31,4 @@ | |||
31 | 31 | ||
32 | #include <opie2/ofontselector.h> | ||
33 | |||
32 | #include <qpe/fontdatabase.h> | 34 | #include <qpe/fontdatabase.h> |
@@ -35,2 +37,4 @@ | |||
35 | 37 | ||
38 | using Opie::OFontSelector; | ||
39 | |||
36 | class QCheckBox; | 40 | class QCheckBox; |
@@ -60,5 +64,5 @@ public: | |||
60 | protected: | 64 | protected: |
61 | virtual void accept ( ); | 65 | virtual void accept ( ); |
62 | virtual void done ( int r ); | 66 | virtual void done ( int r ); |
63 | 67 | ||
64 | protected slots: | 68 | protected slots: |
@@ -73,5 +77,5 @@ protected slots: | |||
73 | void deleteSchemeClicked(); | 77 | void deleteSchemeClicked(); |
74 | 78 | ||
75 | void tabChanged ( QWidget * ); | 79 | void tabChanged ( QWidget * ); |
76 | 80 | ||
77 | void addExcept ( ); | 81 | void addExcept ( ); |
@@ -84,8 +88,8 @@ private: | |||
84 | void changeText(); | 88 | void changeText(); |
85 | 89 | ||
86 | QWidget *createStyleTab ( QWidget *parent, Config &cfg ); | 90 | QWidget *createStyleTab ( QWidget *parent, Config &cfg ); |
87 | QWidget *createDecoTab ( QWidget *parent, Config &cfg ); | 91 | QWidget *createDecoTab ( QWidget *parent, Config &cfg ); |
88 | QWidget *createFontTab ( QWidget *parent, Config &cfg ); | 92 | QWidget *createFontTab ( QWidget *parent, Config &cfg ); |
89 | QWidget *createColorTab ( QWidget *parent, Config &cfg ); | 93 | QWidget *createColorTab ( QWidget *parent, Config &cfg ); |
90 | QWidget *createAdvancedTab ( QWidget *parent, Config &cfg ); | 94 | QWidget *createAdvancedTab ( QWidget *parent, Config &cfg ); |
91 | 95 | ||
@@ -102,3 +106,3 @@ private: | |||
102 | bool m_original_tabpos; | 106 | bool m_original_tabpos; |
103 | 107 | ||
104 | QListBox * m_style_list; | 108 | QListBox * m_style_list; |
@@ -110,6 +114,6 @@ private: | |||
110 | 114 | ||
111 | OFontSelector *m_fontselect; | 115 | OFontSelector *m_fontselect; |
116 | |||
117 | SampleWindow *m_sample; | ||
112 | 118 | ||
113 | SampleWindow *m_sample; | ||
114 | |||
115 | QComboBox * m_tabstyle_list; | 119 | QComboBox * m_tabstyle_list; |
@@ -122,3 +126,3 @@ private: | |||
122 | 126 | ||
123 | QWidget * m_advtab; | 127 | QWidget * m_advtab; |
124 | QListView * m_except; | 128 | QListView * m_except; |
diff --git a/noncore/settings/appearance2/appearance2.pro b/noncore/settings/appearance2/appearance2.pro index ca5a4ec..e2d73c2 100644 --- a/noncore/settings/appearance2/appearance2.pro +++ b/noncore/settings/appearance2/appearance2.pro | |||
@@ -4,8 +4,6 @@ SOURCES = appearance.cpp editScheme.cpp main.cpp sample.cpp | |||
4 | INCLUDEPATH += $(OPIEDIR)/include | 4 | INCLUDEPATH += $(OPIEDIR)/include |
5 | DEPENDPATH += ../$(OPIEDIR)/include | ||
6 | LIBS += -lqpe -lopie | ||
7 | INCLUDEPATH += $(OPIEDIR)/include | ||
8 | DEPENDPATH += $(OPIEDIR)/include | 5 | DEPENDPATH += $(OPIEDIR)/include |
6 | LIBS += -lqpe -lopiecore2 -lopieui2 -lqtaux2 | ||
9 | 7 | ||
10 | TARGET = appearance | 8 | TARGET = appearance |
11 | 9 | ||
diff --git a/noncore/settings/appearance2/editScheme.cpp b/noncore/settings/appearance2/editScheme.cpp index 7e5225f..0f3702f 100644 --- a/noncore/settings/appearance2/editScheme.cpp +++ b/noncore/settings/appearance2/editScheme.cpp | |||
@@ -30,4 +30,2 @@ | |||
30 | 30 | ||
31 | #include <opie/ocolorbutton.h> | ||
32 | |||
33 | #include <qaction.h> | 31 | #include <qaction.h> |
@@ -41,6 +39,6 @@ | |||
41 | EditScheme::EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget* parent, const char* name, bool modal, WFlags ) | 39 | EditScheme::EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget* parent, const char* name, bool modal, WFlags ) |
42 | : QDialog ( parent, name, modal, WStyle_ContextHelp ) | 40 | : QDialog ( parent, name, modal, WStyle_ContextHelp ) |
43 | { | 41 | { |
44 | setCaption ( tr( "Edit scheme" ) ); | 42 | setCaption ( tr( "Edit scheme" ) ); |
45 | QGridLayout *layout = new QGridLayout ( this, 0, 0, 4, 4 ); | 43 | QGridLayout *layout = new QGridLayout ( this, 0, 0, 4, 4 ); |
46 | 44 | ||
@@ -54,3 +52,3 @@ EditScheme::EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget | |||
54 | layout-> addWidget ( l, i, 0 ); | 52 | layout-> addWidget ( l, i, 0 ); |
55 | QWhatsThis::add( l, tr( "Click here to select a color for: " ).arg( labels [i] ) ); | 53 | QWhatsThis::add( l, tr( "Click here to select a color for: " ).arg( labels [i] ) ); |
56 | 54 | ||
@@ -58,3 +56,3 @@ EditScheme::EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget | |||
58 | layout-> addWidget ( m_buttons [i], i, 1 ); | 56 | layout-> addWidget ( m_buttons [i], i, 1 ); |
59 | QWhatsThis::add( m_buttons [i], tr( "Click here to select a color for: " ).arg( labels [i] ) ); | 57 | QWhatsThis::add( m_buttons [i], tr( "Click here to select a color for: " ).arg( labels [i] ) ); |
60 | } | 58 | } |
@@ -64,3 +62,3 @@ EditScheme::~EditScheme ( ) | |||
64 | { | 62 | { |
65 | delete [] m_buttons; | 63 | delete [] m_buttons; |
66 | } | 64 | } |
@@ -69,6 +67,6 @@ void EditScheme::accept ( ) | |||
69 | { | 67 | { |
70 | for ( int i = 0; i < m_count; i++ ) | 68 | for ( int i = 0; i < m_count; i++ ) |
71 | m_colors [i] = m_buttons [i]-> color ( ); | 69 | m_colors [i] = m_buttons [i]-> color ( ); |
72 | 70 | ||
73 | QDialog::accept ( ); | 71 | QDialog::accept ( ); |
74 | } | 72 | } |
diff --git a/noncore/settings/appearance2/editScheme.h b/noncore/settings/appearance2/editScheme.h index 93dc50d..c7539cb 100644 --- a/noncore/settings/appearance2/editScheme.h +++ b/noncore/settings/appearance2/editScheme.h | |||
@@ -18,3 +18,3 @@ | |||
18 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
@@ -31,4 +31,8 @@ | |||
31 | 31 | ||
32 | #include <opie2/ocolorbutton.h> | ||
33 | |||
32 | #include <qdialog.h> | 34 | #include <qdialog.h> |
33 | 35 | ||
36 | using Opie::OColorButton; | ||
37 | |||
34 | class QColor; | 38 | class QColor; |
@@ -37,15 +41,15 @@ class OColorButton; | |||
37 | class EditScheme : public QDialog { | 41 | class EditScheme : public QDialog { |
38 | Q_OBJECT | 42 | Q_OBJECT |
39 | 43 | ||
40 | public: | 44 | public: |
41 | EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); | 45 | EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); |
42 | virtual ~EditScheme ( ); | 46 | virtual ~EditScheme ( ); |
43 | 47 | ||
44 | protected slots: | 48 | protected slots: |
45 | virtual void accept ( ); | 49 | virtual void accept ( ); |
46 | 50 | ||
47 | private: | 51 | private: |
48 | int m_count; | 52 | int m_count; |
49 | QColor *m_colors; | 53 | QColor *m_colors; |
50 | OColorButton **m_buttons; | 54 | OColorButton **m_buttons; |
51 | }; | 55 | }; |