X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxVtkSceneManager.cxx;h=002e5895014dc0ed85cfa6f5b4c7862632469d4d;hb=0ed874c749158f2f175664c45183fb05186d6c49;hp=af87221b5d01c3da0f519edf9f6df0b8631b6bff;hpb=67a6b56195db640eb7f2a478440c6aa39ccb59ae;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx index af87221..002e589 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx @@ -73,25 +73,25 @@ namespace bbtk { wxVtkSceneManager::wxVtkSceneManager(wxGEditorTabPanel *parent, wxVtk3DBaseView *baseView, int idManager,Factory::Pointer bbtkfactory) { - _cbName = "ComplexBoxName"; - _cbPackageName = "PackageName"; - _Author = "Author ??"; - _Category = ""; - _Description = "Description ??"; - _MessageKind = " "; - _MessageLevel = " "; - - _bugTextActor_text = "void"; + _cbName = "ComplexBoxName"; + _cbPackageName = "PackageName"; + _Author = "Author ??"; + _Category = ""; + _Description = "Description ??"; + _MessageKind = "-"; + _MessageLevel = "-"; + + _bugTextActor_text = "void"; _bugTextActor_status = 0; - _parent = parent; - _numBoxes = 0; - _idManager = idManager; - _baseView = baseView; - _bbtkfactory = bbtkfactory; + _parent = parent; + _numBoxes = 0; + _idManager = idManager; + _baseView = baseView; + _bbtkfactory = bbtkfactory; - _startDragging = false; - _isComplexBox = false; + _startDragging = false; + _isComplexBox = false; if (_baseView != NULL) { //EED02JUIN2010 @@ -1540,7 +1540,7 @@ std::string wxVtkSceneManager::getDiagramBBS(bool wln) { script += "# Complex input ports\n"; script += complexInputs; - if((_MessageKind!=" ")&&(_MessageLevel!=" ")){ + if((_MessageKind!="-")&&(_MessageLevel!="-")){ script += LineNumber(wln, lnNmbr); script += "message "; script += _MessageKind; @@ -1736,13 +1736,17 @@ std::string wxVtkSceneManager::saveComplexBoxBBS() { script += "\n"; - script += "message "; - script += _MessageKind; - script += " "; - script += _MessageLevel; - script += "\n"; + if((_MessageKind!="-")&&(_MessageLevel!="-")) + { + script += "message "; + script += _MessageKind; + script += " "; + script += _MessageLevel; + script += "\n"; + } - for (i = 0; i < (int) execBoxes.size(); i++) { + for (i = 0; i < (int) execBoxes.size(); i++) + { script += "exec "; int id = execBoxes[i]; GObjectController *control = _controllers[id];