00001 /* 00002 * GPLv2 00003 * zecke@handhelds.org 00004 */ 00005 00006 #include "doc_ifaceinfo.h" 00007 00008 /* OPIE */ 00009 #include <opie2/odebug.h> 00010 #include <qpe/config.h> 00011 using namespace Opie::Core; 00012 00013 /* QT */ 00014 #include <qwidget.h> 00015 #include <qcheckbox.h> 00016 #include <qhbox.h> 00017 #include <qlabel.h> 00018 00019 #if 0 00020 namespace { 00021 class DirImageWidget : public QHBox { 00022 public: 00023 DirImageWidget() { 00024 chkbox = new QCheckBox( QObject::tr("Show all files"), this ); 00025 } 00026 ~DirImageWidget() {} 00027 QCheckBox* chkbox; 00028 }; 00029 } 00030 #endif 00031 00032 DocInterfaceInfo::DocInterfaceInfo() { 00033 } 00034 DocInterfaceInfo::~DocInterfaceInfo() { 00035 } 00036 00037 QString DocInterfaceInfo::name()const { 00038 return QString::fromLatin1(QObject::tr("DocView" )); 00039 } 00040 00041 QWidget* DocInterfaceInfo::configWidget(const Config& ) { 00042 #if 0 00043 DirImageWidget* wid = new DirImageWidget(); 00044 wid->chkbox->setChecked( cfg.readBoolEntry("Dir_Check_All_Files", true) ); 00045 00046 return wid; 00047 #endif 00048 return 0L; 00049 } 00050 00051 void DocInterfaceInfo::writeConfig( QWidget* , Config& ) { 00052 #if 0 00053 owarn << "Write Config" << oendl; 00054 DirImageWidget* wid = static_cast<DirImageWidget*>(_wid); 00055 cfg.writeEntry("Dir_Check_All_Files", wid->chkbox->isChecked() ); 00056 #endif 00057 }
1.4.2