SHAPER  9.12.0
ModuleBase_IPrefMgr Class Referenceabstract

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...

Inheritance diagram for ModuleBase_IPrefMgr:
Inheritance graph

Public Member Functions

 ModuleBase_IPrefMgr ()
 Default constructor. More...
 
virtual ~ModuleBase_IPrefMgr ()
 Virtual destructor. More...
 
virtual int addPreference (const QString &theLbl, int pId, SUIT_PreferenceMgr::PrefItemType theType, const QString &theSection, const QString &theName)=0
 Add preference item into preference dialog box. More...
 
virtual void setItemProperty (const QString &thePropName, const QVariant &theValue, const int theId=-1)=0
 Set property of an item. More...
 
virtual SUIT_PreferenceMgrprefMgr () const =0
 Returns incapsulated preference manager. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ModuleBase_IPrefMgr()

ModuleBase_IPrefMgr::ModuleBase_IPrefMgr ( )

Default constructor.

◆ ~ModuleBase_IPrefMgr()

ModuleBase_IPrefMgr::~ModuleBase_IPrefMgr ( )
virtual

Virtual destructor.

Member Function Documentation

◆ 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
thePropNamethe property name
theValuethe value of the property
theIdid of the property

Implemented in SHAPERGUI_PrefMgr, and ModuleBase_PrefMgr.

◆ prefMgr()

virtual SUIT_PreferenceMgr* ModuleBase_IPrefMgr::prefMgr ( ) const
pure virtual

Returns incapsulated preference manager.

Implemented in SHAPERGUI_PrefMgr, and ModuleBase_PrefMgr.