]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
rnc: A slight modification in order to allow the validation of any action by pressing...
authorgdd <gdd>
Tue, 28 Jun 2011 13:43:22 +0000 (13:43 +0000)
committergdd <gdd>
Tue, 28 Jun 2011 13:43:22 +0000 (13:43 +0000)
src/EntityGUI/EntityGUI_SketcherDlg.cxx

index 92e9edfc23e7e07b1e34176bb454fb215015ffbc..923e5e973ce93300ea410fc2bf5385f06a4e3011 100644 (file)
@@ -1352,9 +1352,6 @@ void EntityGUI_SketcherDlg::SelectionIntoArgument()
       }
     }
   }
-
-
-
   GEOMBase_Helper::displayPreview( true, false, true, true, myLineWidth );
 }
 
@@ -1473,7 +1470,7 @@ void EntityGUI_SketcherDlg::ActivateThisDialog()
      myEditCurrentArgument = Group2Sel->LineEdit2;
      myEditCurrentArgument->setFocus();
    }
-
+   
   GEOMBase_Helper::displayPreview( true, false, true, true, myLineWidth );
 }
 
@@ -1502,7 +1499,6 @@ void EntityGUI_SketcherDlg::closeEvent( QCloseEvent* e )
   QDialog::closeEvent( e );
 }
 
-//rnc TODO
 //=================================================================================
 // function : OnPointSelected
 // purpose  :
@@ -1513,7 +1509,7 @@ void EntityGUI_SketcherDlg::OnPointSelected(Qt::KeyboardModifiers modifiers, con
   switch (getPnt2ConstructorId()){
     case 1:
       Group2Spin->SpinBox_DX->setValue( thePnt.X() );
-      Group2Spin->SpinBox_DY->setValue( thePnt.Y() ); 
+      Group2Spin->SpinBox_DY->setValue( thePnt.Y() );
       break;
     case 0:
       Group3Spin->SpinBox_DX->setValue( thePnt.X() );
@@ -1819,7 +1815,7 @@ void EntityGUI_SketcherDlg::ValueChangedInSpinBox( double newValue )
     }
   }
 
-  GEOMBase_Helper::displayPreview( true, false, true, true, myLineWidth );
+  GEOMBase_Helper::displayPreview( true, false, true, true, myLineWidth ); 
 }
 
 
@@ -2139,31 +2135,38 @@ bool EntityGUI_SketcherDlg::execute( ObjectList& objects )
 
     if ( Group1Sel->isVisible() ) {
       Group1Sel->buttonApply->setEnabled( true );
-      //Group1Sel->buttonApply->setFocus();
+      this->activateWindow();
+      Group1Sel->buttonApply->setFocus();
     }
     if ( Group2Sel->isVisible() ) {
       Group2Sel->buttonApply->setEnabled( true );
-      //Group2Sel->buttonApply->setFocus();
+      this->activateWindow();
+      Group2Sel->buttonApply->setFocus();
     }
     if ( Group1Sel1Spin->isVisible() ) {
       Group1Sel1Spin->buttonApply->setEnabled( true );
-      //Group1Sel1Spin->buttonApply->setFocus();
+      this->activateWindow();
+      Group1Sel1Spin->buttonApply->setFocus();
     }
     if ( Group1Spin->isVisible() ) {
       Group1Spin->buttonApply->setEnabled( true );
-      //Group1Spin->buttonApply->setFocus();
+      this->activateWindow();
+      Group1Spin->buttonApply->setFocus();
     }
     if ( Group2Spin->isVisible() ) {
       Group2Spin->buttonApply->setEnabled( true );
-      //Group2Spin->buttonApply->setFocus();
+      this->activateWindow();
+      Group2Spin->buttonApply->setFocus();
     }
     if ( Group3Spin->isVisible() ) {
       Group3Spin->buttonApply->setEnabled( true );
-      //Group3Spin->buttonApply->setFocus();
+      this->activateWindow();
+      Group3Spin->buttonApply->setFocus();
     }
     if ( Group4Spin->isVisible() ) {
       Group4Spin->buttonApply->setEnabled( true );
-      //Group4Spin->buttonApply->setFocus();
+      this->activateWindow();
+      Group4Spin->buttonApply->setFocus();
     }
   }