From f81d6dd9ed1d8e197b89d44b161cded68581de60 Mon Sep 17 00:00:00 2001 From: abd Date: Thu, 9 Nov 2006 06:35:23 +0000 Subject: [PATCH] Roolback last changes --- src/LightApp/LightApp_Dialog.cxx | 33 -------------------------------- src/LightApp/LightApp_Dialog.h | 14 -------------- 2 files changed, 47 deletions(-) diff --git a/src/LightApp/LightApp_Dialog.cxx b/src/LightApp/LightApp_Dialog.cxx index 14d674a10..27219f5f1 100644 --- a/src/LightApp/LightApp_Dialog.cxx +++ b/src/LightApp/LightApp_Dialog.cxx @@ -807,39 +807,6 @@ void LightApp_Dialog::deactivateAll() } } - -//! Return toggle buttons on/off state -LightApp_SimpleGuiStateMap LightApp_Dialog::getActiveState() const { - - LightApp_SimpleGuiStateMap state; - ObjectMap::const_iterator anIt = myObjects.begin(), - aLast = myObjects.end(); - for( ; anIt!=aLast; anIt++ ) - { - QToolButton* btn = ( QToolButton* )anIt.data().myBtn; - const bool isOn = btn->isOn(); - const int id = anIt.key(); - state[id] = isOn; - } - - return state; -} - -/*! Restores the state of toggle buttons - -to activate the buttons, deactivated by deactivateAll() -*/ -void LightApp_Dialog::restoreState(const LightApp_SimpleGuiStateMap& stateMap) { - LightApp_SimpleGuiStateMap::const_iterator it = stateMap.begin(), - aLast = stateMap.end(); - for (; it != aLast; it++) { - int btnId = it.key(); - bool btnOn = (bool) it.data(); - if (btnOn) activateObject(btnId); - } -} - - - /*! Passes to widget name, type and id of selected object \param id - identificator of object selection widget diff --git a/src/LightApp/LightApp_Dialog.h b/src/LightApp/LightApp_Dialog.h index 22cfa7188..6e3b3b8a0 100644 --- a/src/LightApp/LightApp_Dialog.h +++ b/src/LightApp/LightApp_Dialog.h @@ -39,10 +39,6 @@ class SUIT_ResourceMgr; #pragma warning ( disable:4251 ) #endif - - - typedef QMap LightApp_SimpleGuiStateMap; - /*! \class LightApp_Dialog Base class for all LightApp dialogs. @@ -59,7 +55,6 @@ public: typedef QValueList TypesList; typedef QMap SelectedObjects; - enum ObjectWg { Label = 0x00000001, @@ -159,15 +154,6 @@ public: //! Set all object selection buttons to inactive state void deactivateAll(); - - - //! Return toggle buttons on/off state - LightApp_SimpleGuiStateMap getActiveState() const; - - //! Restores the state of toggle buttons - - // to activate the buttons, deactivated by deactivateAll() - void restoreState(const LightApp_SimpleGuiStateMap&); - signals: //! selection in certain widget is changed void selectionChanged ( int ); -- 2.39.2