]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx
Bug #1365,
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxGEditorTabPanel.cxx
index bd327721ba3c4e24723805aff9ae0b3f6804b597..ab5c55fba7f909daa7f178dd16653fc291b78d42 100644 (file)
@@ -216,12 +216,35 @@ printf("EED wxGEditorTabPanel::initWxVtkCanvas 1\n");
        {
                this->SetFullPath(path);
                stringstream ss;
-               ss << inputStream ;
+               ss << inputStream.rdbuf() ;
                _sceneManager->loadDiagram(ss);
        }
 
        //=========================================================================
-       unsigned short wxGEditorTabPanel::loadTempDiagram(unsigned short un) //FCY
+       unsigned short wxGEditorTabPanel::getUndoState()
+       {
+               if(states.size()>0)
+               {
+                       if(_actualdo == states.begin() )
+                               return 0;
+                       else
+                               return 1;
+               }
+       }
+
+       unsigned short wxGEditorTabPanel::getRedoState()
+       {
+               if(states.size()>0)
+               {
+                       if(_actualdo == --states.end() || states.size() == 1)
+                               return 0;
+                       else
+                               return 1;
+               }
+       }
+
+       //=========================================================================
+       void wxGEditorTabPanel::loadTempDiagram(unsigned short un) //FCY
        {
                unsigned short res = 1;
                deleteAllBoxes();
@@ -255,7 +278,7 @@ printf("EED wxGEditorTabPanel::initWxVtkCanvas 1\n");
                        }
                }
                _sceneManager->loadDiagram(ss);
-               return res;
+       
        }
        
        //=========================================================================