File: editorsettingsmiscbasepanel.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 (400 lines) | stat: -rw-r--r-- 23,681 bytes parent folder | download
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
//////////////////////////////////////////////////////////////////////
// This file was auto-generated by codelite's wxCrafter Plugin
// wxCrafter project file: editor_options_misc.wxcp
// Do not modify this file by hand!
//////////////////////////////////////////////////////////////////////

#include "editorsettingsmiscbasepanel.h"


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

static bool bBitmapLoaded = false;


EditorSettingsMiscBasePanel::EditorSettingsMiscBasePanel(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style)
    : wxPanel(parent, id, pos, size, style)
{
    if ( !bBitmapLoaded ) {
        // We need to initialise the default bitmap handler
        wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
        wxC38F8InitBitmapResources();
        bBitmapLoaded = true;
    }
    
    wxBoxSizer* bSizer1 = new wxBoxSizer(wxVERTICAL);
    this->SetSizer(bSizer1);
    
    m_notebook2 = new wxNotebook(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1,-1)), wxBK_DEFAULT);
    m_notebook2->SetName(wxT("m_notebook2"));
    
    bSizer1->Add(m_notebook2, 1, wxEXPAND, WXC_FROM_DIP(5));
    
    m_panel1 = new wxPanel(m_notebook2, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_notebook2, wxSize(-1, -1)), wxTAB_TRAVERSAL);
    m_notebook2->AddPage(m_panel1, _("General"), true);
    
    wxBoxSizer* bSizer2 = new wxBoxSizer(wxVERTICAL);
    m_panel1->SetSizer(bSizer2);
    
    wxStaticBoxSizer* staticBoxSizer3 = new wxStaticBoxSizer( new wxStaticBox(m_panel1, wxID_ANY, _("Look and Feel:")), wxVERTICAL);
    
    bSizer2->Add(staticBoxSizer3, 0, wxALL|wxEXPAND, WXC_FROM_DIP(5));
    
    wxFlexGridSizer* fgSizer4 = new wxFlexGridSizer(0, 2, 0, 0);
    fgSizer4->SetFlexibleDirection( wxBOTH );
    fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
    fgSizer4->AddGrowableCol(1);
    
    staticBoxSizer3->Add(fgSizer4, 1, wxEXPAND, WXC_FROM_DIP(5));
    
    m_staticText7 = new wxStaticText(m_panel1, wxID_ANY, _("Icon Set:"), wxDefaultPosition, wxDLG_UNIT(m_panel1, wxSize(-1, -1)), 0);
    
    fgSizer4->Add(m_staticText7, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
    
    wxArrayString m_choiceIconSetArr;
    m_choiceIconSetArr.Add(wxT("Classic"));
    m_choiceIconSetArr.Add(wxT("Fresh Farm"));
    m_choiceIconSetArr.Add(wxT("Classic - Dark"));
    m_choiceIconSet = new wxChoice(m_panel1, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_panel1, wxSize(-1, -1)), m_choiceIconSetArr, 0);
    m_choiceIconSet->SetSelection(1);
    
    fgSizer4->Add(m_choiceIconSet, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
    
    m_staticText8 = new wxStaticText(m_panel1, wxID_ANY, _("Toolbar Icon Size:"), wxDefaultPosition, wxDLG_UNIT(m_panel1, wxSize(-1, -1)), 0);
    
    fgSizer4->Add(m_staticText8, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
    
    wxArrayString m_toolbarIconSizeArr;
    m_toolbarIconSizeArr.Add(wxT("Small Icons (16x16)"));
    m_toolbarIconSizeArr.Add(wxT("Large Icons (24x24)"));
    m_toolbarIconSize = new wxChoice(m_panel1, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_panel1, wxSize(-1, -1)), m_toolbarIconSizeArr, 0);
    m_toolbarIconSize->SetSelection(1);
    
    fgSizer4->Add(m_toolbarIconSize, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
    
    m_useSingleToolbar = new wxCheckBox(m_panel1, wxID_ANY, _("Use Native Toolbar"), wxDefaultPosition, wxDLG_UNIT(m_panel1, wxSize(-1, -1)), 0);
    m_useSingleToolbar->SetValue(false);
    m_useSingleToolbar->SetToolTip(_("Using the OS native toolbar instead of the generic toolbar\nWhen enabling this option, CodeLite will not be able to display all plugins\nTools"));
    
    staticBoxSizer3->Add(m_useSingleToolbar, 0, wxALL|wxEXPAND, WXC_FROM_DIP(5));
    
    m_checkBoxEnableMSWTheme = new wxCheckBox(m_panel1, wxID_ANY, _("Enable Windows(R) theme for Vista / Windows 7"), wxDefaultPosition, wxDLG_UNIT(m_panel1, wxSize(-1, -1)), 0);
    m_checkBoxEnableMSWTheme->SetValue(false);
    
    staticBoxSizer3->Add(m_checkBoxEnableMSWTheme, 0, wxALL|wxEXPAND, WXC_FROM_DIP(5));
    
    wxStaticBoxSizer* staticBoxSizer4 = new wxStaticBoxSizer( new wxStaticBox(m_panel1, wxID_ANY, _("Other:")), wxVERTICAL);
    
    bSizer2->Add(staticBoxSizer4, 0, wxALL|wxEXPAND, WXC_FROM_DIP(5));
    
    m_showSplashScreen = new wxCheckBox(m_panel1, wxID_ANY, _("Show splashscreen on startup"), wxDefaultPosition, wxDLG_UNIT(m_panel1, wxSize(-1, -1)), 0);
    m_showSplashScreen->SetValue(true);
    m_showSplashScreen->SetToolTip(_("Show codelite's splashscreen when it first started"));
    
    staticBoxSizer4->Add(m_showSplashScreen, 0, wxALL, WXC_FROM_DIP(5));
    
    m_singleAppInstance = new wxCheckBox(m_panel1, wxID_ANY, _("Allow only single instance running"), wxDefaultPosition, wxDLG_UNIT(m_panel1, wxSize(-1, -1)), 0);
    m_singleAppInstance->SetValue(false);
    m_singleAppInstance->SetToolTip(_("There can be only one"));
    
    staticBoxSizer4->Add(m_singleAppInstance, 0, wxALL, WXC_FROM_DIP(5));
    
    m_versionCheckOnStartup = new wxCheckBox(m_panel1, wxID_ANY, _("Check for new version on startup"), wxDefaultPosition, wxDLG_UNIT(m_panel1, wxSize(-1, -1)), 0);
    m_versionCheckOnStartup->SetValue(true);
    m_versionCheckOnStartup->SetToolTip(_("When codelite starts, it will connect to http://codelite.org to check if a new version of codelite was released"));
    
    staticBoxSizer4->Add(m_versionCheckOnStartup, 0, wxALL, WXC_FROM_DIP(5));
    
    wxBoxSizer* boxSizer57 = new wxBoxSizer(wxHORIZONTAL);
    
    staticBoxSizer4->Add(boxSizer57, 1, wxEXPAND, WXC_FROM_DIP(5));
    
    boxSizer57->Add(15, -1, 0, wxALL, WXC_FROM_DIP(5));
    
    m_checkBoxPromptReleaseOnly = new wxCheckBox(m_panel1, wxID_ANY, _("Prompt for stable releases only"), wxDefaultPosition, wxDLG_UNIT(m_panel1, wxSize(-1,-1)), 0);
    m_checkBoxPromptReleaseOnly->SetValue(false);
    m_checkBoxPromptReleaseOnly->SetToolTip(_("When checked, prompt me for new stable releases\nDon't prompt me for weekly builds"));
    
    boxSizer57->Add(m_checkBoxPromptReleaseOnly, 0, wxALL|wxEXPAND, WXC_FROM_DIP(5));
    
    m_checkBoxRestoreSession = new wxCheckBox(m_panel1, wxID_ANY, _("Load last session on startup"), wxDefaultPosition, wxDLG_UNIT(m_panel1, wxSize(-1,-1)), 0);
    m_checkBoxRestoreSession->SetValue(false);
    m_checkBoxRestoreSession->SetToolTip(_("When launched, codelite will restore the last opened workspace + all open editors"));
    
    staticBoxSizer4->Add(m_checkBoxRestoreSession, 0, wxALL, WXC_FROM_DIP(5));
    
    m_panel23 = new wxPanel(m_notebook2, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_notebook2, wxSize(-1,-1)), wxTAB_TRAVERSAL);
    m_notebook2->AddPage(m_panel23, _("Frame Title"), false);
    
    wxBoxSizer* boxSizer25 = new wxBoxSizer(wxVERTICAL);
    m_panel23->SetSizer(boxSizer25);
    
    m_banner27 = new wxBannerWindow(m_panel23, wxID_ANY, wxTOP, wxDefaultPosition, wxDLG_UNIT(m_panel23, wxSize(-1,-1)), wxBORDER_THEME);
    m_banner27->SetBitmap(wxNullBitmap);
    m_banner27->SetText(_("Set CodeLite frame's title"), _("Set custom title to codelite's main frame"));
    m_banner27->SetGradient(wxSystemSettings::GetColour(wxSYS_COLOUR_ACTIVECAPTION), wxSystemSettings::GetColour(wxSYS_COLOUR_ACTIVECAPTION));
    m_banner27->SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_CAPTIONTEXT));
    
    boxSizer25->Add(m_banner27, 0, wxALL|wxEXPAND, WXC_FROM_DIP(5));
    
    m_staticText31 = new wxStaticText(m_panel23, wxID_ANY, _("You can use the following macros to construct your own frame title:"), wxDefaultPosition, wxDLG_UNIT(m_panel23, wxSize(-1,-1)), 0);
    
    boxSizer25->Add(m_staticText31, 0, wxALL, WXC_FROM_DIP(5));
    
    wxFlexGridSizer* flexGridSizer29 = new wxFlexGridSizer(0, 2, 0, 0);
    flexGridSizer29->SetFlexibleDirection( wxBOTH );
    flexGridSizer29->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
    flexGridSizer29->AddGrowableCol(1);
    
    boxSizer25->Add(flexGridSizer29, 0, wxALL|wxEXPAND, WXC_FROM_DIP(5));
    
    m_staticText33 = new wxStaticText(m_panel23, wxID_ANY, _("$user"), wxDefaultPosition, wxDLG_UNIT(m_panel23, wxSize(-1,-1)), 0);
    wxFont m_staticText33Font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
    m_staticText33Font.SetWeight(wxFONTWEIGHT_BOLD);
    m_staticText33->SetFont(m_staticText33Font);
    
    flexGridSizer29->Add(m_staticText33, 0, wxALL|wxALIGN_RIGHT, WXC_FROM_DIP(5));
    
    m_staticText35 = new wxStaticText(m_panel23, wxID_ANY, _("the current user name inside square brackets"), wxDefaultPosition, wxDLG_UNIT(m_panel23, wxSize(-1,-1)), 0);
    
    flexGridSizer29->Add(m_staticText35, 0, wxALL, WXC_FROM_DIP(5));
    
    m_staticText37 = new wxStaticText(m_panel23, wxID_ANY, _("$filename"), wxDefaultPosition, wxDLG_UNIT(m_panel23, wxSize(-1,-1)), 0);
    wxFont m_staticText37Font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
    m_staticText37Font.SetWeight(wxFONTWEIGHT_BOLD);
    m_staticText37->SetFont(m_staticText37Font);
    
    flexGridSizer29->Add(m_staticText37, 0, wxALL|wxALIGN_RIGHT, WXC_FROM_DIP(5));
    
    m_staticText39 = new wxStaticText(m_panel23, wxID_ANY, _("the current file name"), wxDefaultPosition, wxDLG_UNIT(m_panel23, wxSize(-1,-1)), 0);
    
    flexGridSizer29->Add(m_staticText39, 0, wxALL, WXC_FROM_DIP(5));
    
    m_staticText41 = new wxStaticText(m_panel23, wxID_ANY, _("$fullpath"), wxDefaultPosition, wxDLG_UNIT(m_panel23, wxSize(-1,-1)), 0);
    wxFont m_staticText41Font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
    m_staticText41Font.SetWeight(wxFONTWEIGHT_BOLD);
    m_staticText41->SetFont(m_staticText41Font);
    
    flexGridSizer29->Add(m_staticText41, 0, wxALL|wxALIGN_RIGHT, WXC_FROM_DIP(5));
    
    m_staticText43 = new wxStaticText(m_panel23, wxID_ANY, _("the current file fullpath"), wxDefaultPosition, wxDLG_UNIT(m_panel23, wxSize(-1,-1)), 0);
    
    flexGridSizer29->Add(m_staticText43, 0, wxALL, WXC_FROM_DIP(5));
    
    m_staticText45 = new wxStaticText(m_panel23, wxID_ANY, _("$workspace"), wxDefaultPosition, wxDLG_UNIT(m_panel23, wxSize(-1,-1)), 0);
    wxFont m_staticText45Font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
    m_staticText45Font.SetWeight(wxFONTWEIGHT_BOLD);
    m_staticText45->SetFont(m_staticText45Font);
    
    flexGridSizer29->Add(m_staticText45, 0, wxALL|wxALIGN_RIGHT, WXC_FROM_DIP(5));
    
    m_staticText47 = new wxStaticText(m_panel23, wxID_ANY, _("the current workspace name inside square brackets"), wxDefaultPosition, wxDLG_UNIT(m_panel23, wxSize(-1,-1)), 0);
    
    flexGridSizer29->Add(m_staticText47, 0, wxALL, WXC_FROM_DIP(5));
    
    m_staticText49 = new wxStaticText(m_panel23, wxID_ANY, _("Frame title:"), wxDefaultPosition, wxDLG_UNIT(m_panel23, wxSize(-1,-1)), 0);
    
    flexGridSizer29->Add(m_staticText49, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
    
    m_textCtrlPattern = new wxTextCtrl(m_panel23, wxID_ANY, wxT("$workspace $fullpath"), wxDefaultPosition, wxDLG_UNIT(m_panel23, wxSize(-1,-1)), 0);
    #if wxVERSION_NUMBER >= 3000
    m_textCtrlPattern->SetHint(wxT(""));
    #endif
    
    flexGridSizer29->Add(m_textCtrlPattern, 0, wxALL|wxEXPAND, WXC_FROM_DIP(5));
    
    m_panel44 = new wxPanel(m_notebook2, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_notebook2, wxSize(-1, -1)), wxTAB_TRAVERSAL);
    m_notebook2->AddPage(m_panel44, _("Status Bar"), false);
    
    wxBoxSizer* boxSizer115 = new wxBoxSizer(wxVERTICAL);
    m_panel44->SetSizer(boxSizer115);
    
    m_staticText70 = new wxStaticText(m_panel44, wxID_ANY, _("What statistics to show in the status bar about an editor's text:"), wxDefaultPosition, wxDLG_UNIT(m_panel44, wxSize(-1,-1)), 0);
    
    boxSizer115->Add(m_staticText70, 0, wxALL, WXC_FROM_DIP(10));
    
    m_statusbarShowLine = new wxCheckBox(m_panel44, wxID_ANY, _("Show current line"), wxDefaultPosition, wxDLG_UNIT(m_panel44, wxSize(-1,-1)), 0);
    m_statusbarShowLine->SetValue(true);
    
    boxSizer115->Add(m_statusbarShowLine, 0, wxALL, WXC_FROM_DIP(10));
    
    m_statusbarShowCol = new wxCheckBox(m_panel44, wxID_ANY, _("Show current column"), wxDefaultPosition, wxDLG_UNIT(m_panel44, wxSize(-1,-1)), 0);
    m_statusbarShowCol->SetValue(true);
    
    boxSizer115->Add(m_statusbarShowCol, 0, wxALL, WXC_FROM_DIP(10));
    
    m_statusbarShowPos = new wxCheckBox(m_panel44, wxID_ANY, _("Show current position within the file"), wxDefaultPosition, wxDLG_UNIT(m_panel44, wxSize(-1,-1)), 0);
    m_statusbarShowPos->SetValue(false);
    m_statusbarShowPos->SetToolTip(_("e.g. character 1234 in the file"));
    
    boxSizer115->Add(m_statusbarShowPos, 0, wxALL, WXC_FROM_DIP(10));
    
    m_statusbarShowFileLength = new wxCheckBox(m_panel44, wxID_ANY, _("Show total length of the file"), wxDefaultPosition, wxDLG_UNIT(m_panel44, wxSize(-1,-1)), 0);
    m_statusbarShowFileLength->SetValue(false);
    
    boxSizer115->Add(m_statusbarShowFileLength, 0, wxALL, WXC_FROM_DIP(10));
    
    m_panel2 = new wxPanel(m_notebook2, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_notebook2, wxSize(-1, -1)), wxTAB_TRAVERSAL);
    m_notebook2->AddPage(m_panel2, _("Encoding & Locale"), false);
    
    wxBoxSizer* bSizer4 = new wxBoxSizer(wxVERTICAL);
    m_panel2->SetSizer(bSizer4);
    
    wxFlexGridSizer* fgSizer1 = new wxFlexGridSizer(0, 2, 0, 0);
    fgSizer1->SetFlexibleDirection( wxBOTH );
    fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
    fgSizer1->AddGrowableCol(1);
    
    bSizer4->Add(fgSizer1, 0, wxALL|wxEXPAND, WXC_FROM_DIP(5));
    
    m_staticText1 = new wxStaticText(m_panel2, wxID_ANY, _("File font encoding:"), wxDefaultPosition, wxDLG_UNIT(m_panel2, wxSize(-1, -1)), 0);
    
    fgSizer1->Add(m_staticText1, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
    
    wxArrayString m_fileEncodingArr;
    m_fileEncoding = new wxChoice(m_panel2, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_panel2, wxSize(-1, -1)), m_fileEncodingArr, 0);
    
    fgSizer1->Add(m_fileEncoding, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
    
    fgSizer1->Add(0, 0, 1, wxEXPAND, WXC_FROM_DIP(5));
    
    m_SetLocale = new wxCheckBox(m_panel2, wxID_ANY, _("Enable localization"), wxDefaultPosition, wxDLG_UNIT(m_panel2, wxSize(-1, -1)), 0);
    m_SetLocale->SetValue(true);
    m_SetLocale->SetToolTip(_("View CodeLite's strings translated into a different language, if available.  This will also make CodeLite use other aspects of the locale."));
    
    fgSizer1->Add(m_SetLocale, 0, wxALL|wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
    
    m_staticTextLocale = new wxStaticText(m_panel2, wxID_ANY, _("Locale to use:"), wxDefaultPosition, wxDLG_UNIT(m_panel2, wxSize(-1, -1)), 0);
    
    fgSizer1->Add(m_staticTextLocale, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
    
    wxArrayString m_AvailableLocalesArr;
    m_AvailableLocales = new wxChoice(m_panel2, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_panel2, wxSize(-1, -1)), m_AvailableLocalesArr, 0);
    m_AvailableLocales->SetToolTip(_("These are the locales that are available on your system. There won't necessarily be CodeLite translations for all of them."));
    
    fgSizer1->Add(m_AvailableLocales, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
    
    m_panel3 = new wxPanel(m_notebook2, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_notebook2, wxSize(-1, -1)), wxTAB_TRAVERSAL);
    m_notebook2->AddPage(m_panel3, _("History"), false);
    
    wxFlexGridSizer* fgSizer2 = new wxFlexGridSizer(0, 2, 0, 0);
    fgSizer2->SetFlexibleDirection( wxBOTH );
    fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
    fgSizer2->AddGrowableCol(1);
    m_panel3->SetSizer(fgSizer2);
    
    m_staticText2 = new wxStaticText(m_panel3, wxID_ANY, _("Clear recent workspace / files history"), wxDefaultPosition, wxDLG_UNIT(m_panel3, wxSize(-1, -1)), 0);
    
    fgSizer2->Add(m_staticText2, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
    
    m_clearButton = new wxButton(m_panel3, wxID_CLEAR, _("&Clear"), wxDefaultPosition, wxDLG_UNIT(m_panel3, wxSize(-1, -1)), 0);
    m_clearButton->SetDefault();
    
    fgSizer2->Add(m_clearButton, 0, wxALL|wxEXPAND|wxALIGN_LEFT, WXC_FROM_DIP(5));
    
    m_staticText3 = new wxStaticText(m_panel3, wxID_ANY, _("Max items kept in find / replace dialog:"), wxDefaultPosition, wxDLG_UNIT(m_panel3, wxSize(-1, -1)), 0);
    
    fgSizer2->Add(m_staticText3, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
    
    m_maxItemsFindReplace = new wxTextCtrl(m_panel3, wxID_ANY, wxT("15"), wxDefaultPosition, wxDLG_UNIT(m_panel3, wxSize(-1, -1)), 0);
    #if wxVERSION_NUMBER >= 3000
    m_maxItemsFindReplace->SetHint(wxT(""));
    #endif
    
    fgSizer2->Add(m_maxItemsFindReplace, 0, wxALL|wxEXPAND|wxALIGN_LEFT, WXC_FROM_DIP(5));
    
    m_staticText4 = new wxStaticText(m_panel3, wxID_ANY, _("Maximum number of tabs opened in the editor:"), wxDefaultPosition, wxDLG_UNIT(m_panel3, wxSize(-1, -1)), 0);
    
    fgSizer2->Add(m_staticText4, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
    
    m_spinCtrlMaxOpenTabs = new wxTextCtrl(m_panel3, wxID_ANY, wxT("10"), wxDefaultPosition, wxDLG_UNIT(m_panel3, wxSize(-1, -1)), 0);
    #if wxVERSION_NUMBER >= 3000
    m_spinCtrlMaxOpenTabs->SetHint(wxT(""));
    #endif
    
    fgSizer2->Add(m_spinCtrlMaxOpenTabs, 0, wxALL|wxEXPAND|wxALIGN_LEFT, WXC_FROM_DIP(5));
    
    m_staticText53 = new wxStaticText(m_panel3, wxID_ANY, _("Reset annoying dialogs answers:"), wxDefaultPosition, wxDLG_UNIT(m_panel3, wxSize(-1,-1)), 0);
    
    fgSizer2->Add(m_staticText53, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
    
    m_buttonAnnoyingDialogs = new wxButton(m_panel3, wxID_ANY, _("&Reset"), wxDefaultPosition, wxDLG_UNIT(m_panel3, wxSize(-1,-1)), 0);
    
    fgSizer2->Add(m_buttonAnnoyingDialogs, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
    
    m_panel4 = new wxPanel(m_notebook2, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_notebook2, wxSize(-1, -1)), wxTAB_TRAVERSAL);
    m_notebook2->AddPage(m_panel4, _("Log"), false);
    
    wxBoxSizer* boxSizer11 = new wxBoxSizer(wxVERTICAL);
    m_panel4->SetSizer(boxSizer11);
    
    wxFlexGridSizer* flexGridSizer13 = new wxFlexGridSizer(0, 3, 0, 0);
    flexGridSizer13->SetFlexibleDirection( wxBOTH );
    flexGridSizer13->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
    flexGridSizer13->AddGrowableCol(1);
    flexGridSizer13->AddGrowableCol(2);
    
    boxSizer11->Add(flexGridSizer13, 0, wxALL|wxEXPAND, WXC_FROM_DIP(5));
    
    m_staticText6 = new wxStaticText(m_panel4, wxID_ANY, _("CodeLite's Log-file verbosity:"), wxDefaultPosition, wxDLG_UNIT(m_panel4, wxSize(-1, -1)), 0);
    
    flexGridSizer13->Add(m_staticText6, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
    
    wxArrayString m_choice4Arr;
    m_choice4Arr.Add(wxT("Error"));
    m_choice4Arr.Add(wxT("Warning"));
    m_choice4Arr.Add(wxT("Debug"));
    m_choice4Arr.Add(wxT("Developer"));
    m_choice4 = new wxChoice(m_panel4, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_panel4, wxSize(-1, -1)), m_choice4Arr, 0);
    m_choice4->SetToolTip(_("codelite logs to file various events, this option controls the logging verbosity"));
    m_choice4->SetSelection(0);
    
    flexGridSizer13->Add(m_choice4, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
    
    m_buttonOpenLog = new wxButton(m_panel4, wxID_ANY, _("Open.."), wxDefaultPosition, wxDLG_UNIT(m_panel4, wxSize(-1, -1)), 0);
    m_buttonOpenLog->SetToolTip(_("Open the log file into an editor"));
    
    flexGridSizer13->Add(m_buttonOpenLog, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
    
    m_redirectLogOutput = new wxCheckBox(m_panel4, wxID_ANY, _("GTK only: Redirect stdout/stderr output to a log file"), wxDefaultPosition, wxDLG_UNIT(m_panel4, wxSize(-1,-1)), 0);
    m_redirectLogOutput->SetValue(true);
    m_redirectLogOutput->SetToolTip(_("If ticked, all output from e.g. cout or wxLogDebug will be redirected to the file .codelite/codelite-stdout-stderr.log"));
    
    boxSizer11->Add(m_redirectLogOutput, 0, wxALL, WXC_FROM_DIP(10));
    
    SetName(wxT("EditorSettingsMiscBasePanel"));
    SetSize(-1,-1);
    if (GetSizer()) {
         GetSizer()->Fit(this);
    }
    // Connect events
    m_checkBoxEnableMSWTheme->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(EditorSettingsMiscBasePanel::OnEnableThemeUI), NULL, this);
    m_checkBoxPromptReleaseOnly->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(EditorSettingsMiscBasePanel::OnPromptStableReleaseUI), NULL, this);
    m_SetLocale->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(EditorSettingsMiscBasePanel::LocaleChkUpdateUI), NULL, this);
    m_staticTextLocale->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(EditorSettingsMiscBasePanel::LocaleStaticUpdateUI), NULL, this);
    m_AvailableLocales->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(EditorSettingsMiscBasePanel::LocaleChoiceUpdateUI), NULL, this);
    m_clearButton->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(EditorSettingsMiscBasePanel::OnClearButtonClick), NULL, this);
    m_clearButton->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(EditorSettingsMiscBasePanel::OnClearUI), NULL, this);
    m_buttonAnnoyingDialogs->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(EditorSettingsMiscBasePanel::OnResetAnnoyingDialogsAnswers), NULL, this);
    m_choice4->Connect(wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler(EditorSettingsMiscBasePanel::OnLogVerbosityChanged), NULL, this);
    m_buttonOpenLog->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(EditorSettingsMiscBasePanel::OnShowLogFile), NULL, this);
    m_redirectLogOutput->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(EditorSettingsMiscBasePanel::OnLogoutputCheckUpdateUI), NULL, this);
    
}

EditorSettingsMiscBasePanel::~EditorSettingsMiscBasePanel()
{
    m_checkBoxEnableMSWTheme->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(EditorSettingsMiscBasePanel::OnEnableThemeUI), NULL, this);
    m_checkBoxPromptReleaseOnly->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(EditorSettingsMiscBasePanel::OnPromptStableReleaseUI), NULL, this);
    m_SetLocale->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(EditorSettingsMiscBasePanel::LocaleChkUpdateUI), NULL, this);
    m_staticTextLocale->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(EditorSettingsMiscBasePanel::LocaleStaticUpdateUI), NULL, this);
    m_AvailableLocales->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(EditorSettingsMiscBasePanel::LocaleChoiceUpdateUI), NULL, this);
    m_clearButton->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(EditorSettingsMiscBasePanel::OnClearButtonClick), NULL, this);
    m_clearButton->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(EditorSettingsMiscBasePanel::OnClearUI), NULL, this);
    m_buttonAnnoyingDialogs->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(EditorSettingsMiscBasePanel::OnResetAnnoyingDialogsAnswers), NULL, this);
    m_choice4->Disconnect(wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler(EditorSettingsMiscBasePanel::OnLogVerbosityChanged), NULL, this);
    m_buttonOpenLog->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(EditorSettingsMiscBasePanel::OnShowLogFile), NULL, this);
    m_redirectLogOutput->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(EditorSettingsMiscBasePanel::OnLogoutputCheckUpdateUI), NULL, this);
    
}