]> Creatis software - bbtk.git/blob - kernel/src/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx
Feature #1774
[bbtk.git] / kernel / src / EditorGraphicBBS / bbsWxGUIEditorGraphic / bbtkwxGUIEditorGraphicBBS.cxx
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  # Previous Authors : Laurent Guigues, Jean-Pierre Roux
8  # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
9  #
10  #  This software is governed by the CeCILL-B license under French law and
11  #  abiding by the rules of distribution of free software. You can  use,
12  #  modify and/ or redistribute the software under the terms of the CeCILL-B
13  #  license as circulated by CEA, CNRS and INRIA at the following URL
14  #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
15  #  or in the file LICENSE.txt.
16  #
17  #  As a counterpart to the access to the source code and  rights to copy,
18  #  modify and redistribute granted by the license, users are provided only
19  #  with a limited warranty  and the software's author,  the holder of the
20  #  economic rights,  and the successive licensors  have only  limited
21  #  liability.
22  #
23  #  The fact that you are presently reading this means that you have had
24  #  knowledge of the CeCILL-B license and that you accept its terms.
25  # ------------------------------------------------------------------------ */
26
27
28 /*=========================================================================
29   Program:   bbtk
30   Module:    $RCSfile: bbtkBlackBox.cxx,v $
31   Language:  C++
32   Date:      $Date: 2009/05/18 10:45:40 $
33   Version:   $Revision: 1.45 $
34 =========================================================================*/
35
36
37
38 /**
39  *  \file 
40  *  \brief Class bbtk::WxInterfaceEditorGraphicBBS . 
41  */
42
43
44 #include "bbtkwxGUIEditorGraphicBBS.h"
45 #include "bbtkwxGUIEditorGraphicContainer.h"
46
47
48 namespace bbtk
49 {
50
51
52   //=========================================================================
53         wxGUIEditorGraphicBBS::wxGUIEditorGraphicBBS(wxFrame *parent)
54     : wxFrame(parent, -1, _T("bbEditor"),wxDefaultPosition, wxSize(1200,800))
55   {
56           m_mgr.SetManagedWindow(this);
57           editorgraphiccontainer = new wxGUIEditorGraphicContainer(this);
58           
59           wxPanel *mWxGUIGrapphicEditorPanel = new wxPanel(this,-1);
60           wxPanel *mWxGUIBoxBrowserPanel = new wxPanel(this,-1);
61           wxPanel *mWxGUIConfigurationGraphicEditorPanel = new wxPanel(this,-1);
62           
63           mWxGUIGrapphicEditorPanel->SetBackgroundColour( wxColor(255,0,0) );
64           mWxGUIBoxBrowserPanel->SetBackgroundColour( wxColor(0,255,0) );
65           mWxGUIConfigurationGraphicEditorPanel->SetBackgroundColour( wxColor(255,0,255) );
66           
67           //
68           m_mgr.AddPane(mWxGUIGrapphicEditorPanel,
69                                         wxAuiPaneInfo().Name(wxT("graphic_editor_content"))
70                                         .Caption(wxT("Graphic editor"))
71                                         .MinimizeButton(true)
72                                         .MaximizeButton(true)
73                                         .Center()
74                                         .MinSize(wxSize(100,100))
75                                         );   
76           
77           m_mgr.AddPane(mWxGUIBoxBrowserPanel,
78                                         wxAuiPaneInfo().Name(wxT("box_browser_content"))
79                                         .Caption(wxT("Box browser"))
80                                         .MinimizeButton(true)
81                                         .MaximizeButton(true)
82                                         .Right()
83                                         .Layer(2)
84                                         .MinSize(wxSize(400,100))
85                                         );
86           
87           m_mgr.AddPane(mWxGUIConfigurationGraphicEditorPanel,
88                                         wxAuiPaneInfo().Name(wxT("configuration_graphic_editor_content"))
89                                         .Caption(wxT("Messages"))
90                                         .MinimizeButton(true)
91                                         .MaximizeButton(true)
92                                         .Bottom()
93                                         .MinSize(wxSize(100,100))
94                                         );
95           
96           SetAutoLayout(true);
97           Layout();
98           m_mgr.Update();
99           
100   }
101
102   //=========================================================================
103   wxGUIEditorGraphicBBS::~wxGUIEditorGraphicBBS()
104   {
105           delete editorgraphiccontainer;
106           m_mgr.UnInit();
107   }
108   //=========================================================================
109
110
111
112 }  // EO namespace bbtk
113
114 // EOF
115