From c3269ed854a13ca0aaafede69a4981014df4e4a1 Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Mon, 21 Sep 2026 11:54:15 +0200 Subject: [PATCH] #3264 Copy Paste boxes option between diagrams --- .../wxTabPanelsManager.cxx | 44 +++++++------------ .../wxVtkSceneManager.cxx | 17 +++---- .../bbsWxGUIEditorGraphic/wxVtkSceneManager.h | 4 ++ 3 files changed, 28 insertions(+), 37 deletions(-) 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... "<