Salome HOME
Make property panel as a GUI of an operation
[modules/shaper.git] / src / XGUI / XGUI_IPrefMgr.h
1 // File:        XGUI_IPrefMgr.h
2 // Created:     10 Sept 2014
3 // Author:      Vitaly SMETANNIKOV
4
5
6 #ifndef XGUI_IPrefMgr_H
7 #define XGUI_IPrefMgr_H
8
9 #include <QString>
10 #include <SUIT_PreferenceMgr.h>
11
12 /** 
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
16 */
17 class XGUI_IPrefMgr
18 {
19 public:
20   /** 
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
28   */
29   virtual int addPreference(const QString& theLbl, int pId, 
30                             SUIT_PreferenceMgr::PrefItemType theType,
31                             const QString& theSection, const QString& theName ) = 0;
32
33   /// Returns incapsulated preference manager
34   virtual SUIT_PreferenceMgr* prefMgr() const = 0;
35 };
36
37 #endif