author | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
commit | 15318cad33835e4e2dc620d033e43cd930676cdd (patch) (unidiff) | |
tree | c2fa0399a2c47fda8e2cd0092c73a809d17f68eb /noncore/comm/keypebble/kvncoptionsdlg.cpp | |
download | opie-15318cad33835e4e2dc620d033e43cd930676cdd.zip opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.gz opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.bz2 |
Initial revision
Diffstat (limited to 'noncore/comm/keypebble/kvncoptionsdlg.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/comm/keypebble/kvncoptionsdlg.cpp | 53 |
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 @@ | |||
1 | #include <qframe.h> | ||
2 | #include <qvbox.h> | ||
3 | #include <qcheckbox.h> | ||
4 | #include <qspinbox.h> | ||
5 | #include <qlabel.h> | ||
6 | #include <qlayout.h> | ||
7 | #include <qwhatsthis.h> | ||
8 | #include <qapplication.h> | ||
9 | #include "krfboptions.h" | ||
10 | |||
11 | #include "kvncoptionsdlg.h" | ||
12 | |||
13 | KVNCOptionsDlg::KVNCOptionsDlg( KRFBOptions *options, | ||
14 | QWidget *parent, char *name, bool modal ) | ||
15 | : VncOptionsBase( parent, name, modal ) | ||
16 | { | ||
17 | this->options = options; | ||
18 | |||
19 | hex->setChecked( options->hexTile ); | ||
20 | corre->setChecked( options->corre ); | ||
21 | rre->setChecked( options->rre ); | ||
22 | copyRect->setChecked( options->copyrect ); | ||
23 | |||
24 | // TODO | ||
25 | hex->setEnabled( false ); | ||
26 | corre->setEnabled( false ); | ||
27 | rre->setEnabled( false ); | ||
28 | // /TODO | ||
29 | |||
30 | deIconify->setChecked( options->deIconify ); | ||
31 | bit->setChecked( options->colors256 ); | ||
32 | shared->setChecked( options->shared ); | ||
33 | timeBox->setValue( options->updateRate ); | ||
34 | } | ||
35 | |||
36 | KVNCOptionsDlg::~KVNCOptionsDlg() | ||
37 | { | ||
38 | } | ||
39 | |||
40 | void KVNCOptionsDlg::accept() | ||
41 | { | ||
42 | options->hexTile = hex->isChecked(); | ||
43 | options->corre = corre->isChecked(); | ||
44 | options->rre = rre->isChecked(); | ||
45 | options->copyrect = copyRect->isChecked(); | ||
46 | options->deIconify = deIconify->isChecked(); | ||
47 | options->colors256 = bit->isChecked(); | ||
48 | options->shared = shared->isChecked(); | ||
49 | options->updateRate = timeBox->value(); | ||
50 | |||
51 | QDialog::accept(); | ||
52 | } | ||
53 | |||