#include <qlayout.h>
+/*!
+ Constructor.Initialize by resource manager and parent QWidget.
+*/
SalomeApp_Preferences::SalomeApp_Preferences( QtxResourceMgr* resMgr, QWidget* parent )
: QtxListResourceEdit( resMgr, parent )
{
}
+/*!
+ Destructor.
+*/
SalomeApp_Preferences::~SalomeApp_Preferences()
{
}
+/*!
+ Adds preference.
+*/
int SalomeApp_Preferences::addPreference( const QString& label, const int pId, const int type,
const QString& section, const QString& param )
{
return addItem( label, pId, type, section, param );
}
+/*!
+ Adds preference.
+*/
int SalomeApp_Preferences::addPreference( const QString& mod, const QString& label, const int pId,
const int type, const QString& section, const QString& param )
{
return id;
}
+/*!
+ Checks: is preferences has module with name \a mod.
+*/
bool SalomeApp_Preferences::hasModule( const QString& mod ) const
{
bool res = false;
return res;
}
+/*!Do nothing.*/
void SalomeApp_Preferences::onHelp()
{
}
+/*!Store preferences on apply.*/
void SalomeApp_Preferences::onApply()
{
store();
}
+/*!Emit preference changed.*/
void SalomeApp_Preferences::changedResources( const QMap<Item*, QString>& map )
{
for ( QMap<Item*, QString>::ConstIterator it = map.begin(); it != map.end(); ++it )
}
}
+/*!Gets module name by \a id, if exist.*/
QString SalomeApp_Preferences::module( const int id ) const
{
QString mod;