]> Creatis software - crea.git/blob - lib/creaDevManagerLib/wxCreaDevManagerProjectActionsPanel.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / wxCreaDevManagerProjectActionsPanel.cpp
1 /*
2  * wxCreaDevManagerProjectActionsWindow.cpp
3  *
4  *  Created on: 25/10/2012
5  *      Author: daniel
6  */
7
8 #include "wxCreaDevManagerProjectActionsPanel.h"
9
10
11
12 wxCreaDevManagerProjectActionsPanel::wxCreaDevManagerProjectActionsPanel(
13     wxWindow* parent,
14     wxWindowID id,
15     const wxString& caption,
16     const wxPoint& pos,
17     const wxSize& size,
18     long style
19 )
20 {
21   wxCreaDevManagerProjectActionsPanel::Create(parent,id,caption,pos,size,style);
22 }
23
24 wxCreaDevManagerProjectActionsPanel::~wxCreaDevManagerProjectActionsPanel()
25 {
26 }
27
28 bool wxCreaDevManagerProjectActionsPanel::Create(
29     wxWindow* parent,
30     wxWindowID id,
31     const wxString& caption,
32     const wxPoint& pos,
33     const wxSize& size,
34     long style
35 )
36 {
37   wxPanel::Create(parent,id,pos,size,style);
38   wxBoxSizer* sizer = new wxBoxSizer(wxHORIZONTAL);
39   this->SetSizer(sizer);
40
41   CreateControls();
42
43   return TRUE;
44 }
45
46 void wxCreaDevManagerProjectActionsPanel::CreateControls()
47 {
48   this->GetSizer()->Add(new wxButton(this, -1, _T("Action 1")), 0, wxALL, 5);
49   this->GetSizer()->Add(new wxButton(this, -1, _T("Action 2")), 0, wxALL, 5);
50   this->GetSizer()->Add(new wxButton(this, -1, _T("Action 3")), 0, wxALL, 5);
51   this->GetSizer()->Add(new wxButton(this, -1, _T("Action 4")), 0, wxALL, 5);
52 }