author | alwin <alwin> | 2005-03-22 22:18:58 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-03-22 22:18:58 (UTC) |
commit | d7b39880bb7de4908e8a1239d37bb48d83c4a0ba (patch) (unidiff) | |
tree | 64ffc1750d149f52c1c48c676f7ecc29cc442b23 /noncore/graphics/opie-eye/gui/basesetup.cpp | |
parent | 31035d399edaaaff64976705fd44468b6357c863 (diff) | |
download | opie-d7b39880bb7de4908e8a1239d37bb48d83c4a0ba.zip opie-d7b39880bb7de4908e8a1239d37bb48d83c4a0ba.tar.gz opie-d7b39880bb7de4908e8a1239d37bb48d83c4a0ba.tar.bz2 |
-fixed some strange display bugs depending of switch to qte 2.3.10
-inserted the missed (and asked for) feature setting a display brightness
on the fly.
Known Bugs left: When starting with setting a document the image will not
displayed if too large. It is since switch to qte 2.3.10 eg. seems to be
a timing problem when loading cost too much time. I have no idea how to fix
it this moment.
Diffstat (limited to 'noncore/graphics/opie-eye/gui/basesetup.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/gui/basesetup.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/noncore/graphics/opie-eye/gui/basesetup.cpp b/noncore/graphics/opie-eye/gui/basesetup.cpp index fdf3466..b0fefbf 100644 --- a/noncore/graphics/opie-eye/gui/basesetup.cpp +++ b/noncore/graphics/opie-eye/gui/basesetup.cpp | |||
@@ -14,6 +14,7 @@ BaseSetup::BaseSetup(Opie::Core::OConfig *a_cfg,QWidget * parent, const char * n | |||
14 | 14 | ||
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 | m_IconsizeLayout = new QGridLayout( 0, 1, 1, 0, 6, "m_IconsizeLayout"); |
17 | m_IntensityLayout = new QGridLayout( 0, 1, 1, 0, 6, "m_IntensityLayout"); | ||
17 | 18 | ||
18 | m_SlideShowTime = new QSpinBox( this, "m_SlideShowTime" ); | 19 | m_SlideShowTime = new QSpinBox( this, "m_SlideShowTime" ); |
19 | m_SlideShowTime->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Fixed)); | 20 | m_SlideShowTime->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Fixed)); |
@@ -33,7 +34,7 @@ BaseSetup::BaseSetup(Opie::Core::OConfig *a_cfg,QWidget * parent, const char * n | |||
33 | m_Iconsize = new QSpinBox( this, "m_Iconsize" ); | 34 | m_Iconsize = new QSpinBox( this, "m_Iconsize" ); |
34 | m_Iconsize->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Fixed)); | 35 | m_Iconsize->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Fixed)); |
35 | m_Iconsize->setButtonSymbols( QSpinBox::PlusMinus ); | 36 | m_Iconsize->setButtonSymbols( QSpinBox::PlusMinus ); |
36 | m_Iconsize->setMaxValue( 64 ); | 37 | m_Iconsize->setMaxValue( 128 ); |
37 | m_Iconsize->setMinValue(12); | 38 | m_Iconsize->setMinValue(12); |
38 | m_Iconsize->setValue( 32 ); | 39 | m_Iconsize->setValue( 32 ); |
39 | m_Iconsize->setSuffix(tr(" pixel")); | 40 | m_Iconsize->setSuffix(tr(" pixel")); |
@@ -43,6 +44,17 @@ BaseSetup::BaseSetup(Opie::Core::OConfig *a_cfg,QWidget * parent, const char * n | |||
43 | m_IconsizeLayout->addWidget( m_IconsizeLabel, 0, 0 ); | 44 | m_IconsizeLayout->addWidget( m_IconsizeLabel, 0, 0 ); |
44 | m_MainLayout->addLayout(m_IconsizeLayout); | 45 | m_MainLayout->addLayout(m_IconsizeLayout); |
45 | 46 | ||
47 | m_Intensity = new QSpinBox( this, "m_Intensity" ); | ||
48 | m_Intensity->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Fixed)); | ||
49 | m_Intensity->setButtonSymbols( QSpinBox::PlusMinus ); | ||
50 | m_Intensity->setMaxValue( 255 ); | ||
51 | m_Intensity->setMinValue(-255); | ||
52 | m_Intensity->setValue( 0 ); | ||
53 | m_IntensityLayout->addWidget( m_Intensity, 0, 1 ); | ||
54 | m_IntensityLabel = new QLabel( this, "m_IntensityLabel" ); | ||
55 | m_IntensityLabel->setText(tr("Default display brightness:")); | ||
56 | m_IntensityLayout->addWidget(m_IntensityLabel, 0, 0 ); | ||
57 | m_MainLayout->addLayout(m_IntensityLayout); | ||
46 | 58 | ||
47 | #if 0 | 59 | #if 0 |
48 | m_ShowToolBar = new QCheckBox( this, "m_ShowToolBar" ); | 60 | m_ShowToolBar = new QCheckBox( this, "m_ShowToolBar" ); |
@@ -65,6 +77,10 @@ BaseSetup::BaseSetup(Opie::Core::OConfig *a_cfg,QWidget * parent, const char * n | |||
65 | if (stime<12)stime = 12; | 77 | if (stime<12)stime = 12; |
66 | if (stime>64)stime = 64; | 78 | if (stime>64)stime = 64; |
67 | m_Iconsize->setValue(stime); | 79 | m_Iconsize->setValue(stime); |
80 | stime = m_cfg->readNumEntry("intensity",0); | ||
81 | if (stime<-255) stime = -255; | ||
82 | if (stime>255) stime = 255; | ||
83 | m_Intensity->setValue(stime); | ||
68 | } | 84 | } |
69 | 85 | ||
70 | BaseSetup::~BaseSetup() | 86 | BaseSetup::~BaseSetup() |
@@ -77,4 +93,5 @@ void BaseSetup::save_values() | |||
77 | m_cfg->writeEntry("slideshowtimeout",m_SlideShowTime->value()); | 93 | m_cfg->writeEntry("slideshowtimeout",m_SlideShowTime->value()); |
78 | m_cfg->writeEntry("savestatus",m_SaveStateAuto->isChecked()); | 94 | m_cfg->writeEntry("savestatus",m_SaveStateAuto->isChecked()); |
79 | m_cfg->writeEntry("iconsize",m_Iconsize->value()); | 95 | m_cfg->writeEntry("iconsize",m_Iconsize->value()); |
96 | m_cfg->writeEntry("intensity",m_Intensity->value()); | ||
80 | } | 97 | } |