summaryrefslogtreecommitdiff
path: root/noncore/graphics/opie-eye/impl/doc/doc_ifaceinfo.cpp
blob: 356a4b60cf23bc651af1a1bae2a65a23cc8226bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
 * GPLv2
 * zecke@handhelds.org
 */

#include "doc_ifaceinfo.h"

/* OPIE */
#include <opie2/odebug.h>
#include <qpe/config.h>
using namespace Opie::Core;

/* QT */
#include <qwidget.h>
#include <qcheckbox.h>
#include <qhbox.h>
#include <qlabel.h>

#if 0
namespace {
    class DirImageWidget : public QHBox {
    public:
        DirImageWidget() {
            chkbox = new QCheckBox( QObject::tr("Show all files"), this );
        }
        ~DirImageWidget() {}
        QCheckBox* chkbox;
    };
}
#endif

DocInterfaceInfo::DocInterfaceInfo() {
}
DocInterfaceInfo::~DocInterfaceInfo() {
}

QString DocInterfaceInfo::name()const {
    return QString::fromLatin1(QObject::tr("DocView" ));
}

QWidget* DocInterfaceInfo::configWidget(const Config& ) {
#if 0
    DirImageWidget* wid = new DirImageWidget();
    wid->chkbox->setChecked(  cfg.readBoolEntry("Dir_Check_All_Files", true) );

    return wid;
#endif
    return 0L;
}

void DocInterfaceInfo::writeConfig( QWidget* , Config& ) {
#if 0
    owarn << "Write Config" << oendl;
    DirImageWidget* wid = static_cast<DirImageWidget*>(_wid);
    cfg.writeEntry("Dir_Check_All_Files", wid->chkbox->isChecked() );
#endif
}