瀏覽代碼

修改类名

Change-Id: Iefe48d5d555ecc02d1aafe24fcffd225695aa8a7
li_xingqi* 3 月之前
父節點
當前提交
bbd39315a7

+ 16 - 16
OriginalWnd/ChartsAndCamerasWnd.cpp

@@ -6,23 +6,23 @@
 #include <QVBoxLayout>
 #include <QTimer>
 
-Demo001_1::Demo001_1(QWidget *parent)
+ChartsAndCamerasWnd::ChartsAndCamerasWnd(QWidget *parent)
     : QMainWindow(parent)
-    , ui(new Ui::Demo001_1)
+    , ui(new Ui::ChartsAndCamerasWnd)
 {
     ui->setupUi(this);
 
     initFrom();
 }
 
-Demo001_1::~Demo001_1()
+ChartsAndCamerasWnd::~ChartsAndCamerasWnd()
 {
     delete ui;
 }
 
-void Demo001_1::initFrom() {
+void ChartsAndCamerasWnd::initFrom() {
     QTimer *timer = new QTimer(this);
-    connect(timer, &QTimer::timeout, this, &Demo001_1::checkSettings);
+    connect(timer, &QTimer::timeout, this, &ChartsAndCamerasWnd::checkSettings);
     timer->start(100);
 
     ui->label_Percentage->setAlignment(Qt::AlignCenter);
@@ -103,7 +103,7 @@ void Demo001_1::initFrom() {
     ui->Operatewidget->setMouseTracking(true);
 }
 
-void Demo001_1::initSliders() {
+void ChartsAndCamerasWnd::initSliders() {
     QList<QSlider*> sliders = {
         ui->verticalSlider, ui->verticalSlider_2, ui->verticalSlider_3,
         ui->verticalSlider_4, ui->verticalSlider_7, ui->verticalSlider_8
@@ -117,7 +117,7 @@ void Demo001_1::initSliders() {
     }
 }
 
-void Demo001_1::initLineEdits() {
+void ChartsAndCamerasWnd::initLineEdits() {
     QList<QLineEdit*> lineEdits = {
         ui->lineEdit, ui->lineEdit_2, ui->lineEdit_3,
         ui->lineEdit_4, ui->lineEdit_7, ui->lineEdit_8
@@ -128,7 +128,7 @@ void Demo001_1::initLineEdits() {
     }
 }
 
-void Demo001_1::connectSliderAndLineEdit(QSlider* slider, QLineEdit* lineEdit)
+void ChartsAndCamerasWnd::connectSliderAndLineEdit(QSlider* slider, QLineEdit* lineEdit)
 {
     QIntValidator* validator = new QIntValidator(slider->minimum(), slider->maximum(), lineEdit);
     lineEdit->setValidator(validator);
@@ -149,7 +149,7 @@ void Demo001_1::connectSliderAndLineEdit(QSlider* slider, QLineEdit* lineEdit)
     });
 }
 
-void Demo001_1::checkSettings() {
+void ChartsAndCamerasWnd::checkSettings() {
 
 
     QSettings settings("YourCompany", "YourApplication_");
@@ -163,7 +163,7 @@ void Demo001_1::checkSettings() {
     }
 }
 
-void Demo001_1::loadSettings()
+void ChartsAndCamerasWnd::loadSettings()
 {
     QSettings settings("YourCompany", "YourApplication_");
     int groupId = settings.value("GroupId", 0).toInt();
@@ -171,7 +171,7 @@ void Demo001_1::loadSettings()
     loadGroupSettings(groupId, index);
 }
 
-void Demo001_1::loadGroupSettings(int Id, int Index) {
+void ChartsAndCamerasWnd::loadGroupSettings(int Id, int Index) {
     QSettings settings("YourOrganization", "YourApplication");
     settings.beginGroup(QString::number(Id));
     QString imagePath1 = settings.value("ImagePath1").toString();
@@ -203,7 +203,7 @@ void Demo001_1::loadGroupSettings(int Id, int Index) {
     // connect(ui->DatacomboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(Demo001_3::onComboBoxIndexChanged(int)));
 }
 
-void Demo001_1::on_ZoomUpButton_clicked()
+void ChartsAndCamerasWnd::on_ZoomUpButton_clicked()
 {
     if (scaleFactor < 3.0) {
         scaleFactor *= 1.1;
@@ -221,7 +221,7 @@ void Demo001_1::on_ZoomUpButton_clicked()
     ui->label_Percentage->setText(QString("%1%").arg(percentageStr));
 }
 
-void Demo001_1::on_ZoomOutButton_clicked()
+void ChartsAndCamerasWnd::on_ZoomOutButton_clicked()
 {
     if (scaleFactor > 0.25) {
         scaleFactor *= 0.9;
@@ -239,7 +239,7 @@ void Demo001_1::on_ZoomOutButton_clicked()
     ui->label_Percentage->setText(QString("%1%").arg(percentageStr));
 }
 
-void Demo001_1::wheelEvent(QWheelEvent *event)
+void ChartsAndCamerasWnd::wheelEvent(QWheelEvent *event)
 {
     if (ui->Operatewidget->rect().contains(ui->Operatewidget->mapFromGlobal(event->globalPos()))) {
         if (event->angleDelta().y() > 0) {
@@ -266,12 +266,12 @@ void Demo001_1::wheelEvent(QWheelEvent *event)
     QMainWindow::wheelEvent(event);
 }
 
-void Demo001_1::showEvent(QShowEvent *event) {
+void ChartsAndCamerasWnd::showEvent(QShowEvent *event) {
     QMainWindow::showEvent(event);
     loadSettings();
     // initFrom();
 }
 
-void Demo001_1::hideEvent(QHideEvent *event) {
+void ChartsAndCamerasWnd::hideEvent(QHideEvent *event) {
     QMainWindow::hideEvent(event);
 }

+ 5 - 5
OriginalWnd/ChartsAndCamerasWnd.h

@@ -7,16 +7,16 @@
 #include <QSettings>
 
 namespace Ui {
-class Demo001_1;
+class ChartsAndCamerasWnd;
 }
 
-class Demo001_1 : public QMainWindow
+class ChartsAndCamerasWnd : public QMainWindow
 {
     Q_OBJECT
 
 public:
-    explicit Demo001_1(QWidget *parent = nullptr);
-    ~Demo001_1();
+    explicit ChartsAndCamerasWnd(QWidget *parent = nullptr);
+    ~ChartsAndCamerasWnd();
 
     void initFrom();
     void connectSliderAndLineEdit(QSlider* slider, QLineEdit* lineEdit);
@@ -41,7 +41,7 @@ private slots:
     void on_ZoomOutButton_clicked();
 
 private:
-    Ui::Demo001_1 *ui;
+    Ui::ChartsAndCamerasWnd *ui;
 
     QPixmap currentPixmap;
     qreal scaleFactor;

+ 41 - 2
OriginalWnd/ChartsAndCamerasWnd.ui

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <ui version="4.0">
- <class>Demo001_1</class>
- <widget class="QMainWindow" name="Demo001_1">
+ <class>ChartsAndCamerasWnd</class>
+ <widget class="QMainWindow" name="ChartsAndCamerasWnd">
   <property name="geometry">
    <rect>
     <x>0</x>
@@ -23,6 +23,45 @@
       <height>988</height>
      </rect>
     </property>
+    <widget class="QPushButton" name="pushButton">
+     <property name="geometry">
+      <rect>
+       <x>40</x>
+       <y>340</y>
+       <width>92</width>
+       <height>28</height>
+      </rect>
+     </property>
+     <property name="text">
+      <string>⚪</string>
+     </property>
+    </widget>
+    <widget class="QPushButton" name="pushButton_3">
+     <property name="geometry">
+      <rect>
+       <x>190</x>
+       <y>360</y>
+       <width>92</width>
+       <height>28</height>
+      </rect>
+     </property>
+     <property name="text">
+      <string>方形</string>
+     </property>
+    </widget>
+    <widget class="QPushButton" name="pushButton_4">
+     <property name="geometry">
+      <rect>
+       <x>360</x>
+       <y>370</y>
+       <width>92</width>
+       <height>28</height>
+      </rect>
+     </property>
+     <property name="text">
+      <string>五角星</string>
+     </property>
+    </widget>
    </widget>
    <widget class="QWidget" name="Rightwidget" native="true">
     <property name="geometry">

+ 18 - 18
OriginalWnd/MainAndSecondaryCamerasWnd.cpp

@@ -6,24 +6,24 @@
 #include <QVBoxLayout>
 #include <QTimer>
 
-Demo001_2::Demo001_2(QWidget *parent)
+MainAndSecondaryCamerasWnd::MainAndSecondaryCamerasWnd(QWidget *parent)
     : QMainWindow(parent)
-    , ui(new Ui::Demo001_2)
+    , ui(new Ui::MainAndSecondaryCamerasWnd)
 {
     ui->setupUi(this);
 
     initFrom();
 }
 
-Demo001_2::~Demo001_2()
+MainAndSecondaryCamerasWnd::~MainAndSecondaryCamerasWnd()
 {
     delete ui;
 }
 
-void Demo001_2::initFrom()
+void MainAndSecondaryCamerasWnd::initFrom()
 {
     QTimer *timer = new QTimer(this);
-    connect(timer, &QTimer::timeout, this, &Demo001_2::checkSettings);
+    connect(timer, &QTimer::timeout, this, &MainAndSecondaryCamerasWnd::checkSettings);
     timer->start(100);
 
     ui->Leftlabel_Percentage->setAlignment(Qt::AlignCenter);
@@ -127,7 +127,7 @@ void Demo001_2::initFrom()
     ui->RightOperatewidget->setMouseTracking(true);
 }
 
-void Demo001_2::initSliders() {
+void MainAndSecondaryCamerasWnd::initSliders() {
     QList<QSlider*> sliders = {
         ui->verticalSlider, ui->verticalSlider_2, ui->verticalSlider_3,
         ui->verticalSlider_4, ui->verticalSlider_7, ui->verticalSlider_8
@@ -141,7 +141,7 @@ void Demo001_2::initSliders() {
     }
 }
 
-void Demo001_2::initLineEdits() {
+void MainAndSecondaryCamerasWnd::initLineEdits() {
     QList<QLineEdit*> lineEdits = {
         ui->lineEdit, ui->lineEdit_2, ui->lineEdit_3,
         ui->lineEdit_4, ui->lineEdit_7, ui->lineEdit_8
@@ -152,7 +152,7 @@ void Demo001_2::initLineEdits() {
     }
 }
 
-void Demo001_2::connectSliderAndLineEdit(QSlider* slider, QLineEdit* lineEdit)
+void MainAndSecondaryCamerasWnd::connectSliderAndLineEdit(QSlider* slider, QLineEdit* lineEdit)
 {
     QIntValidator* validator = new QIntValidator(slider->minimum(), slider->maximum(), lineEdit);
     lineEdit->setValidator(validator);
@@ -173,7 +173,7 @@ void Demo001_2::connectSliderAndLineEdit(QSlider* slider, QLineEdit* lineEdit)
     });
 }
 
-void Demo001_2::checkSettings() {
+void MainAndSecondaryCamerasWnd::checkSettings() {
     QSettings settings("YourCompany", "YourApplication_");
     int groupId = settings.value("GroupId", 0).toInt();
     int index = settings.value("Index", 0).toInt();
@@ -185,7 +185,7 @@ void Demo001_2::checkSettings() {
     }
 }
 
-void Demo001_2::loadSettings()
+void MainAndSecondaryCamerasWnd::loadSettings()
 {
     QSettings settings("YourCompany", "YourApplication_");
     int groupId = settings.value("GroupId", 0).toInt();
@@ -193,7 +193,7 @@ void Demo001_2::loadSettings()
     loadGroupSettings(groupId, index);
 }
 
-void Demo001_2::loadGroupSettings(int Id, int Index) {
+void MainAndSecondaryCamerasWnd::loadGroupSettings(int Id, int Index) {
     QSettings settings("YourOrganization", "YourApplication");
     settings.beginGroup(QString::number(Id));
     QString imagePath1 = settings.value("ImagePath1").toString();
@@ -229,7 +229,7 @@ void Demo001_2::loadGroupSettings(int Id, int Index) {
 }
 
 
-void Demo001_2::on_LeftZoomUpButton_clicked()
+void MainAndSecondaryCamerasWnd::on_LeftZoomUpButton_clicked()
 {
     if (Left_scaleFactor < 3.0) {
         Left_scaleFactor *= 1.1;
@@ -248,7 +248,7 @@ void Demo001_2::on_LeftZoomUpButton_clicked()
 }
 
 
-void Demo001_2::on_RightZoomUpButton_clicked()
+void MainAndSecondaryCamerasWnd::on_RightZoomUpButton_clicked()
 {
     if (Right_scaleFactor < 3.0) {
         Right_scaleFactor *= 1.1;
@@ -267,7 +267,7 @@ void Demo001_2::on_RightZoomUpButton_clicked()
 }
 
 
-void Demo001_2::on_LeftZoomOutButton_clicked()
+void MainAndSecondaryCamerasWnd::on_LeftZoomOutButton_clicked()
 {
     if (Left_scaleFactor > 0.25) {
         Left_scaleFactor *= 0.9;
@@ -286,7 +286,7 @@ void Demo001_2::on_LeftZoomOutButton_clicked()
 }
 
 
-void Demo001_2::on_RightZoomOutButton_clicked()
+void MainAndSecondaryCamerasWnd::on_RightZoomOutButton_clicked()
 {
     if (Right_scaleFactor > 0.25) {
         Right_scaleFactor *= 0.9;
@@ -304,7 +304,7 @@ void Demo001_2::on_RightZoomOutButton_clicked()
     ui->Rightlabel_Percentage->setText(QString("%1%").arg(percentageStr));
 }
 
-void Demo001_2::wheelEvent(QWheelEvent *event)
+void MainAndSecondaryCamerasWnd::wheelEvent(QWheelEvent *event)
 {
     if (ui->LeftOperatewidget->rect().contains(ui->LeftOperatewidget->mapFromGlobal(event->globalPosition().toPoint()))) {
         if (event->angleDelta().y() > 0) {
@@ -353,12 +353,12 @@ void Demo001_2::wheelEvent(QWheelEvent *event)
     QMainWindow::wheelEvent(event);
 }
 
-void Demo001_2::showEvent(QShowEvent *event) {
+void MainAndSecondaryCamerasWnd::showEvent(QShowEvent *event) {
     QMainWindow::showEvent(event);
     loadSettings();
 }
 
-void Demo001_2::hideEvent(QHideEvent *event) {
+void MainAndSecondaryCamerasWnd::hideEvent(QHideEvent *event) {
     QMainWindow::hideEvent(event);
 }
 

+ 5 - 5
OriginalWnd/MainAndSecondaryCamerasWnd.h

@@ -6,16 +6,16 @@
 #include <QLineEdit>
 
 namespace Ui {
-class Demo001_2;
+class MainAndSecondaryCamerasWnd;
 }
 
-class Demo001_2 : public QMainWindow
+class MainAndSecondaryCamerasWnd : public QMainWindow
 {
     Q_OBJECT
 
 public:
-    explicit Demo001_2(QWidget *parent = nullptr);
-    ~Demo001_2();
+    explicit MainAndSecondaryCamerasWnd(QWidget *parent = nullptr);
+    ~MainAndSecondaryCamerasWnd();
 
     void initFrom();
     void connectSliderAndLineEdit(QSlider* slider, QLineEdit* lineEdit);
@@ -44,7 +44,7 @@ private slots:
     }
 
 private:
-    Ui::Demo001_2 *ui;
+    Ui::MainAndSecondaryCamerasWnd *ui;
 
     QPixmap Left_currentPixmap;
     qreal Left_scaleFactor;

+ 2 - 2
OriginalWnd/MainAndSecondaryCamerasWnd.ui

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <ui version="4.0">
- <class>Demo001_2</class>
- <widget class="QMainWindow" name="Demo001_2">
+ <class>MainAndSecondaryCamerasWnd</class>
+ <widget class="QMainWindow" name="MainAndSecondaryCamerasWnd">
   <property name="geometry">
    <rect>
     <x>0</x>

+ 6 - 6
OriginalWnd/OriginalWnd.cpp

@@ -49,17 +49,17 @@ void OriginalWnd::initForm()
     QSettings settings("OrganizationName__", "ApplicationName__");
     int lastSavedIndex = settings.value("lastIndex", 1).toInt();
     if (lastSavedIndex == 1) {
-        Demo001_1 *demo001_1 = new Demo001_1;
+        ChartsAndCamerasWnd *demo001_1 = new ChartsAndCamerasWnd;
         ui->switchShowPageUI->addWidget(demo001_1);
         ui->switchShowPageUI->setCurrentIndex(ui->switchShowPageUI->indexOf(demo001_1));
     }
     if (lastSavedIndex == 2) {
-        Demo001_2 *demo001_2 = new Demo001_2;
+        MainAndSecondaryCamerasWnd *demo001_2 = new MainAndSecondaryCamerasWnd;
         ui->switchShowPageUI->addWidget(demo001_2);
         ui->switchShowPageUI->setCurrentIndex(ui->switchShowPageUI->indexOf(demo001_2));
     }
     if (lastSavedIndex == 3) {
-        Demo001_3 *demo001_3 = new Demo001_3;
+        SingleCameraOperationWnd *demo001_3 = new SingleCameraOperationWnd;
         ui->switchShowPageUI->addWidget(demo001_3);
         ui->switchShowPageUI->setCurrentIndex(ui->switchShowPageUI->indexOf(demo001_3));
     }
@@ -110,7 +110,7 @@ bool OriginalWnd::eventFilter(QObject *obj,QEvent *event)
 
 void OriginalWnd::on_ChartButton_clicked()
 {
-    Demo001_1 *demo001_1 = new Demo001_1;
+    ChartsAndCamerasWnd *demo001_1 = new ChartsAndCamerasWnd;
     ui->switchShowPageUI->addWidget(demo001_1);
     ui->switchShowPageUI->setCurrentIndex(ui->switchShowPageUI->indexOf(demo001_1));
     QSettings settings("OrganizationName__", "ApplicationName__");
@@ -119,7 +119,7 @@ void OriginalWnd::on_ChartButton_clicked()
 
 void OriginalWnd::on_DoubleImageButton_clicked()
 {
-    Demo001_2 *demo001_2 = new Demo001_2;
+    MainAndSecondaryCamerasWnd *demo001_2 = new MainAndSecondaryCamerasWnd;
     ui->switchShowPageUI->addWidget(demo001_2);
     ui->switchShowPageUI->setCurrentIndex(ui->switchShowPageUI->indexOf(demo001_2));
     QSettings settings("OrganizationName__", "ApplicationName__");
@@ -129,7 +129,7 @@ void OriginalWnd::on_DoubleImageButton_clicked()
 
 void OriginalWnd::on_SingleImageButton_clicked()
 {
-    Demo001_3 *demo001_3 = new Demo001_3;
+    SingleCameraOperationWnd *demo001_3 = new SingleCameraOperationWnd;
     ui->switchShowPageUI->addWidget(demo001_3);
     ui->switchShowPageUI->setCurrentIndex(ui->switchShowPageUI->indexOf(demo001_3));
     QSettings settings("OrganizationName__", "ApplicationName__");

+ 23 - 23
OriginalWnd/SingleCameraOperationWnd.cpp

@@ -7,24 +7,24 @@
 #include <QDebug>
 #include <QTimer>
 
-Demo001_3::Demo001_3(QWidget *parent)
+SingleCameraOperationWnd::SingleCameraOperationWnd(QWidget *parent)
     : QMainWindow(parent)
-    , ui(new Ui::Demo001_3), scaleFactor(1.0)
+    , ui(new Ui::SingleCameraOperationWnd), scaleFactor(1.0)
 {
     ui->setupUi(this);
 
     initFrom();
-    // connect(this, &Demo001_3::closeEvent, this, &Demo001_3::saveSliderStates);
+    // connect(this, &SingleCameraOperationWnd::closeEvent, this, &SingleCameraOperationWnd::saveSliderStates);
 }
 
-Demo001_3::~Demo001_3()
+SingleCameraOperationWnd::~SingleCameraOperationWnd()
 {
     delete ui;
 }
 
-void Demo001_3::initFrom() {
+void SingleCameraOperationWnd::initFrom() {
     QTimer *timer = new QTimer(this);
-    connect(timer, &QTimer::timeout, this, &Demo001_3::checkSettings);
+    connect(timer, &QTimer::timeout, this, &SingleCameraOperationWnd::checkSettings);
     timer->start(100);
 
     ui->label_Percentage->setAlignment(Qt::AlignCenter);
@@ -92,7 +92,7 @@ void Demo001_3::initFrom() {
     ui->Operatewidget->setMouseTracking(true);
 }
 
-void Demo001_3::closeEvent(QCloseEvent *event) {
+void SingleCameraOperationWnd::closeEvent(QCloseEvent *event) {
     // 保存滑块状态
     saveSliderStates();
 
@@ -100,7 +100,7 @@ void Demo001_3::closeEvent(QCloseEvent *event) {
     QMainWindow::closeEvent(event);
 }
 
-void Demo001_3::initSliders() {
+void SingleCameraOperationWnd::initSliders() {
     QList<QSlider*> sliders = {
         ui->verticalSlider, ui->verticalSlider_2, ui->verticalSlider_3,
         ui->verticalSlider_4, ui->verticalSlider_5, ui->verticalSlider_6
@@ -114,7 +114,7 @@ void Demo001_3::initSliders() {
     }
 }
 
-void Demo001_3::initLineEdits() {
+void SingleCameraOperationWnd::initLineEdits() {
     QList<QLineEdit*> lineEdits = {
         ui->lineEdit, ui->lineEdit_2, ui->lineEdit_3,
         ui->lineEdit_4, ui->lineEdit_5, ui->lineEdit_6
@@ -125,7 +125,7 @@ void Demo001_3::initLineEdits() {
     }
 }
 
-void Demo001_3::saveSliderStates() {
+void SingleCameraOperationWnd::saveSliderStates() {
     QSettings settings("YourCompany", "YourApp");
     settings.beginGroup("SliderStates");
     settings.setValue("verticalSlider", ui->verticalSlider->value());
@@ -137,7 +137,7 @@ void Demo001_3::saveSliderStates() {
     settings.endGroup();
 }
 
-void Demo001_3::loadSliderStates() {
+void SingleCameraOperationWnd::loadSliderStates() {
     QSettings settings("YourCompany", "YourApp");
     settings.beginGroup("SliderStates");
     ui->verticalSlider->setValue(settings.value("verticalSlider", 11).toInt());
@@ -150,7 +150,7 @@ void Demo001_3::loadSliderStates() {
 }
 
 // QSlider 和 QLineEdit 的联动
-void Demo001_3::connectSliderAndLineEdit(QSlider* slider, QLineEdit* lineEdit)
+void SingleCameraOperationWnd::connectSliderAndLineEdit(QSlider* slider, QLineEdit* lineEdit)
 {
     QIntValidator* validator = new QIntValidator(slider->minimum(), slider->maximum(), lineEdit);
     lineEdit->setValidator(validator);
@@ -171,7 +171,7 @@ void Demo001_3::connectSliderAndLineEdit(QSlider* slider, QLineEdit* lineEdit)
     });
 }
 
-void Demo001_3::checkSettings() {
+void SingleCameraOperationWnd::checkSettings() {
     QSettings settings("YourCompany", "YourApplication_");
     int groupId = settings.value("GroupId", 0).toInt();
     int index = settings.value("Index", 0).toInt();
@@ -183,7 +183,7 @@ void Demo001_3::checkSettings() {
     }
 }
 
-void Demo001_3::loadSettings()
+void SingleCameraOperationWnd::loadSettings()
 {
     QSettings settings("YourCompany", "YourApplication_");
     int groupId = settings.value("GroupId", 0).toInt();
@@ -191,7 +191,7 @@ void Demo001_3::loadSettings()
     loadGroupSettings(groupId, index);
 }
 
-void Demo001_3::loadGroupSettings(int Id, int Index) {
+void SingleCameraOperationWnd::loadGroupSettings(int Id, int Index) {
     QSettings settings("YourOrganization", "YourApplication");
     settings.beginGroup(QString::number(Id));
     QString imagePath1 = settings.value("ImagePath1").toString();
@@ -221,10 +221,10 @@ void Demo001_3::loadGroupSettings(int Id, int Index) {
     ui->DatacomboBox->clear();
     ui->DatacomboBox->addItems(textList);
     // qDebug() << "ComboBox items added:" << ui->DatacomboBox->count();
-    // connect(ui->DatacomboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(Demo001_3::onComboBoxIndexChanged(int)));
+    // connect(ui->DatacomboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(SingleCameraOperationWnd::onComboBoxIndexChanged(int)));
 }
 
-void Demo001_3::on_ZoomUpButton_clicked() {
+void SingleCameraOperationWnd::on_ZoomUpButton_clicked() {
     if (scaleFactor < 3.0) {
         scaleFactor *= 1.1;
     }
@@ -241,7 +241,7 @@ void Demo001_3::on_ZoomUpButton_clicked() {
     ui->label_Percentage->setText(QString("%1%").arg(percentageStr));
 }
 
-void Demo001_3::on_ZoomOutButton_clicked() {
+void SingleCameraOperationWnd::on_ZoomOutButton_clicked() {
     if (scaleFactor > 0.25) {
         scaleFactor *= 0.9;
     }
@@ -258,7 +258,7 @@ void Demo001_3::on_ZoomOutButton_clicked() {
     ui->label_Percentage->setText(QString("%1%").arg(percentageStr));
 }
 
-void Demo001_3::wheelEvent(QWheelEvent *event) {
+void SingleCameraOperationWnd::wheelEvent(QWheelEvent *event) {
     // 检查鼠标事件是否发生在 Operatewidget 上
     if (ui->Operatewidget->rect().contains(ui->Operatewidget->mapFromGlobal(event->globalPos()))) {
         if (event->angleDelta().y() > 0) {
@@ -285,7 +285,7 @@ void Demo001_3::wheelEvent(QWheelEvent *event) {
     QMainWindow::wheelEvent(event);
 }
 
-void Demo001_3::onComboBoxIndexChanged(int index) {
+void SingleCameraOperationWnd::onComboBoxIndexChanged(int index) {
     // 根据index获取图片路径
     QString imagePath = getImagePathFromIndex(index);
     if (!imagePath.isEmpty()) {
@@ -299,7 +299,7 @@ void Demo001_3::onComboBoxIndexChanged(int index) {
     }
 }
 
-QString Demo001_3::getImagePathFromIndex(int index) {
+QString SingleCameraOperationWnd::getImagePathFromIndex(int index) {
     QStringList imagePaths = {
         ":/images/test_image/image.png",
         ":/images/test_image/image_2.png",
@@ -310,12 +310,12 @@ QString Demo001_3::getImagePathFromIndex(int index) {
     return ":/images/test_image/image.png";
 }
 
-void Demo001_3::showEvent(QShowEvent *event) {
+void SingleCameraOperationWnd::showEvent(QShowEvent *event) {
     QMainWindow::showEvent(event);
     loadSettings();
 }
 
-void Demo001_3::hideEvent(QHideEvent *event) {
+void SingleCameraOperationWnd::hideEvent(QHideEvent *event) {
     QMainWindow::hideEvent(event);
 }
 

+ 5 - 5
OriginalWnd/SingleCameraOperationWnd.h

@@ -6,16 +6,16 @@
 #include <QLineEdit>
 
 namespace Ui {
-class Demo001_3;
+class SingleCameraOperationWnd;
 }
 
-class Demo001_3 : public QMainWindow
+class SingleCameraOperationWnd : public QMainWindow
 {
     Q_OBJECT
 
 public:
-    explicit Demo001_3(QWidget *parent = nullptr);
-    ~Demo001_3();
+    explicit SingleCameraOperationWnd(QWidget *parent = nullptr);
+    ~SingleCameraOperationWnd();
 
     void initFrom();
     void connectSliderAndLineEdit(QSlider* slider, QLineEdit* lineEdit);
@@ -48,7 +48,7 @@ private slots:
     void on_ZoomOutButton_clicked();
 
 private:
-    Ui::Demo001_3 *ui;
+    Ui::SingleCameraOperationWnd *ui;
 
     QPixmap currentPixmap;
     qreal scaleFactor;

+ 2 - 2
OriginalWnd/SingleCameraOperationWnd.ui

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <ui version="4.0">
- <class>Demo001_3</class>
- <widget class="QMainWindow" name="Demo001_3">
+ <class>SingleCameraOperationWnd</class>
+ <widget class="QMainWindow" name="SingleCameraOperationWnd">
   <property name="geometry">
    <rect>
     <x>0</x>

+ 1 - 0
SBTdie-bonder-ui.pro

@@ -1,4 +1,5 @@
 QT       += core gui
+Qt += charts
 
 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
 

+ 1 - 1
SBTdie-bonder-ui.pro.user

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE QtCreatorProject>
-<!-- Written by QtCreator 14.0.2, 2024-12-30T09:22:46. -->
+<!-- Written by QtCreator 14.0.2, 2024-12-30T10:22:28. -->
 <qtcreator>
  <data>
   <variable>EnvironmentId</variable>

+ 98 - 98
light.qss

@@ -66,9 +66,9 @@ MainWnd QWidget#centralwidget
 MainWnd QFrame#line,
 OriginalWnd QFrame#line_2,
 QFrame#line_3,
-Demo001_3 QFrame#line_2,
-Demo001_2 QFrame#line_16,
-Demo001_1 QFrame#line_2
+SingleCameraOperationWnd QFrame#line_2,
+MainAndSecondaryCamerasWnd QFrame#line_16,
+ChartsAndCamerasWnd QFrame#line_2
 {
     border:none;
     background-color: rgba(186, 189, 220, 0.6);
@@ -220,7 +220,7 @@ OriginalWnd QWidget#widget QPushButton#SingleImageButton
     image: url(:/images/light/Demo001_3.png);
 }
 
-/* Demo001_3 */
+/* SingleCameraOperationWnd */
 QComboBox
 {
     border:1px solid #BABBDC;
@@ -242,10 +242,10 @@ QComboBox::drop-down
     padding-right:5px;
 }
 
-Demo001_3 QWidget#centralwidget,
-Demo001_2 QWidget#centralwidget,
-Demo001_1 QWidget#Leftwidget,
-Demo001_1 QWidget#Rightwidget
+SingleCameraOperationWnd QWidget#centralwidget,
+MainAndSecondaryCamerasWnd QWidget#centralwidget,
+ChartsAndCamerasWnd QWidget#Leftwidget,
+ChartsAndCamerasWnd QWidget#Rightwidget
 {
     border-radius: 10px;
     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #F1F4FD, stop: 1 #E5E4F6);
@@ -258,174 +258,174 @@ Group QPushButton#GroupButton
     background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #949FE8,stop:1 #2D309B);
 }
 
-Demo001_3 QPushButton#LiveButton,
-Demo001_2 QPushButton#LeftLiveButton,
-Demo001_2 QPushButton#RightLiveButton,
-Demo001_1 QPushButton#LiveButton
+SingleCameraOperationWnd QPushButton#LiveButton,
+MainAndSecondaryCamerasWnd QPushButton#LeftLiveButton,
+MainAndSecondaryCamerasWnd QPushButton#RightLiveButton,
+ChartsAndCamerasWnd QPushButton#LiveButton
 {
     color: #FFFFFF;
     border-radius: 6px;
     background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #949FE8,stop:1 #2D309B);
 }
 
-Demo001_3 QWidget#widget_6,
-Demo001_3 QWidget#widget_7,
-Demo001_3 QWidget#widget_8,
-Demo001_2 QWidget#widget_6,
-Demo001_2 QWidget#widget_7,
-Demo001_2 QWidget#widget_8,
-Demo001_1 QWidget#widget_6,
-Demo001_1 QWidget#widget_7,
-Demo001_1 QWidget#widget_8
+SingleCameraOperationWnd QWidget#widget_6,
+SingleCameraOperationWnd QWidget#widget_7,
+SingleCameraOperationWnd QWidget#widget_8,
+MainAndSecondaryCamerasWnd QWidget#widget_6,
+MainAndSecondaryCamerasWnd QWidget#widget_7,
+MainAndSecondaryCamerasWnd QWidget#widget_8,
+ChartsAndCamerasWnd QWidget#widget_6,
+ChartsAndCamerasWnd QWidget#widget_7,
+ChartsAndCamerasWnd QWidget#widget_8
 {
     background: #D6D8ED;
 }
 
-Demo001_3 QLineEdit,
-Demo001_2 QLineEdit,
-Demo001_1 QLineEdit
+SingleCameraOperationWnd QLineEdit,
+MainAndSecondaryCamerasWnd QLineEdit,
+ChartsAndCamerasWnd QLineEdit
 {
     border-radius: 6px;
     border: 1px solid #BABBDC;
 }
 
-Demo001_3 QWidget#BackGround,
-Demo001_2 QWidget#LeftBackGround,
-Demo001_2 QWidget#RightBackGround,
-Demo001_1 QWidget#BackGround
+SingleCameraOperationWnd QWidget#BackGround,
+MainAndSecondaryCamerasWnd QWidget#LeftBackGround,
+MainAndSecondaryCamerasWnd QWidget#RightBackGround,
+ChartsAndCamerasWnd QWidget#BackGround
 {
     background: #FFFFFF;
     border: 1px solid #BABBDC;
     border-radius: 0px;
 }
 
-Demo001_3 QLabel#label_4,
-Demo001_2 QLabel#label_4,
-Demo001_1 QLabel#label_4
+SingleCameraOperationWnd QLabel#label_4,
+MainAndSecondaryCamerasWnd QLabel#label_4,
+ChartsAndCamerasWnd QLabel#label_4
 {
     image: url(:/images/unknown_2.png);
 }
 
-Demo001_3 QLabel#label_5,
-Demo001_2 QLabel#label_5,
-Demo001_1 QLabel#label_5
+SingleCameraOperationWnd QLabel#label_5,
+MainAndSecondaryCamerasWnd QLabel#label_5,
+ChartsAndCamerasWnd QLabel#label_5
 {
     image: url(:/images/unknown_2_2.png);
 }
 
-Demo001_3 QLabel#label_6,
-Demo001_2 QLabel#label_6,
-Demo001_1 QLabel#label_6
+SingleCameraOperationWnd QLabel#label_6,
+MainAndSecondaryCamerasWnd QLabel#label_6,
+ChartsAndCamerasWnd QLabel#label_6
 {
     image: url(:/images/unknown_3_1.png);
 }
 
-Demo001_3 QLabel#label_7,
-Demo001_2 QLabel#label_7,
-Demo001_1 QLabel#label_7
+SingleCameraOperationWnd QLabel#label_7,
+MainAndSecondaryCamerasWnd QLabel#label_7,
+ChartsAndCamerasWnd QLabel#label_7
 {
     image: url(:/images/unknown_3_2.png);
 }
 
-Demo001_3 QLabel#label_8,
-Demo001_2 QLabel#label_11,
-Demo001_1 QLabel#label_11
+SingleCameraOperationWnd QLabel#label_8,
+MainAndSecondaryCamerasWnd QLabel#label_11,
+ChartsAndCamerasWnd QLabel#label_11
 {
     image: url(:/images/unknown_4_1.png);
 }
 
-Demo001_3 QLabel#label_9,
-Demo001_2 QLabel#label_12,
-Demo001_1 QLabel#label_12
+SingleCameraOperationWnd QLabel#label_9,
+MainAndSecondaryCamerasWnd QLabel#label_12,
+ChartsAndCamerasWnd QLabel#label_12
 {
     image: url(:/images/unknown_4_2.png);
 }
 
 /* 工具栏 */
-Demo001_3 QWidget#Toolbar,
-Demo001_2 QWidget#LeftToolbar,
-Demo001_2 QWidget#RightToolbar,
-Demo001_1 QWidget#Toolbar
+SingleCameraOperationWnd QWidget#Toolbar,
+MainAndSecondaryCamerasWnd QWidget#LeftToolbar,
+MainAndSecondaryCamerasWnd QWidget#RightToolbar,
+ChartsAndCamerasWnd QWidget#Toolbar
 {
     border-radius: 6px;
     background: #CBD0FF;
 }
 
-Demo001_3 QWidget#Toolbar QPushButton,
-Demo001_2 QWidget#LeftToolbar QPushButton,
-Demo001_2 QWidget#RightToolbar QPushButton,
-Demo001_1 QWidget#Toolbar QPushButton
+SingleCameraOperationWnd QWidget#Toolbar QPushButton,
+MainAndSecondaryCamerasWnd QWidget#LeftToolbar QPushButton,
+MainAndSecondaryCamerasWnd QWidget#RightToolbar QPushButton,
+ChartsAndCamerasWnd QWidget#Toolbar QPushButton
 {
     border-radius: 6px;
     background: #CBD0FF;
     border:none;
 }
 
-Demo001_3 QFrame#line,
-Demo001_3 QFrame#line_3,
-Demo001_3 QFrame#line_4,
-Demo001_3 QFrame#line_5,
-Demo001_3 QFrame#line_6,
-Demo001_2 QFrame#line_1,
-Demo001_2 QFrame#line_3,
-Demo001_2 QFrame#line_4,
-Demo001_2 QFrame#line_5,
-Demo001_2 QFrame#line_6,
-Demo001_2 QFrame#line_11,
-Demo001_2 QFrame#line_12,
-Demo001_2 QFrame#line_13,
-Demo001_2 QFrame#line_14,
-Demo001_2 QFrame#line_15,
-Demo001_1 QFrame#line,
-Demo001_1 QFrame#line_3,
-Demo001_1 QFrame#line_4,
-Demo001_1 QFrame#line_5,
-Demo001_1 QFrame#line_6
+SingleCameraOperationWnd QFrame#line,
+SingleCameraOperationWnd QFrame#line_3,
+SingleCameraOperationWnd QFrame#line_4,
+SingleCameraOperationWnd QFrame#line_5,
+SingleCameraOperationWnd QFrame#line_6,
+MainAndSecondaryCamerasWnd QFrame#line_1,
+MainAndSecondaryCamerasWnd QFrame#line_3,
+MainAndSecondaryCamerasWnd QFrame#line_4,
+MainAndSecondaryCamerasWnd QFrame#line_5,
+MainAndSecondaryCamerasWnd QFrame#line_6,
+MainAndSecondaryCamerasWnd QFrame#line_11,
+MainAndSecondaryCamerasWnd QFrame#line_12,
+MainAndSecondaryCamerasWnd QFrame#line_13,
+MainAndSecondaryCamerasWnd QFrame#line_14,
+MainAndSecondaryCamerasWnd QFrame#line_15,
+ChartsAndCamerasWnd QFrame#line,
+ChartsAndCamerasWnd QFrame#line_3,
+ChartsAndCamerasWnd QFrame#line_4,
+ChartsAndCamerasWnd QFrame#line_5,
+ChartsAndCamerasWnd QFrame#line_6
 {
     border:none;
     background-color: rgba(78, 81, 206, 0.5);
 }
 
-Demo001_3 QPushButton#pushButton_2,
-Demo001_3 QLabel#label_Percentage,
-Demo001_2 QPushButton#pushButton_2,
-Demo001_2 QLabel#Leftlabel_Percentage,
-Demo001_2 QPushButton#pushButton_4,
-Demo001_2 QLabel#Rightlabel_Percentage,
-Demo001_1 QPushButton#pushButton_2,
-Demo001_1 QLabel#label_Percentage
+SingleCameraOperationWnd QPushButton#pushButton_2,
+SingleCameraOperationWnd QLabel#label_Percentage,
+MainAndSecondaryCamerasWnd QPushButton#pushButton_2,
+MainAndSecondaryCamerasWnd QLabel#Leftlabel_Percentage,
+MainAndSecondaryCamerasWnd QPushButton#pushButton_4,
+MainAndSecondaryCamerasWnd QLabel#Rightlabel_Percentage,
+ChartsAndCamerasWnd QPushButton#pushButton_2,
+ChartsAndCamerasWnd QLabel#label_Percentage
 {
     color: #4E51CE;
 }
 
-Demo001_3 QPushButton#ZoomUpButton,
-Demo001_2 QPushButton#LeftZoomUpButton,
-Demo001_2 QPushButton#RightZoomUpButton,
-Demo001_1 QPushButton#ZoomUpButton
+SingleCameraOperationWnd QPushButton#ZoomUpButton,
+MainAndSecondaryCamerasWnd QPushButton#LeftZoomUpButton,
+MainAndSecondaryCamerasWnd QPushButton#RightZoomUpButton,
+ChartsAndCamerasWnd QPushButton#ZoomUpButton
 {
     image: url(:/images/light/zoom up.png);
 }
 
-Demo001_3 QPushButton#ZoomOutButton,
-Demo001_2 QPushButton#LeftZoomOutButton,
-Demo001_2 QPushButton#RightZoomOutButton,
-Demo001_1 QPushButton#ZoomOutButton
+SingleCameraOperationWnd QPushButton#ZoomOutButton,
+MainAndSecondaryCamerasWnd QPushButton#LeftZoomOutButton,
+MainAndSecondaryCamerasWnd QPushButton#RightZoomOutButton,
+ChartsAndCamerasWnd QPushButton#ZoomOutButton
 {
     image: url(:/images/light/zoom out.png);
 }
 
-Demo001_3 QPushButton#RulerButton,
-Demo001_2 QPushButton#LeftRulerButton,
-Demo001_2 QPushButton#RightRulerButton,
-Demo001_1 QPushButton#RulerButton
+SingleCameraOperationWnd QPushButton#RulerButton,
+MainAndSecondaryCamerasWnd QPushButton#LeftRulerButton,
+MainAndSecondaryCamerasWnd QPushButton#RightRulerButton,
+ChartsAndCamerasWnd QPushButton#RulerButton
 {
     image: url(:/images/light/ruler.png);
 }
 
-Demo001_3 QPushButton#PenButton,
-Demo001_2 QPushButton#LeftPenButton,
-Demo001_2 QPushButton#RightPenButton,
-Demo001_1 QPushButton#PenButton
+SingleCameraOperationWnd QPushButton#PenButton,
+MainAndSecondaryCamerasWnd QPushButton#LeftPenButton,
+MainAndSecondaryCamerasWnd QPushButton#RightPenButton,
+ChartsAndCamerasWnd QPushButton#PenButton
 {
     image: url(:/images/light/pen.png);
 }