Salome HOME
Merge remote-tracking branch 'origin/vsr/fix_single_study_pb' into pre/fix_single_study
[modules/gui.git] / src / Qtx / QtxMRUAction.cxx
index d6f6f3d11f7972467e2ede927e7fccebb733948f..520cea17aa6c00e03f5eec2faf5c078e85948b88 100755 (executable)
@@ -1,24 +1,25 @@
-//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
 //
-//  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+// Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
 //
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of the GNU Lesser General Public
-//  License as published by the Free Software Foundation; either
-//  version 2.1 of the License.
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
 //
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
 // File:      QtxMRUAction.cxx
 // Author:    Sergey TELKOV
 //
@@ -378,7 +379,7 @@ void QtxMRUAction::saveLinks( QtxResourceMgr* resMgr, const QString& section, co
     for ( QStringList::const_iterator it = items.begin(); it != items.end(); ++it )
     {
       if ( (*it).startsWith( itemPrefix ) )
-       resMgr->remove( section, *it );
+        resMgr->remove( section, *it );
     }
   }
 
@@ -408,8 +409,8 @@ void QtxMRUAction::saveLinks( QtxResourceMgr* resMgr, const QString& section, co
 
   int counter = 0;
   for ( QStringList::const_iterator iter = lst.begin();
-       iter != lst.end() && ( myHistoryCount < 0 || counter < myHistoryCount );
-       ++iter, counter++ )
+        iter != lst.end() && ( myHistoryCount < 0 || counter < myHistoryCount );
+        ++iter, counter++ )
     resMgr->setValue( section, itemPrefix + QString().sprintf( "%03d", counter ), *iter );
 }
 
@@ -467,9 +468,9 @@ void QtxMRUAction::updateMenu()
     {
       QString shortName = Qtx::file( myLinks[i] );
       if ( map.contains( shortName ) )
-       map[shortName]++;
+        map[shortName]++;
       else
-       map.insert( shortName, 0 );
+        map.insert( shortName, 0 );
     }
   }
 
@@ -482,7 +483,7 @@ void QtxMRUAction::updateMenu()
     case LinkAuto:
       linkName = Qtx::file( *it );
       if ( map.contains( linkName ) && map[linkName] )
-       linkName = *it;
+        linkName = *it;
       break;
     case LinkShort:
       linkName = Qtx::file( *it );