]> Creatis software - crea.git/blob - lib/creaDevManagerLib/wxCreaDevManagerDescriptionPanel.h
184271ad26abf87b27d8bc5fa2d7bf8f88ab2ce4
[crea.git] / lib / creaDevManagerLib / wxCreaDevManagerDescriptionPanel.h
1 /*
2  * wxCreaDevManagerDescriptionFrame.h
3  *
4  *  Created on: 23/10/2012
5  *      Author: daniel
6  */
7
8 #ifndef WXCREADEVMANAGERDESCRIPTIONPANEL_H_
9 #define WXCREADEVMANAGERDESCRIPTIONPANEL_H_
10
11 #include <creaWx.h>
12 #include <wx/panel.h>
13 #include <wx/bitmap.h>
14 #include <wx/stattext.h>
15
16 #include <iostream>
17 #include <utility>
18 #include <vector>
19
20 class wxCreaDevManagerDescriptionPanel : public wxPanel
21 {
22
23   DECLARE_EVENT_TABLE()
24
25   public:
26       wxCreaDevManagerDescriptionPanel(
27         wxWindow* parent,
28         wxWindowID id = -1,
29         const wxString& caption = _("Description Frame"),
30         const wxPoint& pos = wxDefaultPosition,
31         const wxSize& size = wxDefaultSize,
32         long style = wxDEFAULT_FRAME_STYLE
33       );
34
35       ~wxCreaDevManagerDescriptionPanel();
36
37       bool Create(
38         wxWindow* parent,
39         wxWindowID id = -1,
40         const wxString& caption = _("Description Frame"),
41         const wxPoint& pos = wxDefaultPosition,
42         const wxSize& size = wxDefaultSize,
43         long style = wxDEFAULT_FRAME_STYLE
44       );
45
46
47   protected:
48       void CreateView(wxString title = wxString("Title"), wxString imagePath = wxString(""), wxString type = wxString("Type"), std::vector<std::pair<std::string, std::string> > properties = std::vector<std::pair<std::string, std::string> >());
49
50       void OnBtnNewProject(wxCommandEvent& event);
51       void OnBtnOpenProject(wxCommandEvent& event);
52
53
54   private:
55       wxStaticText* _title;
56       wxBitmap* _image;
57       wxStaticText* _type;
58       wxStaticText* _properties;
59
60 };
61
62 #endif /* WXCREADEVMANAGERDESCRIPTIONFRAME_H_ */