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 | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/noncore/graphics/opie-eye/gui/basesetup.cpp b/noncore/graphics/opie-eye/gui/basesetup.cpp index b0fefbf..fe51321 100644 --- a/noncore/graphics/opie-eye/gui/basesetup.cpp +++ b/noncore/graphics/opie-eye/gui/basesetup.cpp | |||
@@ -38,26 +38,26 @@ BaseSetup::BaseSetup(Opie::Core::OConfig *a_cfg,QWidget * parent, const char * n | |||
38 | m_Iconsize->setMinValue(12); | 38 | m_Iconsize->setMinValue(12); |
39 | m_Iconsize->setValue( 32 ); | 39 | m_Iconsize->setValue( 32 ); |
40 | m_Iconsize->setSuffix(tr(" pixel")); | 40 | m_Iconsize->setSuffix(tr(" pixel")); |
41 | m_IconsizeLayout->addWidget( m_Iconsize, 0, 1 ); | 41 | m_IconsizeLayout->addWidget( m_Iconsize, 0, 1 ); |
42 | m_IconsizeLabel = new QLabel( this, "m_IconsizeLabel" ); | 42 | m_IconsizeLabel = new QLabel( this, "m_IconsizeLabel" ); |
43 | m_IconsizeLabel->setText(tr("Size of thumbnails:")); | 43 | m_IconsizeLabel->setText(tr("Size of thumbnails:")); |
44 | m_IconsizeLayout->addWidget( m_IconsizeLabel, 0, 0 ); | 44 | m_IconsizeLayout->addWidget( m_IconsizeLabel, 0, 0 ); |
45 | m_MainLayout->addLayout(m_IconsizeLayout); | 45 | m_MainLayout->addLayout(m_IconsizeLayout); |
46 | 46 | ||
47 | m_Intensity = new QSpinBox( this, "m_Intensity" ); | 47 | m_Intensity = new QSpinBox( this, "m_Intensity" ); |
48 | m_Intensity->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Fixed)); | 48 | m_Intensity->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Fixed)); |
49 | m_Intensity->setButtonSymbols( QSpinBox::PlusMinus ); | 49 | m_Intensity->setButtonSymbols( QSpinBox::PlusMinus ); |
50 | m_Intensity->setMaxValue( 255 ); | 50 | m_Intensity->setMaxValue( 100 ); |
51 | m_Intensity->setMinValue(-255); | 51 | m_Intensity->setMinValue(-100); |
52 | m_Intensity->setValue( 0 ); | 52 | m_Intensity->setValue( 0 ); |
53 | m_IntensityLayout->addWidget( m_Intensity, 0, 1 ); | 53 | m_IntensityLayout->addWidget( m_Intensity, 0, 1 ); |
54 | m_IntensityLabel = new QLabel( this, "m_IntensityLabel" ); | 54 | m_IntensityLabel = new QLabel( this, "m_IntensityLabel" ); |
55 | m_IntensityLabel->setText(tr("Default display brightness:")); | 55 | m_IntensityLabel->setText(tr("Default display brightness:")); |
56 | m_IntensityLayout->addWidget(m_IntensityLabel, 0, 0 ); | 56 | m_IntensityLayout->addWidget(m_IntensityLabel, 0, 0 ); |
57 | m_MainLayout->addLayout(m_IntensityLayout); | 57 | m_MainLayout->addLayout(m_IntensityLayout); |
58 | 58 | ||
59 | #if 0 | 59 | #if 0 |
60 | m_ShowToolBar = new QCheckBox( this, "m_ShowToolBar" ); | 60 | m_ShowToolBar = new QCheckBox( this, "m_ShowToolBar" ); |
61 | m_ShowToolBar->setText(tr("Show toolbar on startup")); | 61 | m_ShowToolBar->setText(tr("Show toolbar on startup")); |
62 | m_MainLayout->addWidget( m_ShowToolBar ); | 62 | m_MainLayout->addWidget( m_ShowToolBar ); |
63 | #endif | 63 | #endif |
@@ -65,30 +65,31 @@ BaseSetup::BaseSetup(Opie::Core::OConfig *a_cfg,QWidget * parent, const char * n | |||
65 | m_SaveStateAuto->setText(tr("Save status of fullscreen/autorotate")); | 65 | m_SaveStateAuto->setText(tr("Save status of fullscreen/autorotate")); |
66 | m_MainLayout->addWidget( m_SaveStateAuto ); | 66 | m_MainLayout->addWidget( m_SaveStateAuto ); |
67 | 67 | ||
68 | spacer1 = new QSpacerItem( 20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding ); | 68 | spacer1 = new QSpacerItem( 20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding ); |
69 | m_MainLayout->addItem( spacer1 ); | 69 | m_MainLayout->addItem( spacer1 ); |
70 | 70 | ||
71 | int stime = m_cfg->readNumEntry("slideshowtimeout",2); | 71 | int stime = m_cfg->readNumEntry("slideshowtimeout",2); |
72 | if (stime<0) stime=2; | 72 | if (stime<0) stime=2; |
73 | if (stime>60) stime=60; | 73 | if (stime>60) stime=60; |
74 | m_SlideShowTime->setValue(stime); | 74 | m_SlideShowTime->setValue(stime); |
75 | m_SaveStateAuto->setChecked(m_cfg->readBoolEntry("savestatus",true)); | 75 | m_SaveStateAuto->setChecked(m_cfg->readBoolEntry("savestatus",true)); |
76 | stime = m_cfg->readNumEntry("iconsize", 32); | 76 | stime = m_cfg->readNumEntry("iconsize", 32); |
77 | /* must equal to s(MAX/MIN_ICONSIZE) in iconview.cpp! */ | ||
77 | if (stime<12)stime = 12; | 78 | if (stime<12)stime = 12; |
78 | if (stime>64)stime = 64; | 79 | if (stime>128)stime = 128; |
79 | m_Iconsize->setValue(stime); | 80 | m_Iconsize->setValue(stime); |
80 | stime = m_cfg->readNumEntry("intensity",0); | 81 | stime = m_cfg->readNumEntry("intensity",0); |
81 | if (stime<-255) stime = -255; | 82 | if (stime<-100) stime = -100; |
82 | if (stime>255) stime = 255; | 83 | if (stime>100) stime = 100; |
83 | m_Intensity->setValue(stime); | 84 | m_Intensity->setValue(stime); |
84 | } | 85 | } |
85 | 86 | ||
86 | BaseSetup::~BaseSetup() | 87 | BaseSetup::~BaseSetup() |
87 | { | 88 | { |
88 | } | 89 | } |
89 | 90 | ||
90 | void BaseSetup::save_values() | 91 | void BaseSetup::save_values() |
91 | { | 92 | { |
92 | if (!m_cfg) return; | 93 | if (!m_cfg) return; |
93 | m_cfg->writeEntry("slideshowtimeout",m_SlideShowTime->value()); | 94 | m_cfg->writeEntry("slideshowtimeout",m_SlideShowTime->value()); |
94 | m_cfg->writeEntry("savestatus",m_SaveStateAuto->isChecked()); | 95 | m_cfg->writeEntry("savestatus",m_SaveStateAuto->isChecked()); |