stifui/qt/src/dlgsetting.cpp
branchRCL_3
changeset 17 d40e813b23c0
parent 13 822c625f7adc
--- a/stifui/qt/src/dlgsetting.cpp	Mon Jun 21 15:41:16 2010 +0300
+++ b/stifui/qt/src/dlgsetting.cpp	Thu Jul 15 18:39:46 2010 +0300
@@ -33,6 +33,16 @@
     chkShowoutput = new QCheckBox(this);
     chkShowoutput->setText(tr("Show output in execution."));
     chkShowoutput->setChecked(setting->ReadSetting(KShowOutput) == "true");
+    
+    lblFilter = new QLabel(this);
+    lblFilter->setText(tr("Filter for displayed titles."));
+    ledFilter = new QLineEdit(this);
+    ledFilter->setFrame(true);
+    ledFilter->setText(setting->ReadSetting(KFilter));
+    chkFilterCaseSens = new QCheckBox(this);
+    chkFilterCaseSens->setText(tr("Filter is case sensitive."));
+    chkFilterCaseSens->setChecked(setting->ReadSetting(KFilterCaseSens) == "true");
+    
     QWidget *toolWidget = new QWidget(this);
     QGridLayout *toolLayout = new QGridLayout(this);
     
@@ -51,7 +61,10 @@
     
     mainLayout->addWidget(nullWidget, 0, 0);
     mainLayout->addWidget(chkShowoutput, 1, 0);
-    mainLayout->addWidget(toolWidget, 3, 0);    
+    mainLayout->addWidget(lblFilter, 3, 0);
+    mainLayout->addWidget(ledFilter, 4, 0);
+    mainLayout->addWidget(chkFilterCaseSens, 5, 0);
+    mainLayout->addWidget(toolWidget, 7, 0); 
     
     }
 
@@ -65,6 +78,8 @@
         {
         setting->SetSetting(KShowOutput, "false");    
         }
+    setting->SetSetting(KFilter, ledFilter->text());
+    setting->SetSetting(KFilterCaseSens, (chkFilterCaseSens->checkState() == Qt::Checked) ? ("true") : ("false"));
     this->accept();
     }
 
@@ -72,3 +87,5 @@
     {
     this->reject();
     }
+
+// End of File