]> Creatis software - crea.git/blob - lib/creaDevManagerLib/wxCDMProjectActionsPanel.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / wxCDMProjectActionsPanel.cpp
1 /*
2 # ---------------------------------------------------------------------
3 #
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
5 #                        pour la Sant�)
6 # # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 #
8 #  This software is governed by the CeCILL-B license under French law and 
9 #  abiding by the rules of distribution of free software. You can  use, 
10 #  modify and/ or redistribute the software under the terms of the CeCILL-B 
11 #  license as circulated by CEA, CNRS and INRIA at the following URL 
12 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
13 #  or in the file LICENSE.txt.
14 #
15 #  As a counterpart to the access to the source code and  rights to copy,
16 #  modify and redistribute granted by the license, users are provided only
17 #  with a limited warranty  and the software's author,  the holder of the
18 #  economic rights,  and the successive licensors  have only  limited
19 #  liability. 
20 #
21 #  The fact that you are presently reading this means that you have had
22 #  knowledge of the CeCILL-B license and that you accept its terms.
23 # ------------------------------------------------------------------------ 
24  */
25
26
27 /*
28  * wxCDMProjectActionsPanel.cpp
29  *
30  *  Created on: 25/10/2012
31  *      Author: Daniel Felipe Gonzalez Obando
32  */
33
34 #include "wxCDMProjectActionsPanel.h"
35
36 #include "creaDevManagerIds.h"
37
38 BEGIN_EVENT_TABLE(wxCDMProjectActionsPanel, wxPanel)
39 EVT_BUTTON(ID_BUTTON_BUILD_PROJECT, wxCDMProjectActionsPanel::OnBtnBuildProject)
40 EVT_BUTTON(ID_BUTTON_CONFIGURE_BUILD, wxCDMProjectActionsPanel::OnBtnConfigureBuild)
41 EVT_BUTTON(ID_BUTTON_EDIT_CMAKELISTSFILE, wxCDMProjectActionsPanel::OnBtnEditCMakeLists)
42 EVT_BUTTON(ID_BUTTON_CONNECT_PROJECT, wxCDMProjectActionsPanel::OnBtnConnectProject)
43 END_EVENT_TABLE()
44
45 wxCDMProjectActionsPanel::wxCDMProjectActionsPanel(
46     wxWindow* parent,
47     wxWindowID id,
48     const wxString& caption,
49     const wxPoint& pos,
50     const wxSize& size,
51     long style
52 )
53 {
54   wxCDMProjectActionsPanel::Create(parent,id,caption,pos,size,style);
55 }
56
57 wxCDMProjectActionsPanel::~wxCDMProjectActionsPanel()
58 {
59 }
60
61 bool wxCDMProjectActionsPanel::Create(
62     wxWindow* parent,
63     wxWindowID id,
64     const wxString& caption,
65     const wxPoint& pos,
66     const wxSize& size,
67     long style
68 )
69 {
70   wxPanel::Create(parent,id,pos,size,style);
71   wxBoxSizer* sizer = new wxBoxSizer(wxHORIZONTAL);
72   this->SetSizer(sizer);
73
74   CreateControls();
75
76   return TRUE;
77 }
78
79 void wxCDMProjectActionsPanel::CreateControls()
80 {
81   this->GetSizer()->Add(new wxButton(this, ID_BUTTON_BUILD_PROJECT, _T("Build Project (make)")), 0, wxALL, 5);
82   this->GetSizer()->Add(new wxButton(this, ID_BUTTON_CONFIGURE_BUILD, _T("Configure Build (ccmake)")), 0, wxALL, 5);
83   this->GetSizer()->Add(new wxButton(this, ID_BUTTON_EDIT_CMAKELISTSFILE, _T("Edit CMakeLists")), 0, wxALL, 5);
84   this->GetSizer()->Add(new wxButton(this, ID_BUTTON_CONNECT_PROJECT, _T("Connect Project")), 0, wxALL, 5);
85 }
86
87 void wxCDMProjectActionsPanel::OnBtnBuildProject(wxCommandEvent& event)
88 {
89   //TODO: implement method
90   std::cerr << "Event OnBtnBuildProject not implemented" << std::endl;
91   event.Skip();
92 }
93
94 void wxCDMProjectActionsPanel::OnBtnConfigureBuild(wxCommandEvent& event)
95 {
96   //TODO: implement method
97   std::cerr << "Event OnBtnConfigureBuild not implemented" << std::endl;
98   event.Skip();
99 }
100
101 void wxCDMProjectActionsPanel::OnBtnEditCMakeLists(wxCommandEvent& event)
102 {
103   //TODO: implement method
104   std::cerr << "Event OnBtnEditCMakeLists not implemented" << std::endl;
105   event.Skip();
106 }
107
108 void wxCDMProjectActionsPanel::OnBtnConnectProject(wxCommandEvent& event)
109 {
110   //TODO: implement method
111   std::cerr << "Event OnBtnConnectProject not implemented" << std::endl;
112   event.Skip();
113 }