forked from alpha0010/ClangLib
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathclangccsettingsdlg.h
53 lines (42 loc) · 1.17 KB
/
clangccsettingsdlg.h
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
/*
* This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
* http://www.gnu.org/licenses/gpl-3.0.html
*/
#ifndef ClangCodeCompletionSettingsDlg_H
#define ClangCodeCompletionSettingsDlg_H
#include <wx/intl.h>
#include "configurationpanel.h"
#include <settings.h>
#include "clangcc.h"
#define CLANG_CONFIGMANAGER _T("ClangLib")
class ClangPlugin;
class ClangSettingsDlg : public cbConfigurationPanel
{
public:
ClangSettingsDlg(wxWindow* parent, ClangPlugin* pPlugin);
virtual ~ClangSettingsDlg();
virtual wxString GetTitle() const
{
return _("Code assistance");
}
virtual wxString GetBitmapBaseName() const
{
return _T("codecompletion");
}
virtual void OnApply();
virtual void OnCancel()
{
;
}
protected:
void OnChooseColour(wxCommandEvent& event);
void OnCCDelayScroll(wxScrollEvent& event);
void OnUpdateUI(wxUpdateUIEvent& event);
private:
void UpdateCCDelayLabel();
bool ValidateReplacementToken(wxString& from, wxString& to);
DECLARE_EVENT_TABLE()
private:
ClangPlugin* m_pPlugin;
};
#endif // ClangCodeCompletionSettingsDlg_H