X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxGEditorTabPanel.h;h=336552366fddcd5604a0a54990b4bf8a6a887c21;hb=66d85963bdb3dea88f7d8e8931855d092629b37c;hp=184714c0ec38dd29bde34aa080f1ec2b01f543a7;hpb=be7230c59a3a7d7aa5bfee591b35d31e5e7a93b3;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.h b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.h index 184714c..3365523 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.h +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.h @@ -64,11 +64,19 @@ Version: $Revision$ namespace bbtk { + class tmpClasswxTextDropTarget : public wxTextDropTarget + { + public: + virtual bool OnDropText(wxCoord x, wxCoord y, const wxString& data) { return false;} + }; + + + class wxVtkSceneManager; class wxTabPanelsManager; - class wxGEditorTabPanel : public wxTextDropTarget, public wxPanel + class wxGEditorTabPanel : public wxPanel, public wxTextDropTarget { public: wxGEditorTabPanel(); @@ -81,8 +89,24 @@ namespace bbtk void displayBlackBoxInfo(std::string packageName, std::string boxName); void updateStatusBar(std::string textStatus); - std::string getDiagramScript(); + std::string getDiagramBBS(); + std::string saveComplexBoxBBS(std::string cbName,std::string cbAuthor="",std::string cbCategory="",std::string cbDescription=""); void editBlackBox(GBlackBoxModel *bbmodel); + void editDiagramParameters(wxVtkSceneManager* scene); + void deleteAllBoxes(); + void centerView(); + void saveDiagram(std::string &content); + void loadDiagram(ifstream &inputStream); + int getPanelId(); + bool isComplexBox(); + void setComplexBox(bool val); + void addComplexInputPort(std::string portName); + void addComplexOutputPort(std::string portName); + std::map getSelectedObjects(); + void addObjects(std::map objectsMap); + int getNumSelectedObjects(); + + //========================================================================= private: