]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fixed bug GVIEW10476.
authorouv <ouv@opencascade.com>
Fri, 11 Nov 2005 07:31:20 +0000 (07:31 +0000)
committerouv <ouv@opencascade.com>
Fri, 11 Nov 2005 07:31:20 +0000 (07:31 +0000)
There should be a tab named "Mouse mode" in the File > Preference > Post-Pro
widget, where the user should be able to choose standard or gauss mouse mode
(with some infos of what each mode does : how to navigate, select...)

src/VISUGUI/VISUM_msg_en.po
src/VISUGUI/VisuGUI_Module.cxx
src/VVTK/VVTK_MainWindow.cxx

index 303fb4c17fb1a0eca5e76291dc5e78f679eefbda..aefad0c72611a631d069ad21f95ff160c681ab5c 100644 (file)
@@ -137,7 +137,7 @@ msgid "VisuGUI_Module::VISU_PICKING_PREF_DISPLAY_PARENT_MESH"
 msgstr "Display parent mesh element"
 
 msgid "VisuGUI_Module::VISU_MOUSE_PREF_TAB_TLT"
-msgstr "Spacemouse"
+msgstr "Navigation"
 
 msgid "VisuGUI_Module::VISU_MOUSE_PREF_GROUP_TLT"
 msgstr "Mouse"
index 344c042e1d84730fe38a05ed5d57b895b310d078..78f3430d8743e72fc2c02dce31c56a9673d918dd 100644 (file)
@@ -598,10 +598,6 @@ VisuGUI_Module
   setPreferenceProperty( spacemousePref4, "indexes", indices );
   setPreferenceProperty( spacemousePref5, "strings", values );
   setPreferenceProperty( spacemousePref5, "indexes", indices );
-
-  int cameraGr = addPreference( tr( "VISU_CAMERA_PREF_GROUP_TTL" ), mouseTab );
-  int cameraPref = addPreference( tr( "VISU_CAMERA_MOVE_PREF" ), cameraGr, SalomeApp_Preferences::IntSpin, "VISU", "camera_movement_steps" );
-  setPreferenceProperty( cameraPref,  "max",  1000  );
 }
 
 
index c0b4e76a521f4a6fb7570531908eb2dfb2633368..baba86082ffddc552f9cb995ebaac87ca09c0e7c 100644 (file)
@@ -62,7 +62,6 @@ VVTK_MainWindow
 ::Initialize(SVTK_RenderWindowInteractor* theInteractor)
 {
   SVTK_MainWindow::Initialize(theInteractor);
-  PushInteractorStyle(myInteractorStyle.GetPointer());
 }
 
 VVTK_MainWindow
@@ -133,12 +132,14 @@ VVTK_MainWindow1
                           "VVTK/SVTK StyleSwitch", 
                           true);
   anAction->setToggleAction(true);
-  anAction->toggle();
   anAction->setStatusTip(tr("DSC_VVTK_INTERACTOR_STYLE_SWITCH"));
-  connect(anAction, SIGNAL(toggled(bool)), this, SLOT(OnInteractorStyleSwitch(bool)));
+
   anAction->addTo( myPtsToolBar );
   myStyleSwitchAction = anAction;
 
+  if( theResourceMgr->integerValue( "VISU", "mouse_behaviour", true ) == 1 )
+    myStyleSwitchAction->toggle();
+
   aPixmap = theResourceMgr->loadPixmap("VISU",tr("ICON_VVTK_SELECTION_MODE_SWITCH"));
   anAction = new QtxAction(tr("MNU_VVTK_SELECTION_MODE_SWITCH"), 
                           aPixmap,
@@ -181,6 +182,10 @@ VVTK_MainWindow1
   myRenderer = theRenderer;
   VVTK_MainWindow::Initialize(theInteractor);
 
+  if( myStyleSwitchAction->isOn() )
+    PushInteractorStyle(myInteractorStyle.GetPointer());
+  connect(myStyleSwitchAction, SIGNAL(toggled(bool)), this, SLOT(OnInteractorStyleSwitch(bool)));
+
   mySegmentationCursorDlg->SetWidget( theRenderer->GetImplicitFunctionWidget() );
   myPickingDlg->SetInteractor( GetInteractor() );
 }
@@ -203,7 +208,6 @@ VVTK_MainWindow1
                                       theResourceMgr,
                                       thePickingSettings,
                                       myStyleSwitchAction);
-  //myMainWindow2->hide();
   return myMainWindow2;
 }