]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCreaDevManagerNewProjectDialog.h
Feature #1711
[crea.git] / lib / creaDevManagerLib / wxCreaDevManagerNewProjectDialog.h
diff --git a/lib/creaDevManagerLib/wxCreaDevManagerNewProjectDialog.h b/lib/creaDevManagerLib/wxCreaDevManagerNewProjectDialog.h
new file mode 100644 (file)
index 0000000..58f516b
--- /dev/null
@@ -0,0 +1,56 @@
+/*
+ * wxCreaDevManagerNewProjectDialog.h
+ *
+ *  Created on: 2/11/2012
+ *      Author: daniel
+ */
+
+#ifndef WXCREADEVMANAGERNEWPROJECTDIALOG_H_
+#define WXCREADEVMANAGERNEWPROJECTDIALOG_H_
+
+#include <creaWx.h>
+#include <wx/dialog.h>
+#include "ControlCreaDevManagerMain.h"
+
+class wxCreaDevManagerNewProjectDialog : public wxDialog
+{
+  DECLARE_EVENT_TABLE()
+  public:
+    wxCreaDevManagerNewProjectDialog(
+      wxWindow* parent,
+      ControlCreaDevManagerMain* controller,
+      wxWindowID id = wxID_ANY,
+      const wxString& caption = wxString("New Project"),
+      const wxPoint& position = wxDefaultPosition,
+      const wxSize& size = wxSize(400,300),
+      long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER
+    );
+    ~wxCreaDevManagerNewProjectDialog();
+    bool Create(
+      wxWindow* parent,
+      wxWindowID id = wxID_ANY,
+      const wxString& caption = wxString("New Project"),
+      const wxPoint& position = wxDefaultPosition,
+      const wxSize& size = wxSize(400,300),
+      long style = wxDEFAULT_DIALOG_STYLE
+    );
+
+  protected:
+    void CreateControls();
+
+    void OnCreateProject(wxCommandEvent& event);
+    void OnCancel(wxCommandEvent& event);
+    void OnChooseLocation(wxCommandEvent& event);
+
+  private:
+    wxStaticText* projectLocation;
+    wxTextCtrl* projectName;
+    wxTextCtrl* packageAuthor;
+    wxTextCtrl* packageDescription;
+
+    ControlCreaDevManagerMain* Controller;
+
+
+};
+
+#endif /* WXCREADEVMANAGERNEWPROJECTDIALOG_H_ */