Code::Blocks  SVN r11506
buildtargetpanel.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 BUILDTARGETPANEL_H
7 #define BUILDTARGETPANEL_H
8 
9 
10 //(*HeadersPCH(BuildTargetPanel)
11 #include <wx/combobox.h>
12 #include <wx/checkbox.h>
13 #include <wx/sizer.h>
14 #include <wx/panel.h>
15 #include <wx/stattext.h>
16 #include <wx/textctrl.h>
17 //*)
18 
19 #include <wx/string.h>
20 
22 {
23  public:
24 
25  BuildTargetPanel(wxWindow* parent,wxWindowID id = -1);
26  virtual ~BuildTargetPanel();
27 
28  void ShowCompiler(bool show)
29  {
30  lblCompiler->Show(show);
31  cmbCompiler->Show(show);
32  }
33  void SetTargetName(const wxString& name)
34  {
35  txtName->SetValue(name);
36  }
37  void SetEnableDebug(bool debug)
38  {
39  chkEnableDebug->SetValue(debug);
40  }
41 
43  bool GetEnableDebug() const { return chkEnableDebug->IsChecked(); }
44  wxString GetTargetName() const { return txtName->GetValue(); }
45  wxString GetOutputDir() const { return txtOut->GetValue(); }
46  wxString GetObjectOutputDir() const { return txtObjOut->GetValue(); }
47 
48 
49  //(*Identifiers(BuildTargetPanel)
50  static const long ID_STATICTEXT1;
51  static const long ID_STATICTEXT3;
52  static const long ID_TEXTCTRL1;
53  static const long ID_STATICTEXT2;
54  static const long ID_COMBOBOX1;
55  static const long ID_STATICTEXT4;
56  static const long ID_TEXTCTRL2;
57  static const long ID_STATICTEXT5;
58  static const long ID_TEXTCTRL3;
59  static const long ID_CHECKBOX1;
60  //*)
61 
62  private:
63 
64  //(*Handlers(BuildTargetPanel)
65  void OntxtNameText(wxCommandEvent& event);
66  //*)
67 
68  //(*Declarations(BuildTargetPanel)
77  //*)
78 
79  DECLARE_EVENT_TABLE()
80 };
81 
82 #endif
wxBoxSizer * BoxSizer1
static const long ID_STATICTEXT1
wxString GetTargetName() const
BuildTargetPanel(wxWindow *parent, wxWindowID id=-1)
wxStaticText * StaticText3
static const long ID_STATICTEXT3
static const long ID_STATICTEXT4
static const long ID_STATICTEXT2
static const long ID_COMBOBOX1
wxTextCtrl * txtOut
wxComboBox * GetCompilerCombo()
wxTextCtrl * txtObjOut
void ShowCompiler(bool show)
static const long ID_STATICTEXT5
static const long ID_CHECKBOX1
wxString GetObjectOutputDir() const
void SetTargetName(const wxString &name)
wxStaticText * lblCompiler
static const long ID_TEXTCTRL1
static const long ID_TEXTCTRL3
bool IsChecked() const
bool GetEnableDebug() const
static const long ID_TEXTCTRL2
wxComboBox * cmbCompiler
virtual ~BuildTargetPanel()
void OntxtNameText(wxCommandEvent &event)
wxTextCtrl * txtName
wxString GetOutputDir() const
void SetEnableDebug(bool debug)
virtual void SetValue(bool state)
int wxWindowID
wxCheckBox * chkEnableDebug