~onli/simdock/master

« back to all changes in this revision

Viewing changes to src/settingsDialog.h

  • Committer: onli
  • Date: 2012-04-06 23:14:37 UTC
  • Revision ID: git-v1:34faa0ed43dcef74e599624c60200990ab02a65b
Revert "Revert "first step for interactive settings: interactive setting (without specific app-update)""
fighting with git

This reverts commit 6182beada92d1f2c8c5e4ec59e6f06583d6bda4b.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
 
29
29
enum {
30
 
ID_Browse_Bg = 1,
 
30
    ID_Browse_Bg = 1,
 
31
    ID_Enable_Minimize = 2,
 
32
    ID_LEFT_BORDER = 3,
 
33
    ID_RIGHT_BORDER = 4,
 
34
    ID_BOTTOM_BORDER = 5,
 
35
    ID_ICONW = 6,
 
36
    ID_ICONH = 7,
 
37
    ID_PERCENT = 8,
 
38
    ID_RANGE = 9,
 
39
    ID_SPACER = 11,
 
40
    ID_BG_HEIGHT = 12,
 
41
    ID_bgPath = 13,
 
42
    ID_SHOW_REFLEXES = 14,
 
43
    ID_REFLEX_SCALING = 15,
 
44
    ID_REFLEX_ALPHA = 16,
 
45
    ID_AUTO_POSITION = 17,
 
46
    ID_ENABLE_TASKS = 18,
31
47
};
32
48
 
33
49
// Property sheet dialog
42
58
    wxPanel* CreateAestheticSettingsPage(wxWindow* parent);
43
59
    wxPanel* CreateBackgroundPage(wxWindow* parent);
44
60
    simSettings* GetSettings();
 
61
    void SaveSettings();
45
62
    
46
63
protected:
47
64
    void OnBrowseEvent(wxCommandEvent& event);
48
 
    /* Hey you! if you add something, remember to add it to the destructor! */
 
65
    void OnChange(wxCommandEvent& event);
 
66
    void OnSpinChange(wxSpinEvent& event);
 
67
    /* TODO: make sure the destroyer really gets all of this */
49
68
    wxBookCtrlBase* notebook;
50
69
    wxPanel* generalSettings;
51
70
    wxPanel* aestheticSettings;
60
79
    wxCheckBox* enable_tasks;
61
80
    wxCheckBox* enable_minimize;
62
81
    /* Zoom */
63
 
    wxTextCtrl* zoom_text;
64
 
    wxTextCtrl* range_text;
 
82
    wxSpinCtrl* zoom_text;
 
83
    wxSpinCtrl* range_text;
65
84
    /* Background */
66
 
    wxTextCtrl* bg_height_text;
 
85
    wxSpinCtrl* bg_height_text;
67
86
    wxTextCtrl* bg_path_text;
68
87
    /* Borders */
69
 
    wxTextCtrl* left_border_text;
70
 
    wxTextCtrl* right_border_text;
71
 
    wxTextCtrl* bottom_border_text;
72
 
    wxTextCtrl* spacer_border_text;
73
 
    wxTextCtrl* width_text;
74
 
    wxTextCtrl* height_text;
 
88
    wxSpinCtrl* left_border_text;
 
89
    wxSpinCtrl* right_border_text;
 
90
    wxSpinCtrl* bottom_border_text;
 
91
    wxSpinCtrl* spacer_border_text;
 
92
    wxSpinCtrl* width_text;
 
93
    wxSpinCtrl* height_text;
75
94
    /* Reflexes */
76
95
    wxCheckBox* reflex_enabled;
77
 
    wxTextCtrl* reflex_scaling_text;
78
 
    wxTextCtrl* reflex_alpha_text;
 
96
    wxSpinCtrl* reflex_scaling_text;
 
97
    wxSpinCtrl* reflex_alpha_text;
79
98
    
80
99
    wxButton* browse_button;
81
100