File: editorsettingslocalbase.cpp

package info (click to toggle)
codelite 12.0+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 95,112 kB
  • sloc: cpp: 424,040; ansic: 18,284; php: 9,569; lex: 4,186; yacc: 2,820; python: 2,294; sh: 312; makefile: 51; xml: 13
file content (349 lines) | stat: -rw-r--r-- 19,084 bytes parent folder | download | duplicates (2)
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
//////////////////////////////////////////////////////////////////////
// This file was auto-generated by codelite's wxCrafter Plugin
// wxCrafter project file: editorsettingslocalbase.wxcp
// Do not modify this file by hand!
//////////////////////////////////////////////////////////////////////

#include "editorsettingslocalbase.h"


// Declare the bitmap loading function
extern void wxC2ED4InitBitmapResources();

static bool bBitmapLoaded = false;


LocalEditorSettingsbase::LocalEditorSettingsbase(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style)
    : wxDialog(parent, id, title, pos, size, style)
{
    if ( !bBitmapLoaded ) {
        // We need to initialise the default bitmap handler
        wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
        wxC2ED4InitBitmapResources();
        bBitmapLoaded = true;
    }
    
    wxBoxSizer* mainSizer = new wxBoxSizer(wxVERTICAL);
    this->SetSizer(mainSizer);
    
    m_notebook23 = new wxNotebook(this, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), wxBK_DEFAULT);
    m_notebook23->SetName(wxT("m_notebook23"));
    wxImageList* m_notebook23_il = new wxImageList(16, 16);
    m_notebook23->AssignImageList(m_notebook23_il);
    
    mainSizer->Add(m_notebook23, 1, wxALL|wxEXPAND, 5);
    
    m_panel2 = new wxPanel(m_notebook23, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), wxTAB_TRAVERSAL);
    int m_panel2ImgIndex;
    m_panel2ImgIndex = m_notebook23_il->Add(wxXmlResource::Get()->LoadBitmap(wxT("indent")));
    m_notebook23->AddPage(m_panel2, _("Indentation"), true, m_panel2ImgIndex);
    
    wxBoxSizer* boxSizer3 = new wxBoxSizer(wxVERTICAL);
    m_panel2->SetSizer(boxSizer3);
    
    wxFlexGridSizer* fgSizer31 = new wxFlexGridSizer(0, 2, 0, 20);
    fgSizer31->SetFlexibleDirection( wxBOTH );
    fgSizer31->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
    fgSizer31->AddGrowableCol(1);
    
    boxSizer3->Add(fgSizer31, 1, wxALL|wxEXPAND, 5);
    
    m_indentsUsesTabsEnable = new wxCheckBox(m_panel2, wxID_ANY, _("Use global setting"), wxDefaultPosition, wxSize(-1, -1), wxALIGN_RIGHT);
    m_indentsUsesTabsEnable->SetValue(true);
    
    fgSizer31->Add(m_indentsUsesTabsEnable, 0, wxALL, 5);
    
    m_indentsUsesTabs = new wxCheckBox(m_panel2, wxID_ANY, _("Use tabs in indentation"), wxDefaultPosition, wxSize(-1, -1), 0);
    m_indentsUsesTabs->SetValue(false);
    m_indentsUsesTabs->SetToolTip(_("If clear, only spaces will be used for indentation.\nIf set, a mixture of tabs and spaces will be used."));
    
    fgSizer31->Add(m_indentsUsesTabs, 0, wxALL, 5);
    
    m_tabWidthEnable = new wxCheckBox(m_panel2, wxID_ANY, _("Use global setting"), wxDefaultPosition, wxSize(-1, -1), wxALIGN_RIGHT);
    m_tabWidthEnable->SetValue(true);
    
    fgSizer31->Add(m_tabWidthEnable, 0, wxALL, 5);
    
    wxBoxSizer* bSizer7 = new wxBoxSizer(wxHORIZONTAL);
    
    fgSizer31->Add(bSizer7, 1, wxEXPAND, 5);
    
    m_staticTexttabWidth = new wxStaticText(m_panel2, wxID_ANY, _("Columns per tab character in document:"), wxDefaultPosition, wxSize(-1, -1), 0);
    
    bSizer7->Add(m_staticTexttabWidth, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
    
    bSizer7->Add(0, 0, 1, wxEXPAND, 5);
    
    m_tabWidth = new wxSpinCtrl(m_panel2, wxID_ANY, wxT("4"), wxDefaultPosition, wxSize(-1, -1), wxSP_ARROW_KEYS);
    m_tabWidth->SetRange(1, 20);
    m_tabWidth->SetValue(4);
    
    bSizer7->Add(m_tabWidth, 0, wxALL|wxEXPAND, 5);
    
    m_indentWidthEnable = new wxCheckBox(m_panel2, wxID_ANY, _("Use global setting"), wxDefaultPosition, wxSize(-1, -1), wxALIGN_RIGHT);
    m_indentWidthEnable->SetValue(true);
    
    fgSizer31->Add(m_indentWidthEnable, 0, wxALL, 5);
    
    wxBoxSizer* bSizer6 = new wxBoxSizer(wxHORIZONTAL);
    
    fgSizer31->Add(bSizer6, 1, wxEXPAND, 5);
    
    m_staticTextindentWidth = new wxStaticText(m_panel2, wxID_ANY, _("Columns per indentation level:"), wxDefaultPosition, wxSize(-1, -1), 0);
    
    bSizer6->Add(m_staticTextindentWidth, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
    
    bSizer6->Add(0, 0, 1, wxEXPAND, 5);
    
    m_indentWidth = new wxSpinCtrl(m_panel2, wxID_ANY, wxT("4"), wxDefaultPosition, wxSize(-1, -1), wxSP_ARROW_KEYS);
    m_indentWidth->SetRange(1, 20);
    m_indentWidth->SetValue(4);
    
    bSizer6->Add(m_indentWidth, 0, wxALL|wxEXPAND, 5);
    
    m_panel3 = new wxPanel(m_notebook23, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), wxTAB_TRAVERSAL);
    int m_panel3ImgIndex;
    m_panel3ImgIndex = m_notebook23_il->Add(wxXmlResource::Get()->LoadBitmap(wxT("margins")));
    m_notebook23->AddPage(m_panel3, _("Margins"), false, m_panel3ImgIndex);
    
    wxBoxSizer* boxSizer2 = new wxBoxSizer(wxVERTICAL);
    m_panel3->SetSizer(boxSizer2);
    
    wxFlexGridSizer* fgSizer21 = new wxFlexGridSizer(0, 2, 0, 20);
    fgSizer21->SetFlexibleDirection( wxBOTH );
    fgSizer21->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
    fgSizer21->AddGrowableCol(1);
    
    boxSizer2->Add(fgSizer21, 1, wxALL|wxEXPAND, 5);
    
    m_displayBookmarkMarginEnable = new wxCheckBox(m_panel3, wxID_ANY, _("Use global setting"), wxDefaultPosition, wxSize(-1, -1), wxALIGN_RIGHT);
    m_displayBookmarkMarginEnable->SetValue(true);
    
    fgSizer21->Add(m_displayBookmarkMarginEnable, 0, wxALL, 5);
    
    m_displayBookmarkMargin = new wxCheckBox(m_panel3, wxID_ANY, _("Display Breakpoints / Bookmarks margin"), wxDefaultPosition, wxSize(-1, -1), 0);
    m_displayBookmarkMargin->SetValue(false);
    
    fgSizer21->Add(m_displayBookmarkMargin, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
    
    m_checkBoxDisplayFoldMarginEnable = new wxCheckBox(m_panel3, wxID_ANY, _("Use global setting"), wxDefaultPosition, wxSize(-1, -1), wxALIGN_RIGHT);
    m_checkBoxDisplayFoldMarginEnable->SetValue(true);
    
    fgSizer21->Add(m_checkBoxDisplayFoldMarginEnable, 0, wxALL, 5);
    
    m_checkBoxDisplayFoldMargin = new wxCheckBox(m_panel3, wxID_ANY, _("Display Folding margin"), wxDefaultPosition, wxSize(-1, -1), 0);
    m_checkBoxDisplayFoldMargin->SetValue(false);
    m_checkBoxDisplayFoldMargin->SetToolTip(_("Display the margin that lets you 'fold' individual functions, or sections of functions, to hide their contents"));
    
    fgSizer21->Add(m_checkBoxDisplayFoldMargin, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
    
    m_checkBoxHideChangeMarkerMarginEnable = new wxCheckBox(m_panel3, wxID_ANY, _("Use global setting"), wxDefaultPosition, wxSize(-1, -1), wxALIGN_RIGHT);
    m_checkBoxHideChangeMarkerMarginEnable->SetValue(true);
    
    fgSizer21->Add(m_checkBoxHideChangeMarkerMarginEnable, 0, wxALL, 5);
    
    m_checkBoxHideChangeMarkerMargin = new wxCheckBox(m_panel3, wxID_ANY, _("Hide change marker margin"), wxDefaultPosition, wxSize(-1, -1), 0);
    m_checkBoxHideChangeMarkerMargin->SetValue(false);
    m_checkBoxHideChangeMarkerMargin->SetToolTip(_("Display the margin in which a coloured line marks any altered line"));
    
    fgSizer21->Add(m_checkBoxHideChangeMarkerMargin, 0, wxALL, 5);
    
    m_displayLineNumbersEnable = new wxCheckBox(m_panel3, wxID_ANY, _("Use global setting"), wxDefaultPosition, wxSize(-1, -1), wxALIGN_RIGHT);
    m_displayLineNumbersEnable->SetValue(true);
    
    fgSizer21->Add(m_displayLineNumbersEnable, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
    
    m_displayLineNumbers = new wxCheckBox(m_panel3, wxID_ANY, _("Display line numbers"), wxDefaultPosition, wxSize(-1, -1), 0);
    m_displayLineNumbers->SetValue(false);
    m_displayLineNumbers->SetToolTip(_("Display line numbers margin"));
    
    fgSizer21->Add(m_displayLineNumbers, 0, wxALL, 5);
    
    m_panel4 = new wxPanel(m_notebook23, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), wxTAB_TRAVERSAL);
    int m_panel4ImgIndex;
    m_panel4ImgIndex = m_notebook23_il->Add(wxXmlResource::Get()->LoadBitmap(wxT("misc")));
    m_notebook23->AddPage(m_panel4, _("Misc"), false, m_panel4ImgIndex);
    
    wxBoxSizer* boxSizer5 = new wxBoxSizer(wxVERTICAL);
    m_panel4->SetSizer(boxSizer5);
    
    wxFlexGridSizer* fgSizer2 = new wxFlexGridSizer(0, 2, 0, 20);
    fgSizer2->SetFlexibleDirection( wxBOTH );
    fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
    fgSizer2->AddGrowableCol(1);
    
    boxSizer5->Add(fgSizer2, 0, wxALL|wxALIGN_LEFT, 5);
    
    m_showIndentationGuideLinesEnable = new wxCheckBox(m_panel4, wxID_ANY, _("Use global setting"), wxDefaultPosition, wxSize(-1, -1), wxALIGN_RIGHT);
    m_showIndentationGuideLinesEnable->SetValue(true);
    
    fgSizer2->Add(m_showIndentationGuideLinesEnable, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
    
    m_showIndentationGuideLines = new wxCheckBox(m_panel4, wxID_ANY, _("Show indentation guidelines"), wxDefaultPosition, wxSize(-1, -1), 0);
    m_showIndentationGuideLines->SetValue(false);
    m_showIndentationGuideLines->SetToolTip(_("Display horizontal guides for matching braces \"{\""));
    
    fgSizer2->Add(m_showIndentationGuideLines, 0, wxALL, 5);
    
    m_highlightCaretLineEnable = new wxCheckBox(m_panel4, wxID_ANY, _("Use global setting"), wxDefaultPosition, wxSize(-1, -1), wxALIGN_RIGHT);
    m_highlightCaretLineEnable->SetValue(true);
    
    fgSizer2->Add(m_highlightCaretLineEnable, 0, wxALL, 5);
    
    m_highlightCaretLine = new wxCheckBox(m_panel4, wxID_ANY, _("Highlight caret line"), wxDefaultPosition, wxSize(-1, -1), 0);
    m_highlightCaretLine->SetValue(false);
    m_highlightCaretLine->SetToolTip(_("Set a different background colour for the line containing the caret"));
    
    fgSizer2->Add(m_highlightCaretLine, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
    
    m_checkBoxTrimLineEnable = new wxCheckBox(m_panel4, wxID_ANY, _("Use global setting"), wxDefaultPosition, wxSize(-1, -1), wxALIGN_RIGHT);
    m_checkBoxTrimLineEnable->SetValue(true);
    
    fgSizer2->Add(m_checkBoxTrimLineEnable, 0, wxALL, 5);
    
    m_checkBoxTrimLine = new wxCheckBox(m_panel4, wxID_ANY, _("When saving files, trim empty lines"), wxDefaultPosition, wxSize(-1, -1), 0);
    m_checkBoxTrimLine->SetValue(false);
    
    fgSizer2->Add(m_checkBoxTrimLine, 0, wxALL, 5);
    
    m_checkBoxAppendLFEnable = new wxCheckBox(m_panel4, wxID_ANY, _("Use global setting"), wxDefaultPosition, wxSize(-1, -1), wxALIGN_RIGHT);
    m_checkBoxAppendLFEnable->SetValue(true);
    
    fgSizer2->Add(m_checkBoxAppendLFEnable, 0, wxALL, 5);
    
    m_checkBoxAppendLF = new wxCheckBox(m_panel4, wxID_ANY, _("If missing, append EOL at end of file"), wxDefaultPosition, wxSize(-1, -1), 0);
    m_checkBoxAppendLF->SetValue(false);
    m_checkBoxAppendLF->SetToolTip(_("Make sure the file finishes with an end-of-line"));
    
    fgSizer2->Add(m_checkBoxAppendLF, 0, wxALL, 5);
    
    wxFlexGridSizer* flexGridSizer15 = new wxFlexGridSizer(0, 3, 0, 0);
    flexGridSizer15->SetFlexibleDirection( wxBOTH );
    flexGridSizer15->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
    flexGridSizer15->AddGrowableCol(2);
    
    boxSizer5->Add(flexGridSizer15, 1, wxALL|wxEXPAND|wxALIGN_LEFT, 5);
    
    m_whitespaceStyleEnable = new wxCheckBox(m_panel4, wxID_ANY, _("Use global setting"), wxDefaultPosition, wxSize(-1, -1), wxALIGN_RIGHT);
    m_whitespaceStyleEnable->SetValue(true);
    
    flexGridSizer15->Add(m_whitespaceStyleEnable, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
    
    m_staticTextwhitespaceStyle = new wxStaticText(m_panel4, wxID_ANY, _("Whitespace visibility:"), wxDefaultPosition, wxSize(-1, -1), 0);
    
    flexGridSizer15->Add(m_staticTextwhitespaceStyle, 0, wxALL|wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL, 5);
    
    wxArrayString m_whitespaceStyleArr;
    m_whitespaceStyle = new wxChoice(m_panel4, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), m_whitespaceStyleArr, 0);
    
    flexGridSizer15->Add(m_whitespaceStyle, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5);
    
    m_choiceEOLEnable = new wxCheckBox(m_panel4, wxID_ANY, _("Use global setting"), wxDefaultPosition, wxSize(-1, -1), wxALIGN_RIGHT);
    m_choiceEOLEnable->SetValue(true);
    
    flexGridSizer15->Add(m_choiceEOLEnable, 0, wxALL, 5);
    
    m_EOLstatic = new wxStaticText(m_panel4, wxID_ANY, _("EOL Mode:"), wxDefaultPosition, wxSize(-1, -1), 0);
    
    flexGridSizer15->Add(m_EOLstatic, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
    
    wxArrayString m_choiceEOLArr;
    m_choiceEOL = new wxChoice(m_panel4, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), m_choiceEOLArr, 0);
    m_choiceEOL->SetToolTip(_("Set the editor's EOL mode (End Of Line). When set to 'Default' CodeLite will set the EOL according to the hosting OS"));
    
    flexGridSizer15->Add(m_choiceEOL, 0, wxALL|wxEXPAND, 5);
    
    m_fileEncodingEnable = new wxCheckBox(m_panel4, wxID_ANY, _("Use global setting"), wxDefaultPosition, wxSize(-1, -1), wxALIGN_RIGHT);
    m_fileEncodingEnable->SetValue(true);
    
    flexGridSizer15->Add(m_fileEncodingEnable, 0, wxALL, 5);
    
    m_staticTextfileEncoding = new wxStaticText(m_panel4, wxID_ANY, _("File font encoding"), wxDefaultPosition, wxSize(-1, -1), 0);
    
    flexGridSizer15->Add(m_staticTextfileEncoding, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
    
    wxArrayString m_fileEncodingArr;
    m_fileEncoding = new wxChoice(m_panel4, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), m_fileEncodingArr, 0);
    
    flexGridSizer15->Add(m_fileEncoding, 0, wxALL|wxEXPAND, 5);
    
    wxBoxSizer* bSizer4 = new wxBoxSizer(wxHORIZONTAL);
    
    mainSizer->Add(bSizer4, 0, wxALIGN_CENTER_HORIZONTAL, 5);
    
    m_stdBtnSizer17 = new wxStdDialogButtonSizer();
    
    bSizer4->Add(m_stdBtnSizer17, 0, wxALL, 10);
    
    m_button19 = new wxButton(this, wxID_OK, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
    m_button19->SetDefault();
    m_stdBtnSizer17->AddButton(m_button19);
    
    m_button21 = new wxButton(this, wxID_CANCEL, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
    m_stdBtnSizer17->AddButton(m_button21);
    m_stdBtnSizer17->Realize();
    
    
    #if wxVERSION_NUMBER >= 2900
    if(!wxPersistenceManager::Get().Find(m_notebook23)){
        wxPersistenceManager::Get().RegisterAndRestore(m_notebook23);
    } else {
        wxPersistenceManager::Get().Restore(m_notebook23);
    }
    #endif
    
    SetName(wxT("LocalEditorSettingsbase"));
    SetSize(-1,-1);
    if (GetSizer()) {
         GetSizer()->Fit(this);
    }
    if(GetParent()) {
        CentreOnParent();
    } else {
        CentreOnScreen();
    }
#if wxVERSION_NUMBER >= 2900
    if(!wxPersistenceManager::Get().Find(this)) {
        wxPersistenceManager::Get().RegisterAndRestore(this);
    } else {
        wxPersistenceManager::Get().Restore(this);
    }
#endif
    // Connect events
    m_indentsUsesTabsEnable->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::indentsUsesTabsUpdateUI), NULL, this);
    m_tabWidthEnable->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::tabWidthUpdateUI), NULL, this);
    m_indentWidthEnable->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::indentWidthUpdateUI), NULL, this);
    m_displayBookmarkMarginEnable->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::displayBookmarkMarginUpdateUI), NULL, this);
    m_checkBoxDisplayFoldMarginEnable->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::checkBoxDisplayFoldMarginUpdateUI), NULL, this);
    m_checkBoxHideChangeMarkerMarginEnable->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::checkBoxHideChangeMarkerMarginUpdateUI), NULL, this);
    m_displayLineNumbersEnable->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::displayLineNumbersUpdateUI), NULL, this);
    m_showIndentationGuideLinesEnable->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::showIndentationGuideLinesUpdateUI), NULL, this);
    m_highlightCaretLineEnable->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::highlightCaretLineUpdateUI), NULL, this);
    m_checkBoxTrimLineEnable->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::checkBoxTrimLineUpdateUI), NULL, this);
    m_checkBoxAppendLFEnable->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::checkBoxAppendLFUpdateUI), NULL, this);
    m_whitespaceStyleEnable->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::whitespaceStyleUpdateUI), NULL, this);
    m_choiceEOLEnable->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::choiceEOLUpdateUI), NULL, this);
    m_fileEncodingEnable->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::fileEncodingUpdateUI), NULL, this);
    m_button19->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(LocalEditorSettingsbase::OnOK), NULL, this);
    
}

LocalEditorSettingsbase::~LocalEditorSettingsbase()
{
    m_indentsUsesTabsEnable->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::indentsUsesTabsUpdateUI), NULL, this);
    m_tabWidthEnable->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::tabWidthUpdateUI), NULL, this);
    m_indentWidthEnable->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::indentWidthUpdateUI), NULL, this);
    m_displayBookmarkMarginEnable->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::displayBookmarkMarginUpdateUI), NULL, this);
    m_checkBoxDisplayFoldMarginEnable->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::checkBoxDisplayFoldMarginUpdateUI), NULL, this);
    m_checkBoxHideChangeMarkerMarginEnable->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::checkBoxHideChangeMarkerMarginUpdateUI), NULL, this);
    m_displayLineNumbersEnable->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::displayLineNumbersUpdateUI), NULL, this);
    m_showIndentationGuideLinesEnable->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::showIndentationGuideLinesUpdateUI), NULL, this);
    m_highlightCaretLineEnable->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::highlightCaretLineUpdateUI), NULL, this);
    m_checkBoxTrimLineEnable->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::checkBoxTrimLineUpdateUI), NULL, this);
    m_checkBoxAppendLFEnable->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::checkBoxAppendLFUpdateUI), NULL, this);
    m_whitespaceStyleEnable->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::whitespaceStyleUpdateUI), NULL, this);
    m_choiceEOLEnable->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::choiceEOLUpdateUI), NULL, this);
    m_fileEncodingEnable->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(LocalEditorSettingsbase::fileEncodingUpdateUI), NULL, this);
    m_button19->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(LocalEditorSettingsbase::OnOK), NULL, this);
    
}