From 17abbf4d7421fb4b2de4c7a1b808760c88707b39 Mon Sep 17 00:00:00 2001 From: srn Date: Thu, 2 Feb 2006 07:58:21 +0000 Subject: [PATCH] changed 2 methods to virtual --- src/SalomeApp/SalomeApp_Study.cxx | 4 ++++ src/SalomeApp/SalomeApp_Study.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/SalomeApp/SalomeApp_Study.cxx b/src/SalomeApp/SalomeApp_Study.cxx index 693e52a4e..56d4d1945 100644 --- a/src/SalomeApp/SalomeApp_Study.cxx +++ b/src/SalomeApp/SalomeApp_Study.cxx @@ -756,6 +756,8 @@ int SalomeApp_Study::storeState() //================================================================ void SalomeApp_Study::restoreState(int savePoint) { + cout << "SalomeApp_Study::restoreState: " << savePoint << endl; + ViewerContainer container(savePoint); //Remove all already existent veiwers and their views @@ -769,6 +771,8 @@ void SalomeApp_Study::restoreState(int savePoint) //Restore the viewers int nbViewers = container.getNbViewers(); int activeViewID = container.getActiveViewID(); + + cout << "Nb viewers " << nbViewers << " activeViewID " << activeViewID << endl; SUIT_ViewWindow *viewWin = 0, *activeView = 0; for(int i = 1; i <= nbViewers; i++) { diff --git a/src/SalomeApp/SalomeApp_Study.h b/src/SalomeApp/SalomeApp_Study.h index 70bd86cf3..475508c93 100644 --- a/src/SalomeApp/SalomeApp_Study.h +++ b/src/SalomeApp/SalomeApp_Study.h @@ -69,8 +69,8 @@ public: std::vector getSavePoints(); QString getNameOfSavePoint(int savePoint); void setNameOfSavePoint(int savePoint, const QString& nameOfSavePoint); - int storeState(); - void restoreState(int savePoint); + virtual int storeState(); + virtual void restoreState(int savePoint); _PTR(AttributeParameter) getStateParameters(int savePoint); protected: -- 2.39.2