1 // File: SalomeApp_Preferences.h
2 // Author: Sergey TELKOV
4 #ifndef SALOMEAPP_PREFERENCES_H
5 #define SALOMEAPP_PREFERENCES_H
10 #include <QtxListResourceEdit.h>
16 class SALOMEAPP_EXPORT SalomeApp_Preferences : public QtxListResourceEdit
21 SalomeApp_Preferences( QtxResourceMgr*, QWidget* = 0 );
22 virtual ~SalomeApp_Preferences();
24 int addPreference( const QString& label, const int pId = -1, const int = -1,
25 const QString& section = QString::null, const QString& param = QString::null );
26 int addPreference( const QString& modName, const QString& label, const int pId = -1, const int = -1,
27 const QString& section = QString::null, const QString& param = QString::null );
29 bool hasModule( const QString& ) const;
32 void preferenceChanged( QString&, QString&, QString& );
37 virtual void changedResources( const QMap<Item*, QString>& );
40 QString module( const int ) const;
43 typedef QMap<int, QString> PrefModuleMap;
46 PrefModuleMap myPrefMod;