]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMProjectActionsPanel.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / wxCDMProjectActionsPanel.cpp
diff --git a/lib/creaDevManagerLib/wxCDMProjectActionsPanel.cpp b/lib/creaDevManagerLib/wxCDMProjectActionsPanel.cpp
new file mode 100755 (executable)
index 0000000..67e4497
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+ * wxCDMProjectActionsPanel.cpp
+ *
+ *  Created on: 25/10/2012
+ *      Author: daniel
+ */
+
+#include "wxCDMProjectActionsPanel.h"
+
+
+
+wxCDMProjectActionsPanel::wxCDMProjectActionsPanel(
+    wxWindow* parent,
+    wxWindowID id,
+    const wxString& caption,
+    const wxPoint& pos,
+    const wxSize& size,
+    long style
+)
+{
+  wxCDMProjectActionsPanel::Create(parent,id,caption,pos,size,style);
+}
+
+wxCDMProjectActionsPanel::~wxCDMProjectActionsPanel()
+{
+}
+
+bool wxCDMProjectActionsPanel::Create(
+    wxWindow* parent,
+    wxWindowID id,
+    const wxString& caption,
+    const wxPoint& pos,
+    const wxSize& size,
+    long style
+)
+{
+  wxPanel::Create(parent,id,pos,size,style);
+  wxBoxSizer* sizer = new wxBoxSizer(wxHORIZONTAL);
+  this->SetSizer(sizer);
+
+  CreateControls();
+
+  return TRUE;
+}
+
+void wxCDMProjectActionsPanel::CreateControls()
+{
+  this->GetSizer()->Add(new wxButton(this, -1, _T("Action 1")), 0, wxALL, 5);
+  this->GetSizer()->Add(new wxButton(this, -1, _T("Action 2")), 0, wxALL, 5);
+  this->GetSizer()->Add(new wxButton(this, -1, _T("Action 3")), 0, wxALL, 5);
+  this->GetSizer()->Add(new wxButton(this, -1, _T("Action 4")), 0, wxALL, 5);
+}