blob: cb18bcd5516c03417b71535a08d2bd57fef2c398 [file] [log] [blame]
Pierre Ossmand463b572011-05-16 12:04:43 +00001/* Copyright 2011 Pierre Ossman <ossman@cendio.se> for Cendio AB
2 *
3 * This is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This software is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this software; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 * USA.
17 */
18
19#ifndef __OPTIONSDIALOG_H__
20#define __OPTIONSDIALOG_H__
21
22#include <FL/Fl_Window.H>
23#include <FL/Fl_Group.H>
24#include <FL/Fl_Check_Button.H>
25#include <FL/Fl_Round_Button.H>
26#include <FL/Fl_Int_Input.H>
27
28class OptionsDialog : public Fl_Window {
29protected:
30 OptionsDialog();
31 ~OptionsDialog();
32
33public:
34 static void showDialog(void);
35
36 void show(void);
37
38protected:
39 void loadOptions(void);
40 void storeOptions(void);
41
42 void createCompressionPage(int tx, int ty, int tw, int th);
43 void createSecurityPage(int tx, int ty, int tw, int th);
44 void createInputPage(int tx, int ty, int tw, int th);
45 void createMiscPage(int tx, int ty, int tw, int th);
46
47 static void handleAutoselect(Fl_Widget *widget, void *data);
48 static void handleCompression(Fl_Widget *widget, void *data);
49 static void handleJpeg(Fl_Widget *widget, void *data);
50
51 static void handleVencrypt(Fl_Widget *widget, void *data);
52 static void handleX509(Fl_Widget *widget, void *data);
53
54 static void handleCancel(Fl_Widget *widget, void *data);
55 static void handleOK(Fl_Widget *widget, void *data);
56
57protected:
58 /* Compression */
59 Fl_Check_Button *autoselectCheckbox;
60
61 Fl_Group *encodingGroup;
62 Fl_Round_Button *tightButton;
63 Fl_Round_Button *zrleButton;
64 Fl_Round_Button *hextileButton;
65 Fl_Round_Button *rawButton;
66
67 Fl_Group *colorlevelGroup;
68 Fl_Round_Button *fullcolorCheckbox;
69 Fl_Round_Button *mediumcolorCheckbox;
70 Fl_Round_Button *lowcolorCheckbox;
71 Fl_Round_Button *verylowcolorCheckbox;
72
73 Fl_Check_Button *compressionCheckbox;
74 Fl_Check_Button *jpegCheckbox;
75 Fl_Int_Input *compressionInput;
76 Fl_Int_Input *jpegInput;
77
78 /* Security */
79 Fl_Check_Button *vencryptCheckbox;
80
81 Fl_Group *encryptionGroup;
82 Fl_Check_Button *encNoneCheckbox;
83 Fl_Check_Button *encTLSCheckbox;
84 Fl_Check_Button *encX509Checkbox;
85 Fl_Input *caInput;
86 Fl_Input *crlInput;
87
88 Fl_Group *authenticationGroup;
89 Fl_Check_Button *authNoneCheckbox;
90 Fl_Check_Button *authVncCheckbox;
91 Fl_Check_Button *authPlainCheckbox;
92
93 /* Input */
94 Fl_Check_Button *viewOnlyCheckbox;
95 Fl_Check_Button *acceptClipboardCheckbox;
96 Fl_Check_Button *sendClipboardCheckbox;
97 Fl_Check_Button *sendPrimaryCheckbox;
98
99 /* Misc. */
100 Fl_Check_Button *sharedCheckbox;
101 Fl_Check_Button *fullScreenCheckbox;
102 Fl_Check_Button *localCursorCheckbox;
103 Fl_Check_Button *dotCursorCheckbox;
104};
105
106#endif