Salome HOME
minor corrections for correct compilation
[modules/gui.git] / src / SalomeApp / SalomeApp_Preferences.cxx
index e6c59a030b279080cc0d686d74a25daca8039768..d48cf410bdab02175bead80f32a8bfd2bad636b2 100755 (executable)
@@ -7,21 +7,33 @@
 
 #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 )
 {
@@ -31,6 +43,9 @@ int SalomeApp_Preferences::addPreference( const QString& mod, const QString& lab
   return id;
 }
 
+/*!
+  Checks: is preferences has module with name \a mod.
+*/
 bool SalomeApp_Preferences::hasModule( const QString& mod ) const
 {
   bool res = false;
@@ -39,15 +54,18 @@ bool SalomeApp_Preferences::hasModule( const QString& mod ) const
   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 )
@@ -59,6 +77,7 @@ void SalomeApp_Preferences::changedResources( const QMap<Item*, QString>& map )
   }
 }
 
+/*!Gets module name by \a id, if exist.*/
 QString SalomeApp_Preferences::module( const int id ) const
 {
   QString mod;