An interface class which provides incapsulation of SUIT_PreferenceMgr class instance It is used in order to make common interface to Preference manager in Salome and this application.
More...
An interface class which provides incapsulation of SUIT_PreferenceMgr class instance It is used in order to make common interface to Preference manager in Salome and this application.
◆ ModuleBase_IPrefMgr()
ModuleBase_IPrefMgr::ModuleBase_IPrefMgr |
( |
| ) |
|
◆ ~ModuleBase_IPrefMgr()
ModuleBase_IPrefMgr::~ModuleBase_IPrefMgr |
( |
| ) |
|
|
virtual |
◆ addPreference()
virtual int ModuleBase_IPrefMgr::addPreference |
( |
const QString & |
theLbl, |
|
|
int |
pId, |
|
|
SUIT_PreferenceMgr::PrefItemType |
theType, |
|
|
const QString & |
theSection, |
|
|
const QString & |
theName |
|
) |
| |
|
pure virtual |
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 |
Implemented in SHAPERGUI_PrefMgr, and ModuleBase_PrefMgr.
◆ setItemProperty()
virtual void ModuleBase_IPrefMgr::setItemProperty |
( |
const QString & |
thePropName, |
|
|
const QVariant & |
theValue, |
|
|
const int |
theId = -1 |
|
) |
| |
|
pure virtual |
Set property of an item.
- Parameters
-
thePropName | the property name |
theValue | the value of the property |
theId | id of the property |
Implemented in SHAPERGUI_PrefMgr, and ModuleBase_PrefMgr.
◆ prefMgr()