Add option to disable rotation center indication
This commit is contained in:
@@ -86,6 +86,7 @@ void DlgSettingsNavigation::saveSettings()
|
||||
ui->checkBoxZoomAtCursor->onSave();
|
||||
ui->checkBoxInvertZoom->onSave();
|
||||
ui->checkBoxDisableTilt->onSave();
|
||||
ui->checkBoxShowRotationCenter->onSave();
|
||||
ui->spinBoxZoomStep->onSave();
|
||||
ui->checkBoxUseAutoRotation->onSave();
|
||||
ui->qspinNewDocScale->onSave();
|
||||
@@ -122,6 +123,7 @@ void DlgSettingsNavigation::loadSettings()
|
||||
ui->checkBoxZoomAtCursor->onRestore();
|
||||
ui->checkBoxInvertZoom->onRestore();
|
||||
ui->checkBoxDisableTilt->onRestore();
|
||||
ui->checkBoxShowRotationCenter->onRestore();
|
||||
ui->spinBoxZoomStep->onRestore();
|
||||
ui->checkBoxUseAutoRotation->onRestore();
|
||||
ui->qspinNewDocScale->onRestore();
|
||||
|
||||
@@ -615,6 +615,25 @@ Mouse tilting is not disabled by this setting.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="checkBoxShowRotationCenter">
|
||||
<property name="toolTip">
|
||||
<string>Show the rotation center when dragging.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Enable rotation center indication</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>ShowRotationCenter</cstring>
|
||||
</property>
|
||||
<property name="prefPath" stdset="0">
|
||||
<cstring>View</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
<FCInt Name="CornerCoordSystemSize" Value="10"/>
|
||||
<FCBool Name="CheckBoxSelectionCheckBoxes" Value="1"/>
|
||||
<FCBool Name="InvertZoom" Value="1"/>
|
||||
<FCBool Name="ShowRotationCenter" Value="1"/>
|
||||
<FCInt Name="NaviStepByTurn" Value="8"/>
|
||||
<FCText Name="NavigationStyle">Gui::CADNavigationStyle</FCText>
|
||||
<FCInt Name="OrbitStyle" Value="1"/>
|
||||
|
||||
@@ -1278,7 +1278,11 @@ void View3DInventorViewer::showRotationCenter(bool show)
|
||||
SoNode* scene = getSceneGraph();
|
||||
auto sep = static_cast<SoSeparator*>(scene);
|
||||
|
||||
if (show) {
|
||||
bool showEnabled = App::GetApplication()
|
||||
.GetParameterGroupByPath("User parameter:BaseApp/Preferences/View")
|
||||
->GetBool("ShowRotationCenter", true);
|
||||
|
||||
if (show && showEnabled) {
|
||||
SbBool found;
|
||||
SbVec3f center = navigation->getRotationCenter(found);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user