509 lines
18 KiB
C++
509 lines
18 KiB
C++
// $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_
|