Skip to content

Commit

Permalink
Connected DRO controls in the align tab, removed unuseful buttons, ma…
Browse files Browse the repository at this point in the history
…naged synchronization of the two DRO controls.
  • Loading branch information
TheAntTeam committed Feb 4, 2024
1 parent f4c7782 commit 456305a
Show file tree
Hide file tree
Showing 3 changed files with 172 additions and 270 deletions.
182 changes: 29 additions & 153 deletions src/TheAntFarm/the_ant_farm.ui
Original file line number Diff line number Diff line change
Expand Up @@ -5904,68 +5904,6 @@
<property name="verticalSpacing">
<number>2</number>
</property>
<item row="3" column="0" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QPushButton" name="zero_xy_pb_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>23</height>
</size>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>XY = 0</string>
</property>
</widget>
</item>
<item row="3" column="2" alignment="Qt::AlignHCenter">
<widget class="QPushButton" name="zero_y_pb_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>23</height>
</size>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Y = 0</string>
</property>
</widget>
</item>
<item row="0" column="3" alignment="Qt::AlignHCenter">
<widget class="QLabel" name="z_axis_l_2">
<property name="sizePolicy">
Expand Down Expand Up @@ -6009,8 +5947,8 @@
</property>
</widget>
</item>
<item row="2" column="2" alignment="Qt::AlignHCenter">
<widget class="QLabel" name="wpos_y_l_2">
<item row="1" column="2" alignment="Qt::AlignHCenter">
<widget class="QLabel" name="mpos_y_l_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
Expand Down Expand Up @@ -6046,8 +5984,8 @@
</property>
</widget>
</item>
<item row="2" column="0" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QLabel" name="wpos_l_2">
<item row="0" column="1" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QLabel" name="x_axis_l_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
Expand Down Expand Up @@ -6082,46 +6020,15 @@
<enum>QFrame::Plain</enum>
</property>
<property name="text">
<string>WPos</string>
<string>X</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="3" column="3" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QPushButton" name="zero_z_pb_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>23</height>
</size>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Z = 0</string>
</property>
</widget>
</item>
<item row="1" column="2" alignment="Qt::AlignHCenter">
<widget class="QLabel" name="mpos_y_l_2">
<item row="1" column="3" alignment="Qt::AlignHCenter">
<widget class="QLabel" name="mpos_z_l_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
Expand Down Expand Up @@ -6157,8 +6064,8 @@
</property>
</widget>
</item>
<item row="1" column="3" alignment="Qt::AlignHCenter">
<widget class="QLabel" name="mpos_z_l_2">
<item row="1" column="1" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QLabel" name="mpos_x_l_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
Expand Down Expand Up @@ -6194,8 +6101,8 @@
</property>
</widget>
</item>
<item row="0" column="1" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QLabel" name="x_axis_l_2">
<item row="2" column="0" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QLabel" name="wpos_l_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
Expand Down Expand Up @@ -6230,7 +6137,7 @@
<enum>QFrame::Plain</enum>
</property>
<property name="text">
<string>X</string>
<string>WPos</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
Expand Down Expand Up @@ -6274,8 +6181,8 @@
</property>
</widget>
</item>
<item row="0" column="0" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QLabel" name="axis_l_2">
<item row="1" column="0" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QLabel" name="mpos_l_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
Expand Down Expand Up @@ -6310,15 +6217,15 @@
<enum>QFrame::Plain</enum>
</property>
<property name="text">
<string>Axis:</string>
<string>MPos</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="1" column="0" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QLabel" name="mpos_l_2">
<item row="2" column="3" alignment="Qt::AlignHCenter">
<widget class="QLabel" name="wpos_z_l_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
Expand All @@ -6337,12 +6244,6 @@
<height>13</height>
</size>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
Expand All @@ -6353,15 +6254,15 @@
<enum>QFrame::Plain</enum>
</property>
<property name="text">
<string>MPos</string>
<string>0.0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="2" column="3" alignment="Qt::AlignHCenter">
<widget class="QLabel" name="wpos_z_l_2">
<item row="0" column="0" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QLabel" name="axis_l_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
Expand All @@ -6380,6 +6281,12 @@
<height>13</height>
</size>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
Expand All @@ -6390,44 +6297,13 @@
<enum>QFrame::Plain</enum>
</property>
<property name="text">
<string>0.0</string>
<string>Axis:</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="3" column="1" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QPushButton" name="zero_x_pb_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>23</height>
</size>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>X = 0</string>
</property>
</widget>
</item>
<item row="0" column="2" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QLabel" name="y_axis_l_2">
<property name="sizePolicy">
Expand Down Expand Up @@ -6471,8 +6347,8 @@
</property>
</widget>
</item>
<item row="1" column="1" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QLabel" name="mpos_x_l_2">
<item row="2" column="2" alignment="Qt::AlignHCenter">
<widget class="QLabel" name="wpos_y_l_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
Expand Down
Loading

0 comments on commit 456305a

Please sign in to comment.