]> Creatis software - crea.git/blob - lib/creaDevManagerLib/wxCreaDevManagerNewProjectDialog.h
Feature #1711
[crea.git] / lib / creaDevManagerLib / wxCreaDevManagerNewProjectDialog.h
1 /*
2  * wxCreaDevManagerNewProjectDialog.h
3  *
4  *  Created on: 2/11/2012
5  *      Author: daniel
6  */
7
8 #ifndef WXCREADEVMANAGERNEWPROJECTDIALOG_H_
9 #define WXCREADEVMANAGERNEWPROJECTDIALOG_H_
10
11 #include <creaWx.h>
12 #include <wx/dialog.h>
13 #include "ControlCreaDevManagerMain.h"
14
15 class wxCreaDevManagerNewProjectDialog : public wxDialog
16 {
17   DECLARE_EVENT_TABLE()
18   public:
19     wxCreaDevManagerNewProjectDialog(
20       wxWindow* parent,
21       ControlCreaDevManagerMain* controller,
22       wxWindowID id = wxID_ANY,
23       const wxString& caption = wxString("New Project"),
24       const wxPoint& position = wxDefaultPosition,
25       const wxSize& size = wxSize(400,300),
26       long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER
27     );
28     ~wxCreaDevManagerNewProjectDialog();
29     bool Create(
30       wxWindow* parent,
31       wxWindowID id = wxID_ANY,
32       const wxString& caption = wxString("New Project"),
33       const wxPoint& position = wxDefaultPosition,
34       const wxSize& size = wxSize(400,300),
35       long style = wxDEFAULT_DIALOG_STYLE
36     );
37
38   protected:
39     void CreateControls();
40
41     void OnCreateProject(wxCommandEvent& event);
42     void OnCancel(wxCommandEvent& event);
43     void OnChooseLocation(wxCommandEvent& event);
44
45   private:
46     wxStaticText* projectLocation;
47     wxTextCtrl* projectName;
48     wxTextCtrl* packageAuthor;
49     wxTextCtrl* packageDescription;
50
51     ControlCreaDevManagerMain* Controller;
52
53
54 };
55
56 #endif /* WXCREADEVMANAGERNEWPROJECTDIALOG_H_ */