Code::Blocks  SVN r11506
advancedcompileroptionsdlg.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
3  * http://www.gnu.org/licenses/gpl-3.0.html
4  */
5 
6 #ifndef ADVANCEDCOMPILEROPTIONSDLG_H
7 #define ADVANCEDCOMPILEROPTIONSDLG_H
8 
9 #include "scrollingdialog.h"
10 #include <wx/string.h>
11 #include "compiler.h" // RegExArray, COMPILER_COMMAND_TYPES_COUNT
12 
13 class wxCommandEvent;
14 class wxSpinEvent;
15 
17 {
18  public:
19  AdvancedCompilerOptionsDlg(wxWindow* parent, const wxString& compilerId);
21  bool IsDirty() const {return m_bDirty;}
22  private:
23  void OnCommandsChange(wxCommandEvent& event);
24  void OnExtChange(wxCommandEvent& event);
25  void OnAddExt(wxCommandEvent& event);
26  void OnDelExt(wxCommandEvent& event);
27  void OnRegexChange(wxCommandEvent& event);
28  void OnRegexTest(wxCommandEvent& event);
29  void OnRegexAdd(wxCommandEvent& event);
30  void OnRegexDelete(wxCommandEvent& event);
31  void OnRegexDefaults(wxCommandEvent& event);
32  void OnRegexUp(wxSpinEvent& event);
33  void OnRegexDown(wxSpinEvent& event);
34 
35  void EndModal(int retCode);
36  void ReadCompilerOptions();
37  void WriteCompilerOptions();
38  void ReadExtensions(int nr);
39  void DisplayCommand(int cmd, int ext);
40  void CheckForChanges();
41 
42  CompilerTool* GetCompilerTool(int cmd, int ext);
43  void SaveCommands(int cmd, int ext);
44 
45  void FillRegexes();
46  void FillRegexDetails(int index);
47  void SaveRegexDetails(int index);
48 
54  bool m_bDirty;
57 };
58 
59 #endif // ADVANCEDCOMPILEROPTIONSDLG_H
60 
void OnRegexTest(wxCommandEvent &event)
void OnRegexDefaults(wxCommandEvent &event)
void OnAddExt(wxCommandEvent &event)
CompilerToolsVector m_Commands[ctCount]
std::vector< RegExStruct > RegExArray
Definition: compiler.h:163
std::vector< CompilerTool > CompilerToolsVector
Definition: compiler.h:267
Struct for compiler/linker commands.
Definition: compiler.h:249
CompilerTool * GetCompilerTool(int cmd, int ext)
void OnRegexDelete(wxCommandEvent &event)
AdvancedCompilerOptionsDlg(wxWindow *parent, const wxString &compilerId)
void OnRegexChange(wxCommandEvent &event)
void OnRegexAdd(wxCommandEvent &event)
void OnCommandsChange(wxCommandEvent &event)
bool m_bDirty
Have changes being made to settings in the dialog.
void OnExtChange(wxCommandEvent &event)
Do NOT use.
Definition: compiler.h:177
void OnDelExt(wxCommandEvent &event)