X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxGEditorTabPanel.cxx;h=a2540728315b2f27bb3d3a7c3c100f5ae13503e9;hb=refs%2Fheads%2Fvtk7itk4wx3;hp=030e52aeca52c607b13bbca5e86828f410036150;hpb=b7e481b5969501d55054998e3115cddd2d6ed918;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx index 030e52a..a254072 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx @@ -75,7 +75,7 @@ namespace bbtk wxGEditorTabPanel::wxGEditorTabPanel(wxWindow *parent,int id, Factory::Pointer bbtkfactory) : wxPanel(parent),wxTextDropTarget() { - _id=id; + _id = id; _panelAUIMgr = new wxAuiManager(this); _sceneManager = NULL; _actualdo = states.begin(); @@ -89,7 +89,7 @@ namespace bbtk { //ED02JUIN2010 _sceneManager->disconnectDrop(); - _panelsManager->VerifyLastTabPanel(); + _panelsManager->VerifyLastTabPanel(); //FCY memory leaks delete _panelAUIMgr; delete _sceneManager; @@ -98,7 +98,7 @@ namespace bbtk //========================================================================= void wxGEditorTabPanel::initWxVtkCanvas() { - wxVtk3DBaseView *baseview = new wxVtk3DBaseView(this); + wxVtk3DBaseView *baseview = new wxVtk3DBaseView(this,NULL); baseview->Configure(); //EED 07 juin 2013 baseview->GetCamera()->SetViewUp (0, 1, 0); @@ -175,8 +175,14 @@ namespace bbtk { std::string filePath = stdData.substr(7); std::cout << filePath << ": "; - if(wxFile::Exists(crea::std2wx(filePath))) + + FILE *ff=fopen(filePath.c_str(),"r"); + if( +// wxFile::Exists( crea::std2wx(filePath)) + ff!=NULL + ) { + fclose(ff); std::cout << "File Exists." << std::endl; wxFileName fileToOpen(crea::std2wx(filePath)); @@ -515,6 +521,16 @@ namespace bbtk { return _sceneManager->GetCategory(); } + //========================================================================= + std::string wxGEditorTabPanel::GetMessageKind() + { + return _sceneManager->GetMessageKind(); + } + //========================================================================= + std::string wxGEditorTabPanel::GetMessageLevel() + { + return _sceneManager->GetMessageLevel(); + } //========================================================================= void wxGEditorTabPanel::SetCbName(std::string cbName) @@ -548,6 +564,18 @@ namespace bbtk { _sceneManager->SetDescription( description ); } + + //========================================================================= + void wxGEditorTabPanel::SetMessageKind(std::string kind) + { + _sceneManager->SetMessageKind( kind ); + } + + //========================================================================= + void wxGEditorTabPanel::SetMessageLevel(std::string level) + { + _sceneManager->SetMessageLevel( level ); + } //========================================================================= //DFCH void wxGEditorTabPanel::SetFullPath( const std::string& fullpath )