1 #ifndef CONFIGPANEL_H
2 #define CONFIGPANEL_H
3 
4 //(*Headers(ConfigPanel)
5 #include <wx/panel.h>
6 class wxHyperlinkCtrl;
7 class wxTextCtrl;
8 class wxStaticLine;
9 class wxStaticText;
10 class wxFlexGridSizer;
11 class wxBoxSizer;
12 class wxButton;
13 class wxChoice;
14 //*)
15 
16 #include <wx/string.h>
17 
18 #include <configurationpanel.h>
19 
20 class CppCheck;
21 
22 class ConfigPanel : public cbConfigurationPanel
23 {
24 public:
25 
26     ConfigPanel(wxWindow* parent);
27     virtual ~ConfigPanel();
28 
29     //(*Declarations(ConfigPanel)
30     wxTextCtrl* txtCppCheckApp;
31     wxTextCtrl* txtCppCheckArgs;
32     wxChoice* choOperation;
33     wxStaticLine* StaticLine2;
34     wxStaticLine* StaticLine1;
35     wxTextCtrl* txtVeraArgs;
36     wxTextCtrl* txtVeraApp;
37     //*)
38 
39     /// @return the panel's title.
GetTitle()40     virtual wxString GetTitle() const { return _("CppCheck/Vera++"); }
41     /// @return the panel's bitmap base name. You must supply two bitmaps: \<basename\>.png and \<basename\>-off.png...
GetBitmapBaseName()42     virtual wxString GetBitmapBaseName() const { return wxT("CppCheck"); }
43     /// Called when the user chooses to apply the configuration.
44     virtual void OnApply();
45     /// Called when the user chooses to cancel the configuration.
OnCancel()46     virtual void OnCancel() { ; }
47 
48     static wxString GetDefaultCppCheckExecutableName();
49     static wxString GetDefaultVeraExecutableName();
50 protected:
51 
52     //(*Identifiers(ConfigPanel)
53     static const long ID_TXT_CPP_CHECK_APP;
54     static const long ID_BTN_CPPCHECK_APP;
55     static const long ID_TXT_CPP_CHECK_ARGS;
56     static const long ID_HYC_CPP_CHECK_WWW;
57     static const long ID_TXT_VERA_APP;
58     static const long ID_BTN_VERA;
59     static const long ID_TXT_VERA_ARGS;
60     static const long ID_HYC_VERA_WWW;
61     static const long ID_STATICLINE1;
62     static const long ID_STATICLINE2;
63     static const long ID_CHO_OPERATION;
64     //*)
65 
66 private:
67 
68     //(*Handlers(ConfigPanel)
69     void OnCppCheckApp(wxCommandEvent& event);
70     void OnVeraApp(wxCommandEvent& event);
71     //*)
72 
73     DECLARE_EVENT_TABLE()
74 };
75 
76 #endif
77