summaryrefslogtreecommitdiff
path: root/noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp
Side-by-side diff
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.cpp32
1 files changed, 28 insertions, 4 deletions
diff --git a/noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp b/noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp
index 9c69ce5..1e4ec40 100644
--- a/noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp
+++ b/noncore/graphics/opie-eye/impl/dir/dir_ifaceinfo.cpp
@@ -18,2 +18,3 @@
#include <qlayout.h>
+#include <qspinbox.h>
@@ -25,4 +26,21 @@ namespace {
QVBoxLayout *m_MainLayout = new QVBoxLayout( this, 6, 2, "m_MainLayout");
+ QGridLayout*RecDepthLayout = new QGridLayout( 0, 1, 1, 0, 6, "RecDepthLayout");
+
chkbox = new QCheckBox( QObject::tr("Show all files"), this );
m_MainLayout->addWidget(chkbox);
+ recWarningLabel = new QLabel(this);
+ recWarningLabel->setText(QObject::tr("<center><b>Be carefull with the following options!</b></center>"));
+ m_MainLayout->addWidget(recWarningLabel);
+ recBox = new QCheckBox( QObject::tr("Show files recursive"),this);
+ m_MainLayout->addWidget(recBox);
+ recDepthLabel = new QLabel(this);
+ recDepthLabel->setText(QObject::tr("Recursion depth:"));
+ RecDepthLayout->addWidget(recDepthLabel,0,0);
+ recDepth = new QSpinBox(this);
+ recDepth->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Fixed));
+ recDepth->setMaxValue(10);
+ recDepth->setMinValue(1);
+ recDepth->setSuffix(QObject::tr(" directories"));
+ RecDepthLayout->addWidget(recDepth,0,1);
+ m_MainLayout->addLayout(RecDepthLayout);
QSpacerItem *spacer1 = new QSpacerItem( 20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding );
@@ -32,3 +50,6 @@ namespace {
~DirImageWidget() {}
- QCheckBox* chkbox;
+ QCheckBox* chkbox,*recBox;
+ QSpinBox * recDepth;
+ QLabel* recDepthLabel,*recWarningLabel;
+
};
@@ -48,4 +69,5 @@ QWidget* DirInterfaceInfo::configWidget(const Config& cfg) {
DirImageWidget* wid = new DirImageWidget();
- wid->chkbox->setChecked( cfg.readBoolEntry("Dir_Check_All_Files", true) );
-
+ wid->chkbox->setChecked(cfg.readBoolEntry("Dir_Check_All_Files",false));
+ wid->recBox->setChecked(cfg.readBoolEntry("Dir_Check_Recursive_Files",false));
+ wid->recDepth->setValue(cfg.readNumEntry("Dir_Recursive_Files_Depth",10));
return wid;
@@ -56,3 +78,5 @@ void DirInterfaceInfo::writeConfig( QWidget* _wid, Config& cfg) {
DirImageWidget* wid = static_cast<DirImageWidget*>(_wid);
- cfg.writeEntry("Dir_Check_All_Files", wid->chkbox->isChecked() );
+ cfg.writeEntry("Dir_Check_All_Files", wid->chkbox->isChecked());
+ cfg.writeEntry("Dir_Check_Recursive_Files", wid->recBox->isChecked());
+ cfg.writeEntry("Dir_Recursive_Files_Depth",wid->recDepth->value());
}