fix bug with scale and centrature

dialog modify without static form
This commit is contained in:
Paolo Cignoni cignoni 2007-07-09 15:35:15 +00:00
parent 116d107377
commit 84fb91c847
3 changed files with 603 additions and 514 deletions

View File

@ -114,7 +114,7 @@ void ExtraMeshSlidePlugin::mouseReleaseEvent (QAction *,QMouseEvent * e, MeshMo
}
void ExtraMeshSlidePlugin::SlotExportButton()
{
QFileDialog saveF;
fileName = saveF.getSaveFileName(gla->window(), tr("Saving..."),"/",tr("Mesh (*.svg)"));
if (fileName==0) return;
@ -145,15 +145,15 @@ void ExtraMeshSlidePlugin::mouseReleaseEvent (QAction *,QMouseEvent * e, MeshMo
else
pr.numCol=point_Vector.size();
pr.numRow=1;
mesh_grid = new TriMeshGrid();
mesh_grid->Set(m.cm.face.begin() ,m.cm.face.end());
float scale = (pr.getViewBox().V(0)/pr.numCol) /edgeMax ;
float scale = (pr.getViewBox().V(0)/pr.numCol) /(edgeMax*(1.4142)) ;
pr.setScale(scale);
pr.setTextDetails( svgpro->showText );
for(int i=0; i<point_Vector.size(); i++){
Point3f rotationCenter=m.cm.bbox.Center(); //the point where the plans rotate
Point3f po=point_Vector[i];
Point3f po=point_Vector[i]-m.cm.bbox.Center();
Plane3f p;
p.SetDirection(*dir);
/*
@ -163,7 +163,8 @@ void ExtraMeshSlidePlugin::mouseReleaseEvent (QAction *,QMouseEvent * e, MeshMo
*/
Point3f off= mat_trac_rotation * (translation_plans+po); //translation vector
p.SetOffset( (rotationCenter.X()*dir->X() )+ (rotationCenter.Y()*dir->Y()) +(rotationCenter.Z()*dir->Z())+ (off*(*dir)) );
p.SetOffset( (rotationCenter.X()*dir->X() )+ (rotationCenter.Y()*dir->Y()) +(rotationCenter.Z()*dir->Z())+ (off*(*dir)));
double avg_length;
edge_mesh = new n_EdgeMesh();
vcg::Intersection<n_Mesh, n_EdgeMesh, n_Mesh::ScalarType, TriMeshGrid>(p , *edge_mesh, avg_length, mesh_grid, intersected_cells);
@ -177,7 +178,8 @@ void ExtraMeshSlidePlugin::mouseReleaseEvent (QAction *,QMouseEvent * e, MeshMo
pr.setPosition(Point2d(0,0));
pr.numCol=1;
pr.numRow=1;
vcg::edge::io::ExporterSVG<n_EdgeMesh>::Save(edge_mesh, fileN.toLatin1().data(), pr );
vcg::edge::io::ExporterSVG<n_EdgeMesh>::Save(edge_mesh, fileN.toLatin1().data(), pr);
}
else{

View File

@ -12,18 +12,6 @@
<height>380</height>
</rect>
</property>
<property name="minimumSize" >
<size>
<width>370</width>
<height>380</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>370</width>
<height>380</height>
</size>
</property>
<property name="sizeIncrement" >
<size>
<width>5</width>
@ -39,267 +27,309 @@
<property name="layoutDirection" >
<enum>Qt::LeftToRight</enum>
</property>
<widget class="QDockWidget" name="dockWidget" >
<widget class="QGroupBox" name="groupBox_2" >
<property name="geometry" >
<rect>
<x>10</x>
<y>120</y>
<width>351</width>
<height>161</height>
</rect>
</property>
<property name="title" >
<string>Distance between plans</string>
</property>
<widget class="QWidget" name="verticalLayout" >
<property name="geometry" >
<rect>
<x>10</x>
<y>80</y>
<width>331</width>
<height>80</height>
</rect>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="labelDistanceRange" />
</item>
<item>
<widget class="QSlider" name="SliderPlaneDistance" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="minimumSize" >
<size>
<width>300</width>
<height>0</height>
</size>
</property>
<property name="cursor" >
<cursor>6</cursor>
</property>
<property name="minimum" >
<number>1</number>
</property>
<property name="maximum" >
<number>100</number>
</property>
<property name="value" >
<number>1</number>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="invertedControls" >
<bool>true</bool>
</property>
<property name="tickPosition" >
<enum>QSlider::TicksBelow</enum>
</property>
<property name="tickInterval" >
<number>1</number>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QWidget" name="horizontalLayout_2" >
<property name="geometry" >
<rect>
<x>10</x>
<y>20</y>
<width>331</width>
<height>61</height>
</rect>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QToolButton" name="DefultButton" >
<property name="text" >
<string>Restore Default</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="DistanceEdit" >
<property name="text" >
<string>1</string>
</property>
<property name="echoMode" >
<enum>QLineEdit::Normal</enum>
</property>
<property name="cursorPosition" >
<number>1</number>
</property>
<property name="alignment" >
<set>Qt::AlignHCenter</set>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox" >
<property name="geometry" >
<rect>
<x>10</x>
<y>50</y>
<width>341</width>
<height>71</height>
</rect>
</property>
<property name="title" >
<string>Number of plans</string>
</property>
<widget class="QWidget" name="horizontalLayout_3" >
<property name="geometry" >
<rect>
<x>20</x>
<y>20</y>
<width>311</width>
<height>41</height>
</rect>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QSpinBox" name="spinBox" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>15</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>50</width>
<height>16777215</height>
</size>
</property>
<property name="buttonSymbols" >
<enum>QAbstractSpinBox::PlusMinus</enum>
</property>
<property name="minimum" >
<number>1</number>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
<widget class="QWidget" name="horizontalLayout" >
<property name="geometry" >
<rect>
<x>20</x>
<y>30</y>
<y>290</y>
<width>331</width>
<height>330</height>
<height>80</height>
</rect>
</property>
<property name="minimumSize" >
<size>
<width>330</width>
<height>330</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>350</width>
<height>16777215</height>
</size>
</property>
<property name="sizeIncrement" >
<size>
<width>1</width>
<height>1</height>
</size>
</property>
<property name="windowIcon" >
<iconset>images/iconslice.png</iconset>
</property>
<property name="autoFillBackground" >
<bool>true</bool>
</property>
<property name="features" >
<set>QDockWidget::DockWidgetMovable</set>
</property>
<property name="allowedAreas" >
<set>Qt::NoDockWidgetArea</set>
</property>
<property name="windowTitle" >
<string>Slice dialog...</string>
</property>
<widget class="QWidget" name="dockWidgetContents" >
<widget class="QGroupBox" name="groupBox_2" >
<property name="geometry" >
<rect>
<x>10</x>
<y>60</y>
<width>321</width>
<height>131</height>
</rect>
</property>
<property name="title" >
<string>Distance between plans</string>
</property>
<widget class="QLineEdit" name="DistanceEdit" >
<property name="geometry" >
<rect>
<x>190</x>
<y>30</y>
<width>101</width>
<height>21</height>
</rect>
</property>
<property name="text" >
<string>1</string>
</property>
<property name="echoMode" >
<enum>QLineEdit::Normal</enum>
</property>
<property name="cursorPosition" >
<number>1</number>
</property>
<property name="alignment" >
<set>Qt::AlignHCenter</set>
</property>
</widget>
<widget class="QLabel" name="labelDistanceRange" >
<property name="geometry" >
<rect>
<x>10</x>
<y>70</y>
<width>241</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QSlider" name="SliderPlaneDistance" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="geometry" >
<rect>
<x>10</x>
<y>100</y>
<width>300</width>
<height>26</height>
</rect>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>3</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QGroupBox" name="groupBox_4" >
<property name="minimumSize" >
<size>
<width>300</width>
<height>0</height>
</size>
</property>
<property name="cursor" >
<cursor>6</cursor>
</property>
<property name="minimum" >
<number>1</number>
</property>
<property name="maximum" >
<number>100</number>
</property>
<property name="value" >
<number>1</number>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="invertedControls" >
<bool>true</bool>
</property>
<property name="tickPosition" >
<enum>QSlider::TicksBelow</enum>
</property>
<property name="tickInterval" >
<number>1</number>
</property>
</widget>
<widget class="QToolButton" name="DefultButton" >
<property name="geometry" >
<rect>
<x>20</x>
<y>20</y>
<width>91</width>
<width>200</width>
<height>30</height>
</rect>
</property>
<property name="text" >
<string>Restore Default</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_4" >
<property name="geometry" >
<rect>
<x>120</x>
<y>200</y>
<width>211</width>
<height>51</height>
</rect>
</property>
<property name="minimumSize" >
<size>
<width>200</width>
<height>30</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>300</width>
<height>16777215</height>
</size>
</property>
<widget class="QRadioButton" name="Exporter_MultiFile" >
<property name="geometry" >
<rect>
<x>10</x>
<y>30</y>
<width>83</width>
<height>18</height>
</rect>
</property>
<property name="text" >
<string>Multi file</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
<widget class="QToolButton" name="ExportButton" >
<property name="geometry" >
<rect>
<x>110</x>
<y>10</y>
<width>96</width>
<height>30</height>
</rect>
</property>
<property name="text" >
<string>Export Polyline...</string>
</property>
<property name="popupMode" >
<enum>QToolButton::InstantPopup</enum>
</property>
</widget>
<widget class="QRadioButton" name="Exporter_singleFile" >
<property name="geometry" >
<rect>
<x>10</x>
<y>10</y>
<width>83</width>
<height>18</height>
</rect>
</property>
<property name="text" >
<string>Single file</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox" >
<property name="geometry" >
<rect>
<x>10</x>
<y>0</y>
<width>321</width>
<height>51</height>
</rect>
</property>
<property name="title" >
<string>Number of plans</string>
</property>
<widget class="QSpinBox" name="spinBox" >
<property name="geometry" >
<rect>
<x>30</x>
<y>20</y>
<width>50</width>
<height>18</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>15</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>50</width>
<width>300</width>
<height>16777215</height>
</size>
</property>
<property name="buttonSymbols" >
<enum>QAbstractSpinBox::PlusMinus</enum>
</property>
<property name="minimum" >
<number>1</number>
</property>
<widget class="QToolButton" name="ExportButton" >
<property name="geometry" >
<rect>
<x>100</x>
<y>20</y>
<width>96</width>
<height>30</height>
</rect>
</property>
<property name="text" >
<string>Export Polyline...</string>
</property>
<property name="popupMode" >
<enum>QToolButton::InstantPopup</enum>
</property>
</widget>
<widget class="QRadioButton" name="Exporter_singleFile" >
<property name="geometry" >
<rect>
<x>10</x>
<y>10</y>
<width>83</width>
<height>18</height>
</rect>
</property>
<property name="text" >
<string>Single file</string>
</property>
</widget>
<widget class="QRadioButton" name="Exporter_MultiFile" >
<property name="geometry" >
<rect>
<x>10</x>
<y>40</y>
<width>83</width>
<height>18</height>
</rect>
</property>
<property name="text" >
<string>Multi file</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</widget>
</widget>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
<layoutdefault spacing="6" margin="11" />

View File

@ -12,45 +12,6 @@
<property name="windowTitle" >
<string>SVGPro</string>
</property>
<widget class="QGroupBox" name="groupBox_3" >
<property name="geometry" >
<rect>
<x>280</x>
<y>50</y>
<width>120</width>
<height>61</height>
</rect>
</property>
<widget class="QRadioButton" name="pixel_choose" >
<property name="geometry" >
<rect>
<x>10</x>
<y>30</y>
<width>83</width>
<height>18</height>
</rect>
</property>
<property name="text" >
<string>Pixel</string>
</property>
</widget>
<widget class="QRadioButton" name="cm_choose" >
<property name="geometry" >
<rect>
<x>10</x>
<y>10</y>
<width>83</width>
<height>18</height>
</rect>
</property>
<property name="text" >
<string>Cm</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</widget>
<widget class="QLabel" name="TitleLabel" >
<property name="geometry" >
<rect>
@ -72,270 +33,366 @@
</font>
</property>
</widget>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="geometry" >
<rect>
<x>240</x>
<y>340</y>
<width>156</width>
<height>23</height>
</rect>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
</property>
</widget>
<widget class="QGroupBox" name="groupBox" >
<property name="geometry" >
<rect>
<x>40</x>
<y>30</y>
<width>241</width>
<height>131</height>
<x>10</x>
<y>40</y>
<width>381</width>
<height>161</height>
</rect>
</property>
<property name="title" >
<string>Image Size</string>
</property>
<widget class="QLabel" name="label_3" >
<widget class="QWidget" name="gridLayout" >
<property name="geometry" >
<rect>
<x>140</x>
<x>0</x>
<y>20</y>
<width>46</width>
<height>14</height>
<width>381</width>
<height>48</height>
</rect>
</property>
<property name="text" >
<string>Height</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<widget class="QLineEdit" name="ImageWidth" />
</item>
<item row="0" column="0" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Width</string>
</property>
</widget>
</item>
<item row="1" column="2" >
<widget class="QLineEdit" name="ImageHeight" />
</item>
<item row="0" column="2" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>Height</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QLabel" name="label_2" >
<widget class="QWidget" name="horizontalLayout" >
<property name="geometry" >
<rect>
<x>10</x>
<y>20</y>
<width>46</width>
<height>14</height>
<x>0</x>
<y>80</y>
<width>381</width>
<height>58</height>
</rect>
</property>
<property name="text" >
<string>Width</string>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<widget class="QLabel" name="label_7" >
<property name="text" >
<string>Width of Items:</string>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="label_8" >
<property name="text" >
<string>Height of Items:</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QLabel" name="WidthLabel" />
</item>
<item row="2" column="1" >
<widget class="QLabel" name="HeightLabel" />
</item>
<item row="0" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Number of Item:</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QLabel" name="numPlane" >
<property name="minimumSize" >
<size>
<width>50</width>
<height>0</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="groupBox_3" >
<property name="minimumSize" >
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<widget class="QRadioButton" name="cm_choose" >
<property name="geometry" >
<rect>
<x>10</x>
<y>10</y>
<width>41</width>
<height>18</height>
</rect>
</property>
<property name="text" >
<string>Cm</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
<widget class="QRadioButton" name="pixel_choose" >
<property name="geometry" >
<rect>
<x>10</x>
<y>30</y>
<width>51</width>
<height>18</height>
</rect>
</property>
<property name="text" >
<string>Pixel</string>
</property>
</widget>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QLabel" name="HeightLabel" >
<widget class="QCheckBox" name="view_text" >
<property name="geometry" >
<rect>
<x>100</x>
<y>110</y>
<width>46</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="ImageHeight" >
<property name="geometry" >
<rect>
<x>140</x>
<y>40</y>
<width>80</width>
<x>0</x>
<y>140</y>
<width>71</width>
<height>18</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="ImageWidth" >
<property name="geometry" >
<rect>
<x>10</x>
<y>40</y>
<width>81</width>
<height>20</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="numPlane" >
<property name="geometry" >
<rect>
<x>100</x>
<y>70</y>
<width>46</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label" >
<property name="geometry" >
<rect>
<x>20</x>
<y>70</y>
<width>82</width>
<height>16</height>
</rect>
</property>
<property name="text" >
<string>Number of Item:</string>
<string>view text</string>
</property>
</widget>
<widget class="QLabel" name="label_7" >
<property name="geometry" >
<rect>
<x>20</x>
<y>90</y>
<width>81</width>
<height>16</height>
</rect>
</property>
<property name="text" >
<string>Width of Items:</string>
</property>
</widget>
<widget class="QLabel" name="label_8" >
<property name="geometry" >
<rect>
<x>20</x>
<y>110</y>
<width>81</width>
<height>16</height>
</rect>
</property>
<property name="text" >
<string>Height of Items:</string>
</property>
</widget>
<widget class="QLabel" name="WidthLabel" >
<property name="geometry" >
<rect>
<x>100</x>
<y>90</y>
<width>46</width>
<height>21</height>
</rect>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_2" >
<property name="geometry" >
<rect>
<x>40</x>
<y>170</y>
<width>241</width>
<height>131</height>
<x>0</x>
<y>200</y>
<width>361</width>
<height>161</height>
</rect>
</property>
<property name="title" >
<string>View Box Resolution</string>
</property>
<widget class="QLabel" name="label_5" >
<widget class="QWidget" name="gridLayout_3" >
<property name="geometry" >
<rect>
<x>10</x>
<y>20</y>
<width>46</width>
<height>14</height>
<width>351</width>
<height>51</height>
</rect>
</property>
<property name="text" >
<string>Width</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="1" >
<widget class="QLineEdit" name="viewBox_Height" />
</item>
<item row="1" column="0" >
<widget class="QLineEdit" name="viewBox_Width" />
</item>
<item row="0" column="1" >
<widget class="QLabel" name="label_6" >
<property name="text" >
<string>Height</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="label_5" >
<property name="text" >
<string>Width</string>
</property>
</widget>
</item>
<item row="1" column="2" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="2" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QLabel" name="label_6" >
<property name="geometry" >
<rect>
<x>140</x>
<y>20</y>
<width>46</width>
<height>14</height>
</rect>
</property>
<property name="text" >
<string>Height</string>
</property>
</widget>
<widget class="QLineEdit" name="viewBox_Width" >
<property name="geometry" >
<rect>
<x>10</x>
<y>40</y>
<width>81</width>
<height>18</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="viewBox_Height" >
<property name="geometry" >
<rect>
<x>140</x>
<y>40</y>
<width>80</width>
<height>18</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="HeightLabelViewBox" >
<property name="geometry" >
<rect>
<x>100</x>
<y>110</y>
<width>46</width>
<height>16</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_10" >
<property name="geometry" >
<rect>
<x>10</x>
<y>110</y>
<width>81</width>
<height>16</height>
</rect>
</property>
<property name="text" >
<string>Height of Items:</string>
</property>
</widget>
<widget class="QLabel" name="label_9" >
<widget class="QWidget" name="gridLayout_4" >
<property name="geometry" >
<rect>
<x>10</x>
<y>80</y>
<width>81</width>
<height>16</height>
<width>351</width>
<height>79</height>
</rect>
</property>
<property name="text" >
<string>Width of Items:</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QLabel" name="label_9" >
<property name="text" >
<string>Width of Items:</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_10" >
<property name="text" >
<string>Height of Items:</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QLabel" name="HeightLabelViewBox" />
</item>
<item row="0" column="1" >
<widget class="QLabel" name="WidthLabelViewBox" />
</item>
<item row="0" column="2" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="2" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="2" >
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
<item row="2" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QLabel" name="WidthLabelViewBox" >
<property name="geometry" >
<rect>
<x>100</x>
<y>80</y>
<width>46</width>
<height>16</height>
</rect>
</property>
</widget>
</widget>
<widget class="QCheckBox" name="view_text" >
<property name="geometry" >
<rect>
<x>300</x>
<y>180</y>
<width>71</width>
<height>18</height>
</rect>
</property>
<property name="text" >
<string>view text</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</widget>
<layoutdefault spacing="6" margin="11" />