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 );
}
::Initialize(SVTK_RenderWindowInteractor* theInteractor)
{
SVTK_MainWindow::Initialize(theInteractor);
- PushInteractorStyle(myInteractorStyle.GetPointer());
}
VVTK_MainWindow
"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,
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() );
}
theResourceMgr,
thePickingSettings,
myStyleSwitchAction);
- //myMainWindow2->hide();
return myMainWindow2;
}