1 // File: XGUI_IPrefMgr.h
2 // Created: 10 Sept 2014
3 // Author: Vitaly SMETANNIKOV
6 #ifndef XGUI_IPrefMgr_H
7 #define XGUI_IPrefMgr_H
10 #include <SUIT_PreferenceMgr.h>
13 * An interface class which provides incapsulation of SUIT_PreferenceMgr class instance
14 * It is used in order to make common interface to Preference manager in Salome
15 * and this application
21 * Add preference item into preference dialog box
22 * \param theLbl - label of the item
23 * \param pId - id of container item
24 * \param theType - type of the item
25 * \param theSection - resouce section name
26 * \param theName - name of the resource
27 * Returns Id of the ctreated item
29 virtual int addPreference(const QString& theLbl, int pId,
30 SUIT_PreferenceMgr::PrefItemType theType,
31 const QString& theSection, const QString& theName ) = 0;
33 /// Returns incapsulated preference manager
34 virtual SUIT_PreferenceMgr* prefMgr() const = 0;