Code::Blocks  SVN r11506
compilerpanel.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 COMPILERPANEL_H
7 #define COMPILERPANEL_H
8 
9 #include <wx/string.h>
10 
11 //(*HeadersPCH(CompilerPanel)
12 #include <wx/combobox.h>
13 #include <wx/checkbox.h>
14 #include <wx/sizer.h>
15 #include <wx/panel.h>
16 #include <wx/stattext.h>
17 #include <wx/textctrl.h>
18 //*)
19 
20 class CompilerPanel: public wxPanel
21 {
22  public:
23 
24  CompilerPanel(wxWindow* parent, wxWindow* parentDialog);
25  virtual ~CompilerPanel();
26 
28  void EnableConfigurationTargets(bool en);
29 
30  void SetWantDebug(bool want){ chkConfDebug->SetValue(want); }
31  bool GetWantDebug() const { return chkConfDebug->IsChecked() && chkConfDebug->IsShown(); }
32  void SetDebugName(const wxString& name){ txtDbgName->SetValue(name); }
33  wxString GetDebugName() const { return txtDbgName->GetValue(); }
34  void SetDebugOutputDir(const wxString& dir){ txtDbgOut->SetValue(dir); }
35  wxString GetDebugOutputDir() const { return txtDbgOut->GetValue(); }
36  void SetDebugObjectOutputDir(const wxString& dir){ txtDbgObjOut->SetValue(dir); }
37  wxString GetDebugObjectOutputDir() const { return txtDbgObjOut->GetValue(); }
38 
39  void SetWantRelease(bool want){ chkConfRelease->SetValue(want); }
40  bool GetWantRelease() const { return chkConfRelease->IsChecked() && chkConfRelease->IsShown(); }
41  void SetReleaseName(const wxString& name){ txtRelName->SetValue(name); }
42  wxString GetReleaseName() const { return txtRelName->GetValue(); }
43  void SetReleaseOutputDir(const wxString& dir){ txtRelOut->SetValue(dir); }
44  wxString GetReleaseOutputDir() const { return txtRelOut->GetValue(); }
45  void SetReleaseObjectOutputDir(const wxString& dir){ txtRelObjOut->SetValue(dir); }
46  wxString GetReleaseObjectOutputDir() const { return txtRelObjOut->GetValue(); }
47 
48  //(*Identifiers(CompilerPanel)
49  static const long ID_STATICTEXT1;
50  static const long ID_STATICTEXT2;
51  static const long ID_COMBOBOX1;
52  static const long ID_CHECKBOX1;
53  static const long ID_TEXTCTRL3;
54  static const long ID_STATICTEXT3;
55  static const long ID_TEXTCTRL1;
56  static const long ID_STATICTEXT4;
57  static const long ID_TEXTCTRL2;
58  static const long ID_CHECKBOX3;
59  static const long ID_TEXTCTRL4;
60  static const long ID_STATICTEXT7;
61  static const long ID_TEXTCTRL5;
62  static const long ID_STATICTEXT8;
63  static const long ID_TEXTCTRL6;
64  //*)
65 
66  private:
67 
68  //(*Handlers(CompilerPanel)
69  void OnDebugChange(wxCommandEvent& event);
70  void OnReleaseChange(wxCommandEvent& event);
71  //*)
72 
73  //(*Declarations(CompilerPanel)
88  //*)
89 
91 
92  DECLARE_EVENT_TABLE()
93 };
94 
95 #endif
wxCheckBox * chkConfDebug
Definition: compilerpanel.h:87
wxString GetReleaseObjectOutputDir() const
Definition: compilerpanel.h:46
wxTextCtrl * txtDbgOut
Definition: compilerpanel.h:84
wxStaticText * StaticText1
Definition: compilerpanel.h:78
virtual ~CompilerPanel()
void OnDebugChange(wxCommandEvent &event)
static const long ID_CHECKBOX3
Definition: compilerpanel.h:58
void SetReleaseObjectOutputDir(const wxString &dir)
Definition: compilerpanel.h:45
static const long ID_TEXTCTRL4
Definition: compilerpanel.h:59
wxTextCtrl * txtRelObjOut
Definition: compilerpanel.h:82
static const long ID_STATICTEXT2
Definition: compilerpanel.h:50
wxTextCtrl * txtDbgName
Definition: compilerpanel.h:81
wxTextCtrl * txtRelOut
Definition: compilerpanel.h:83
void SetDebugName(const wxString &name)
Definition: compilerpanel.h:32
wxString GetReleaseOutputDir() const
Definition: compilerpanel.h:44
void SetReleaseOutputDir(const wxString &dir)
Definition: compilerpanel.h:43
static const long ID_STATICTEXT1
Definition: compilerpanel.h:49
static const long ID_TEXTCTRL2
Definition: compilerpanel.h:57
wxStaticBoxSizer * StaticBoxSizer1
Definition: compilerpanel.h:86
wxCheckBox * chkConfRelease
Definition: compilerpanel.h:80
static const long ID_TEXTCTRL6
Definition: compilerpanel.h:63
wxString GetDebugName() const
Definition: compilerpanel.h:33
void OnReleaseChange(wxCommandEvent &event)
static const long ID_TEXTCTRL5
Definition: compilerpanel.h:61
wxWindow * m_parentDialog
Definition: compilerpanel.h:90
static const long ID_STATICTEXT8
Definition: compilerpanel.h:62
CompilerPanel(wxWindow *parent, wxWindow *parentDialog)
wxComboBox * GetCompilerCombo()
Definition: compilerpanel.h:27
void EnableConfigurationTargets(bool en)
wxComboBox * cmbCompiler
Definition: compilerpanel.h:76
static const long ID_CHECKBOX1
Definition: compilerpanel.h:52
void SetWantRelease(bool want)
Definition: compilerpanel.h:39
static const long ID_STATICTEXT7
Definition: compilerpanel.h:60
static const long ID_STATICTEXT3
Definition: compilerpanel.h:54
wxBoxSizer * BoxSizer4
Definition: compilerpanel.h:79
bool IsChecked() const
void SetReleaseName(const wxString &name)
Definition: compilerpanel.h:41
wxString GetReleaseName() const
Definition: compilerpanel.h:42
wxStaticBoxSizer * StaticBoxSizer2
Definition: compilerpanel.h:74
static const long ID_COMBOBOX1
Definition: compilerpanel.h:51
void SetWantDebug(bool want)
Definition: compilerpanel.h:30
wxTextCtrl * txtDbgObjOut
Definition: compilerpanel.h:75
static const long ID_STATICTEXT4
Definition: compilerpanel.h:56
static const long ID_TEXTCTRL1
Definition: compilerpanel.h:55
wxTextCtrl * txtRelName
Definition: compilerpanel.h:77
wxString GetDebugObjectOutputDir() const
Definition: compilerpanel.h:37
wxBoxSizer * BoxSizer5
Definition: compilerpanel.h:85
static const long ID_TEXTCTRL3
Definition: compilerpanel.h:53
void SetDebugOutputDir(const wxString &dir)
Definition: compilerpanel.h:34
bool GetWantDebug() const
Definition: compilerpanel.h:31
wxString GetDebugOutputDir() const
Definition: compilerpanel.h:35
virtual void SetValue(bool state)
void SetDebugObjectOutputDir(const wxString &dir)
Definition: compilerpanel.h:36
bool GetWantRelease() const
Definition: compilerpanel.h:40