blob: b9f57d1f712f05ec2e0d284a10b2ef106ea14d08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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();
}
|