-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathSessionProperties.h
508 lines (401 loc) · 18.2 KB
/
SessionProperties.h
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
// $Id: SessionProperties.h 705 2012-03-16 13:01:13Z felfert $
//
// Copyright (C) 2006 The OpenNX Team
// Author: Fritz Elfert
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU LibroxyCommary General Public License as
// published by the Free Software Foundation; either version 2 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU Library General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
#ifndef _SESSIONPROPERTIES_H_
#define _SESSIONPROPERTIES_H_
#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "SessionProperties.cpp"
#endif
/*!
* Includes
*/
////@begin includes
#include "SessionProperties_symbols.h"
#include "wx/xrc/xmlres.h"
#include "wx/notebook.h"
#include "wx/spinctrl.h"
#include "wx/valgen.h"
#include "wx/listctrl.h"
#include "wx/html/htmlwin.h"
////@end includes
#include "wx/sizer.h"
/*!
* Forward declarations
*/
////@begin forward declarations
class wxNotebook;
class wxSpinCtrl;
class wxListCtrl;
class extHtmlWindow;
////@end forward declarations
#include "MyValidator.h"
#include "MyXmlConfig.h"
/*!
* Control identifiers
*/
////@begin control identifiers
#define ID_DIALOG_PROPERTIES 10006
#define SYMBOL_SESSIONPROPERTIES_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX
#define SYMBOL_SESSIONPROPERTIES_TITLE _("Session properties - OpenNX")
#define SYMBOL_SESSIONPROPERTIES_IDNAME ID_DIALOG_PROPERTIES
#define SYMBOL_SESSIONPROPERTIES_SIZE wxDefaultSize
#define SYMBOL_SESSIONPROPERTIES_POSITION wxDefaultPosition
////@end control identifiers
/*!
* Compatibility
*/
#ifndef wxCLOSE_BOX
#define wxCLOSE_BOX 0x1000
#endif
class KbdLayout;
WX_DECLARE_OBJARRAY(KbdLayout, KbdLayoutTable);
/*!
* SessionProperties class declaration
*/
class SessionProperties: public wxDialog, KeyTypeCallback
{
DECLARE_CLASS( SessionProperties )
DECLARE_EVENT_TABLE()
public:
/// Constructors
SessionProperties( );
SessionProperties( wxWindow* parent, wxWindowID id = SYMBOL_SESSIONPROPERTIES_IDNAME, const wxString& caption = SYMBOL_SESSIONPROPERTIES_TITLE, const wxPoint& pos = SYMBOL_SESSIONPROPERTIES_POSITION, const wxSize& size = SYMBOL_SESSIONPROPERTIES_SIZE, long style = SYMBOL_SESSIONPROPERTIES_STYLE );
/// Creation
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_SESSIONPROPERTIES_IDNAME, const wxString& caption = SYMBOL_SESSIONPROPERTIES_TITLE, const wxPoint& pos = SYMBOL_SESSIONPROPERTIES_POSITION, const wxSize& size = SYMBOL_SESSIONPROPERTIES_SIZE, long style = SYMBOL_SESSIONPROPERTIES_STYLE );
void UpdateDialogConstraints(bool);
void SetConfig(MyXmlConfig *config);
private:
/// Creates the controls and sizers
void CreateControls();
/**
* Checks for any changes in the dialog and Enables/Disables the Apply-Button
*/
void CheckChanged();
/**
* Checks for any changes in the config and Enables/Disables the Apply-Button
*/
void CheckCfgChanges(bool prevchanges);
/**
* Handler for OnChar events.
*/
virtual void KeyTyped();
/**
* Installs event handler for OnChar event in all wxTextCtrl and wxSpinCtrl
* childs.
*/
void InstallOnCharHandlers(wxWindow *w = NULL);
void SaveState();
public:
void OnContextHelp(wxCommandEvent &);
////@begin SessionProperties event handler declarations
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXTCTRL_HOST
void OnTextctrlHostUpdated( wxCommandEvent& event );
/// wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_SPINCTRL_PORT
void OnSpinctrlPortUpdated( wxSpinEvent& event );
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_SPINCTRL_PORT
void OnTextctrlPortUpdated( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_PWSAVE
void OnCheckboxPwsaveClick( wxCommandEvent& event );
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_KEYMANAGE
void OnButtonKeymanageClick( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_SMARTCARD
void OnCheckboxSmartcardClick( wxCommandEvent& event );
/// wxEVT_COMMAND_COMBOBOX_SELECTED event handler for ID_COMBOBOX_DPROTO
void OnComboboxDprotoSelected( wxCommandEvent& event );
/// wxEVT_COMMAND_COMBOBOX_SELECTED event handler for ID_COMBOBOX_DTYPE
void OnComboboxDtypeSelected( wxCommandEvent& event );
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_DSETTINGS
void OnButtonDsettingsClick( wxCommandEvent& event );
/// wxEVT_COMMAND_SLIDER_UPDATED event handler for ID_SLIDER_SPEED
void OnSliderSpeedUpdated( wxCommandEvent& event );
/// wxEVT_COMMAND_COMBOBOX_SELECTED event handler for ID_COMBOBOX_DISPTYPE
void OnComboboxDisptypeSelected( wxCommandEvent& event );
/// wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_SPINCTRL_WIDTH
void OnSpinctrlWidthUpdated( wxSpinEvent& event );
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_SPINCTRL_WIDTH
void OnSpinctrlWidthTextUpdated( wxCommandEvent& event );
/// wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_SPINCTRL_HEIGHT
void OnSpinctrlHeightUpdated( wxSpinEvent& event );
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_SPINCTRL_HEIGHT
void OnSpinctrlHeightTextUpdated( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_IMG_CUSTOM
void OnCheckboxImgCustomClick( wxCommandEvent& event );
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_IMG_CUSTOM
void OnButtonImgCustomClick( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_KBDOTHER
void OnCheckboxKbdotherClick( wxCommandEvent& event );
/// wxEVT_COMMAND_COMBOBOX_SELECTED event handler for ID_COMBOBOX_KBDLAYOUT
void OnComboboxKbdlayoutSelected( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_DISABLETCPNODEL
void OnCheckboxDisabletcpnodelClick( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_DISABLEZCOMP
void OnCheckboxDisablezcompClick( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_ENABLESSL
void OnCheckboxEnablesslClick( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_PROXY
void OnCheckboxProxyClick( wxCommandEvent& event );
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_PROXYSETTINGS
void OnButtonProxysettingsClick( wxCommandEvent& event );
#if defined(__WXMSW__)
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_DISABLEDX
void OnCheckboxDisabledxClick( wxCommandEvent& event );
#endif
#if defined(__WXMSW__)
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_GRABKB
void OnCheckboxGrabkbClick( wxCommandEvent& event );
#endif
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_NODEFERRED
void OnCheckboxNodeferredClick( wxCommandEvent& event );
#if defined(__WXMSW__)
/// wxEVT_COMMAND_COMBOBOX_SELECTED event handler for ID_COMBOBOX_CLIPFILTER
void OnComboboxClipfilterSelected( wxCommandEvent& event );
#endif
/// wxEVT_COMMAND_COMBOBOX_SELECTED event handler for ID_COMBOBOX_CACHEMEM
void OnComboboxCachememSelected( wxCommandEvent& event );
/// wxEVT_COMMAND_COMBOBOX_SELECTED event handler for ID_COMBOBOX_CACHEDISK
void OnComboboxCachediskSelected( wxCommandEvent& event );
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_CACHECLEAN
void OnButtonCachecleanClick( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_SMB
void OnCheckboxSmbClick( wxCommandEvent& event );
/// wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_SPINCTRL_SMBPORT
void OnSpinctrlSmbportUpdated( wxSpinEvent& event );
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_SPINCTRL_SMBPORT
void OnSpinctrlSmbportTextUpdated( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_CUPSENABLE
void OnCheckboxCupsenableClick( wxCommandEvent& event );
/// wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_SPINCTRL_CUPSPORT
void OnSpinctrlCupsportUpdated( wxSpinEvent& event );
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_SPINCTRL_CUPSPORT
void OnSpinctrlCupsportTextUpdated( wxCommandEvent& event );
/// wxEVT_COMMAND_LIST_ITEM_SELECTED event handler for ID_LISTCTRL_SMB_SHARES
void OnListctrlSmbSharesSelected( wxListEvent& event );
/// wxEVT_COMMAND_LIST_ITEM_ACTIVATED event handler for ID_LISTCTRL_SMB_SHARES
void OnListctrlSmbSharesItemActivated( wxListEvent& event );
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_SMB_ADD
void OnButtonSmbAddClick( wxCommandEvent& event );
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_SMB_MODIFY
void OnButtonSmbModifyClick( wxCommandEvent& event );
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_SMB_DELETE
void OnButtonSmbDeleteClick( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_MMEDIA
void OnCheckboxMmediaClick( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_NATIVEPA
void OnCheckboxNativePAClick( wxCommandEvent& event );
/// wxEVT_COMMAND_COMBOBOX_SELECTED event handler for ID_COMBOBOX_RATEPA
void OnComboboxRatePASelected( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_MONOPA
void OnCheckboxMonoPAClick( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_USBENABLE
void OnCHECKBOXUSBENABLEClick( wxCommandEvent& event );
/// wxEVT_COMMAND_LIST_ITEM_SELECTED event handler for ID_LISTCTRL_USBFILTER
void OnListctrlUsbfilterSelected( wxListEvent& event );
/// wxEVT_COMMAND_LIST_ITEM_ACTIVATED event handler for ID_LISTCTRL_USBFILTER
void OnListctrlUsbfilterItemActivated( wxListEvent& event );
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_USBADD
void OnButtonUsbaddClick( wxCommandEvent& event );
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_USBMODIFY
void OnButtonUsbmodifyClick( wxCommandEvent& event );
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_USBDELETE
void OnButtonUsbdeleteClick( wxCommandEvent& event );
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXTCTRL_USERDIR
void OnTextctrlUserdirUpdated( wxCommandEvent& event );
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_BROWSE_USERDIR
void OnButtonBrowseUserdirClick( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_REMOVEOLDSF
void OnCheckboxRemoveoldsfClick( wxCommandEvent& event );
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXTCTRL_SYSDIR
void OnTextctrlSysdirUpdated( wxCommandEvent& event );
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_BROWSE_SYSDIR
void OnButtonBrowseSysdirClick( wxCommandEvent& event );
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXTCTRL_CUPSPATH
void OnTextctrlCupspathUpdated( wxCommandEvent& event );
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_BROWSE_CUPSPATH
void OnButtonBrowseCupspathClick( wxCommandEvent& event );
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXTCTRL_USBIPD_SOCKET
void OnTextctrlUsbipdSocketTextUpdated( wxCommandEvent& event );
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_BROWSE_USBIPD_SOCKET
void OnButtonBrowseUsbipdSocketClick( wxCommandEvent& event );
/// wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_SPINCTRL_USB_LOCALPORT
void OnSpinctrlUsbLocalportUpdated( wxSpinEvent& event );
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_SPINCTRL_USB_LOCALPORT
void OnSpinctrlUsbLocalportTextUpdated( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_CREATEICON
void OnCheckboxCreateiconClick( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_RESETMSGBOXES
void OnCheckboxResetmsgboxesClick( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_LOWERCASE_LOGIN
void OnCheckboxLowercaseLoginClick( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_CLEAR_PASSONABORT
void OnCheckboxClearPassonabortClick( wxCommandEvent& event );
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_NOMAGICPIXEL
void OnCheckboxNomagicpixelClick( wxCommandEvent& event );
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_DELETE
void OnDeleteClick( wxCommandEvent& event );
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_APPLY
void OnApplyClick( wxCommandEvent& event );
////@end SessionProperties event handler declarations
////@begin SessionProperties member function declarations
bool GetbCreateDesktopIcon() const { return m_bCreateDesktopIcon ; }
void SetbCreateDesktopIcon(bool value) { m_bCreateDesktopIcon = value ; }
int GetUsbLocalPort() const { return m_iUsbLocalPort ; }
void SetUsbLocalPort(int value) { m_iUsbLocalPort = value ; }
wxString GetsSystemNxDir() const { return m_sSystemNxDir ; }
void SetsSystemNxDir(wxString value) { m_sSystemNxDir = value ; }
wxString GetUsbipdSocket() const { return m_sUsbipdSocket ; }
void SetUsbipdSocket(wxString value) { m_sUsbipdSocket = value ; }
wxString GetsUserNxDir() const { return m_sUserNxDir ; }
void SetsUserNxDir(wxString value) { m_sUserNxDir = value ; }
/// Retrieves bitmap resources
wxBitmap GetBitmapResource( const wxString& name );
/// Retrieves icon resources
wxIcon GetIconResource( const wxString& name );
////@end SessionProperties member function declarations
/// Should we show tooltips?
static bool ShowToolTips();
private:
////@begin SessionProperties member variables
wxNotebook* m_pNoteBook;
wxTextCtrl* m_pCtrlHostname;
wxSpinCtrl* m_pCtrlPort;
wxCheckBox* m_pCtrlUseSmartCard;
wxComboBox* m_pCtrlSessionType;
wxComboBox* m_pCtrlDesktopType;
wxButton* m_pCtrlDesktopSettings;
wxComboBox* m_pCtrlDisplayType;
wxSpinCtrl* m_pCtrlDisplayWidth;
wxSpinCtrl* m_pCtrlDisplayHeight;
wxCheckBox* m_pCtrlImageEncCustom;
wxButton* m_pCtrlImageSettings;
wxCheckBox* m_pCtrlKeyboardOther;
wxComboBox* m_pCtrlKeyboardLayout;
wxCheckBox* m_pCtrlEnableSSL;
wxButton* m_pCtrlProxySettings;
wxCheckBox* m_pCtrlSmbEnable;
wxSpinCtrl* m_pCtrlSmbPort;
wxCheckBox* m_pCtrlCupsEnable;
wxSpinCtrl* m_pCtrlCupsPort;
wxListCtrl* m_pCtrlSmbShares;
wxButton* m_pCtrlShareAdd;
wxButton* m_pCtrlShareModify;
wxButton* m_pCtrlShareDelete;
wxCheckBox* m_pCtrlEnableMultimedia;
wxCheckBox* m_pCtrlEnableNativePA;
wxComboBox* m_pCtrlRatePA;
wxCheckBox* m_pCtrlEnableMonoPA;
wxCheckBox* m_pCtrlUsbEnable;
wxListCtrl* m_pCtrlUsbFilter;
wxButton* m_pCtrlUsbAdd;
wxButton* m_pCtrlUsbModify;
wxButton* m_pCtrlUsbDelete;
wxTextCtrl* m_pCtrlUserNxDir;
wxTextCtrl* m_pCtrlSystemNxDir;
wxTextCtrl* m_pCtrlCupsPath;
wxButton* m_pCtrlCupsBrowse;
wxPanel* m_pCtrlUsbipdDaemon;
wxTextCtrl* m_pCtrlUsbIpdSocket;
wxButton* m_pCtrlUsbipdSocketBrowse;
wxSpinCtrl* m_pCtrlUsbLocalPort;
wxCheckBox* m_pCtrlResetMessageBoxes;
wxPanel* m_pCtrlPanelAbout;
extHtmlWindow* m_pHtmlWindow;
wxButton* m_pCtrlApplyButton;
private:
bool m_bClearPassOnAbort;
bool m_bCreateDesktopIcon;
bool m_bDisableDeferredUpdates;
bool m_bDisableDirectDraw;
bool m_bDisableMagicPixel;
bool m_bDisableTcpNoDelay;
bool m_bDisableZlibCompression;
bool m_bEnableMultimedia;
bool m_bEnableNativePA;
bool m_bEnableMonoPA;
bool m_bEnableSSL;
bool m_bEnableSmbSharing;
bool m_bEnableUSBIP;
bool m_bExternalProxy;
bool m_bGrabKeyboard;
bool m_bKbdLayoutOther;
bool m_bLowercaseLogin;
bool m_bProxyPassRemember;
bool m_bRememberPassword;
bool m_bRemoveOldSessionFiles;
bool m_bResetMessageBoxes;
bool m_bSavedClearPassOnAbort;
bool m_bSavedCreateDesktopIcon;
bool m_bSavedDisableMagicPixel;
bool m_bSavedLowercaseLogin;
bool m_bSavedResetMessageBoxes;
bool m_bUseCups;
bool m_bUseCustomImageEncoding;
bool m_bUseDefaultImageEncoding;
bool m_bUseProxy;
bool m_bUseSmartCard;
int m_iCacheDisk;
int m_iCacheMem;
int m_iClipFilter;
int m_iConnectionSpeed;
int m_iCupsPort;
int m_iDesktopType;
int m_iDesktopTypeDialog;
int m_iDisplayHeight;
int m_iDisplayType;
int m_iDisplayWidth;
int m_iPort;
int m_iProxyPort;
int m_iPseudoDesktopTypeIndex;
int m_iPseudoDisplayTypeIndex;
int m_iSavedUsbLocalPort;
int m_iSessionType;
int m_iSmbPort;
int m_iRatePA;
int m_iUsbLocalPort;
wxString m_sCupsPath;
wxString m_sHostName;
wxString m_sKbdLayoutLanguage;
wxString m_sProxyCommand;
wxString m_sProxyHost;
wxString m_sProxyPass;
wxString m_sProxyUser;
wxString m_sSystemNxDir;
wxString m_sUsbipdSocket; // Local control socket for usbipd2
wxString m_sUserNxDir;
////@end SessionProperties member variables
bool readKbdLayouts();
int findSelectedShare();
#ifdef SUPPORT_USBIP
int findSelectedUsbDevice();
void appendUsbDevice(SharedUsbDevice &, int);
#endif
void updateListCtrlColumnWidth(wxListCtrl *);
void removePage(const wxString &);
wxString m_sSavedUserNxDir;
wxString m_sSavedSystemNxDir;
wxString m_sSavedUsbipdSocket;
bool m_bKeyTyped;
bool m_bStorePasswords;
int m_iUnixDesktopType;
MyXmlConfig *m_pCfg;
KbdLayoutTable m_aKbdLayoutTable;
ArrayOfUsbForwards m_aUsbForwards;
};
#endif
// _SESSIONPROPERTIES_H_