From f83b6ed7e8074a7ee9eecadff422a2f93138683c Mon Sep 17 00:00:00 2001 From: Ilka Antcheva <Ilka.Antcheva@cern.ch> Date: Tue, 6 May 2008 08:16:07 +0000 Subject: [PATCH] From Bertrand: Add a new signal Removed(Int_t id) to notify when a tab was removed. git-svn-id: http://root.cern.ch/svn/root/trunk@23656 27541ba8-7e3a-0410-8455-c3a389f83636 --- gui/gui/inc/TGTab.h | 1 + gui/gui/src/TGTab.cxx | 3 +++ 2 files changed, 4 insertions(+) diff --git a/gui/gui/inc/TGTab.h b/gui/gui/inc/TGTab.h index 7a5a4ce0001..f08dbbe2759 100644 --- a/gui/gui/inc/TGTab.h +++ b/gui/gui/inc/TGTab.h @@ -120,6 +120,7 @@ public: virtual void SavePrimitive(ostream &out, Option_t *option = ""); + virtual void Removed(Int_t id) { Emit("Removed(Int_t)", id); } //*SIGNAL* virtual void Selected(Int_t id) { Emit("Selected(Int_t)", id); } //*SIGNAL* virtual TGLayoutManager *GetLayoutManager() const; diff --git a/gui/gui/src/TGTab.cxx b/gui/gui/src/TGTab.cxx index 2065b59b59c..81d02e2da91 100644 --- a/gui/gui/src/TGTab.cxx +++ b/gui/gui/src/TGTab.cxx @@ -337,6 +337,9 @@ void TGTab::RemoveTab(Int_t tabIndex, Bool_t storeRemoved) TGFrameElement *elTab, *elCont; Int_t count = 0; + // Notify (signal) for removed tab "tabIndex" + Removed(tabIndex); + TIter next(fList) ; next() ; // skip first container -- GitLab