1 /*=========================================================================
7 =========================================================================*/
9 /* ---------------------------------------------------------------------
11 * Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
12 * Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
14 * This software is governed by the CeCILL-B license under French law and
15 * abiding by the rules of distribution of free software. You can use,
16 * modify and/ or redistribute the software under the terms of the CeCILL-B
17 * license as circulated by CEA, CNRS and INRIA at the following URL
18 * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
19 * or in the file LICENSE.txt.
21 * As a counterpart to the access to the source code and rights to copy,
22 * modify and redistribute granted by the license, users are provided only
23 * with a limited warranty and the software's author, the holder of the
24 * economic rights, and the successive licensors have only limited
27 * The fact that you are presently reading this means that you have had
28 * knowledge of the CeCILL-B license and that you accept its terms.
29 * ------------------------------------------------------------------------ */
35 * \brief Class bbtk::BlackBox : abstract black-box interface.
39 * Design and Developpement of BBTK GEditor
40 * Ricardo A Corredor J <ra.corredor67@uniandes.edu.co>
44 #ifndef __wxTabPanelsManager_h__
45 #define __wxTabPanelsManager_h__
47 #include <wx/aui/auibook.h>
49 #include <wx/string.h>
53 #include "wxGEditorTabPanel.h"
54 #include "wxVtkSceneManager.h"
55 #include "bbtkwxGUIEditorGraphicBBS.h"
62 class wxVtkSceneManager;
63 class wxGEditorTabPanel;
64 class wxGUIEditorGraphicBBS;
66 class wxTabPanelsManager : public wxEvtHandler
71 wxTabPanelsManager(wxGUIEditorGraphicBBS *parent);
72 ~wxTabPanelsManager();
75 wxAuiNotebook* getAuiNotebook();
76 wxGEditorTabPanel* getActualTabPanel();
78 void displayBlackBoxInfo(std::string packageName, std::string boxName);
79 void updateStatusBar(std::string textStatus);
81 std::string getActualDiagramBBS();
82 std::string getActualComplexBoxBBS(std::string cbName,std::string cbAuthor="",std::string cbCategory="",std::string cbDescription="");
84 void editBlackBox(GBlackBoxModel *bbmodel);
85 void deleteAllBoxesActualDiagram();
86 void centerViewActualDiagram();
87 void saveActualDiagram(std::string &content);
88 void loadDiagram(ifstream &inputStream);
89 bool isActualDiagramComplexBox();
90 void setActualDiagramComplexBox(bool val);
91 void addActualDiagramComplexInputPort(std::string portName);
92 void addActualDiagramComplexOutputPort(std::string portName);
93 void copySelectedBBoxesToComplexDiagram();
94 int getNumActualSelectedObjects();
96 void OnTabChanged(wxAuiNotebookEvent& event);
100 // Private Attributes
101 wxGUIEditorGraphicBBS *_parent;
102 map<int, wxGEditorTabPanel*> _panels;
103 wxGEditorTabPanel* _actual;
104 wxAuiNotebook *_notebook;