-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | noncore/settings/appearance2/appearance.cpp | 37 | ||||
-rw-r--r-- | noncore/settings/appearance2/appearance.h | 5 |
3 files changed, 43 insertions, 1 deletions
@@ -1,30 +1,30 @@ | |||
1 | 2005-??-??Opie 1.2.2 | 1 | 2005-??-??Opie 1.2.2 |
2 | 2 | ||
3 | 3 | ||
4 | New Features | 4 | New Features |
5 | ------------ | 5 | ------------ |
6 | 6 | * Appearance: Added configuration options to set smallIconSize, bigIconSize, useBigPixmaps (hrw) | |
7 | 7 | ||
8 | Fixed Bugs | 8 | Fixed Bugs |
9 | ---------- | 9 | ---------- |
10 | * #1695 - Date selector use too small fontsize on VGA screen (hrw) | 10 | * #1695 - Date selector use too small fontsize on VGA screen (hrw) |
11 | * #1686 - opie-console lack UI setting for switching scrollbar (hrw) | 11 | * #1686 - opie-console lack UI setting for switching scrollbar (hrw) |
12 | * #1624 - Button settngs changes are applied only after restart (hrw) | 12 | * #1624 - Button settngs changes are applied only after restart (hrw) |
13 | * #1492 - Backup and Restore does not show list of backups to restore on start (hrw) | 13 | * #1492 - Backup and Restore does not show list of backups to restore on start (hrw) |
14 | * n.a. - remove hardcoded font size from wellenreiter (hrw) | 14 | * n.a. - remove hardcoded font size from wellenreiter (hrw) |
15 | * n.a. - added patch to build QT/E 2.3.10 with gc 4.x.x (hrw) | 15 | * n.a. - added patch to build QT/E 2.3.10 with gc 4.x.x (hrw) |
16 | 16 | ||
17 | 2005-09-11Opie 1.2.1 | 17 | 2005-09-11Opie 1.2.1 |
18 | 18 | ||
19 | 19 | ||
20 | New Features | 20 | New Features |
21 | ------------ | 21 | ------------ |
22 | * OpieStumbler: Scans WiFi networks using the wireless extension scanning (skyhusker) | 22 | * OpieStumbler: Scans WiFi networks using the wireless extension scanning (skyhusker) |
23 | * Opie-Reader: Support for document formats ArriereGo and Reb, add flite output (tim,pohly) | 23 | * Opie-Reader: Support for document formats ArriereGo and Reb, add flite output (tim,pohly) |
24 | * Opie-Networksettings: Add support for wlan-ng devices and improve WEP handling (Dirk Opfer) | 24 | * Opie-Networksettings: Add support for wlan-ng devices and improve WEP handling (Dirk Opfer) |
25 | * Wellenreiter: Remove Joining networks - use OpieStumbler for that (mickeyl) | 25 | * Wellenreiter: Remove Joining networks - use OpieStumbler for that (mickeyl) |
26 | * Opie-Mobilemsg has gone unsupported - it never really worked and there will be a replacement (mickeyl) | 26 | * Opie-Mobilemsg has gone unsupported - it never really worked and there will be a replacement (mickeyl) |
27 | * Opie-Tabmanager has gone unsupported - it barely works and there is not much of a use of it anyway (mickeyl) | 27 | * Opie-Tabmanager has gone unsupported - it barely works and there is not much of a use of it anyway (mickeyl) |
28 | * Checkbook: Added configuration option to use smaller font for checkbook transaction tab (hrw) | 28 | * Checkbook: Added configuration option to use smaller font for checkbook transaction tab (hrw) |
29 | * ZSafe: Made UI conform to Opie standards (drw) | 29 | * ZSafe: Made UI conform to Opie standards (drw) |
30 | * Today Addressbook plugin: Fixed configuration to show/not show birthdays, use checkboxes for selection (hrw) | 30 | * Today Addressbook plugin: Fixed configuration to show/not show birthdays, use checkboxes for selection (hrw) |
diff --git a/noncore/settings/appearance2/appearance.cpp b/noncore/settings/appearance2/appearance.cpp index eea1a19..054b645 100644 --- a/noncore/settings/appearance2/appearance.cpp +++ b/noncore/settings/appearance2/appearance.cpp | |||
@@ -373,48 +373,81 @@ QWidget *Appearance::createAdvancedTab ( QWidget *parent, Config &cfg ) | |||
373 | m_rotdir_ccw-> setPixmap( ccw ); | 373 | m_rotdir_ccw-> setPixmap( ccw ); |
374 | m_rotdir_flip-> setPixmap( flip ); | 374 | m_rotdir_flip-> setPixmap( flip ); |
375 | 375 | ||
376 | rotLay-> addWidget ( rotlabel, 0 ); | 376 | rotLay-> addWidget ( rotlabel, 0 ); |
377 | rotLay-> addWidget ( m_rotdir_cw, 0 ); | 377 | rotLay-> addWidget ( m_rotdir_cw, 0 ); |
378 | rotLay-> addWidget ( m_rotdir_ccw, 0 ); | 378 | rotLay-> addWidget ( m_rotdir_ccw, 0 ); |
379 | rotLay-> addWidget ( m_rotdir_flip, 0 ); | 379 | rotLay-> addWidget ( m_rotdir_flip, 0 ); |
380 | 380 | ||
381 | int rotDirection = cfg.readNumEntry( "rotatedir" ); | 381 | int rotDirection = cfg.readNumEntry( "rotatedir" ); |
382 | ODirection rot = CW; | 382 | ODirection rot = CW; |
383 | 383 | ||
384 | if (rotDirection == -1) | 384 | if (rotDirection == -1) |
385 | { | 385 | { |
386 | rot = ODevice::inst ( )-> direction ( ); | 386 | rot = ODevice::inst ( )-> direction ( ); |
387 | } | 387 | } |
388 | else | 388 | else |
389 | { | 389 | { |
390 | rot = (ODirection)rotDirection; | 390 | rot = (ODirection)rotDirection; |
391 | } | 391 | } |
392 | 392 | ||
393 | m_rotdir_cw-> setChecked ( rot == CW ); | 393 | m_rotdir_cw-> setChecked ( rot == CW ); |
394 | m_rotdir_ccw-> setChecked ( rot == CCW ); | 394 | m_rotdir_ccw-> setChecked ( rot == CCW ); |
395 | m_rotdir_flip-> setChecked ( rot == Flip ); | 395 | m_rotdir_flip-> setChecked ( rot == Flip ); |
396 | 396 | ||
397 | QFrame *f2 = new QFrame ( tab ); | ||
398 | f2-> setFrameStyle ( QFrame::HLine | QFrame::Sunken ); | ||
399 | vertLayout-> addWidget ( f2 ); | ||
400 | vertLayout-> addSpacing ( 3 ); | ||
401 | |||
402 | QHBoxLayout *bigIconlay = new QHBoxLayout ( vertLayout, 3 ); | ||
403 | |||
404 | QLabel* label2 = new QLabel( tr( "&Big Icon size:" ), tab ); | ||
405 | bigIconlay-> addWidget ( label2, 0, 0 ); | ||
406 | |||
407 | m_bigIconSize = new QSpinBox(0, 128, 1, tab); | ||
408 | m_bigIconSize->setValue(cfg.readNumEntry( "BigIconSize" )); | ||
409 | bigIconlay->addWidget( m_bigIconSize ); | ||
410 | label2->setBuddy( m_bigIconSize ); | ||
411 | QWhatsThis::add( label2, tr( "Big Icon Size determines the size of the application icons in Launcher" ) ); | ||
412 | QWhatsThis::add( m_bigIconSize, tr( "Big Icon Size determines the size of the application icons in Launcher" ) ); | ||
413 | |||
414 | QHBoxLayout *smallIconlay = new QHBoxLayout ( vertLayout, 3 ); | ||
415 | |||
416 | QLabel* label3 = new QLabel( tr( "&Small Icon size:" ), tab ); | ||
417 | smallIconlay-> addWidget ( label3, 0, 0 ); | ||
418 | |||
419 | m_smallIconSize = new QSpinBox(0, 128, 1, tab); | ||
420 | m_smallIconSize->setValue(cfg.readNumEntry( "SmallIconSize" )); | ||
421 | smallIconlay->addWidget( m_smallIconSize ); | ||
422 | label3->setBuddy( m_smallIconSize ); | ||
423 | QWhatsThis::add( label3, tr( "Small Icon Size determines the size of many of the icons seen in applications (in menus, tab bars, tool bars, etc.), as well as the size of taskbar." ) ); | ||
424 | QWhatsThis::add( m_smallIconSize, tr( "Small Icon Size determines the size of many of the icons seen in applications (in menus, tab bars, tool bars, etc.), as well as the size of taskbar." ) ); | ||
425 | |||
426 | m_useBigPixmaps = new QCheckBox( tr("use Big &Pixmaps"), tab); | ||
427 | m_useBigPixmaps->setChecked(cfg.readBoolEntry( "useBigPixmaps" )); | ||
428 | vertLayout->addWidget( m_useBigPixmaps ); | ||
429 | QWhatsThis::add( m_useBigPixmaps, tr( "Enlarge toolbar pixmaps" ) ); | ||
397 | 430 | ||
398 | /* | 431 | /* |
399 | * add a spacing | 432 | * add a spacing |
400 | */ | 433 | */ |
401 | vertLayout->addItem( new QSpacerItem( 1, 1, QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding ) ); | 434 | vertLayout->addItem( new QSpacerItem( 1, 1, QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding ) ); |
402 | return tab; | 435 | return tab; |
403 | } | 436 | } |
404 | 437 | ||
405 | 438 | ||
406 | Appearance::Appearance( QWidget* parent, const char* name, WFlags ) | 439 | Appearance::Appearance( QWidget* parent, const char* name, WFlags ) |
407 | : QDialog ( parent, name, true, WStyle_ContextHelp ) | 440 | : QDialog ( parent, name, true, WStyle_ContextHelp ) |
408 | { | 441 | { |
409 | setCaption( tr( "Appearance Settings" ) ); | 442 | setCaption( tr( "Appearance Settings" ) ); |
410 | 443 | ||
411 | Config config( "qpe" ); | 444 | Config config( "qpe" ); |
412 | config.setGroup( "Appearance" ); | 445 | config.setGroup( "Appearance" ); |
413 | 446 | ||
414 | QVBoxLayout *top = new QVBoxLayout ( this, 3, 3 ); | 447 | QVBoxLayout *top = new QVBoxLayout ( this, 3, 3 ); |
415 | 448 | ||
416 | m_sample = new SampleWindow ( this ); | 449 | m_sample = new SampleWindow ( this ); |
417 | 450 | ||
418 | m_sample-> setDecoration ( new DefaultWindowDecoration ( ) ); | 451 | m_sample-> setDecoration ( new DefaultWindowDecoration ( ) ); |
419 | QWhatsThis::add( m_sample, tr( "This is a preview window. Look here to see your new appearance as options are changed." ) ); | 452 | QWhatsThis::add( m_sample, tr( "This is a preview window. Look here to see your new appearance as options are changed." ) ); |
420 | 453 | ||
@@ -492,48 +525,52 @@ void Appearance::accept ( ) | |||
492 | { | 525 | { |
493 | ColorListItem *item = (ColorListItem *) m_color_list-> item ( m_color_list-> currentItem ( )); | 526 | ColorListItem *item = (ColorListItem *) m_color_list-> item ( m_color_list-> currentItem ( )); |
494 | 527 | ||
495 | if ( item ) | 528 | if ( item ) |
496 | item-> save ( config ); | 529 | item-> save ( config ); |
497 | } | 530 | } |
498 | 531 | ||
499 | ODirection rot; | 532 | ODirection rot; |
500 | if (m_rotdir_ccw-> isChecked ( )) | 533 | if (m_rotdir_ccw-> isChecked ( )) |
501 | { | 534 | { |
502 | rot = CCW; | 535 | rot = CCW; |
503 | } | 536 | } |
504 | else if (m_rotdir_cw-> isChecked ( )) | 537 | else if (m_rotdir_cw-> isChecked ( )) |
505 | { | 538 | { |
506 | rot = CW; | 539 | rot = CW; |
507 | } | 540 | } |
508 | else | 541 | else |
509 | { | 542 | { |
510 | rot = Flip; | 543 | rot = Flip; |
511 | } | 544 | } |
512 | config. writeEntry ( "rotatedir", (int)rot ); | 545 | config. writeEntry ( "rotatedir", (int)rot ); |
513 | 546 | ||
514 | config. writeEntry( "LeftHand", m_leftHand->isChecked() ); | 547 | config. writeEntry( "LeftHand", m_leftHand->isChecked() ); |
515 | 548 | ||
549 | config. writeEntry( "useBigPixmaps", m_useBigPixmaps->isChecked() ); | ||
550 | config. writeEntry( "BigIconSize", m_bigIconSize->value() ); | ||
551 | config. writeEntry( "SmallIconSize", m_smallIconSize->value() ); | ||
552 | |||
516 | config. write ( ); // need to flush the config info first | 553 | config. write ( ); // need to flush the config info first |
517 | Global::applyStyle ( ); | 554 | Global::applyStyle ( ); |
518 | 555 | ||
519 | QDialog::accept ( ); | 556 | QDialog::accept ( ); |
520 | } | 557 | } |
521 | 558 | ||
522 | void Appearance::done ( int r ) | 559 | void Appearance::done ( int r ) |
523 | { | 560 | { |
524 | QDialog::done ( r ); | 561 | QDialog::done ( r ); |
525 | close ( ); | 562 | close ( ); |
526 | } | 563 | } |
527 | 564 | ||
528 | 565 | ||
529 | void Appearance::styleClicked ( int index ) | 566 | void Appearance::styleClicked ( int index ) |
530 | { | 567 | { |
531 | StyleListItem *sli = (StyleListItem *) m_style_list-> item ( index ); | 568 | StyleListItem *sli = (StyleListItem *) m_style_list-> item ( index ); |
532 | m_style_settings-> setEnabled ( sli ? sli-> hasSettings ( ) : false ); | 569 | m_style_settings-> setEnabled ( sli ? sli-> hasSettings ( ) : false ); |
533 | 570 | ||
534 | if ( m_sample && sli && sli-> style ( )) | 571 | if ( m_sample && sli && sli-> style ( )) |
535 | { | 572 | { |
536 | int ci = m_color_list ? m_color_list-> currentItem ( ) : -1; | 573 | int ci = m_color_list ? m_color_list-> currentItem ( ) : -1; |
537 | 574 | ||
538 | m_sample-> setStyle2 ( sli-> style ( ), ci < 0 ? palette ( ) : ((ColorListItem *) m_color_list-> item ( ci ))-> palette ( )); | 575 | m_sample-> setStyle2 ( sli-> style ( ), ci < 0 ? palette ( ) : ((ColorListItem *) m_color_list-> item ( ci ))-> palette ( )); |
539 | } | 576 | } |
diff --git a/noncore/settings/appearance2/appearance.h b/noncore/settings/appearance2/appearance.h index ef7e874..79e71eb 100644 --- a/noncore/settings/appearance2/appearance.h +++ b/noncore/settings/appearance2/appearance.h | |||
@@ -16,48 +16,49 @@ | |||
16 | .i_,=:_. -<s. This program is distributed in the hope that | 16 | .i_,=:_. -<s. This program is distributed in the hope that |
17 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 17 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
18 | : .. .:, . . . without even the implied warranty of | 18 | : .. .:, . . . without even the implied warranty of |
19 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 19 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
20 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 20 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
21 | ..}^=.= = ; Library General Public License for more | 21 | ..}^=.= = ; Library General Public License for more |
22 | ++= -. .` .: details. | 22 | ++= -. .` .: details. |
23 | : = ...= . :.=- | 23 | : = ...= . :.=- |
24 | -. .:....=;==+<; You should have received a copy of the GNU | 24 | -. .:....=;==+<; You should have received a copy of the GNU |
25 | -_. . . )=. = Library General Public License along with | 25 | -_. . . )=. = Library General Public License along with |
26 | -- :-=` this library; see the file COPYING.LIB. | 26 | -- :-=` this library; see the file COPYING.LIB. |
27 | If not, write to the Free Software Foundation, | 27 | If not, write to the Free Software Foundation, |
28 | Inc., 59 Temple Place - Suite 330, | 28 | Inc., 59 Temple Place - Suite 330, |
29 | Boston, MA 02111-1307, USA. | 29 | Boston, MA 02111-1307, USA. |
30 | */ | 30 | */ |
31 | 31 | ||
32 | #ifndef APPEARANCESETTINGS_H | 32 | #ifndef APPEARANCESETTINGS_H |
33 | #define APPEARANCESETTINGS_H | 33 | #define APPEARANCESETTINGS_H |
34 | 34 | ||
35 | #include <opie2/ofontselector.h> | 35 | #include <opie2/ofontselector.h> |
36 | 36 | ||
37 | #include <qpe/fontdatabase.h> | 37 | #include <qpe/fontdatabase.h> |
38 | 38 | ||
39 | #include <qdialog.h> | 39 | #include <qdialog.h> |
40 | #include <qspinbox.h> | ||
40 | 41 | ||
41 | using Opie::Ui::OFontSelector; | 42 | using Opie::Ui::OFontSelector; |
42 | 43 | ||
43 | class QCheckBox; | 44 | class QCheckBox; |
44 | class QComboBox; | 45 | class QComboBox; |
45 | class QLabel; | 46 | class QLabel; |
46 | class QLineEdit; | 47 | class QLineEdit; |
47 | class QListBox; | 48 | class QListBox; |
48 | class QMultiLineEdit; | 49 | class QMultiLineEdit; |
49 | class QPushButton; | 50 | class QPushButton; |
50 | class QRadioButton; | 51 | class QRadioButton; |
51 | class QToolButton; | 52 | class QToolButton; |
52 | class SampleWindow; | 53 | class SampleWindow; |
53 | namespace Opie {namespace Ui {class OFontSelector;}} | 54 | namespace Opie {namespace Ui {class OFontSelector;}} |
54 | class QListView; | 55 | class QListView; |
55 | class QListViewItem; | 56 | class QListViewItem; |
56 | class Config; | 57 | class Config; |
57 | 58 | ||
58 | class Appearance : public QDialog | 59 | class Appearance : public QDialog |
59 | { | 60 | { |
60 | Q_OBJECT | 61 | Q_OBJECT |
61 | 62 | ||
62 | public: | 63 | public: |
63 | Appearance( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 64 | Appearance( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
@@ -102,27 +103,31 @@ private: | |||
102 | int m_original_tabstyle; | 103 | int m_original_tabstyle; |
103 | bool m_original_tabpos; | 104 | bool m_original_tabpos; |
104 | 105 | ||
105 | QListBox * m_style_list; | 106 | QListBox * m_style_list; |
106 | QPushButton * m_style_settings; | 107 | QPushButton * m_style_settings; |
107 | 108 | ||
108 | QListBox * m_deco_list; | 109 | QListBox * m_deco_list; |
109 | 110 | ||
110 | QListBox * m_color_list; | 111 | QListBox * m_color_list; |
111 | 112 | ||
112 | Opie::Ui::OFontSelector *m_fontselect; | 113 | Opie::Ui::OFontSelector *m_fontselect; |
113 | 114 | ||
114 | SampleWindow *m_sample; | 115 | SampleWindow *m_sample; |
115 | 116 | ||
116 | QComboBox * m_tabstyle_list; | 117 | QComboBox * m_tabstyle_list; |
117 | QRadioButton *m_tabstyle_top; | 118 | QRadioButton *m_tabstyle_top; |
118 | QRadioButton *m_tabstyle_bottom; | 119 | QRadioButton *m_tabstyle_bottom; |
119 | 120 | ||
120 | QRadioButton *m_rotdir_cw; | 121 | QRadioButton *m_rotdir_cw; |
121 | QRadioButton *m_rotdir_ccw; | 122 | QRadioButton *m_rotdir_ccw; |
122 | QRadioButton *m_rotdir_flip; | 123 | QRadioButton *m_rotdir_flip; |
123 | 124 | ||
124 | QWidget * m_advtab; | 125 | QWidget * m_advtab; |
125 | QCheckBox *m_leftHand; | 126 | QCheckBox *m_leftHand; |
127 | |||
128 | QSpinBox*m_bigIconSize; | ||
129 | QSpinBox*m_smallIconSize; | ||
130 | QCheckBox*m_useBigPixmaps; | ||
126 | }; | 131 | }; |
127 | 132 | ||
128 | #endif | 133 | #endif |