author | alwin <alwin> | 2004-11-01 16:41:11 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-11-01 16:41:11 (UTC) |
commit | 5a41dcd5901badbd2e258b0a916fb012b6351eeb (patch) (unidiff) | |
tree | bf1821746491c996f20d9ecbf3952a94e96e422f /noncore/graphics/opie-eye/impl | |
parent | e28f024b5d0d70dd22d7beacfd693b75e2fcf39e (diff) | |
download | opie-5a41dcd5901badbd2e258b0a916fb012b6351eeb.zip opie-5a41dcd5901badbd2e258b0a916fb012b6351eeb.tar.gz opie-5a41dcd5901badbd2e258b0a916fb012b6351eeb.tar.bz2 |
some layout work
work on saving default values
some fixes
Diffstat (limited to 'noncore/graphics/opie-eye/impl') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp b/noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp index f4a6a87..9c69ce5 100644 --- a/noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp +++ b/noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp | |||
@@ -1,50 +1,58 @@ | |||
1 | /* | 1 | /* |
2 | * GPLv2 | 2 | * GPLv2 |
3 | * zecke@handhelds.org | 3 | * zecke@handhelds.org |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #include "dir_ifaceinfo.h" | 6 | #include "dir_ifaceinfo.h" |
7 | 7 | ||
8 | /* OPIE */ | 8 | /* OPIE */ |
9 | #include <opie2/odebug.h> | 9 | #include <opie2/odebug.h> |
10 | #include <qpe/config.h> | 10 | #include <qpe/config.h> |
11 | 11 | ||
12 | /* QT */ | 12 | /* QT */ |
13 | #include <qwidget.h> | 13 | #include <qwidget.h> |
14 | #include <qcheckbox.h> | 14 | #include <qcheckbox.h> |
15 | #include <qframe.h> | ||
15 | #include <qhbox.h> | 16 | #include <qhbox.h> |
16 | #include <qlabel.h> | 17 | #include <qlabel.h> |
18 | #include <qlayout.h> | ||
17 | 19 | ||
18 | namespace { | 20 | namespace { |
19 | class DirImageWidget : public QHBox { | 21 | class DirImageWidget : public QFrame { |
20 | public: | 22 | public: |
21 | DirImageWidget() { | 23 | DirImageWidget(): QFrame() { |
24 | setFrameStyle(Box|Raised); | ||
25 | QVBoxLayout *m_MainLayout = new QVBoxLayout( this, 6, 2, "m_MainLayout"); | ||
22 | chkbox = new QCheckBox( QObject::tr("Show all files"), this ); | 26 | chkbox = new QCheckBox( QObject::tr("Show all files"), this ); |
27 | m_MainLayout->addWidget(chkbox); | ||
28 | QSpacerItem *spacer1 = new QSpacerItem( 20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding ); | ||
29 | m_MainLayout->addItem( spacer1 ); | ||
30 | |||
23 | } | 31 | } |
24 | ~DirImageWidget() {} | 32 | ~DirImageWidget() {} |
25 | QCheckBox* chkbox; | 33 | QCheckBox* chkbox; |
26 | }; | 34 | }; |
27 | } | 35 | } |
28 | 36 | ||
29 | 37 | ||
30 | DirInterfaceInfo::DirInterfaceInfo() { | 38 | DirInterfaceInfo::DirInterfaceInfo() { |
31 | } | 39 | } |
32 | DirInterfaceInfo::~DirInterfaceInfo() { | 40 | DirInterfaceInfo::~DirInterfaceInfo() { |
33 | } | 41 | } |
34 | 42 | ||
35 | QString DirInterfaceInfo::name()const { | 43 | QString DirInterfaceInfo::name()const { |
36 | return QObject::tr("Directory View" ); | 44 | return QObject::tr("Directory View" ); |
37 | } | 45 | } |
38 | 46 | ||
39 | QWidget* DirInterfaceInfo::configWidget(const Config& cfg) { | 47 | QWidget* DirInterfaceInfo::configWidget(const Config& cfg) { |
40 | DirImageWidget* wid = new DirImageWidget(); | 48 | DirImageWidget* wid = new DirImageWidget(); |
41 | wid->chkbox->setChecked( cfg.readBoolEntry("Dir_Check_All_Files", true) ); | 49 | wid->chkbox->setChecked( cfg.readBoolEntry("Dir_Check_All_Files", true) ); |
42 | 50 | ||
43 | return wid; | 51 | return wid; |
44 | } | 52 | } |
45 | 53 | ||
46 | void DirInterfaceInfo::writeConfig( QWidget* _wid, Config& cfg) { | 54 | void DirInterfaceInfo::writeConfig( QWidget* _wid, Config& cfg) { |
47 | owarn << "Write Config" << oendl; | 55 | owarn << "Write Config" << oendl; |
48 | DirImageWidget* wid = static_cast<DirImageWidget*>(_wid); | 56 | DirImageWidget* wid = static_cast<DirImageWidget*>(_wid); |
49 | cfg.writeEntry("Dir_Check_All_Files", wid->chkbox->isChecked() ); | 57 | cfg.writeEntry("Dir_Check_All_Files", wid->chkbox->isChecked() ); |
50 | } | 58 | } |