[TD]simplify ActiveView

- remove copyActiveViewToSvgFile
- use bitmap image instead of Svg
- upgrade Task with crop options
This commit is contained in:
Wanderer Fan
2022-06-23 10:39:59 -04:00
committed by WandererFan
parent 6347f90b15
commit b97c93008e
7 changed files with 163 additions and 601 deletions

View File

@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>375</width>
<height>176</height>
<height>191</height>
</rect>
</property>
<property name="sizePolicy">
@@ -31,15 +31,8 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Width</string>
</property>
</widget>
</item>
<item row="0" column="2">
<layout class="QGridLayout" name="gridLayout" columnstretch="1,0,1">
<item row="1" column="2">
<widget class="Gui::QuantitySpinBox" name="qsbWidth">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
@@ -48,7 +41,7 @@
</sizepolicy>
</property>
<property name="toolTip">
<string>Width of generated view</string>
<string>If Crop Image is checked, crop captured image to this width.</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
@@ -60,19 +53,15 @@
<double>0.000000000000000</double>
</property>
<property name="value">
<double>297.000000000000000</double>
<double>100.000000000000000</double>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Height</string>
<item row="4" column="2">
<widget class="Gui::ColorButton" name="ccBgColor">
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="Gui::QuantitySpinBox" name="qsbHeight">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
@@ -80,63 +69,11 @@
</sizepolicy>
</property>
<property name="toolTip">
<string>Height of generated view</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="unit" stdset="0">
<string notr="true"/>
</property>
<property name="minimum">
<double>0.000000000000000</double>
</property>
<property name="value">
<double>210.000000000000000</double>
<string>Select a color for solid background</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Border</string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="Gui::QuantitySpinBox" name="qsbBorder">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Minimal distance of the object from
the top and left view border</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="unit" stdset="0">
<string notr="true"/>
</property>
<property name="minimum">
<double>0.000000000000000</double>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QCheckBox" name="cbbg">
<property name="toolTip">
<string>Paint background yes/no</string>
</property>
<property name="text">
<string>Background</string>
</property>
</widget>
</item>
<item row="3" column="1">
<item row="4" column="1">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
@@ -149,31 +86,25 @@ the top and left view border</string>
</property>
</spacer>
</item>
<item row="3" column="2">
<widget class="Gui::ColorButton" name="ccBgColor">
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Background color</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label">
<item row="2" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Line Width</string>
<string>Crop To Height</string>
</property>
</widget>
</item>
<item row="4" column="2">
<widget class="Gui::QuantitySpinBox" name="qsbWeight">
<item row="5" column="0">
<widget class="QCheckBox" name="cbUse3d">
<property name="text">
<string>Use 3d Background</string>
</property>
<property name="autoExclusive">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="Gui::QuantitySpinBox" name="qsbHeight">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
@@ -181,7 +112,7 @@ the top and left view border</string>
</sizepolicy>
</property>
<property name="toolTip">
<string>Width of lines in generated view</string>
<string>If Crop Image is checked, crop captured image to this height.</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
@@ -192,56 +123,49 @@ the top and left view border</string>
<property name="minimum">
<double>0.000000000000000</double>
</property>
<property name="singleStep">
<double>0.100000000000000</double>
</property>
<property name="value">
<double>0.500000000000000</double>
<double>100.000000000000000</double>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Render Mode</string>
</property>
</widget>
</item>
<item row="5" column="2">
<widget class="QComboBox" name="cbMode">
<item row="4" column="0">
<widget class="QCheckBox" name="cbbg">
<property name="toolTip">
<string>Drawing style - see SoRenderManager</string>
<string>Paint background yes/no</string>
</property>
<property name="text">
<string>Solid Background</string>
</property>
<property name="autoExclusive">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QCheckBox" name="cbNoBG">
<property name="text">
<string>No Background</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<property name="autoExclusive">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Crop To Width</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QCheckBox" name="cbCrop">
<property name="text">
<string>Crop Image</string>
</property>
<item>
<property name="text">
<string>As is</string>
</property>
</item>
<item>
<property name="text">
<string>Wireframe</string>
</property>
</item>
<item>
<property name="text">
<string>Points</string>
</property>
</item>
<item>
<property name="text">
<string>Wireframe overlay</string>
</property>
</item>
<item>
<property name="text">
<string>Hidden Line</string>
</property>
</item>
<item>
<property name="text">
<string>Bounding box</string>
</property>
</item>
</widget>
</item>
</layout>