author | harlekin <harlekin> | 2003-03-08 21:40:57 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-03-08 21:40:57 (UTC) |
commit | a6bf0a8b50265dd667f31fed18a6dcad15ef10b5 (patch) (unidiff) | |
tree | b960cf65353e5b67992c86a8bfa5349c73034e06 | |
parent | 006850e5841fe3d509845a10bb8a6391c556c1c0 (diff) | |
download | opie-a6bf0a8b50265dd667f31fed18a6dcad15ef10b5.zip opie-a6bf0a8b50265dd667f31fed18a6dcad15ef10b5.tar.gz opie-a6bf0a8b50265dd667f31fed18a6dcad15ef10b5.tar.bz2 |
icon changes
-rw-r--r-- | core/settings/launcher/launchersettings.cpp | 9 | ||||
-rw-r--r-- | core/settings/launcher/tabdialog.cpp | 82 |
2 files changed, 46 insertions, 45 deletions
diff --git a/core/settings/launcher/launchersettings.cpp b/core/settings/launcher/launchersettings.cpp index 7b85602..cb6e98a 100644 --- a/core/settings/launcher/launchersettings.cpp +++ b/core/settings/launcher/launchersettings.cpp | |||
@@ -1 +1,2 @@ | |||
1 | |||
1 | /* | 2 | /* |
@@ -17,3 +18,3 @@ | |||
17 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
18 | ++= -. .` .: | 19 | ++= -. .` .: |
19 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
@@ -51,6 +52,6 @@ LauncherSettings::LauncherSettings ( ) : QDialog ( 0, "LauncherSettings", false, | |||
51 | 52 | ||
52 | tw-> addTab ( m_taskbar, "launchersettings/taskbartab.png", tr( "Taskbar" )); | 53 | tw-> addTab ( m_taskbar, "wait", tr( "Taskbar" )); |
53 | tw-> addTab ( m_menu, "launchersettings/menutab.png", tr( "O-Menu" )); | 54 | tw-> addTab ( m_menu, "go", tr( "O-Menu" )); |
54 | tw-> addTab ( m_tabs, "launchersettings/tabstab.png", tr( "Tabs" )); | 55 | tw-> addTab ( m_tabs, "launchersettings/tabstab.png", tr( "Tabs" )); |
55 | 56 | ||
56 | tw-> setCurrentTab ( m_taskbar ); | 57 | tw-> setCurrentTab ( m_taskbar ); |
diff --git a/core/settings/launcher/tabdialog.cpp b/core/settings/launcher/tabdialog.cpp index 4c9942f..5f68010 100644 --- a/core/settings/launcher/tabdialog.cpp +++ b/core/settings/launcher/tabdialog.cpp | |||
@@ -17,3 +17,3 @@ | |||
17 | ..}^=.= = ; Public License for more details. | 17 | ..}^=.= = ; Public License for more details. |
18 | ++= -. .` .: | 18 | ++= -. .` .: |
19 | : = ...= . :.=- You should have received a copy of the GNU | 19 | : = ...= . :.=- You should have received a copy of the GNU |
@@ -54,3 +54,3 @@ public: | |||
54 | SampleItem ( QIconView *v, const QString &text, const QPixmap &pix ) : QIconViewItem ( v, text ) | 54 | SampleItem ( QIconView *v, const QString &text, const QPixmap &pix ) : QIconViewItem ( v, text ) |
55 | { | 55 | { |
56 | m_large = pix; | 56 | m_large = pix; |
@@ -58,3 +58,3 @@ public: | |||
58 | } | 58 | } |
59 | 59 | ||
60 | void sizeChange ( ) | 60 | void sizeChange ( ) |
@@ -64,6 +64,6 @@ public: | |||
64 | } | 64 | } |
65 | 65 | ||
66 | QPixmap *pixmap ( ) const | 66 | QPixmap *pixmap ( ) const |
67 | { | 67 | { |
68 | if ( iconView ( )-> itemTextPos ( ) == QIconView::Right ) | 68 | if ( iconView ( )-> itemTextPos ( ) == QIconView::Right ) |
69 | return (QPixmap *) &m_small; | 69 | return (QPixmap *) &m_small; |
@@ -72,3 +72,3 @@ public: | |||
72 | } | 72 | } |
73 | 73 | ||
74 | private: | 74 | private: |
@@ -93,10 +93,10 @@ public: | |||
93 | 93 | ||
94 | new SampleItem ( this, tr( "Sample 1" ), Resource::loadPixmap ( "DateBook" )); | 94 | new SampleItem ( this, tr( "Sample 1" ), Resource::loadPixmap ( "datebook/DateBook" )); |
95 | new SampleItem ( this, tr( "Sample 2" ), Resource::loadPixmap ( "Calibrate" )); | 95 | new SampleItem ( this, tr( "Sample 2" ), Resource::loadPixmap ( "Calibrate" )); |
96 | new SampleItem ( this, tr( "Sample 3" ), Resource::loadPixmap ( "UnknownDocument" )); | 96 | new SampleItem ( this, tr( "Sample 3" ), Resource::loadPixmap ( "UnknownDocument" )); |
97 | 97 | ||
98 | setBackgroundType ( TabConfig::Ruled, QString::null ); | 98 | setBackgroundType ( TabConfig::Ruled, QString::null ); |
99 | 99 | ||
100 | setMaximumHeight ( firstItem ( )-> height ( ) + 16 ); | 100 | setMaximumHeight ( firstItem ( )-> height ( ) + 16 ); |
101 | } | 101 | } |
102 | 102 | ||
@@ -107,3 +107,3 @@ public: | |||
107 | switch ( m ) { | 107 | switch ( m ) { |
108 | case TabConfig::List: | 108 | case TabConfig::List: |
109 | setItemTextPos( QIconView::Right ); | 109 | setItemTextPos( QIconView::Right ); |
@@ -121,3 +121,3 @@ public: | |||
121 | update ( ); | 121 | update ( ); |
122 | } | 122 | } |
123 | 123 | ||
@@ -190,3 +190,3 @@ public: | |||
190 | } | 190 | } |
191 | 191 | ||
192 | void calculateGrid ( ItemTextPos pos ) | 192 | void calculateGrid ( ItemTextPos pos ) |
@@ -204,3 +204,3 @@ public: | |||
204 | setGridY ( fontMetrics ( ). height ( ) * 2 + 24 ); | 204 | setGridY ( fontMetrics ( ). height ( ) * 2 + 24 ); |
205 | } | 205 | } |
206 | else { | 206 | else { |
@@ -216,3 +216,3 @@ public: | |||
216 | } | 216 | } |
217 | 217 | ||
218 | void paletteChange( const QPalette &p ) | 218 | void paletteChange( const QPalette &p ) |
@@ -220,3 +220,3 @@ public: | |||
220 | static bool excllock = false; | 220 | static bool excllock = false; |
221 | 221 | ||
222 | if ( excllock ) | 222 | if ( excllock ) |
@@ -224,3 +224,3 @@ public: | |||
224 | excllock = true; | 224 | excllock = true; |
225 | 225 | ||
226 | unsetPalette ( ); | 226 | unsetPalette ( ); |
@@ -232,7 +232,7 @@ public: | |||
232 | setPalette ( QPalette ( cg, cg, cg )); | 232 | setPalette ( QPalette ( cg, cg, cg )); |
233 | 233 | ||
234 | excllock = false; | 234 | excllock = false; |
235 | } | 235 | } |
236 | 236 | ||
237 | void setBackgroundPixmap ( const QPixmap &pm ) | 237 | void setBackgroundPixmap ( const QPixmap &pm ) |
238 | { | 238 | { |
@@ -240,4 +240,4 @@ public: | |||
240 | } | 240 | } |
241 | 241 | ||
242 | void setBackgroundColor ( const QColor &c ) | 242 | void setBackgroundColor ( const QColor &c ) |
243 | { | 243 | { |
@@ -249,5 +249,5 @@ public: | |||
249 | if ( !m_bgpix. isNull ( )) { | 249 | if ( !m_bgpix. isNull ( )) { |
250 | p-> drawTiledPixmap ( r, m_bgpix, QPoint (( r. x ( ) + contentsX ( )) % m_bgpix. width ( ), | 250 | p-> drawTiledPixmap ( r, m_bgpix, QPoint (( r. x ( ) + contentsX ( )) % m_bgpix. width ( ), |
251 | ( r. y ( ) + contentsY ( )) % m_bgpix. height ( ))); | 251 | ( r. y ( ) + contentsY ( )) % m_bgpix. height ( ))); |
252 | } | 252 | } |
253 | else | 253 | else |
@@ -255,3 +255,3 @@ public: | |||
255 | } | 255 | } |
256 | 256 | ||
257 | private: | 257 | private: |
@@ -275,5 +275,5 @@ TabDialog::TabDialog ( const QPixmap *tabicon, const QString &tabname, TabConfig | |||
275 | 275 | ||
276 | tw-> addTab ( bgtab = createBgTab ( tw ), "appearance/backgroundtabicon.png", tr( "Background" )); | 276 | tw-> addTab ( bgtab = createBgTab ( tw ), "appearance/color", tr( "Background" )); |
277 | tw-> addTab ( createFontTab ( tw ), "appearance/fonttabicon.png", tr( "Font" )); | 277 | tw-> addTab ( createFontTab ( tw ), "font", tr( "Font" )); |
278 | tw-> addTab ( createIconTab ( tw ), "appearance/colorstabicon.png", tr( "Icons" ) ); | 278 | tw-> addTab ( createIconTab ( tw ), "pixmap", tr( "Icons" ) ); |
279 | 279 | ||
@@ -377,6 +377,6 @@ QWidget *TabDialog::createBgTab ( QWidget *parent ) | |||
377 | hb-> addStretch ( 10 ); | 377 | hb-> addStretch ( 10 ); |
378 | 378 | ||
379 | gridLayout-> addLayout ( hb, 2, 1 ); | 379 | gridLayout-> addLayout ( hb, 2, 1 ); |
380 | 380 | ||
381 | QPushButton *p = new QPushButton ( tr( "Default" ), tab ); | 381 | QPushButton *p = new QPushButton ( tr( "Default" ), tab ); |
382 | connect ( p, SIGNAL( clicked ( )), this, SLOT( bgDefaultClicked ( ))); | 382 | connect ( p, SIGNAL( clicked ( )), this, SLOT( bgDefaultClicked ( ))); |
@@ -395,3 +395,3 @@ QWidget *TabDialog::createIconTab ( QWidget *parent ) | |||
395 | QVBoxLayout *vertLayout = new QVBoxLayout( tab, 3, 3 ); | 395 | QVBoxLayout *vertLayout = new QVBoxLayout( tab, 3, 3 ); |
396 | 396 | ||
397 | QGridLayout* gridLayout = new QGridLayout ( vertLayout ); | 397 | QGridLayout* gridLayout = new QGridLayout ( vertLayout ); |
@@ -450,3 +450,3 @@ void TabDialog::bgTypeClicked ( int t ) | |||
450 | m_bgtype-> setButton ( t ); | 450 | m_bgtype-> setButton ( t ); |
451 | 451 | ||
452 | m_solidcolor-> setEnabled ( t == TabConfig::SolidColor ); | 452 | m_solidcolor-> setEnabled ( t == TabConfig::SolidColor ); |
@@ -458,3 +458,3 @@ void TabDialog::bgTypeClicked ( int t ) | |||
458 | s = Resource::findPixmap ( m_bgimage ); | 458 | s = Resource::findPixmap ( m_bgimage ); |
459 | 459 | ||
460 | m_sample-> setBackgroundType ((TabConfig::BackgroundType) t, s ); | 460 | m_sample-> setBackgroundType ((TabConfig::BackgroundType) t, s ); |
@@ -479,5 +479,5 @@ void TabDialog::bgImageClicked ( ) | |||
479 | QStringList list; | 479 | QStringList list; |
480 | list << "image/*"; | 480 | list << "image/*"; |
481 | types. insert ( "Images", list ); | 481 | types. insert ( "Images", list ); |
482 | 482 | ||
483 | QString file = OFileDialog::getOpenFileName ( 1, "/", QString::null, types ); | 483 | QString file = OFileDialog::getOpenFileName ( 1, "/", QString::null, types ); |
@@ -486,3 +486,3 @@ void TabDialog::bgImageClicked ( ) | |||
486 | bgTypeClicked ( TabConfig::Image ); | 486 | bgTypeClicked ( TabConfig::Image ); |
487 | } | 487 | } |
488 | } | 488 | } |
@@ -502,8 +502,8 @@ void TabDialog::accept ( ) | |||
502 | m_tc. m_text_color = m_iconcolor-> color ( ). name ( ); | 502 | m_tc. m_text_color = m_iconcolor-> color ( ). name ( ); |
503 | 503 | ||
504 | m_tc. m_font_use = m_fontuse-> isChecked ( ); | 504 | m_tc. m_font_use = m_fontuse-> isChecked ( ); |
505 | 505 | ||
506 | if ( m_tc. m_font_use ) { | 506 | if ( m_tc. m_font_use ) { |
507 | QFont f = m_fontselect-> selectedFont ( ); | 507 | QFont f = m_fontselect-> selectedFont ( ); |
508 | 508 | ||
509 | m_tc. m_font_family = f. family ( ); | 509 | m_tc. m_font_family = f. family ( ); |
@@ -513,3 +513,3 @@ void TabDialog::accept ( ) | |||
513 | } | 513 | } |
514 | 514 | ||
515 | QDialog::accept ( ); | 515 | QDialog::accept ( ); |