From: eduardo.davila@creatis.insa-lyon.fr Date: Mon, 21 Sep 2026 09:54:15 +0000 (+0200) Subject: #3264 Copy Paste boxes option between diagrams X-Git-Url: http://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=refs%2Fheads%2Fvtk9itk5wx3-macos;p=bbtkGEditor.git #3264 Copy Paste boxes option between diagrams --- diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx index f0e1bdf..34fb38d 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx @@ -246,6 +246,7 @@ namespace bbtk void wxTabPanelsManager::pasteBoxes() { _actual -> DuplicateObjects( _mapSelectedObjCopyPaste ); + _mapSelectedObjCopyPaste = _actual->getSelectedObjects(); } //========================================================================= @@ -255,7 +256,6 @@ namespace bbtk } //========================================================================= - void wxTabPanelsManager::VerifyLastTabPanel() { if (this->_notebook->GetPageCount()==0) @@ -265,7 +265,6 @@ namespace bbtk } //========================================================================= - void wxTabPanelsManager::OnTabChanged(wxAuiNotebookEvent& event) { int index = event.GetSelection(); @@ -273,36 +272,28 @@ namespace bbtk int id = tab->getPanelId(); _actual = _panels[id]; _parent->refreshGUIControls(); - } //========================================================================= - void wxTabPanelsManager::OnTabClose(wxAuiNotebookEvent& event) { - std::cout<<"RaC wxTabPanelsManager::OnTabClose Start... "<<_panels.size()<0) { wxGEditorTabPanel* tab = (wxGEditorTabPanel*)_notebook->GetPage(index); int id = tab->getPanelId(); tab->deleteAllBoxes(); _panels.erase(id); - _notebook->RemovePage(index); - std::cout<<"RaC wxTabPanelsManager::OnTabClose IMPORTANT. The complete tab is not erased from memory... "<