summaryrefslogtreecommitdiff
path: root/noncore/comm/keypebble/kvncoptionsdlg.cpp
Side-by-side diff
Diffstat (limited to 'noncore/comm/keypebble/kvncoptionsdlg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/comm/keypebble/kvncoptionsdlg.cpp53
1 files changed, 53 insertions, 0 deletions
diff --git a/noncore/comm/keypebble/kvncoptionsdlg.cpp b/noncore/comm/keypebble/kvncoptionsdlg.cpp
new file mode 100644
index 0000000..b9f57d1
--- a/dev/null
+++ b/noncore/comm/keypebble/kvncoptionsdlg.cpp
@@ -0,0 +1,53 @@
+#include <qframe.h>
+#include <qvbox.h>
+#include <qcheckbox.h>
+#include <qspinbox.h>
+#include <qlabel.h>
+#include <qlayout.h>
+#include <qwhatsthis.h>
+#include <qapplication.h>
+#include "krfboptions.h"
+
+#include "kvncoptionsdlg.h"
+
+KVNCOptionsDlg::KVNCOptionsDlg( KRFBOptions *options,
+ QWidget *parent, char *name, bool modal )
+ : VncOptionsBase( parent, name, modal )
+{
+ this->options = options;
+
+ hex->setChecked( options->hexTile );
+ corre->setChecked( options->corre );
+ rre->setChecked( options->rre );
+ copyRect->setChecked( options->copyrect );
+
+ // TODO
+ hex->setEnabled( false );
+ corre->setEnabled( false );
+ rre->setEnabled( false );
+ // /TODO
+
+ deIconify->setChecked( options->deIconify );
+ bit->setChecked( options->colors256 );
+ shared->setChecked( options->shared );
+ timeBox->setValue( options->updateRate );
+}
+
+KVNCOptionsDlg::~KVNCOptionsDlg()
+{
+}
+
+void KVNCOptionsDlg::accept()
+{
+ options->hexTile = hex->isChecked();
+ options->corre = corre->isChecked();
+ options->rre = rre->isChecked();
+ options->copyrect = copyRect->isChecked();
+ options->deIconify = deIconify->isChecked();
+ options->colors256 = bit->isChecked();
+ options->shared = shared->isChecked();
+ options->updateRate = timeBox->value();
+
+ QDialog::accept();
+}
+