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 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp b/noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp index 5599ad1..f4a6a87 100644 --- a/noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp +++ b/noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp | |||
@@ -1,23 +1,22 @@ | |||
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 | using namespace Opie::Core; | ||
12 | 11 | ||
13 | /* QT */ | 12 | /* QT */ |
14 | #include <qwidget.h> | 13 | #include <qwidget.h> |
15 | #include <qcheckbox.h> | 14 | #include <qcheckbox.h> |
16 | #include <qhbox.h> | 15 | #include <qhbox.h> |
17 | #include <qlabel.h> | 16 | #include <qlabel.h> |
18 | 17 | ||
19 | namespace { | 18 | namespace { |
20 | class DirImageWidget : public QHBox { | 19 | class DirImageWidget : public QHBox { |
21 | public: | 20 | public: |
22 | DirImageWidget() { | 21 | DirImageWidget() { |
23 | chkbox = new QCheckBox( QObject::tr("Show all files"), this ); | 22 | chkbox = new QCheckBox( QObject::tr("Show all files"), this ); |
@@ -25,27 +24,27 @@ namespace { | |||
25 | ~DirImageWidget() {} | 24 | ~DirImageWidget() {} |
26 | QCheckBox* chkbox; | 25 | QCheckBox* chkbox; |
27 | }; | 26 | }; |
28 | } | 27 | } |
29 | 28 | ||
30 | 29 | ||
31 | DirInterfaceInfo::DirInterfaceInfo() { | 30 | DirInterfaceInfo::DirInterfaceInfo() { |
32 | } | 31 | } |
33 | DirInterfaceInfo::~DirInterfaceInfo() { | 32 | DirInterfaceInfo::~DirInterfaceInfo() { |
34 | } | 33 | } |
35 | 34 | ||
36 | QString DirInterfaceInfo::name()const { | 35 | QString DirInterfaceInfo::name()const { |
37 | return QString::fromLatin1(QObject::tr("DirView" )); | 36 | return QObject::tr("Directory View" ); |
38 | } | 37 | } |
39 | 38 | ||
40 | QWidget* DirInterfaceInfo::configWidget(const Config& cfg) { | 39 | QWidget* DirInterfaceInfo::configWidget(const Config& cfg) { |
41 | DirImageWidget* wid = new DirImageWidget(); | 40 | DirImageWidget* wid = new DirImageWidget(); |
42 | wid->chkbox->setChecked( cfg.readBoolEntry("Dir_Check_All_Files", true) ); | 41 | wid->chkbox->setChecked( cfg.readBoolEntry("Dir_Check_All_Files", true) ); |
43 | 42 | ||
44 | return wid; | 43 | return wid; |
45 | } | 44 | } |
46 | 45 | ||
47 | void DirInterfaceInfo::writeConfig( QWidget* _wid, Config& cfg) { | 46 | void DirInterfaceInfo::writeConfig( QWidget* _wid, Config& cfg) { |
48 | owarn << "Write Config" << oendl; | 47 | owarn << "Write Config" << oendl; |
49 | DirImageWidget* wid = static_cast<DirImageWidget*>(_wid); | 48 | DirImageWidget* wid = static_cast<DirImageWidget*>(_wid); |
50 | cfg.writeEntry("Dir_Check_All_Files", wid->chkbox->isChecked() ); | 49 | cfg.writeEntry("Dir_Check_All_Files", wid->chkbox->isChecked() ); |
51 | } | 50 | } |