summaryrefslogtreecommitdiff
path: root/noncore/apps/confedit/editwidget.cpp
authortille <tille>2002-06-29 20:15:06 (UTC)
committer tille <tille>2002-06-29 20:15:06 (UTC)
commit5960b3a2823037c63afba09ca83dbcc0943cd082 (patch) (side-by-side diff)
treee81a6fed931463b24ef0dd32cd913275e19eb850 /noncore/apps/confedit/editwidget.cpp
parentffc8b4587d6070abc82b22d03f0819d78c1ff9b0 (diff)
downloadopie-5960b3a2823037c63afba09ca83dbcc0943cd082.zip
opie-5960b3a2823037c63afba09ca83dbcc0943cd082.tar.gz
opie-5960b3a2823037c63afba09ca83dbcc0943cd082.tar.bz2
something like regedit ;-)
Diffstat (limited to 'noncore/apps/confedit/editwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/confedit/editwidget.cpp73
1 files changed, 73 insertions, 0 deletions
diff --git a/noncore/apps/confedit/editwidget.cpp b/noncore/apps/confedit/editwidget.cpp
new file mode 100644
index 0000000..64f968a
--- a/dev/null
+++ b/noncore/apps/confedit/editwidget.cpp
@@ -0,0 +1,73 @@
+#include "editwidget.h"
+
+#include <qlabel.h>
+#include <qlineedit.h>
+#include <qpushbutton.h>
+#include <qlayout.h>
+#include <qvariant.h>
+#include <qtooltip.h>
+#include <qwhatsthis.h>
+#include <qtimer.h>
+#include <qpopupmenu.h>
+#include <qaction.h>
+#include "listviewitemconfigentry.h"
+
+EditWidget::EditWidget( QWidget* parent, const char* name, WFlags fl )
+ : QWidget( parent, name, fl )
+{
+
+ EditWidgetLayout = new QGridLayout( this );
+ EditWidgetLayout->setSpacing( 3 );
+ EditWidgetLayout->setMargin( 3 );
+
+ QLabel *TextLabelFileName = new QLabel( this, "TextLabelFileName" );
+ TextLabelFileName->setText( tr( "File Name:" ) );
+ EditWidgetLayout->addWidget( TextLabelFileName, 0, 0 );
+ TextFileName = new QLabel( this, "TextFileName" );
+ EditWidgetLayout->addWidget( TextFileName, 0, 1 );
+
+ QLabel *TextLabelGroup = new QLabel( this, "TextLabelGroup" );
+ TextLabelGroup->setText( tr( "Group:" ) );
+ EditWidgetLayout->addWidget( TextLabelGroup, 1, 0 );
+ LineEditGroup = new QLineEdit( this, "LineEditGroup" );
+ EditWidgetLayout->addWidget( LineEditGroup, 1, 1 );
+
+ TextLabelKey = new QLabel( this, "TextLabelKey" );
+ TextLabelKey->setText( tr( "Key:" ) );
+ EditWidgetLayout->addWidget( TextLabelKey, 2, 0 );
+ LineEditKey = new QLineEdit( this, "LineEditKey" );
+ EditWidgetLayout->addWidget( LineEditKey, 2, 1 );
+
+ TextLabelValue = new QLabel( this, "TextLabelValue" );
+ TextLabelValue->setText( tr( "Value:" ) );
+ EditWidgetLayout->addWidget( TextLabelValue, 3, 0 );
+ LineEditValue = new QLineEdit( this, "LineEditValue" );
+ EditWidgetLayout->addWidget( LineEditValue, 3, 1 );
+
+}
+
+
+EditWidget::~EditWidget()
+{
+}
+
+
+void EditWidget::isKey(bool h)
+{
+ if (h)
+ {
+ LineEditGroup->setEnabled(false);
+ TextLabelKey->show();
+ LineEditKey->show();
+ TextLabelValue->show();
+ LineEditValue->show();
+ }else{
+ LineEditGroup->setEnabled(true);
+ TextLabelKey->hide();
+ LineEditKey->hide();
+ TextLabelValue->hide();
+ LineEditValue->hide();
+ }
+ update();
+}
+