author | alwin <alwin> | 2004-11-06 02:57:25 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-11-06 02:57:25 (UTC) |
commit | 90d458c63d274a66ca427710b88e2f090a0ab11b (patch) (unidiff) | |
tree | 582f2c051681e5c10313a9a79fdc7b544c288f26 /noncore/graphics/opie-eye/gui/basesetup.cpp | |
parent | a93a0ee1fce8b2fb7abac475a97dac8001aed8e0 (diff) | |
download | opie-90d458c63d274a66ca427710b88e2f090a0ab11b.zip opie-90d458c63d274a66ca427710b88e2f090a0ab11b.tar.gz opie-90d458c63d274a66ca427710b88e2f090a0ab11b.tar.bz2 |
a lots of tests with the iconview, user can now setup the prefered icon-size,
but still some rewrites/redesigns needed. QIconView(Item) is sometimes horrible.
some default-values changed
Diffstat (limited to 'noncore/graphics/opie-eye/gui/basesetup.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/gui/basesetup.cpp | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/noncore/graphics/opie-eye/gui/basesetup.cpp b/noncore/graphics/opie-eye/gui/basesetup.cpp index 20dda5a..fdf3466 100644 --- a/noncore/graphics/opie-eye/gui/basesetup.cpp +++ b/noncore/graphics/opie-eye/gui/basesetup.cpp | |||
@@ -15,2 +15,3 @@ BaseSetup::BaseSetup(Opie::Core::OConfig *a_cfg,QWidget * parent, const char * n | |||
15 | m_SlidetimeLayout = new QGridLayout( 0, 1, 1, 0, 6, "m_SlidetimeLayout"); | 15 | m_SlidetimeLayout = new QGridLayout( 0, 1, 1, 0, 6, "m_SlidetimeLayout"); |
16 | m_IconsizeLayout = new QGridLayout( 0, 1, 1, 0, 6, "m_IconsizeLayout"); | ||
16 | 17 | ||
@@ -31,2 +32,16 @@ BaseSetup::BaseSetup(Opie::Core::OConfig *a_cfg,QWidget * parent, const char * n | |||
31 | 32 | ||
33 | m_Iconsize = new QSpinBox( this, "m_Iconsize" ); | ||
34 | m_Iconsize->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Fixed)); | ||
35 | m_Iconsize->setButtonSymbols( QSpinBox::PlusMinus ); | ||
36 | m_Iconsize->setMaxValue( 64 ); | ||
37 | m_Iconsize->setMinValue(12); | ||
38 | m_Iconsize->setValue( 32 ); | ||
39 | m_Iconsize->setSuffix(tr(" pixel")); | ||
40 | m_IconsizeLayout->addWidget( m_Iconsize, 0, 1 ); | ||
41 | m_IconsizeLabel = new QLabel( this, "m_IconsizeLabel" ); | ||
42 | m_IconsizeLabel->setText(tr("Size of thumbnails:")); | ||
43 | m_IconsizeLayout->addWidget( m_IconsizeLabel, 0, 0 ); | ||
44 | m_MainLayout->addLayout(m_IconsizeLayout); | ||
45 | |||
46 | |||
32 | #if 0 | 47 | #if 0 |
@@ -43,3 +58,3 @@ BaseSetup::BaseSetup(Opie::Core::OConfig *a_cfg,QWidget * parent, const char * n | |||
43 | 58 | ||
44 | int stime = m_cfg->readNumEntry("base_slideshowtimeout",2); | 59 | int stime = m_cfg->readNumEntry("slideshowtimeout",2); |
45 | if (stime<0) stime=2; | 60 | if (stime<0) stime=2; |
@@ -47,3 +62,7 @@ BaseSetup::BaseSetup(Opie::Core::OConfig *a_cfg,QWidget * parent, const char * n | |||
47 | m_SlideShowTime->setValue(stime); | 62 | m_SlideShowTime->setValue(stime); |
48 | m_SaveStateAuto->setChecked(m_cfg->readBoolEntry("base_savestatus",false)); | 63 | m_SaveStateAuto->setChecked(m_cfg->readBoolEntry("savestatus",true)); |
64 | stime = m_cfg->readNumEntry("iconsize", 32); | ||
65 | if (stime<12)stime = 12; | ||
66 | if (stime>64)stime = 64; | ||
67 | m_Iconsize->setValue(stime); | ||
49 | } | 68 | } |
@@ -57,4 +76,5 @@ void BaseSetup::save_values() | |||
57 | if (!m_cfg) return; | 76 | if (!m_cfg) return; |
58 | m_cfg->writeEntry("base_slideshowtimeout",m_SlideShowTime->value()); | 77 | m_cfg->writeEntry("slideshowtimeout",m_SlideShowTime->value()); |
59 | m_cfg->writeEntry("base_savestatus",m_SaveStateAuto->isChecked()); | 78 | m_cfg->writeEntry("savestatus",m_SaveStateAuto->isChecked()); |
79 | m_cfg->writeEntry("iconsize",m_Iconsize->value()); | ||
60 | } | 80 | } |