Add preference for OVP visibility.
This commit is contained in:
@@ -117,6 +117,12 @@ void SketcherSettings::saveSettings()
|
||||
}
|
||||
hGrp->SetBool("DimensioningDiameter", Diameter);
|
||||
hGrp->SetBool("DimensioningRadius", Radius);
|
||||
|
||||
hGrp = App::GetApplication().GetParameterGroupByPath(
|
||||
"User parameter:BaseApp/Preferences/Mod/Sketcher/Tools");
|
||||
|
||||
index = ui->ovpVisibility->currentIndex();
|
||||
hGrp->SetInt("OnViewParameterVisibility", index);
|
||||
}
|
||||
|
||||
void SketcherSettings::loadSettings()
|
||||
@@ -157,6 +163,16 @@ void SketcherSettings::loadSettings()
|
||||
bool Radius = hGrp->GetBool("DimensioningRadius", true);
|
||||
index = Diameter ? (Radius ? 0 : 1) : 2;
|
||||
ui->radiusDiameterMode->setCurrentIndex(index);
|
||||
|
||||
hGrp = App::GetApplication().GetParameterGroupByPath(
|
||||
"User parameter:BaseApp/Preferences/Mod/Sketcher/Tools");
|
||||
ui->ovpVisibility->clear();
|
||||
ui->ovpVisibility->addItem(tr("Disabled"));
|
||||
ui->ovpVisibility->addItem(tr("Only dimensional"));
|
||||
ui->ovpVisibility->addItem(tr("All"));
|
||||
|
||||
index = hGrp->GetInt("OnViewParameterVisibility", 1);
|
||||
ui->ovpVisibility->setCurrentIndex(index);
|
||||
}
|
||||
|
||||
void SketcherSettings::dimensioningModeChanged(int index)
|
||||
|
||||
@@ -213,6 +213,38 @@ This setting is only for the toolbar. Whichever you chose, all tools are always
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QGroupBox" name="groupBox_6">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Minimum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Tool Parameters</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_general">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="ovpVisibilityLabel">
|
||||
<property name="text">
|
||||
<string> On-View-Parameters :</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QComboBox" name="ovpVisibility">
|
||||
<property name="toolTip">
|
||||
<string>Choose a visibility mode for the On-View-Parameters:
|
||||
'Disabled': On-View-Parameters are completely disabled.
|
||||
'Only dimensional': Only dimensional On-View-Parameters are visible. They are the most useful. For example the radius of a circle.
|
||||
'All': Both dimensional and positional On-View-Parameters. Positionals are the (x,y) position of the cursor. For example for the center of a circle.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
|
||||
Reference in New Issue
Block a user