SHAPER  9.12.0
SHAPERGUI_PrefMgr Class Reference

Class for preferences management. More...

Inheritance diagram for SHAPERGUI_PrefMgr:
Inheritance graph

Public Member Functions

 SHAPERGUI_PrefMgr (LightApp_Preferences *theMgr, const QString &theModName)
 Constructor. More...
 
virtual int addPreference (const QString &theLbl, int pId, SUIT_PreferenceMgr::PrefItemType theType, const QString &theSection, const QString &theName)
 Add preference item into preference dialog box. More...
 
virtual void setItemProperty (const QString &thePropName, const QVariant &theValue, const int theId=-1)
 Set property of an item. More...
 
virtual SUIT_PreferenceMgrprefMgr () const
 Returns incapsulated preference manager. More...
 

Detailed Description

Class for preferences management.

Constructor & Destructor Documentation

◆ SHAPERGUI_PrefMgr()

SHAPERGUI_PrefMgr::SHAPERGUI_PrefMgr ( LightApp_Preferences *  theMgr,
const QString &  theModName 
)
inline

Constructor.

Parameters
theMgrpreferences manager of SALOME
theModNamename of the module

Member Function Documentation

◆ addPreference()

virtual int SHAPERGUI_PrefMgr::addPreference ( const QString &  theLbl,
int  pId,
SUIT_PreferenceMgr::PrefItemType  theType,
const QString &  theSection,
const QString &  theName 
)
inlinevirtual

Add preference item into preference dialog box.

Parameters
theLbl- label of the item
pId- id of container item
theType- type of the item
theSection- resouce section name
theName- name of the resource Returns Id of the ctreated item

Implements ModuleBase_IPrefMgr.

◆ setItemProperty()

virtual void SHAPERGUI_PrefMgr::setItemProperty ( const QString &  thePropName,
const QVariant &  theValue,
const int  theId = -1 
)
inlinevirtual

Set property of an item.

Parameters
thePropNamethe property name
theValuethe value of the property
theIdid of the property

Implements ModuleBase_IPrefMgr.

◆ prefMgr()

virtual SUIT_PreferenceMgr* SHAPERGUI_PrefMgr::prefMgr ( ) const
inlinevirtual

Returns incapsulated preference manager.

Implements ModuleBase_IPrefMgr.