]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/opie-appearance/opie-appearance-1.2.1/add-ui-settings.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / opie-appearance / opie-appearance-1.2.1 / add-ui-settings.patch
1 Index: appearance.cpp
2 ===================================================================
3 RCS file: /cvs/opie/noncore/settings/appearance2/appearance.cpp,v
4 retrieving revision 1.35
5 retrieving revision 1.37
6 diff -u -r1.35 -r1.37
7 --- appearance2/appearance.cpp  9 Jun 2005 20:47:58 -0000       1.35
8 +++ appearance2/appearance.cpp  26 Oct 2005 15:36:04 -0000      1.37
9 @@ -394,6 +394,39 @@
10      m_rotdir_ccw-> setChecked ( rot == CCW );
11      m_rotdir_flip-> setChecked ( rot == Flip );
12  
13 +    QFrame *f2 = new QFrame ( tab );
14 +    f2-> setFrameStyle ( QFrame::HLine | QFrame::Sunken );
15 +    vertLayout-> addWidget ( f2 );
16 +    vertLayout-> addSpacing ( 3 );
17 +
18 +    QHBoxLayout *bigIconlay = new QHBoxLayout ( vertLayout, 3 );
19 +
20 +    QLabel* label2 = new QLabel( tr( "Big Icon size:" ), tab );
21 +    bigIconlay-> addWidget ( label2, 0, 0 );
22 +
23 +    m_bigIconSize = new QSpinBox(0, 128, 1, tab);
24 +    m_bigIconSize->setValue(cfg.readNumEntry( "BigIconSize", AppLnk::bigIconSize() ));
25 +    bigIconlay->addWidget( m_bigIconSize );
26 +    label2->setBuddy( m_bigIconSize );
27 +    QWhatsThis::add( label2, tr( "Big Icon Size determines the size of the application icons in Launcher" ) );
28 +    QWhatsThis::add( m_bigIconSize, tr( "Big Icon Size determines the size of the application icons in Launcher" ) );
29 +
30 +    QHBoxLayout *smallIconlay = new QHBoxLayout ( vertLayout, 3 );
31 +
32 +    QLabel* label3 = new QLabel( tr( "Small Icon size:" ), tab );
33 +    smallIconlay-> addWidget ( label3, 0, 0 );
34 +
35 +    m_smallIconSize = new QSpinBox(0, 128, 1, tab);
36 +    m_smallIconSize->setValue(cfg.readNumEntry( "SmallIconSize", AppLnk::smallIconSize() ));
37 +    smallIconlay->addWidget( m_smallIconSize );
38 +    label3->setBuddy( m_smallIconSize );
39 +    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." ) );
40 +    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." ) );
41 +
42 +    m_useBigPixmaps = new QCheckBox( tr("use Big Pixmaps"), tab);
43 +    m_useBigPixmaps->setChecked(cfg.readBoolEntry( "useBigPixmaps", qApp->desktop()->width() > 320 ));
44 +    vertLayout->addWidget( m_useBigPixmaps );
45 +    QWhatsThis::add( m_useBigPixmaps, tr( "Enlarge toolbar pixmaps, you probably want to enable this option for devices with screen resolution greater than 240x320" ) );
46  
47      /*
48       * add a spacing
49 @@ -513,6 +546,10 @@
50  
51      config. writeEntry( "LeftHand", m_leftHand->isChecked() );
52  
53 +    config. writeEntry( "useBigPixmaps", m_useBigPixmaps->isChecked() );
54 +    config. writeEntry( "BigIconSize", m_bigIconSize->value() );
55 +    config. writeEntry( "SmallIconSize", m_smallIconSize->value() );
56 +
57      config. write ( ); // need to flush the config info first
58      Global::applyStyle ( );
59  
60 Index: appearance.h
61 ===================================================================
62 RCS file: /cvs/opie/noncore/settings/appearance2/appearance.h,v
63 retrieving revision 1.13
64 retrieving revision 1.14
65 diff -u -r1.13 -r1.14
66 --- appearance2/appearance.h    5 Jun 2005 22:47:00 -0000       1.13
67 +++ appearance2/appearance.h    17 Oct 2005 13:28:10 -0000      1.14
68 @@ -37,6 +37,7 @@
69  #include <qpe/fontdatabase.h>
70  
71  #include <qdialog.h>
72 +#include <qspinbox.h>
73  
74  using Opie::Ui::OFontSelector;
75  
76 @@ -123,6 +124,10 @@
77  
78      QWidget *     m_advtab;
79      QCheckBox    *m_leftHand;
80 +
81 +    QSpinBox   *m_bigIconSize;
82 +    QSpinBox   *m_smallIconSize;
83 +    QCheckBox  *m_useBigPixmaps;
84  };
85  
86  #endif