|
|
1.1 root 1: /*
2: Copyright (c) 2008 TrueCrypt Foundation. All rights reserved.
3:
4: Governed by the TrueCrypt License 2.4 the full text of which is contained
5: in the file License.txt included in TrueCrypt binary and source code
6: distribution packages.
7: */
8:
9: #ifndef TC_HEADER_Main_Forms_PreferencesDialog
10: #define TC_HEADER_Main_Forms_PreferencesDialog
11:
12: #include "Forms.h"
13: #include "Main/Main.h"
14: #include "KeyfilesPanel.h"
15:
16: namespace TrueCrypt
17: {
18: class PreferencesDialog : public PreferencesDialogBase
19: {
20: public:
21: PreferencesDialog (wxWindow* parent);
22: ~PreferencesDialog ();
23:
24: void SelectPage (wxPanel *page);
25:
26: protected:
27: void OnAssignHotkeyButtonClick (wxCommandEvent& event);
28: void OnBackgroundTaskEnabledCheckBoxClick (wxCommandEvent& event);
29: void OnCancelButtonClick (wxCommandEvent& event) { Close(); }
30: void OnClose (wxCloseEvent& event);
31: void OnDismountOnPowerSavingCheckBoxClick (wxCommandEvent& event);
32: void OnDismountOnScreenSaverCheckBoxClick (wxCommandEvent& event);
33: void OnForceAutoDismountCheckBoxClick (wxCommandEvent& event);
34: void OnHotkeyListItemDeselected (wxListEvent& event);
35: void OnHotkeyListItemSelected (wxListEvent& event);
36: void OnOKButtonClick (wxCommandEvent& event);
37: void OnPreserveTimestampsCheckBoxClick (wxCommandEvent& event);
38: void OnRemoveHotkeyButtonClick (wxCommandEvent& event);
39: void OnTimer ();
40: void UpdateHotkeyButtons();
41:
42: enum
43: {
44: ColumnHotkeyDescription = 0,
45: ColumnHotkey
46: };
47:
48: KeyfilesPanel *DefaultKeyfilesPanel;
49: int LastVirtualKeyPressed;
50: auto_ptr <wxTimer> mTimer;
51: UserPreferences Preferences;
52: bool RestoreValidatorBell;
53: HotkeyList UnregisteredHotkeys;
54: };
55: }
56:
57: #endif // TC_HEADER_Main_Forms_PreferencesDialog
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.