author | mickeyl <mickeyl> | 2004-04-04 13:54:40 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-04-04 13:54:40 (UTC) |
commit | 16cf79e90b5217f8d4bfce2a0fa817ae4b73db36 (patch) (unidiff) | |
tree | 0701eae15aa606a0211a2fccfde0eafdac69357c /noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp | |
parent | 8d2d2664e5f544b8292806e617deb7a0e4170dc0 (diff) | |
download | opie-16cf79e90b5217f8d4bfce2a0fa817ae4b73db36.zip opie-16cf79e90b5217f8d4bfce2a0fa817ae4b73db36.tar.gz opie-16cf79e90b5217f8d4bfce2a0fa817ae4b73db36.tar.bz2 |
convert to Opie Debugging Framework
Diffstat (limited to 'noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp b/noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp index 79f4510..5599ad1 100644 --- a/noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp +++ b/noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp | |||
@@ -1,26 +1,30 @@ | |||
1 | /* | 1 | /* |
2 | * GPLv2 | 2 | * GPLv2 |
3 | * zecke@handhelds.org | 3 | * zecke@handhelds.org |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #include "dir_ifaceinfo.h" | ||
7 | |||
8 | /* OPIE */ | ||
9 | #include <opie2/odebug.h> | ||
10 | #include <qpe/config.h> | ||
11 | using namespace Opie::Core; | ||
12 | |||
13 | /* QT */ | ||
6 | #include <qwidget.h> | 14 | #include <qwidget.h> |
7 | #include <qcheckbox.h> | 15 | #include <qcheckbox.h> |
8 | #include <qhbox.h> | 16 | #include <qhbox.h> |
9 | #include <qlabel.h> | 17 | #include <qlabel.h> |
10 | 18 | ||
11 | #include <qpe/config.h> | ||
12 | |||
13 | #include "dir_ifaceinfo.h" | ||
14 | |||
15 | namespace { | 19 | namespace { |
16 | class DirImageWidget : public QHBox { | 20 | class DirImageWidget : public QHBox { |
17 | public: | 21 | public: |
18 | DirImageWidget() { | 22 | DirImageWidget() { |
19 | chkbox = new QCheckBox( QObject::tr("Show all files"), this ); | 23 | chkbox = new QCheckBox( QObject::tr("Show all files"), this ); |
20 | } | 24 | } |
21 | ~DirImageWidget() {} | 25 | ~DirImageWidget() {} |
22 | QCheckBox* chkbox; | 26 | QCheckBox* chkbox; |
23 | }; | 27 | }; |
24 | } | 28 | } |
25 | 29 | ||
26 | 30 | ||
@@ -32,16 +36,16 @@ DirInterfaceInfo::~DirInterfaceInfo() { | |||
32 | QString DirInterfaceInfo::name()const { | 36 | QString DirInterfaceInfo::name()const { |
33 | return QString::fromLatin1(QObject::tr("DirView" )); | 37 | return QString::fromLatin1(QObject::tr("DirView" )); |
34 | } | 38 | } |
35 | 39 | ||
36 | QWidget* DirInterfaceInfo::configWidget(const Config& cfg) { | 40 | QWidget* DirInterfaceInfo::configWidget(const Config& cfg) { |
37 | DirImageWidget* wid = new DirImageWidget(); | 41 | DirImageWidget* wid = new DirImageWidget(); |
38 | wid->chkbox->setChecked( cfg.readBoolEntry("Dir_Check_All_Files", true) ); | 42 | wid->chkbox->setChecked( cfg.readBoolEntry("Dir_Check_All_Files", true) ); |
39 | 43 | ||
40 | return wid; | 44 | return wid; |
41 | } | 45 | } |
42 | 46 | ||
43 | void DirInterfaceInfo::writeConfig( QWidget* _wid, Config& cfg) { | 47 | void DirInterfaceInfo::writeConfig( QWidget* _wid, Config& cfg) { |
44 | qWarning( "Write Config" ); | 48 | owarn << "Write Config" << oendl; |
45 | DirImageWidget* wid = static_cast<DirImageWidget*>(_wid); | 49 | DirImageWidget* wid = static_cast<DirImageWidget*>(_wid); |
46 | cfg.writeEntry("Dir_Check_All_Files", wid->chkbox->isChecked() ); | 50 | cfg.writeEntry("Dir_Check_All_Files", wid->chkbox->isChecked() ); |
47 | } | 51 | } |