Salome HOME
PAL10125 - by double click on reference original object becomes selected
[modules/gui.git] / src / SUIT / SUIT_ViewModel.cxx
index daaf0edfa8d3b0d1aa52a2ead2609ae5446bc149..cbf1194a5b12740e7f0946220d932e151d851ae0 100755 (executable)
@@ -4,14 +4,12 @@
 
 #include "SUIT_ViewModel.h"
 
-//////////////////////////////////////////////////////////////////////
-// Construction/Destruction
-//////////////////////////////////////////////////////////////////////
 SUIT_ViewModel::StatesMap SUIT_ViewModel::myStateMap;
 SUIT_ViewModel::ButtonsMap SUIT_ViewModel::myButtonMap;
 
 static bool isInitialized = false;
 
+/*!Constructor.*/
 SUIT_ViewModel::SUIT_ViewModel()
 {
   if (!isInitialized) {
@@ -32,27 +30,38 @@ SUIT_ViewModel::SUIT_ViewModel()
   myViewManager = 0;
 }
 
+/*!Destructor..*/
 SUIT_ViewModel::~SUIT_ViewModel()
 {
 }
 
-//***************************************************************
+/*!Create new instance of view window on desktop \a theDesktop.
+ *\retval SUIT_ViewWindow* - created view window pointer.
+ */
 SUIT_ViewWindow* SUIT_ViewModel::createView(SUIT_Desktop* theDesktop)
 {
   return new SUIT_ViewWindow(theDesktop);
 }
 
-//*********************************************************************
+/*! Sets hot button
+ *\param theOper - hot operation
+ *\param theState - adding state to state map operations.
+ *\param theButton - adding state to button map operations.
+ */
 void SUIT_ViewModel::setHotButton(HotOperation theOper, Qt::ButtonState theState,
-             Qt::ButtonState theButton)
+                                 Qt::ButtonState theButton)
 {
   myStateMap[theOper]  = theState;
   myButtonMap[theOper] = theButton;
 }
 
-//*********************************************************************
+/*! Gets hot button for operation \a theOper.
+ *\param theOper - input hot operation
+ *\param theState - output state from state map operations.
+ *\param theButton - output state from button map operations.
+*/
 void SUIT_ViewModel::getHotButton(HotOperation theOper, Qt::ButtonState& theState,
-             Qt::ButtonState& theButton)
+                                 Qt::ButtonState& theButton)
 {
   theState  = myStateMap[theOper];
   theButton = myButtonMap[theOper];