+ move sketcher related settings into own page
This commit is contained in:
parent
0bcd95416a
commit
2aaa63c5eb
|
@ -60,24 +60,6 @@ void DlgSettingsObjectColor::saveSettings()
|
||||||
DefaultShapeVertexColor->onSave();
|
DefaultShapeVertexColor->onSave();
|
||||||
DefaultShapeVertexWidth->onSave();
|
DefaultShapeVertexWidth->onSave();
|
||||||
BoundingBoxColor->onSave();
|
BoundingBoxColor->onSave();
|
||||||
|
|
||||||
// Sketcher
|
|
||||||
SketchEdgeColor->onSave();
|
|
||||||
SketchVertexColor->onSave();
|
|
||||||
EditedEdgeColor->onSave();
|
|
||||||
EditedVertexColor->onSave();
|
|
||||||
ConstructionColor->onSave();
|
|
||||||
FullyConstrainedColor->onSave();
|
|
||||||
|
|
||||||
ConstrainedColor->onSave();
|
|
||||||
DatumColor->onSave();
|
|
||||||
|
|
||||||
SketcherDatumWidth->onSave();
|
|
||||||
DefaultSketcherVertexWidth->onSave();
|
|
||||||
DefaultSketcherLineWidth->onSave();
|
|
||||||
|
|
||||||
CursorTextColor->onSave();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DlgSettingsObjectColor::loadSettings()
|
void DlgSettingsObjectColor::loadSettings()
|
||||||
|
@ -89,23 +71,6 @@ void DlgSettingsObjectColor::loadSettings()
|
||||||
DefaultShapeVertexColor->onRestore();
|
DefaultShapeVertexColor->onRestore();
|
||||||
DefaultShapeVertexWidth->onRestore();
|
DefaultShapeVertexWidth->onRestore();
|
||||||
BoundingBoxColor->onRestore();
|
BoundingBoxColor->onRestore();
|
||||||
|
|
||||||
// Sketcher
|
|
||||||
SketchEdgeColor->onRestore();
|
|
||||||
SketchVertexColor->onRestore();
|
|
||||||
EditedEdgeColor->onRestore();
|
|
||||||
EditedVertexColor->onRestore();
|
|
||||||
ConstructionColor->onRestore();
|
|
||||||
FullyConstrainedColor->onRestore();
|
|
||||||
|
|
||||||
ConstrainedColor->onRestore();
|
|
||||||
DatumColor->onRestore();
|
|
||||||
|
|
||||||
SketcherDatumWidth->onRestore();
|
|
||||||
DefaultSketcherVertexWidth->onRestore();
|
|
||||||
DefaultSketcherLineWidth->onRestore();
|
|
||||||
|
|
||||||
CursorTextColor->onRestore();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>359</width>
|
<width>359</width>
|
||||||
<height>834</height>
|
<height>282</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>The default color for new shapes</string>
|
<string>The default color for new shapes</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="color" stdset="0">
|
<property name="color">
|
||||||
<color>
|
<color>
|
||||||
<red>204</red>
|
<red>204</red>
|
||||||
<green>204</green>
|
<green>204</green>
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>The default line color for new shapes</string>
|
<string>The default line color for new shapes</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="color" stdset="0">
|
<property name="color">
|
||||||
<color>
|
<color>
|
||||||
<red>25</red>
|
<red>25</red>
|
||||||
<green>25</green>
|
<green>25</green>
|
||||||
|
@ -141,7 +141,7 @@
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>The default line color for new shapes</string>
|
<string>The default line color for new shapes</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="color" stdset="0">
|
<property name="color">
|
||||||
<color>
|
<color>
|
||||||
<red>25</red>
|
<red>25</red>
|
||||||
<green>25</green>
|
<green>25</green>
|
||||||
|
@ -209,7 +209,7 @@
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>The color of bounding boxes in the 3D view</string>
|
<string>The color of bounding boxes in the 3D view</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="color" stdset="0">
|
<property name="color">
|
||||||
<color>
|
<color>
|
||||||
<red>255</red>
|
<red>255</red>
|
||||||
<green>255</green>
|
<green>255</green>
|
||||||
|
@ -242,431 +242,6 @@
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QGroupBox" name="groupBoxSketcherColor">
|
|
||||||
<property name="title">
|
|
||||||
<string>Sketcher colors</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
||||||
<item>
|
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QLabel" name="label_17">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>182</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Default edge color</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="1">
|
|
||||||
<widget class="Gui::PrefColorButton" name="SketchEdgeColor">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>The color of edges being edited</string>
|
|
||||||
</property>
|
|
||||||
<property name="color" stdset="0">
|
|
||||||
<color>
|
|
||||||
<red>255</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</property>
|
|
||||||
<property name="prefEntry" stdset="0">
|
|
||||||
<cstring>SketchEdgeColor</cstring>
|
|
||||||
</property>
|
|
||||||
<property name="prefPath" stdset="0">
|
|
||||||
<cstring>View</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0">
|
|
||||||
<widget class="QLabel" name="label_18">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>182</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Default vertex color</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1">
|
|
||||||
<widget class="Gui::PrefColorButton" name="SketchVertexColor">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>The color of vertices being edited</string>
|
|
||||||
</property>
|
|
||||||
<property name="color" stdset="0">
|
|
||||||
<color>
|
|
||||||
<red>255</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</property>
|
|
||||||
<property name="prefEntry" stdset="0">
|
|
||||||
<cstring>SketchVertexColor</cstring>
|
|
||||||
</property>
|
|
||||||
<property name="prefPath" stdset="0">
|
|
||||||
<cstring>View</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0">
|
|
||||||
<widget class="QLabel" name="label">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>182</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Edit edge color</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="1">
|
|
||||||
<widget class="Gui::PrefColorButton" name="EditedEdgeColor">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>The color of edges being edited</string>
|
|
||||||
</property>
|
|
||||||
<property name="color" stdset="0">
|
|
||||||
<color>
|
|
||||||
<red>255</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</property>
|
|
||||||
<property name="prefEntry" stdset="0">
|
|
||||||
<cstring>EditedEdgeColor</cstring>
|
|
||||||
</property>
|
|
||||||
<property name="prefPath" stdset="0">
|
|
||||||
<cstring>View</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0">
|
|
||||||
<widget class="QLabel" name="label_2">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>182</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Edit vertex color</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="1">
|
|
||||||
<widget class="Gui::PrefColorButton" name="EditedVertexColor">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>The color of vertices being edited</string>
|
|
||||||
</property>
|
|
||||||
<property name="color" stdset="0">
|
|
||||||
<color>
|
|
||||||
<red>255</red>
|
|
||||||
<green>38</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</property>
|
|
||||||
<property name="prefEntry" stdset="0">
|
|
||||||
<cstring>EditedVertexColor</cstring>
|
|
||||||
</property>
|
|
||||||
<property name="prefPath" stdset="0">
|
|
||||||
<cstring>View</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="0">
|
|
||||||
<widget class="QLabel" name="label_3">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>182</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Construction geometry</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="1">
|
|
||||||
<widget class="Gui::PrefColorButton" name="ConstructionColor">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>The color of construction geometry in edit mode</string>
|
|
||||||
</property>
|
|
||||||
<property name="color" stdset="0">
|
|
||||||
<color>
|
|
||||||
<red>0</red>
|
|
||||||
<green>0</green>
|
|
||||||
<blue>220</blue>
|
|
||||||
</color>
|
|
||||||
</property>
|
|
||||||
<property name="prefEntry" stdset="0">
|
|
||||||
<cstring>ConstructionColor</cstring>
|
|
||||||
</property>
|
|
||||||
<property name="prefPath" stdset="0">
|
|
||||||
<cstring>View</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="0">
|
|
||||||
<widget class="QLabel" name="label_4">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>182</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Fully constrained geometry</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="1">
|
|
||||||
<widget class="Gui::PrefColorButton" name="FullyConstrainedColor">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>The color of fully constrained geometry in edit mode</string>
|
|
||||||
</property>
|
|
||||||
<property name="color" stdset="0">
|
|
||||||
<color>
|
|
||||||
<red>0</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</property>
|
|
||||||
<property name="prefEntry" stdset="0">
|
|
||||||
<cstring>FullyConstrainedColor</cstring>
|
|
||||||
</property>
|
|
||||||
<property name="prefPath" stdset="0">
|
|
||||||
<cstring>View</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="6" column="0">
|
|
||||||
<widget class="QLabel" name="label_14">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>182</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Constrain color</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="6" column="1">
|
|
||||||
<widget class="Gui::PrefColorButton" name="ConstrainedColor">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>The color of fully constrained geometry in edit mode</string>
|
|
||||||
</property>
|
|
||||||
<property name="color" stdset="0">
|
|
||||||
<color>
|
|
||||||
<red>0</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</property>
|
|
||||||
<property name="prefEntry" stdset="0">
|
|
||||||
<cstring>ConstrainedColor</cstring>
|
|
||||||
</property>
|
|
||||||
<property name="prefPath" stdset="0">
|
|
||||||
<cstring>View</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="7" column="0">
|
|
||||||
<widget class="QLabel" name="label_15">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>182</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Datum color</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="7" column="1">
|
|
||||||
<widget class="Gui::PrefColorButton" name="DatumColor">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>The color of fully constrained geometry in edit mode</string>
|
|
||||||
</property>
|
|
||||||
<property name="color" stdset="0">
|
|
||||||
<color>
|
|
||||||
<red>0</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</property>
|
|
||||||
<property name="prefEntry" stdset="0">
|
|
||||||
<cstring>DatumColor</cstring>
|
|
||||||
</property>
|
|
||||||
<property name="prefPath" stdset="0">
|
|
||||||
<cstring>View</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="8" column="0">
|
|
||||||
<widget class="QLabel" name="label_16">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>182</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Datum text size</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="8" column="1">
|
|
||||||
<widget class="Gui::PrefSpinBox" name="SketcherDatumWidth">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>The default line thickness for new shapes</string>
|
|
||||||
</property>
|
|
||||||
<property name="suffix">
|
|
||||||
<string>px</string>
|
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<property name="value">
|
|
||||||
<number>2</number>
|
|
||||||
</property>
|
|
||||||
<property name="prefEntry" stdset="0">
|
|
||||||
<cstring>DefaultSketcherVertexWidth</cstring>
|
|
||||||
</property>
|
|
||||||
<property name="prefPath" stdset="0">
|
|
||||||
<cstring>View</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="9" column="0">
|
|
||||||
<widget class="QLabel" name="label_12">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>182</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Default vertex size</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="9" column="1">
|
|
||||||
<widget class="Gui::PrefSpinBox" name="DefaultSketcherVertexWidth">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>The default line thickness for new shapes</string>
|
|
||||||
</property>
|
|
||||||
<property name="suffix">
|
|
||||||
<string>px</string>
|
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<property name="value">
|
|
||||||
<number>2</number>
|
|
||||||
</property>
|
|
||||||
<property name="prefEntry" stdset="0">
|
|
||||||
<cstring>DefaultSketcherVertexWidth</cstring>
|
|
||||||
</property>
|
|
||||||
<property name="prefPath" stdset="0">
|
|
||||||
<cstring>View</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="10" column="0">
|
|
||||||
<widget class="QLabel" name="label_13">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>182</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Default line width</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="10" column="1">
|
|
||||||
<widget class="Gui::PrefSpinBox" name="DefaultSketcherLineWidth">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>The default line thickness for new shapes</string>
|
|
||||||
</property>
|
|
||||||
<property name="suffix">
|
|
||||||
<string>px</string>
|
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<property name="value">
|
|
||||||
<number>2</number>
|
|
||||||
</property>
|
|
||||||
<property name="prefEntry" stdset="0">
|
|
||||||
<cstring>DefaultShapeLineWidth</cstring>
|
|
||||||
</property>
|
|
||||||
<property name="prefPath" stdset="0">
|
|
||||||
<cstring>View</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="11" column="0">
|
|
||||||
<widget class="QLabel" name="label_5">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>182</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Cursor text color</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="11" column="1">
|
|
||||||
<widget class="Gui::PrefColorButton" name="CursorTextColor">
|
|
||||||
<property name="color" stdset="0">
|
|
||||||
<color>
|
|
||||||
<red>0</red>
|
|
||||||
<green>0</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</property>
|
|
||||||
<property name="prefEntry" stdset="0">
|
|
||||||
<cstring>CursorTextColor</cstring>
|
|
||||||
</property>
|
|
||||||
<property name="prefPath" stdset="0">
|
|
||||||
<cstring>View</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="horizontalSpacer_2">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>74</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<spacer name="verticalSpacer">
|
<spacer name="verticalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
@ -703,11 +278,6 @@
|
||||||
<tabstop>DefaultShapeColor</tabstop>
|
<tabstop>DefaultShapeColor</tabstop>
|
||||||
<tabstop>DefaultShapeLineWidth</tabstop>
|
<tabstop>DefaultShapeLineWidth</tabstop>
|
||||||
<tabstop>DefaultShapeLineColor</tabstop>
|
<tabstop>DefaultShapeLineColor</tabstop>
|
||||||
<tabstop>CursorTextColor</tabstop>
|
|
||||||
<tabstop>EditedEdgeColor</tabstop>
|
|
||||||
<tabstop>EditedVertexColor</tabstop>
|
|
||||||
<tabstop>ConstructionColor</tabstop>
|
|
||||||
<tabstop>FullyConstrainedColor</tabstop>
|
|
||||||
<tabstop>BoundingBoxColor</tabstop>
|
<tabstop>BoundingBoxColor</tabstop>
|
||||||
</tabstops>
|
</tabstops>
|
||||||
<resources/>
|
<resources/>
|
||||||
|
|
|
@ -30,11 +30,13 @@
|
||||||
#include <Base/Interpreter.h>
|
#include <Base/Interpreter.h>
|
||||||
#include <Gui/Application.h>
|
#include <Gui/Application.h>
|
||||||
#include <Gui/Language/Translator.h>
|
#include <Gui/Language/Translator.h>
|
||||||
|
#include <Gui/WidgetFactory.h>
|
||||||
#include "Workbench.h"
|
#include "Workbench.h"
|
||||||
#include "ViewProviderSketch.h"
|
#include "ViewProviderSketch.h"
|
||||||
#include "ViewProviderPython.h"
|
#include "ViewProviderPython.h"
|
||||||
#include "SoDatumLabel.h"
|
#include "SoDatumLabel.h"
|
||||||
#include "SoZoomTranslation.h"
|
#include "SoZoomTranslation.h"
|
||||||
|
#include "SketcherSettings.h"
|
||||||
|
|
||||||
// create the commands
|
// create the commands
|
||||||
void CreateSketcherCommands(void);
|
void CreateSketcherCommands(void);
|
||||||
|
@ -89,6 +91,8 @@ void SketcherGuiExport initSketcherGui()
|
||||||
SketcherGui::SoDatumLabel ::initClass();
|
SketcherGui::SoDatumLabel ::initClass();
|
||||||
SketcherGui::SoZoomTranslation ::initClass();
|
SketcherGui::SoZoomTranslation ::initClass();
|
||||||
|
|
||||||
|
(void)new Gui::PrefPageProducer<SketcherGui::SketcherSettings> ( QT_TRANSLATE_NOOP("QObject","Display") );
|
||||||
|
|
||||||
// add resources and reloads the translators
|
// add resources and reloads the translators
|
||||||
loadSketcherResource();
|
loadSketcherResource();
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,7 @@ set(SketcherGui_MOC_HDRS
|
||||||
TaskSketcherValidation.h
|
TaskSketcherValidation.h
|
||||||
TaskDlgEditSketch.h
|
TaskDlgEditSketch.h
|
||||||
SketchOrientationDialog.h
|
SketchOrientationDialog.h
|
||||||
|
SketcherSettings.h
|
||||||
)
|
)
|
||||||
fc_wrap_cpp(SketcherGui_MOC_SRCS ${SketcherGui_MOC_HDRS})
|
fc_wrap_cpp(SketcherGui_MOC_SRCS ${SketcherGui_MOC_HDRS})
|
||||||
SOURCE_GROUP("Moc" FILES ${SketcherGui_MOC_SRCS})
|
SOURCE_GROUP("Moc" FILES ${SketcherGui_MOC_SRCS})
|
||||||
|
@ -47,6 +48,7 @@ set(SketcherGui_UIC_SRCS
|
||||||
TaskSketcherValidation.ui
|
TaskSketcherValidation.ui
|
||||||
InsertDatum.ui
|
InsertDatum.ui
|
||||||
SketchOrientationDialog.ui
|
SketchOrientationDialog.ui
|
||||||
|
SketcherSettings.ui
|
||||||
)
|
)
|
||||||
qt4_wrap_ui(SketcherGui_UIC_HDRS ${SketcherGui_UIC_SRCS})
|
qt4_wrap_ui(SketcherGui_UIC_HDRS ${SketcherGui_UIC_SRCS})
|
||||||
|
|
||||||
|
@ -90,6 +92,8 @@ SET(SketcherGui_SRCS
|
||||||
EditDatumDialog.h
|
EditDatumDialog.h
|
||||||
SketchOrientationDialog.cpp
|
SketchOrientationDialog.cpp
|
||||||
SketchOrientationDialog.h
|
SketchOrientationDialog.h
|
||||||
|
SketcherSettings.cpp
|
||||||
|
SketcherSettings.h
|
||||||
TaskDlgEditSketch.cpp
|
TaskDlgEditSketch.cpp
|
||||||
TaskDlgEditSketch.h
|
TaskDlgEditSketch.h
|
||||||
ViewProviderPython.cpp
|
ViewProviderPython.cpp
|
||||||
|
|
105
src/Mod/Sketcher/Gui/SketcherSettings.cpp
Normal file
105
src/Mod/Sketcher/Gui/SketcherSettings.cpp
Normal file
|
@ -0,0 +1,105 @@
|
||||||
|
/***************************************************************************
|
||||||
|
* Copyright (c) 2014 Werner Mayer <wmayer[at]users.sourceforge.net> *
|
||||||
|
* *
|
||||||
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
|
* *
|
||||||
|
* This library is free software; you can redistribute it and/or *
|
||||||
|
* modify it under the terms of the GNU Library General Public *
|
||||||
|
* License as published by the Free Software Foundation; either *
|
||||||
|
* version 2 of the License, or (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
* This library is distributed in the hope that it will be useful, *
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
|
* GNU Library General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU Library General Public *
|
||||||
|
* License along with this library; see the file COPYING.LIB. If not, *
|
||||||
|
* write to the Free Software Foundation, Inc., 59 Temple Place, *
|
||||||
|
* Suite 330, Boston, MA 02111-1307, USA *
|
||||||
|
* *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
#include "PreCompiled.h"
|
||||||
|
|
||||||
|
#ifndef _PreComp_
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "SketcherSettings.h"
|
||||||
|
#include "ui_SketcherSettings.h"
|
||||||
|
#include <Gui/PrefWidgets.h>
|
||||||
|
|
||||||
|
using namespace SketcherGui;
|
||||||
|
|
||||||
|
/* TRANSLATOR SketcherGui::SketcherSettings */
|
||||||
|
|
||||||
|
SketcherSettings::SketcherSettings(QWidget* parent)
|
||||||
|
: PreferencePage(parent), ui(new Ui_SketcherSettings)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Destroys the object and frees any allocated resources
|
||||||
|
*/
|
||||||
|
SketcherSettings::~SketcherSettings()
|
||||||
|
{
|
||||||
|
// no need to delete child widgets, Qt does it all for us
|
||||||
|
}
|
||||||
|
|
||||||
|
void SketcherSettings::saveSettings()
|
||||||
|
{
|
||||||
|
// Sketcher
|
||||||
|
ui->SketchEdgeColor->onSave();
|
||||||
|
ui->SketchVertexColor->onSave();
|
||||||
|
ui->EditedEdgeColor->onSave();
|
||||||
|
ui->EditedVertexColor->onSave();
|
||||||
|
ui->ConstructionColor->onSave();
|
||||||
|
ui->FullyConstrainedColor->onSave();
|
||||||
|
|
||||||
|
ui->ConstrainedColor->onSave();
|
||||||
|
ui->DatumColor->onSave();
|
||||||
|
|
||||||
|
ui->SketcherDatumWidth->onSave();
|
||||||
|
ui->DefaultSketcherVertexWidth->onSave();
|
||||||
|
ui->DefaultSketcherLineWidth->onSave();
|
||||||
|
|
||||||
|
ui->CursorTextColor->onSave();
|
||||||
|
}
|
||||||
|
|
||||||
|
void SketcherSettings::loadSettings()
|
||||||
|
{
|
||||||
|
// Sketcher
|
||||||
|
ui->SketchEdgeColor->onRestore();
|
||||||
|
ui->SketchVertexColor->onRestore();
|
||||||
|
ui->EditedEdgeColor->onRestore();
|
||||||
|
ui->EditedVertexColor->onRestore();
|
||||||
|
ui->ConstructionColor->onRestore();
|
||||||
|
ui->FullyConstrainedColor->onRestore();
|
||||||
|
|
||||||
|
ui->ConstrainedColor->onRestore();
|
||||||
|
ui->DatumColor->onRestore();
|
||||||
|
|
||||||
|
ui->SketcherDatumWidth->onRestore();
|
||||||
|
ui->DefaultSketcherVertexWidth->onRestore();
|
||||||
|
ui->DefaultSketcherLineWidth->onRestore();
|
||||||
|
|
||||||
|
ui->CursorTextColor->onRestore();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the strings of the subwidgets using the current language.
|
||||||
|
*/
|
||||||
|
void SketcherSettings::changeEvent(QEvent *e)
|
||||||
|
{
|
||||||
|
if (e->type() == QEvent::LanguageChange) {
|
||||||
|
ui->retranslateUi(this);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
QWidget::changeEvent(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "moc_SketcherSettings.cpp"
|
||||||
|
|
55
src/Mod/Sketcher/Gui/SketcherSettings.h
Normal file
55
src/Mod/Sketcher/Gui/SketcherSettings.h
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
/***************************************************************************
|
||||||
|
* Copyright (c) 2014 Werner Mayer <wmayer[at]users.sourceforge.net> *
|
||||||
|
* *
|
||||||
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
|
* *
|
||||||
|
* This library is free software; you can redistribute it and/or *
|
||||||
|
* modify it under the terms of the GNU Library General Public *
|
||||||
|
* License as published by the Free Software Foundation; either *
|
||||||
|
* version 2 of the License, or (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
* This library is distributed in the hope that it will be useful, *
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
|
* GNU Library General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU Library General Public *
|
||||||
|
* License along with this library; see the file COPYING.LIB. If not, *
|
||||||
|
* write to the Free Software Foundation, Inc., 59 Temple Place, *
|
||||||
|
* Suite 330, Boston, MA 02111-1307, USA *
|
||||||
|
* *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef SKETCHERGUI_SKETCHERSETTINGS_H
|
||||||
|
#define SKETCHERGUI_SKETCHERSETTINGS_H
|
||||||
|
|
||||||
|
#include <Gui/PropertyPage.h>
|
||||||
|
|
||||||
|
namespace SketcherGui {
|
||||||
|
class Ui_SketcherSettings;
|
||||||
|
/**
|
||||||
|
* The SketcherSettings class implements a preference page to change sketcher settings.
|
||||||
|
* @author Werner Mayer
|
||||||
|
*/
|
||||||
|
class SketcherSettings : public Gui::Dialog::PreferencePage
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
SketcherSettings(QWidget* parent = 0);
|
||||||
|
~SketcherSettings();
|
||||||
|
|
||||||
|
void saveSettings();
|
||||||
|
void loadSettings();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void changeEvent(QEvent *e);
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui_SketcherSettings* ui;
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace SketcherGui
|
||||||
|
|
||||||
|
#endif // SKETCHERGUI_SKETCHERSETTINGS_H
|
483
src/Mod/Sketcher/Gui/SketcherSettings.ui
Normal file
483
src/Mod/Sketcher/Gui/SketcherSettings.ui
Normal file
|
@ -0,0 +1,483 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>SketcherGui::SketcherSettings</class>
|
||||||
|
<widget class="QWidget" name="SketcherGui::SketcherSettings">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>359</width>
|
||||||
|
<height>834</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Sketcher</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QGroupBox" name="groupBoxSketcherColor">
|
||||||
|
<property name="title">
|
||||||
|
<string>Sketcher colors</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
|
<item>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="label_17">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>182</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Default edge color</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="Gui::PrefColorButton" name="SketchEdgeColor">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>The color of edges being edited</string>
|
||||||
|
</property>
|
||||||
|
<property name="color">
|
||||||
|
<color>
|
||||||
|
<red>255</red>
|
||||||
|
<green>255</green>
|
||||||
|
<blue>255</blue>
|
||||||
|
</color>
|
||||||
|
</property>
|
||||||
|
<property name="prefEntry" stdset="0">
|
||||||
|
<cstring>SketchEdgeColor</cstring>
|
||||||
|
</property>
|
||||||
|
<property name="prefPath" stdset="0">
|
||||||
|
<cstring>View</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="label_18">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>182</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Default vertex color</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="Gui::PrefColorButton" name="SketchVertexColor">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>The color of vertices being edited</string>
|
||||||
|
</property>
|
||||||
|
<property name="color">
|
||||||
|
<color>
|
||||||
|
<red>255</red>
|
||||||
|
<green>255</green>
|
||||||
|
<blue>255</blue>
|
||||||
|
</color>
|
||||||
|
</property>
|
||||||
|
<property name="prefEntry" stdset="0">
|
||||||
|
<cstring>SketchVertexColor</cstring>
|
||||||
|
</property>
|
||||||
|
<property name="prefPath" stdset="0">
|
||||||
|
<cstring>View</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="label">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>182</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Edit edge color</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="Gui::PrefColorButton" name="EditedEdgeColor">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>The color of edges being edited</string>
|
||||||
|
</property>
|
||||||
|
<property name="color">
|
||||||
|
<color>
|
||||||
|
<red>255</red>
|
||||||
|
<green>255</green>
|
||||||
|
<blue>255</blue>
|
||||||
|
</color>
|
||||||
|
</property>
|
||||||
|
<property name="prefEntry" stdset="0">
|
||||||
|
<cstring>EditedEdgeColor</cstring>
|
||||||
|
</property>
|
||||||
|
<property name="prefPath" stdset="0">
|
||||||
|
<cstring>View</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="label_2">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>182</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Edit vertex color</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="Gui::PrefColorButton" name="EditedVertexColor">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>The color of vertices being edited</string>
|
||||||
|
</property>
|
||||||
|
<property name="color">
|
||||||
|
<color>
|
||||||
|
<red>255</red>
|
||||||
|
<green>38</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</property>
|
||||||
|
<property name="prefEntry" stdset="0">
|
||||||
|
<cstring>EditedVertexColor</cstring>
|
||||||
|
</property>
|
||||||
|
<property name="prefPath" stdset="0">
|
||||||
|
<cstring>View</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
|
<widget class="QLabel" name="label_3">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>182</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Construction geometry</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="1">
|
||||||
|
<widget class="Gui::PrefColorButton" name="ConstructionColor">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>The color of construction geometry in edit mode</string>
|
||||||
|
</property>
|
||||||
|
<property name="color">
|
||||||
|
<color>
|
||||||
|
<red>0</red>
|
||||||
|
<green>0</green>
|
||||||
|
<blue>220</blue>
|
||||||
|
</color>
|
||||||
|
</property>
|
||||||
|
<property name="prefEntry" stdset="0">
|
||||||
|
<cstring>ConstructionColor</cstring>
|
||||||
|
</property>
|
||||||
|
<property name="prefPath" stdset="0">
|
||||||
|
<cstring>View</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="0">
|
||||||
|
<widget class="QLabel" name="label_4">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>182</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Fully constrained geometry</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="1">
|
||||||
|
<widget class="Gui::PrefColorButton" name="FullyConstrainedColor">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>The color of fully constrained geometry in edit mode</string>
|
||||||
|
</property>
|
||||||
|
<property name="color">
|
||||||
|
<color>
|
||||||
|
<red>0</red>
|
||||||
|
<green>255</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</property>
|
||||||
|
<property name="prefEntry" stdset="0">
|
||||||
|
<cstring>FullyConstrainedColor</cstring>
|
||||||
|
</property>
|
||||||
|
<property name="prefPath" stdset="0">
|
||||||
|
<cstring>View</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="0">
|
||||||
|
<widget class="QLabel" name="label_14">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>182</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Constrain color</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="1">
|
||||||
|
<widget class="Gui::PrefColorButton" name="ConstrainedColor">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>The color of fully constrained geometry in edit mode</string>
|
||||||
|
</property>
|
||||||
|
<property name="color">
|
||||||
|
<color>
|
||||||
|
<red>0</red>
|
||||||
|
<green>255</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</property>
|
||||||
|
<property name="prefEntry" stdset="0">
|
||||||
|
<cstring>ConstrainedColor</cstring>
|
||||||
|
</property>
|
||||||
|
<property name="prefPath" stdset="0">
|
||||||
|
<cstring>View</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="7" column="0">
|
||||||
|
<widget class="QLabel" name="label_15">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>182</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Datum color</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="7" column="1">
|
||||||
|
<widget class="Gui::PrefColorButton" name="DatumColor">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>The color of fully constrained geometry in edit mode</string>
|
||||||
|
</property>
|
||||||
|
<property name="color">
|
||||||
|
<color>
|
||||||
|
<red>0</red>
|
||||||
|
<green>255</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</property>
|
||||||
|
<property name="prefEntry" stdset="0">
|
||||||
|
<cstring>DatumColor</cstring>
|
||||||
|
</property>
|
||||||
|
<property name="prefPath" stdset="0">
|
||||||
|
<cstring>View</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="8" column="0">
|
||||||
|
<widget class="QLabel" name="label_16">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>182</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Datum text size</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="8" column="1">
|
||||||
|
<widget class="Gui::PrefSpinBox" name="SketcherDatumWidth">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>The default line thickness for new shapes</string>
|
||||||
|
</property>
|
||||||
|
<property name="suffix">
|
||||||
|
<string>px</string>
|
||||||
|
</property>
|
||||||
|
<property name="maximum">
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="value">
|
||||||
|
<number>2</number>
|
||||||
|
</property>
|
||||||
|
<property name="prefEntry" stdset="0">
|
||||||
|
<cstring>DefaultSketcherVertexWidth</cstring>
|
||||||
|
</property>
|
||||||
|
<property name="prefPath" stdset="0">
|
||||||
|
<cstring>View</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="9" column="0">
|
||||||
|
<widget class="QLabel" name="label_12">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>182</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Default vertex size</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="9" column="1">
|
||||||
|
<widget class="Gui::PrefSpinBox" name="DefaultSketcherVertexWidth">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>The default line thickness for new shapes</string>
|
||||||
|
</property>
|
||||||
|
<property name="suffix">
|
||||||
|
<string>px</string>
|
||||||
|
</property>
|
||||||
|
<property name="maximum">
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="value">
|
||||||
|
<number>2</number>
|
||||||
|
</property>
|
||||||
|
<property name="prefEntry" stdset="0">
|
||||||
|
<cstring>DefaultSketcherVertexWidth</cstring>
|
||||||
|
</property>
|
||||||
|
<property name="prefPath" stdset="0">
|
||||||
|
<cstring>View</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="10" column="0">
|
||||||
|
<widget class="QLabel" name="label_13">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>182</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Default line width</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="10" column="1">
|
||||||
|
<widget class="Gui::PrefSpinBox" name="DefaultSketcherLineWidth">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>The default line thickness for new shapes</string>
|
||||||
|
</property>
|
||||||
|
<property name="suffix">
|
||||||
|
<string>px</string>
|
||||||
|
</property>
|
||||||
|
<property name="maximum">
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="value">
|
||||||
|
<number>2</number>
|
||||||
|
</property>
|
||||||
|
<property name="prefEntry" stdset="0">
|
||||||
|
<cstring>DefaultShapeLineWidth</cstring>
|
||||||
|
</property>
|
||||||
|
<property name="prefPath" stdset="0">
|
||||||
|
<cstring>View</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="11" column="0">
|
||||||
|
<widget class="QLabel" name="label_5">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>182</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Cursor text color</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="11" column="1">
|
||||||
|
<widget class="Gui::PrefColorButton" name="CursorTextColor">
|
||||||
|
<property name="color">
|
||||||
|
<color>
|
||||||
|
<red>0</red>
|
||||||
|
<green>0</green>
|
||||||
|
<blue>255</blue>
|
||||||
|
</color>
|
||||||
|
</property>
|
||||||
|
<property name="prefEntry" stdset="0">
|
||||||
|
<cstring>CursorTextColor</cstring>
|
||||||
|
</property>
|
||||||
|
<property name="prefPath" stdset="0">
|
||||||
|
<cstring>View</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_2">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>74</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="verticalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>217</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<customwidgets>
|
||||||
|
<customwidget>
|
||||||
|
<class>Gui::ColorButton</class>
|
||||||
|
<extends>QPushButton</extends>
|
||||||
|
<header>Gui/Widgets.h</header>
|
||||||
|
</customwidget>
|
||||||
|
<customwidget>
|
||||||
|
<class>Gui::PrefSpinBox</class>
|
||||||
|
<extends>QSpinBox</extends>
|
||||||
|
<header>Gui/PrefWidgets.h</header>
|
||||||
|
</customwidget>
|
||||||
|
<customwidget>
|
||||||
|
<class>Gui::PrefColorButton</class>
|
||||||
|
<extends>Gui::ColorButton</extends>
|
||||||
|
<header>Gui/PrefWidgets.h</header>
|
||||||
|
</customwidget>
|
||||||
|
</customwidgets>
|
||||||
|
<tabstops>
|
||||||
|
<tabstop>CursorTextColor</tabstop>
|
||||||
|
<tabstop>EditedEdgeColor</tabstop>
|
||||||
|
<tabstop>EditedVertexColor</tabstop>
|
||||||
|
<tabstop>ConstructionColor</tabstop>
|
||||||
|
<tabstop>FullyConstrainedColor</tabstop>
|
||||||
|
</tabstops>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
Loading…
Reference in New Issue
Block a user