From e88559228139594c8c7cd31461c36824c1948aa5 Mon Sep 17 00:00:00 2001 From: srn Date: Thu, 26 Jan 2006 07:14:27 +0000 Subject: [PATCH] Added methods strore/restoreVisualParameters --- src/LightApp/LightApp_Module.cxx | 19 +++++++++++++++++++ src/LightApp/LightApp_Module.h | 3 +++ 2 files changed, 22 insertions(+) diff --git a/src/LightApp/LightApp_Module.cxx b/src/LightApp/LightApp_Module.cxx index 283c49c89..f6c316fc5 100644 --- a/src/LightApp/LightApp_Module.cxx +++ b/src/LightApp/LightApp_Module.cxx @@ -424,6 +424,25 @@ LightApp_Displayer* LightApp_Module::displayer() return 0; } +/*! + * \brief Virtual public + * + * This method is called just before the study document is saved, so the module has a possibility + * to store visual parameters in AttributeParameter attribue(s) + */ +void LightApp_Module::storeVisualParameters() { + cout << "LightApp_Module::storeVisualParameters" << endl; +} + +/*! + * \brief Virtual public + * + * This method is called after the study document is opened, so the module has a possibility to restore + * visual parameters + */ +void LightApp_Module::restoreVisualParameters() {} + + void LightApp_Module::onShowHide() { if( !sender()->inherits( "QAction" ) || !popupMgr() ) diff --git a/src/LightApp/LightApp_Module.h b/src/LightApp/LightApp_Module.h index 2df7aab61..40785fd15 100644 --- a/src/LightApp/LightApp_Module.h +++ b/src/LightApp/LightApp_Module.h @@ -66,6 +66,9 @@ public: virtual LightApp_Displayer* displayer(); + virtual void storeVisualParameters(); + virtual void restoreVisualParameters(); + public slots: virtual bool activateModule( SUIT_Study* ); virtual bool deactivateModule( SUIT_Study* ); -- 2.39.2