瀏覽代碼

摇杆页面添加

JonYang 1 天之前
父節點
當前提交
32bdc605af

二進制
Output/bin/x64/configurations.db


+ 11 - 3
View/die-bonder-ui/SBTdie-bonder-ui.pro

@@ -19,11 +19,19 @@ CONFIG += c++17
 
 
 SOURCES += $$files(*.cpp, $$PWD) \
-    Src/RewriteControl/MsgDlg/CustomMessageDlg.cpp
+    Src/RewriteControl/Controls/JReLineEdit.cpp \
+    Src/RewriteControl/MsgDlg/CustomMessageDlg.cpp \
+    Src/RewriteControl/SpeedAdjPage.cpp \
+    Src/RewriteControl/SpeedAdjWnd.cpp
 HEADERS += $$files(*.h, $$PWD) \
-    Src/RewriteControl/MsgDlg/CustomMessageDlg.h
+    Src/RewriteControl/Controls/JReLineEdit.h \
+    Src/RewriteControl/MsgDlg/CustomMessageDlg.h \
+    Src/RewriteControl/SpeedAdjPage.h \
+    Src/RewriteControl/SpeedAdjWnd.h
 FORMS   += $$files(*.ui, $$PWD) \
-    Src/RewriteControl/MsgDlg/CustomMessageDlg.ui
+    Src/RewriteControl/MsgDlg/CustomMessageDlg.ui \
+    Src/RewriteControl/SpeedAdjPage.ui \
+    Src/RewriteControl/SpeedAdjWnd.ui
 
 # Default rules for deployment.
 qnx: target.path = /tmp/$${TARGET}/bin

+ 8 - 0
View/die-bonder-ui/SBTdie-bonder-ui.vcxproj

@@ -247,10 +247,13 @@
       <DynamicSource Condition="'$(Configuration)|$(Platform)'=='Release|x64'">input</DynamicSource>
       <QtMocFileName Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(Filename).moc</QtMocFileName>
     </ClCompile>
+    <ClCompile Include="Src\RewriteControl\Controls\JReLineEdit.cpp" />
     <ClCompile Include="Src\RewriteControl\JoystickPage.cpp" />
     <ClCompile Include="Src\RewriteControl\LightJoystickSwitchPage.cpp" />
     <ClCompile Include="Src\RewriteControl\MsgDlg\CustomMessageDlg.cpp" />
     <ClCompile Include="Src\RewriteControl\Sidebar\LogStatePage.cpp" />
+    <ClCompile Include="Src\RewriteControl\SpeedAdjPage.cpp" />
+    <ClCompile Include="Src\RewriteControl\SpeedAdjWnd.cpp" />
     <ClCompile Include="Src\Sql\SqlOperation.cpp" />
     <ClCompile Include="Src\SystemInfoPage\PageWnd\AccountMaintenanceWnd.cpp" />
     <ClCompile Include="Src\SystemInfoPage\PageWnd\AddUserAccountWnd.cpp" />
@@ -281,6 +284,9 @@
     <QtMoc Include="Src\RewriteControl\ControlOperationPage.h" />
     <QtMoc Include="Src\RewriteControl\JoystickPage.h" />
     <QtMoc Include="Src\RewriteControl\Sidebar\LogStatePage.h" />
+    <QtMoc Include="Src\RewriteControl\SpeedAdjWnd.h" />
+    <QtMoc Include="Src\RewriteControl\SpeedAdjPage.h" />
+    <QtMoc Include="Src\RewriteControl\Controls\JReLineEdit.h" />
     <ClInclude Include="Src\Sql\SqlOperation.h" />
     <QtMoc Include="Src\CameraBind.h" />
     <QtMoc Include="OriginalWnd\CameraDataHandleAndShow.h">
@@ -361,6 +367,8 @@
     <QtUic Include="Src\RewriteControl\ControlOperationPage.ui" />
     <QtUic Include="Src\RewriteControl\LightJoystickSwitchPage.ui" />
     <QtUic Include="Src\RewriteControl\MsgDlg\CustomMessageDlg.ui" />
+    <QtUic Include="Src\RewriteControl\SpeedAdjPage.ui" />
+    <QtUic Include="Src\RewriteControl\SpeedAdjWnd.ui" />
     <QtUic Include="Src\SystemInfoPage\PageWnd\AccountMaintenanceWnd.ui" />
     <QtUic Include="Src\SystemInfoPage\PageWnd\AddUserAccountWnd.ui" />
     <QtUic Include="Src\SystemInfoPage\PageWnd\LanguageSwitchWnd.ui" />

+ 27 - 0
View/die-bonder-ui/SBTdie-bonder-ui.vcxproj.filters

@@ -130,6 +130,9 @@
     <Filter Include="Source Files\Src\RewriteControl\Sidebar">
       <UniqueIdentifier>{dc851964-1171-43a7-8096-aabcf15a7dad}</UniqueIdentifier>
     </Filter>
+    <Filter Include="Source Files\Src\RewriteControl\Controls">
+      <UniqueIdentifier>{25f9df18-b698-4249-a8da-714cf4262acb}</UniqueIdentifier>
+    </Filter>
   </ItemGroup>
   <ItemGroup>
     <ClCompile Include="ImageWidget.cpp">
@@ -264,6 +267,15 @@
     <ClCompile Include="Src\RewriteControl\ControlOperationPage.cpp">
       <Filter>Source Files\Src\RewriteControl</Filter>
     </ClCompile>
+    <ClCompile Include="Src\RewriteControl\SpeedAdjWnd.cpp">
+      <Filter>Source Files\Src\RewriteControl</Filter>
+    </ClCompile>
+    <ClCompile Include="Src\RewriteControl\SpeedAdjPage.cpp">
+      <Filter>Source Files\Src\RewriteControl</Filter>
+    </ClCompile>
+    <ClCompile Include="Src\RewriteControl\Controls\JReLineEdit.cpp">
+      <Filter>Source Files\Src\RewriteControl\Controls</Filter>
+    </ClCompile>
   </ItemGroup>
   <ItemGroup>
     <QtMoc Include="ImageWidget.h">
@@ -365,6 +377,15 @@
     <QtMoc Include="CameraMaterialGroupWnd\MaterialWindow\DraggableLine.h">
       <Filter>Header Files\CameraMaterialGroupWnd\MaterialWindow</Filter>
     </QtMoc>
+    <QtMoc Include="Src\RewriteControl\SpeedAdjWnd.h">
+      <Filter>Source Files\Src\RewriteControl</Filter>
+    </QtMoc>
+    <QtMoc Include="Src\RewriteControl\SpeedAdjPage.h">
+      <Filter>Source Files\Src\RewriteControl</Filter>
+    </QtMoc>
+    <QtMoc Include="Src\RewriteControl\Controls\JReLineEdit.h">
+      <Filter>Source Files\Src\RewriteControl\Controls</Filter>
+    </QtMoc>
   </ItemGroup>
   <ItemGroup>
     <CustomBuild Include="debug\moc_predefs.h.cbt">
@@ -423,6 +444,12 @@
     <QtUic Include="Src\RewriteControl\ControlOperationPage.ui">
       <Filter>Source Files\Src\RewriteControl</Filter>
     </QtUic>
+    <QtUic Include="Src\RewriteControl\SpeedAdjWnd.ui">
+      <Filter>Source Files\Src\RewriteControl</Filter>
+    </QtUic>
+    <QtUic Include="Src\RewriteControl\SpeedAdjPage.ui">
+      <Filter>Source Files\Src\RewriteControl</Filter>
+    </QtUic>
   </ItemGroup>
   <ItemGroup>
     <None Include="images\Participation display\BlackDiamond.png">

+ 24 - 0
View/die-bonder-ui/Src/RewriteControl/Controls/JReLineEdit.cpp

@@ -0,0 +1,24 @@
+#include "JReLineEdit.h"
+#include "../SpeedAdjPage.h"
+
+JReLineEdit::JReLineEdit(QWidget* parent /*= nullptr*/)
+    : QLineEdit(parent) 
+{
+}
+
+void JReLineEdit::upDataValLine(const ST_DEF_VAL _val)
+{
+    m_stSavedefVal = _val;
+}
+
+void JReLineEdit::mousePressEvent(QMouseEvent* event)
+{
+    if (event->button() == Qt::LeftButton) 
+    {
+        SpeedAdjPage* pNew = new SpeedAdjPage(this);        
+        pNew->updateDefVal(m_stSavedefVal);
+        pNew->show();
+    }
+    QLineEdit::mousePressEvent(event);
+}
+

+ 36 - 0
View/die-bonder-ui/Src/RewriteControl/Controls/JReLineEdit.h

@@ -0,0 +1,36 @@
+// *****************************************************************************
+// 版权所有(C)2023~2099 上海骄成超声波技术有限公司
+// 保留所有权利
+// *****************************************************************************
+// 作者 : 杨坚
+// 版本 : 1.0
+// 功能说明:
+//          自定义控件
+// *****************************************************************************
+#ifndef JRELINEEDIT_H
+#define JRELINEEDIT_H
+#include <QLineEdit>
+#include <QMessageBox>
+#include <QMouseEvent>
+#include "../SpeedAdjPage.h"
+
+class JReLineEdit : public QLineEdit
+{
+    Q_OBJECT
+//public:
+//    using QLineEdit::QLineEdit;
+
+public:
+    JReLineEdit(QWidget* parent = nullptr);
+
+    /**更新值
+     */
+    void upDataValLine(const ST_DEF_VAL _val);
+protected:
+    void mousePressEvent(QMouseEvent* event) override;
+
+private:
+    ST_DEF_VAL      m_stSavedefVal;
+};
+
+#endif // JRELINEEDIT_H

+ 1 - 5
View/die-bonder-ui/Src/RewriteControl/LightJoystickSwitchPage.cpp

@@ -86,7 +86,7 @@ void LightJoystickSwitchPage::BondSliderAndLineEdit(QSlider* slider, QLineEdit*
             {
                 // 执行匹配灯光
                 int niD = m_pPageSwitchGroup->m_nGroupId;
-                if (niD == 1)
+                //if (niD == 1)
                 {
                     // 相机窗口
                     if (m_pCameraBind)
@@ -223,8 +223,6 @@ void LightJoystickSwitchPage::SetMoveJoystickInfo(const ST_MOVE_AXIS& movInfo)
         SwitchJoystickPage(true);
     }
  
-
-    ui->JTabShowLable->setText(CombiningStr());
 }
 
 void LightJoystickSwitchPage::timerEvent(QTimerEvent* event)
@@ -419,7 +417,5 @@ void LightJoystickSwitchPage::resizeSingleUI() {
     ui->JTabShowLableLoop->setGeometry(QRect(10, 50, 200, 41));
     ui->moveTo_Button->setGeometry(QRect(170, 170, 60, 23));
     ui->valLineEdit->setGeometry(QRect(160, 100, 71, 21));
-    ui->JTabShowLable->setGeometry(QRect(10, 0, 200, 40));
-
 }
 

+ 230 - 103
View/die-bonder-ui/Src/RewriteControl/LightJoystickSwitchPage.ui

@@ -6,8 +6,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>491</width>
-    <height>151</height>
+    <width>495</width>
+    <height>166</height>
    </rect>
   </property>
   <property name="windowTitle">
@@ -19,11 +19,11 @@
      <x>0</x>
      <y>0</y>
      <width>491</width>
-     <height>151</height>
+     <height>161</height>
     </rect>
    </property>
    <property name="currentIndex">
-    <number>0</number>
+    <number>1</number>
    </property>
    <widget class="QWidget" name="GreenLightTab">
     <attribute name="title">
@@ -351,7 +351,7 @@
        <x>340</x>
        <y>10</y>
        <width>141</width>
-       <height>111</height>
+       <height>121</height>
       </rect>
      </property>
      <property name="title">
@@ -413,114 +413,236 @@
       <property name="geometry">
        <rect>
         <x>0</x>
-        <y>-20</y>
+        <y>-10</y>
         <width>141</width>
-        <height>101</height>
+        <height>91</height>
        </rect>
       </property>
      </widget>
     </widget>
-    <widget class="QPushButton" name="move_Button">
+    <widget class="QGroupBox" name="groupBox_2">
      <property name="geometry">
       <rect>
-       <x>260</x>
-       <y>60</y>
-       <width>71</width>
-       <height>23</height>
-      </rect>
-     </property>
-     <property name="minimumSize">
-      <size>
-       <width>42</width>
-       <height>0</height>
-      </size>
-     </property>
-     <property name="text">
-      <string>Move</string>
-     </property>
-    </widget>
-    <widget class="QPushButton" name="moveTo_Button">
-     <property name="geometry">
-      <rect>
-       <x>260</x>
-       <y>90</y>
-       <width>71</width>
-       <height>23</height>
-      </rect>
-     </property>
-     <property name="minimumSize">
-      <size>
-       <width>42</width>
-       <height>0</height>
-      </size>
-     </property>
-     <property name="text">
-      <string>MoveTo</string>
-     </property>
-    </widget>
-    <widget class="QLabel" name="JTabShowLableLoop">
-     <property name="geometry">
-      <rect>
-       <x>10</x>
-       <y>80</y>
-       <width>241</width>
-       <height>41</height>
-      </rect>
-     </property>
-     <property name="font">
-      <font>
-       <family>Agency FB</family>
-       <pointsize>12</pointsize>
-      </font>
-     </property>
-     <property name="text">
-      <string>pos:</string>
-     </property>
-     <property name="alignment">
-      <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
-     </property>
-    </widget>
-    <widget class="QLineEdit" name="valLineEdit">
-     <property name="geometry">
-      <rect>
-       <x>260</x>
-       <y>20</y>
-       <width>71</width>
-       <height>21</height>
-      </rect>
-     </property>
-    </widget>
-    <widget class="QLabel" name="JTabShowLable">
-     <property name="geometry">
-      <rect>
-       <x>10</x>
-       <y>10</y>
-       <width>241</width>
-       <height>51</height>
-      </rect>
-     </property>
-     <property name="font">
-      <font>
-       <family>Agency FB</family>
-       <pointsize>12</pointsize>
-      </font>
-     </property>
-     <property name="text">
-      <string>当前选中:模组xxx   轴:x</string>
-     </property>
-    </widget>
-    <widget class="QLabel" name="showLabel">
-     <property name="geometry">
-      <rect>
-       <x>10</x>
-       <y>70</y>
-       <width>221</width>
-       <height>16</height>
+       <x>0</x>
+       <y>0</y>
+       <width>341</width>
+       <height>131</height>
       </rect>
      </property>
-     <property name="text">
-      <string>TextLabel</string>
+     <property name="title">
+      <string/>
      </property>
+     <widget class="QLabel" name="label">
+      <property name="geometry">
+       <rect>
+        <x>20</x>
+        <y>10</y>
+        <width>61</width>
+        <height>21</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>module:</string>
+      </property>
+      <property name="alignment">
+       <set>Qt::AlignCenter</set>
+      </property>
+     </widget>
+     <widget class="QComboBox" name="modeComboBox">
+      <property name="geometry">
+       <rect>
+        <x>100</x>
+        <y>10</y>
+        <width>71</width>
+        <height>21</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="QLabel" name="JTabShowLableLoop">
+      <property name="geometry">
+       <rect>
+        <x>10</x>
+        <y>80</y>
+        <width>231</width>
+        <height>31</height>
+       </rect>
+      </property>
+      <property name="font">
+       <font>
+        <family>Agency FB</family>
+        <pointsize>12</pointsize>
+       </font>
+      </property>
+      <property name="text">
+       <string>pos:</string>
+      </property>
+      <property name="alignment">
+       <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
+      </property>
+     </widget>
+     <widget class="QPushButton" name="moveTo_Button">
+      <property name="geometry">
+       <rect>
+        <x>90</x>
+        <y>50</y>
+        <width>71</width>
+        <height>23</height>
+       </rect>
+      </property>
+      <property name="minimumSize">
+       <size>
+        <width>42</width>
+        <height>0</height>
+       </size>
+      </property>
+      <property name="text">
+       <string>MoveTo</string>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="valLineEdit">
+      <property name="geometry">
+       <rect>
+        <x>10</x>
+        <y>50</y>
+        <width>71</width>
+        <height>21</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="QPushButton" name="move_Button">
+      <property name="geometry">
+       <rect>
+        <x>90</x>
+        <y>80</y>
+        <width>71</width>
+        <height>23</height>
+       </rect>
+      </property>
+      <property name="minimumSize">
+       <size>
+        <width>42</width>
+        <height>0</height>
+       </size>
+      </property>
+      <property name="text">
+       <string>Move</string>
+      </property>
+     </widget>
+     <widget class="QGroupBox" name="axisGroupBox">
+      <property name="geometry">
+       <rect>
+        <x>180</x>
+        <y>-10</y>
+        <width>161</width>
+        <height>151</height>
+       </rect>
+      </property>
+      <property name="title">
+       <string/>
+      </property>
+      <layout class="QVBoxLayout" name="verticalLayout">
+       <item>
+        <layout class="QHBoxLayout" name="forceLayout">
+         <item>
+          <widget class="QCheckBox" name="forceCheckBox">
+           <property name="minimumSize">
+            <size>
+             <width>56</width>
+             <height>0</height>
+            </size>
+           </property>
+           <property name="text">
+            <string>FORCE</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="JReLineEdit" name="forceLineEdit"/>
+         </item>
+        </layout>
+       </item>
+       <item>
+        <layout class="QHBoxLayout" name="xLayout">
+         <item>
+          <widget class="QCheckBox" name="xCheckBox">
+           <property name="minimumSize">
+            <size>
+             <width>56</width>
+             <height>0</height>
+            </size>
+           </property>
+           <property name="text">
+            <string>X</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="JReLineEdit" name="xLineEdit"/>
+         </item>
+        </layout>
+       </item>
+       <item>
+        <layout class="QHBoxLayout" name="yLayout">
+         <item>
+          <widget class="QCheckBox" name="yCheckBox">
+           <property name="minimumSize">
+            <size>
+             <width>56</width>
+             <height>0</height>
+            </size>
+           </property>
+           <property name="text">
+            <string>y</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="JReLineEdit" name="yLineEdit"/>
+         </item>
+        </layout>
+       </item>
+       <item>
+        <layout class="QHBoxLayout" name="zLayout">
+         <item>
+          <widget class="QCheckBox" name="zCheckBox">
+           <property name="minimumSize">
+            <size>
+             <width>56</width>
+             <height>0</height>
+            </size>
+           </property>
+           <property name="text">
+            <string>z</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="JReLineEdit" name="zLineEdit"/>
+         </item>
+        </layout>
+       </item>
+       <item>
+        <layout class="QHBoxLayout" name="rLayout">
+         <item>
+          <widget class="QCheckBox" name="rCheckBox">
+           <property name="minimumSize">
+            <size>
+             <width>56</width>
+             <height>0</height>
+            </size>
+           </property>
+           <property name="text">
+            <string>R</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="JReLineEdit" name="rLineEdit"/>
+         </item>
+        </layout>
+       </item>
+      </layout>
+     </widget>
     </widget>
    </widget>
   </widget>
@@ -532,6 +654,11 @@
    <header location="global">Src/RewriteControl/JoystickPage.h</header>
    <container>1</container>
   </customwidget>
+  <customwidget>
+   <class>JReLineEdit</class>
+   <extends>QLineEdit</extends>
+   <header>Controls/jrelineedit.h</header>
+  </customwidget>
  </customwidgets>
  <resources/>
  <connections/>

+ 34 - 0
View/die-bonder-ui/Src/RewriteControl/SpeedAdjPage.cpp

@@ -0,0 +1,34 @@
+#include "SpeedAdjPage.h"
+#include "ui_SpeedAdjPage.h"
+
+SpeedAdjPage::SpeedAdjPage(QWidget *parent)
+    : QMainWindow(parent)
+    , ui(new Ui::SpeedAdjPage)
+{
+    ui->setupUi(this);
+}
+
+SpeedAdjPage::~SpeedAdjPage()
+{
+    delete ui;
+}
+
+void SpeedAdjPage::updateDefVal(const ST_DEF_VAL& val)
+{
+    QString strTip = tr("Mode:", "模组:");
+    strTip += val.strMode;
+    strTip += tr("Axis:(","轴:(");
+
+    for (int i = 0; i < val.listStrAxis.size(); i++)
+    {
+        strTip += ","; // 组成(x,y,z)
+        strTip += val.listStrAxis[i];
+        strTip += ":";
+        QString s = QString::number(val.listDoVal[i], 'f', 2);
+    }
+    strTip += ")";
+
+
+    ui->speedTitleLabel->setText(strTip);
+
+}

+ 32 - 0
View/die-bonder-ui/Src/RewriteControl/SpeedAdjPage.h

@@ -0,0 +1,32 @@
+#ifndef SPEEDADJPAGE_H
+#define SPEEDADJPAGE_H
+
+#include <QMainWindow>
+
+struct ST_DEF_VAL
+{
+    QString         strMode; 
+    QList<double>   listDoVal;    //存在多组
+    QList<QString>  listStrAxis; // 存在多组
+};
+
+namespace Ui {
+class SpeedAdjPage;
+}
+
+class SpeedAdjPage : public QMainWindow
+{
+    Q_OBJECT
+
+public:
+    explicit SpeedAdjPage(QWidget *parent = nullptr);
+    ~SpeedAdjPage();
+
+    /**更新默认值
+     */
+    void updateDefVal(const ST_DEF_VAL& val);
+private:
+    Ui::SpeedAdjPage *ui;
+};
+
+#endif // SPEEDADJPAGE_H

+ 65 - 0
View/die-bonder-ui/Src/RewriteControl/SpeedAdjPage.ui

@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>SpeedAdjPage</class>
+ <widget class="QMainWindow" name="SpeedAdjPage">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>467</width>
+    <height>346</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>MainWindow</string>
+  </property>
+  <widget class="QWidget" name="centralwidget">
+   <widget class="QWidget" name="gridLayoutWidget">
+    <property name="geometry">
+     <rect>
+      <x>10</x>
+      <y>10</y>
+      <width>451</width>
+      <height>331</height>
+     </rect>
+    </property>
+    <layout class="QGridLayout" name="gridLayout">
+     <property name="spacing">
+      <number>0</number>
+     </property>
+     <item row="1" column="0" colspan="3">
+      <widget class="SpeedAdjWnd" name="speed1" native="true"/>
+     </item>
+     <item row="0" column="0" colspan="3">
+      <widget class="QLabel" name="speedTitleLabel">
+       <property name="font">
+        <font>
+         <pointsize>16</pointsize>
+        </font>
+       </property>
+       <property name="text">
+        <string>当前速度:100000</string>
+       </property>
+       <property name="alignment">
+        <set>Qt::AlignCenter</set>
+       </property>
+      </widget>
+     </item>
+     <item row="2" column="0" colspan="3">
+      <widget class="SpeedAdjWnd" name="speed100" native="true"/>
+     </item>
+    </layout>
+   </widget>
+  </widget>
+ </widget>
+ <customwidgets>
+  <customwidget>
+   <class>SpeedAdjWnd</class>
+   <extends>QWidget</extends>
+   <header>SpeedAdjWnd.h</header>
+   <container>1</container>
+  </customwidget>
+ </customwidgets>
+ <resources/>
+ <connections/>
+</ui>

+ 14 - 0
View/die-bonder-ui/Src/RewriteControl/SpeedAdjWnd.cpp

@@ -0,0 +1,14 @@
+#include "SpeedAdjWnd.h"
+#include "ui_SpeedAdjWnd.h"
+
+SpeedAdjWnd::SpeedAdjWnd(QWidget *parent)
+    : QMainWindow(parent)
+    , ui(new Ui::SpeedAdjWnd)
+{
+    ui->setupUi(this);
+}
+
+SpeedAdjWnd::~SpeedAdjWnd()
+{
+    delete ui;
+}

+ 22 - 0
View/die-bonder-ui/Src/RewriteControl/SpeedAdjWnd.h

@@ -0,0 +1,22 @@
+#ifndef SPEEDADJWND_H
+#define SPEEDADJWND_H
+
+#include <QMainWindow>
+
+namespace Ui {
+class SpeedAdjWnd;
+}
+
+class SpeedAdjWnd : public QMainWindow
+{
+    Q_OBJECT
+
+public:
+    explicit SpeedAdjWnd(QWidget *parent = nullptr);
+    ~SpeedAdjWnd();
+
+private:
+    Ui::SpeedAdjWnd *ui;
+};
+
+#endif // SPEEDADJWND_H

+ 87 - 0
View/die-bonder-ui/Src/RewriteControl/SpeedAdjWnd.ui

@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>SpeedAdjWnd</class>
+ <widget class="QMainWindow" name="SpeedAdjWnd">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>429</width>
+    <height>51</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>MainWindow</string>
+  </property>
+  <widget class="QWidget" name="centralwidget">
+   <widget class="QWidget" name="">
+    <property name="geometry">
+     <rect>
+      <x>1</x>
+      <y>10</y>
+      <width>421</width>
+      <height>37</height>
+     </rect>
+    </property>
+    <layout class="QHBoxLayout" name="horizontalLayout">
+     <item>
+      <widget class="QLabel" name="speedLabel_1">
+       <property name="minimumSize">
+        <size>
+         <width>88</width>
+         <height>0</height>
+        </size>
+       </property>
+       <property name="font">
+        <font>
+         <pointsize>16</pointsize>
+        </font>
+       </property>
+       <property name="text">
+        <string>1</string>
+       </property>
+       <property name="alignment">
+        <set>Qt::AlignCenter</set>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QPushButton" name="speedSubBut_1">
+       <property name="font">
+        <font>
+         <pointsize>16</pointsize>
+        </font>
+       </property>
+       <property name="text">
+        <string>-</string>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QLineEdit" name="lineEdit">
+       <property name="font">
+        <font>
+         <pointsize>16</pointsize>
+        </font>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QPushButton" name="speedAddBut_1">
+       <property name="font">
+        <font>
+         <pointsize>16</pointsize>
+        </font>
+       </property>
+       <property name="text">
+        <string>+</string>
+       </property>
+      </widget>
+     </item>
+    </layout>
+   </widget>
+  </widget>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>