Code::Blocks  SVN r11506
projectpathpanel.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 PROJECTPATHPANEL_H
7 #define PROJECTPATHPANEL_H
8 
9 
10 //(*HeadersPCH(ProjectPathPanel)
11 #include <wx/sizer.h>
12 #include <wx/button.h>
13 #include <wx/panel.h>
14 #include <wx/stattext.h>
15 #include <wx/textctrl.h>
16 //*)
17 
18 #include <wx/string.h>
19 
21 {
22  public:
23 
24  ProjectPathPanel(wxWindow* parent,wxWindowID id = -1);
25  virtual ~ProjectPathPanel();
26 
27  void SetPath(const wxString& path)
28  {
29  txtPrjPath->SetValue(path);
30 // if (!path.IsEmpty())
31 // txtPrjName->SetFocus();
32  Update();
33  }
34  wxString GetPath() const { return txtPrjPath->GetValue(); }
35  //wxString GetName(){ return txtPrjName->GetValue(); }
36 // NOTE (Biplab#1#): This is a temporary fix. This function
37 // need to be renamed according to it's visual representation
38  wxString GetName() const { return txtPrjTitle->GetValue(); }
39  wxString GetFullFileName() const { return txtFinalDir->GetValue(); }
40  wxString GetTitle() const { return txtPrjTitle->GetValue(); }
41 
42  //(*Identifiers(ProjectPathPanel)
43  static const long ID_STATICTEXT1;
44  static const long ID_STATICTEXT4;
45  static const long ID_TEXTCTRL3;
46  static const long ID_STATICTEXT2;
47  static const long ID_TEXTCTRL1;
48  static const long ID_BUTTON1;
49  static const long ID_STATICTEXT3;
50  static const long ID_TEXTCTRL2;
51  static const long ID_STATICTEXT5;
52  static const long ID_TEXTCTRL4;
53  //*)
54 
55  private:
56 
57  void Update();
58  void UpdateFromResulting();
60 
61  //(*Handlers(ProjectPathPanel)
62  void OnFullPathChanged(wxCommandEvent& event);
63  void OntxtFinalDirText(wxCommandEvent& event);
64  void OntxtPrjTitleText(wxCommandEvent& event);
65  //*)
66 
67  //(*Declarations(ProjectPathPanel)
75  //*)
76 
77  DECLARE_EVENT_TABLE()
78 };
79 
80 #endif
void OntxtPrjTitleText(wxCommandEvent &event)
void SetPath(const wxString &path)
static const long ID_TEXTCTRL2
wxTextCtrl * txtPrjTitle
static const long ID_STATICTEXT1
static const long ID_TEXTCTRL3
static const long ID_BUTTON1
static const long ID_TEXTCTRL1
static const long ID_STATICTEXT5
wxString GetFullFileName() const
static const long ID_STATICTEXT2
wxTextCtrl * txtPrjPath
wxButton * btnPrjPathBrowse
wxString GetName() const
void OnFullPathChanged(wxCommandEvent &event)
static const long ID_TEXTCTRL4
wxTextCtrl * txtPrjName
virtual ~ProjectPathPanel()
wxBoxSizer * BoxSizer1
void OntxtFinalDirText(wxCommandEvent &event)
ProjectPathPanel(wxWindow *parent, wxWindowID id=-1)
static const long ID_STATICTEXT4
wxString GetPath() const
wxString GetTitle() const
wxBoxSizer * BoxSizer2
wxTextCtrl * txtFinalDir
static const long ID_STATICTEXT3
int wxWindowID