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();
{
//ED02JUIN2010 _sceneManager->disconnectDrop();
- _panelsManager->VerifyLastTabPanel();
+ _panelsManager->VerifyLastTabPanel();
//FCY memory leaks
delete _panelAUIMgr;
delete _sceneManager;
//=========================================================================
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);
{
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));
{
return _sceneManager->GetCategory();
}
+ //=========================================================================
+ std::string wxGEditorTabPanel::GetMessageKind()
+ {
+ return _sceneManager->GetMessageKind();
+ }
+ //=========================================================================
+ std::string wxGEditorTabPanel::GetMessageLevel()
+ {
+ return _sceneManager->GetMessageLevel();
+ }
//=========================================================================
void wxGEditorTabPanel::SetCbName(std::string cbName)
{
_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 )