Debian Codegraph @

LanguageServer/UI.cpp

raw
1 //////////////////////////////////////////////////////////////////////
2 // This file was auto-generated by codelite's wxCrafter Plugin
3 // wxCrafter project file: UI.wxcp
4 // Do not modify this file by hand!
5 //////////////////////////////////////////////////////////////////////
6
7 #include "UI.h"
8
9 // Declare the bitmap loading function
10 extern void wxCrafterCbL3wsInitBitmapResources();
11
12 static bool bBitmapLoaded = false;
13
14 LanguageServerSettingsDlgBase::LanguageServerSettingsDlgBase(wxWindow* parent, wxWindowID id, const wxString& title,
15 const wxPoint& pos, const wxSize& size, long style)
16 : wxDialog(parent, id, title, pos, size, style)
17 {
18 if(!bBitmapLoaded) {
19 // We need to initialise the default bitmap handler
20 wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
21 wxCrafterCbL3wsInitBitmapResources();
22 bBitmapLoaded = true;
23 }
24
25 wxBoxSizer* boxSizer2 = new wxBoxSizer(wxVERTICAL);
26 this->SetSizer(boxSizer2);
27
28 wxBoxSizer* boxSizer22 = new wxBoxSizer(wxHORIZONTAL);
29
30 boxSizer2->Add(boxSizer22, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
31
32 m_checkBoxEnable = new wxCheckBox(this, wxID_ANY, _("Enable Language Server Completion"), wxDefaultPosition,
33 wxDLG_UNIT(this, wxSize(-1, -1)), 0);
34 m_checkBoxEnable->SetValue(false);
35
36 boxSizer22->Add(m_checkBoxEnable, 0, wxALL | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
37
38 boxSizer22->Add(0, 0, 1, wxALL, WXC_FROM_DIP(5));
39
40 m_staticLine102 =
41 new wxStaticLine(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), wxLI_HORIZONTAL);
42
43 boxSizer2->Add(m_staticLine102, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
44
45 m_staticText105 = new wxStaticText(this, wxID_ANY, _("Available Language Servers"), wxDefaultPosition,
46 wxDLG_UNIT(this, wxSize(-1, -1)), 0);
47
48 boxSizer2->Add(m_staticText105, 0, wxALL, WXC_FROM_DIP(5));
49
50 wxBoxSizer* boxSizer106 = new wxBoxSizer(wxHORIZONTAL);
51
52 boxSizer2->Add(boxSizer106, 1, wxEXPAND, WXC_FROM_DIP(5));
53
54 m_notebook = new wxNotebook(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), wxBK_DEFAULT);
55 m_notebook->SetName(wxT("m_notebook"));
56
57 boxSizer106->Add(m_notebook, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
58
59 wxBoxSizer* boxSizer108 = new wxBoxSizer(wxVERTICAL);
60
61 boxSizer106->Add(boxSizer108, 0, wxEXPAND, WXC_FROM_DIP(5));
62
63 m_buttonScan = new wxButton(this, wxID_FIND, _("Scan..."), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
64 m_buttonScan->SetToolTip(_("Scan for installed Language Servers insalled"));
65
66 boxSizer108->Add(m_buttonScan, 0, wxALL, WXC_FROM_DIP(5));
67
68 m_buttonNew = new wxButton(this, wxID_NEW, _("Add..."), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
69 m_buttonNew->SetToolTip(_("Add new Language Server"));
70
71 boxSizer108->Add(m_buttonNew, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
72
73 m_buttonDelete =
74 new wxButton(this, wxID_DELETE, _("Delete"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
75
76 boxSizer108->Add(m_buttonDelete, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
77
78 m_stdBtnSizer4 = new wxStdDialogButtonSizer();
79
80 boxSizer2->Add(m_stdBtnSizer4, 0, wxALL | wxALIGN_CENTER_HORIZONTAL, WXC_FROM_DIP(10));
81
82 m_button6 = new wxButton(this, wxID_OK, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
83 m_button6->SetDefault();
84 m_stdBtnSizer4->AddButton(m_button6);
85
86 m_button8 = new wxButton(this, wxID_CANCEL, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
87 m_stdBtnSizer4->AddButton(m_button8);
88 m_stdBtnSizer4->Realize();
89
90 SetName(wxT("LanguageServerSettingsDlgBase"));
91 SetSize(wxDLG_UNIT(this, wxSize(-1, -1)));
92 if(GetSizer()) {
93 GetSizer()->Fit(this);
94 }
95 if(GetParent()) {
96 CentreOnParent(wxBOTH);
97 } else {
98 CentreOnScreen(wxBOTH);
99 }
100 // Connect events
101 m_buttonScan->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &LanguageServerSettingsDlgBase::OnScan, this);
102 m_buttonNew->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &LanguageServerSettingsDlgBase::OnAddServer, this);
103 m_buttonDelete->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &LanguageServerSettingsDlgBase::OnDeleteLSP, this);
104 m_buttonDelete->Bind(wxEVT_UPDATE_UI, &LanguageServerSettingsDlgBase::OnDeleteLSPUI, this);
105 m_button6->Bind(wxEVT_UPDATE_UI, &LanguageServerSettingsDlgBase::OnOKUI, this);
106 }
107
108 LanguageServerSettingsDlgBase::~LanguageServerSettingsDlgBase()
109 {
110 m_buttonScan->Unbind(wxEVT_COMMAND_BUTTON_CLICKED, &LanguageServerSettingsDlgBase::OnScan, this);
111 m_buttonNew->Unbind(wxEVT_COMMAND_BUTTON_CLICKED, &LanguageServerSettingsDlgBase::OnAddServer, this);
112 m_buttonDelete->Unbind(wxEVT_COMMAND_BUTTON_CLICKED, &LanguageServerSettingsDlgBase::OnDeleteLSP, this);
113 m_buttonDelete->Unbind(wxEVT_UPDATE_UI, &LanguageServerSettingsDlgBase::OnDeleteLSPUI, this);
114 m_button6->Unbind(wxEVT_UPDATE_UI, &LanguageServerSettingsDlgBase::OnOKUI, this);
115 }
116
117 LanguageServerPageBase::LanguageServerPageBase(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
118 long style)
119 : wxPanel(parent, id, pos, size, style)
120 {
121 if(!bBitmapLoaded) {
122 // We need to initialise the default bitmap handler
123 wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
124 wxCrafterCbL3wsInitBitmapResources();
125 bBitmapLoaded = true;
126 }
127
128 wxBoxSizer* boxSizer31 = new wxBoxSizer(wxVERTICAL);
129 this->SetSizer(boxSizer31);
130
131 wxFlexGridSizer* flexGridSizer432 = new wxFlexGridSizer(0, 2, 0, 0);
132 flexGridSizer432->SetFlexibleDirection(wxBOTH);
133 flexGridSizer432->SetNonFlexibleGrowMode(wxFLEX_GROWMODE_SPECIFIED);
134 flexGridSizer432->AddGrowableCol(1);
135 flexGridSizer432->AddGrowableRow(2);
136
137 boxSizer31->Add(flexGridSizer432, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
138
139 flexGridSizer432->Add(0, 0, 1, wxALL, WXC_FROM_DIP(5));
140
141 m_checkBoxEnabled =
142 new wxCheckBox(this, wxID_ANY, _("Enabled"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
143 m_checkBoxEnabled->SetValue(true);
144
145 flexGridSizer432->Add(m_checkBoxEnabled, 0, wxALL, WXC_FROM_DIP(5));
146
147 m_staticText453 =
148 new wxStaticText(this, wxID_ANY, _("Name"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
149 m_staticText453->SetToolTip(_("Give this language server a unique name"));
150
151 flexGridSizer432->Add(m_staticText453, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
152
153 m_textCtrlName = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(300, -1)), 0);
154 m_textCtrlName->SetFocus();
155 #if wxVERSION_NUMBER >= 3000
156 m_textCtrlName->SetHint(wxT(""));
157 #endif
158
159 flexGridSizer432->Add(m_textCtrlName, 0, wxALL | wxEXPAND | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
160
161 m_staticText495 =
162 new wxStaticText(this, wxID_ANY, _("Command:"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
163 m_staticText495->SetToolTip(_("The language server executable"));
164
165 flexGridSizer432->Add(m_staticText495, 0, wxALL | wxALIGN_RIGHT | wxALIGN_TOP, WXC_FROM_DIP(5));
166
167 m_stcCommand = new clThemedSTC(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, 40)), 0);
168 // Configure the fold margin
169 m_stcCommand->SetMarginType(4, wxSTC_MARGIN_SYMBOL);
170 m_stcCommand->SetMarginMask(4, wxSTC_MASK_FOLDERS);
171 m_stcCommand->SetMarginSensitive(4, true);
172 m_stcCommand->SetMarginWidth(4, 0);
173
174 // Configure the tracker margin
175 m_stcCommand->SetMarginWidth(1, 0);
176
177 // Configure the symbol margin
178 m_stcCommand->SetMarginType(2, wxSTC_MARGIN_SYMBOL);
179 m_stcCommand->SetMarginMask(2, ~(wxSTC_MASK_FOLDERS));
180 m_stcCommand->SetMarginWidth(2, 0);
181 m_stcCommand->SetMarginSensitive(2, true);
182
183 // Configure the line numbers margin
184 m_stcCommand->SetMarginType(0, wxSTC_MARGIN_NUMBER);
185 m_stcCommand->SetMarginWidth(0, 0);
186
187 // Configure the line symbol margin
188 m_stcCommand->SetMarginType(3, wxSTC_MARGIN_FORE);
189 m_stcCommand->SetMarginMask(3, 0);
190 m_stcCommand->SetMarginWidth(3, 0);
191 // Select the lexer
192 m_stcCommand->SetLexer(wxSTC_LEX_NULL);
193 // Set default font / styles
194 m_stcCommand->StyleClearAll();
195 m_stcCommand->SetWrapMode(0);
196 m_stcCommand->SetIndentationGuides(0);
197 m_stcCommand->SetKeyWords(0, wxT(""));
198 m_stcCommand->SetKeyWords(1, wxT(""));
199 m_stcCommand->SetKeyWords(2, wxT(""));
200 m_stcCommand->SetKeyWords(3, wxT(""));
201 m_stcCommand->SetKeyWords(4, wxT(""));
202
203 flexGridSizer432->Add(m_stcCommand, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
204
205 m_staticText579 = new wxStaticText(this, wxID_ANY, _("Working directory:"), wxDefaultPosition,
206 wxDLG_UNIT(this, wxSize(-1, -1)), 0);
207 m_staticText579->SetToolTip(_("Set the language server working directory"));
208
209 flexGridSizer432->Add(m_staticText579, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
210
211 wxBoxSizer* boxSizer1131 = new wxBoxSizer(wxHORIZONTAL);
212
213 flexGridSizer432->Add(boxSizer1131, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
214
215 m_textCtrlWD = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
216 #if wxVERSION_NUMBER >= 3000
217 m_textCtrlWD->SetHint(wxT(""));
218 #endif
219
220 boxSizer1131->Add(m_textCtrlWD, 1, wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
221
222 m_button1153 =
223 new wxButton(this, wxID_ANY, _("..."), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), wxBU_EXACTFIT);
224 m_button1153->SetToolTip(_("Browse..."));
225
226 boxSizer1131->Add(m_button1153, 0, wxLEFT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
227
228 m_staticText6311 =
229 new wxStaticText(this, wxID_ANY, _("Languages:"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
230 m_staticText6311->SetToolTip(_("List of supported languages by this Language Server"));
231
232 flexGridSizer432->Add(m_staticText6311, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(10));
233
234 wxBoxSizer* boxSizer113 = new wxBoxSizer(wxHORIZONTAL);
235
236 flexGridSizer432->Add(boxSizer113, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
237
238 m_textCtrlLanguages =
239 new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
240 #if wxVERSION_NUMBER >= 3000
241 m_textCtrlLanguages->SetHint(wxT(""));
242 #endif
243
244 boxSizer113->Add(m_textCtrlLanguages, 1, wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
245
246 m_button115 =
247 new wxButton(this, wxID_ANY, _("..."), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), wxBU_EXACTFIT);
248 m_button115->SetToolTip(_("Show List of Languages"));
249
250 boxSizer113->Add(m_button115, 0, wxLEFT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
251
252 m_staticText117 = new wxStaticText(this, wxID_ANY, _("Connection string:"), wxDefaultPosition,
253 wxDLG_UNIT(this, wxSize(-1, -1)), 0);
254 m_staticText117->SetToolTip(_("Set the connection string here.\nIf the server connects using 'stdio', choose the "
255 "'stdio' entry\nOtherwise, set a connection in the form of:\ntcp://127.0.0.1:12345"));
256
257 flexGridSizer432->Add(m_staticText117, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
258
259 wxArrayString m_comboBoxConnectionArr;
260 m_comboBoxConnectionArr.Add(_("stdio"));
261 m_comboBoxConnection = new wxComboBox(this, wxID_ANY, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)),
262 m_comboBoxConnectionArr, 0);
263 m_comboBoxConnection->SetToolTip(
264 _("If the language server is using TCP\nType the connection string in the format of:\n\ntcp://host:port"));
265 #if wxVERSION_NUMBER >= 3000
266 m_comboBoxConnection->SetHint(wxT(""));
267 #endif
268 m_comboBoxConnection->SetSelection(0);
269
270 flexGridSizer432->Add(m_comboBoxConnection, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
271
272 m_staticText125 =
273 new wxStaticText(this, wxID_ANY, _("Priority:"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
274 m_staticText125->SetToolTip(
275 _("Multiple Plugins / Servers can compete for providing code completion\nfor a given language. Set here the "
276 "server priority.\nThe server with the highest priority will be triggered first\n\nNote that the builtin "
277 "plugins are using priority in the range of 10 - 75\nIf you want that the LSP will be the first in the "
278 "chain, set its priority to a value that is higher than 75"));
279
280 flexGridSizer432->Add(m_staticText125, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
281
282 m_sliderPriority =
283 new wxSlider(this, wxID_ANY, 50, 0, 200, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), wxSL_LABELS);
284
285 flexGridSizer432->Add(m_sliderPriority, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
286
287 flexGridSizer432->Add(0, 0, 1, wxALL, WXC_FROM_DIP(5));
288
289 m_checkBoxDiagnostics = new wxCheckBox(this, wxID_ANY, _("Display diagnostics"), wxDefaultPosition,
290 wxDLG_UNIT(this, wxSize(-1, -1)), 0);
291 m_checkBoxDiagnostics->SetValue(true);
292
293 flexGridSizer432->Add(m_checkBoxDiagnostics, 0, wxALL, WXC_FROM_DIP(5));
294
295 SetName(wxT("LanguageServerPageBase"));
296 SetSize(wxDLG_UNIT(this, wxSize(-1, -1)));
297 if(GetSizer()) {
298 GetSizer()->Fit(this);
299 }
300 // Connect events
301 m_stcCommand->Bind(wxEVT_UPDATE_UI, &LanguageServerPageBase::OnCommandUI, this);
302 m_button1153->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &LanguageServerPageBase::OnBrowseWD, this);
303 m_button115->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &LanguageServerPageBase::OnSuggestLanguages, this);
304 }
305
306 LanguageServerPageBase::~LanguageServerPageBase()
307 {
308 m_stcCommand->Unbind(wxEVT_UPDATE_UI, &LanguageServerPageBase::OnCommandUI, this);
309 m_button1153->Unbind(wxEVT_COMMAND_BUTTON_CLICKED, &LanguageServerPageBase::OnBrowseWD, this);
310 m_button115->Unbind(wxEVT_COMMAND_BUTTON_CLICKED, &LanguageServerPageBase::OnSuggestLanguages, this);
311 }
312
313 NewLanguageServerDlgBase::NewLanguageServerDlgBase(wxWindow* parent, wxWindowID id, const wxString& title,
314 const wxPoint& pos, const wxSize& size, long style)
315 : wxDialog(parent, id, title, pos, size, style)
316 {
317 if(!bBitmapLoaded) {
318 // We need to initialise the default bitmap handler
319 wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
320 wxCrafterCbL3wsInitBitmapResources();
321 bBitmapLoaded = true;
322 }
323
324 wxBoxSizer* boxSizer35 = new wxBoxSizer(wxVERTICAL);
325 this->SetSizer(boxSizer35);
326
327 m_stdBtnSizer37 = new wxStdDialogButtonSizer();
328
329 boxSizer35->Add(m_stdBtnSizer37, 0, wxALL | wxALIGN_CENTER_HORIZONTAL, WXC_FROM_DIP(10));
330
331 m_buttonOK = new wxButton(this, wxID_OK, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
332 m_buttonOK->SetDefault();
333 m_stdBtnSizer37->AddButton(m_buttonOK);
334
335 m_button41 = new wxButton(this, wxID_CANCEL, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
336 m_stdBtnSizer37->AddButton(m_button41);
337 m_stdBtnSizer37->Realize();
338
339 SetName(wxT("NewLanguageServerDlgBase"));
340 SetSize(wxDLG_UNIT(this, wxSize(-1, -1)));
341 if(GetSizer()) {
342 GetSizer()->Fit(this);
343 }
344 if(GetParent()) {
345 CentreOnParent(wxBOTH);
346 } else {
347 CentreOnScreen(wxBOTH);
348 }
349 // Connect events
350 m_buttonOK->Bind(wxEVT_UPDATE_UI, &NewLanguageServerDlgBase::OnOKUI, this);
351 }
352
353 NewLanguageServerDlgBase::~NewLanguageServerDlgBase()
354 {
355 m_buttonOK->Unbind(wxEVT_UPDATE_UI, &NewLanguageServerDlgBase::OnOKUI, this);
356 }
357
358 LSPOutlineViewDlgBase::LSPOutlineViewDlgBase(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos,
359 const wxSize& size, long style)
360 : wxDialog(parent, id, title, pos, size, style)
361 {
362 if(!bBitmapLoaded) {
363 // We need to initialise the default bitmap handler
364 wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
365 wxCrafterCbL3wsInitBitmapResources();
366 bBitmapLoaded = true;
367 }
368
369 wxBoxSizer* boxSizer151 = new wxBoxSizer(wxVERTICAL);
370 this->SetSizer(boxSizer151);
371
372 m_panel155 = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), wxTAB_TRAVERSAL);
373
374 boxSizer151->Add(m_panel155, 1, wxEXPAND, WXC_FROM_DIP(5));
375
376 wxBoxSizer* boxSizer157 = new wxBoxSizer(wxVERTICAL);
377 m_panel155->SetSizer(boxSizer157);
378
379 m_textCtrlFilter = new clThemedTextCtrl(m_panel155, wxID_ANY, wxT(""), wxDefaultPosition,
380 wxDLG_UNIT(m_panel155, wxSize(-1, -1)), wxTE_PROCESS_ENTER);
381 #if wxVERSION_NUMBER >= 3000
382 m_textCtrlFilter->SetHint(wxT(""));
383 #endif
384
385 boxSizer157->Add(m_textCtrlFilter, 0, wxEXPAND, WXC_FROM_DIP(2));
386
387 m_dvTreeCtrll =
388 new clTerminalViewCtrl(m_panel155, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_panel155, wxSize(-1, -1)),
389 wxDV_NO_HEADER | wxDV_ROW_LINES | wxDV_SINGLE);
390
391 boxSizer157->Add(m_dvTreeCtrll, 1, wxEXPAND, WXC_FROM_DIP(2));
392
393 SetName(wxT("LSPOutlineViewDlgBase"));
394 SetSize(wxDLG_UNIT(this, wxSize(500, 300)));
395 if(GetSizer()) {
396 GetSizer()->Fit(this);
397 }
398 if(GetParent()) {
399 CentreOnParent(wxBOTH);
400 } else {
401 CentreOnScreen(wxBOTH);
402 }
403 if(!wxPersistenceManager::Get().Find(this)) {
404 wxPersistenceManager::Get().RegisterAndRestore(this);
405 } else {
406 wxPersistenceManager::Get().Restore(this);
407 }
408 // Connect events
409 m_textCtrlFilter->Bind(wxEVT_COMMAND_TEXT_UPDATED, &LSPOutlineViewDlgBase::OnTextUpdated, this);
410 m_textCtrlFilter->Bind(wxEVT_COMMAND_TEXT_ENTER, &LSPOutlineViewDlgBase::OnEnter, this);
411 m_textCtrlFilter->Bind(wxEVT_KEY_DOWN, &LSPOutlineViewDlgBase::OnKeyDown, this);
412 m_dvTreeCtrll->Bind(wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED, &LSPOutlineViewDlgBase::OnItemActivated, this);
413 m_dvTreeCtrll->Bind(wxEVT_KEY_DOWN, &LSPOutlineViewDlgBase::OnListKeyDown, this);
414 }
415
416 LSPOutlineViewDlgBase::~LSPOutlineViewDlgBase()
417 {
418 m_textCtrlFilter->Unbind(wxEVT_COMMAND_TEXT_UPDATED, &LSPOutlineViewDlgBase::OnTextUpdated, this);
419 m_textCtrlFilter->Unbind(wxEVT_COMMAND_TEXT_ENTER, &LSPOutlineViewDlgBase::OnEnter, this);
420 m_textCtrlFilter->Unbind(wxEVT_KEY_DOWN, &LSPOutlineViewDlgBase::OnKeyDown, this);
421 m_dvTreeCtrll->Unbind(wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED, &LSPOutlineViewDlgBase::OnItemActivated, this);
422 m_dvTreeCtrll->Unbind(wxEVT_KEY_DOWN, &LSPOutlineViewDlgBase::OnListKeyDown, this);
423 }
424
425 LanguageServerLogViewBase::LanguageServerLogViewBase(wxWindow* parent, wxWindowID id, const wxPoint& pos,
426 const wxSize& size, long style)
427 : wxPanel(parent, id, pos, size, style)
428 {
429 if(!bBitmapLoaded) {
430 // We need to initialise the default bitmap handler
431 wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
432 wxCrafterCbL3wsInitBitmapResources();
433 bBitmapLoaded = true;
434 }
435
436 wxBoxSizer* boxSizer194 = new wxBoxSizer(wxVERTICAL);
437 this->SetSizer(boxSizer194);
438
439 m_dvListCtrl = new clTerminalViewCtrl(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)),
440 wxDV_NO_HEADER | wxDV_ROW_LINES | wxDV_SINGLE);
441
442 boxSizer194->Add(m_dvListCtrl, 1, wxEXPAND, WXC_FROM_DIP(5));
443
444 SetName(wxT("LanguageServerLogViewBase"));
445 SetSize(wxDLG_UNIT(this, wxSize(500, 300)));
446 if(GetSizer()) {
447 GetSizer()->Fit(this);
448 }
449 }
450
451 LanguageServerLogViewBase::~LanguageServerLogViewBase() {}