Pārlūkot izejas kodu

change ADCIntelligentShow_grpc. for open door and light.

yuchuli 3 gadi atpakaļ
vecāks
revīzija
13b210c459

+ 4 - 1
src/ui/ADCIntelligentShow_grpc/ADCIntelligentShow_grpc.pro

@@ -36,6 +36,7 @@ SOURCES += \
     ../../include/msgtype/imu.pb.cc \
     ../../include/msgtype/radarobject.pb.cc \
     ../../include/msgtype/radarobjectarray.pb.cc \
+    dialogsetting.cpp \
     ivmapview.cpp \
     ivview.cpp \
         main.cpp \
@@ -56,13 +57,15 @@ HEADERS += \
         ../../include/msgtype/radarobject.pb.h \
         ../../include/msgtype/radarobjectarray.pb.h \
         adcintelligentshow.h \
+        dialogsetting.h \
         ivmapview.h \
         ivview.h \
         myview.h \
         pos_def.h
 
 FORMS += \
-        adcintelligentshow.ui
+        adcintelligentshow.ui \
+        dialogsetting.ui
 
 RESOURCES += \
     adcintelligentshow.qrc

+ 4 - 1
src/ui/ADCIntelligentShow_grpc/ADCIntelligentShow_grpc_android.pro

@@ -40,6 +40,7 @@ SOURCES += \
     ../../include/msgtype/imu.pb.cc \
     ../../include/msgtype/radarobject.pb.cc \
     ../../include/msgtype/radarobjectarray.pb.cc \
+    dialogsetting.cpp \
     ivmapview.cpp \
     ivview.cpp \
         main.cpp \
@@ -59,6 +60,7 @@ HEADERS += \
         ../../include/msgtype/imu.pb.h \
         ../../include/msgtype/radarobject.pb.h \
         ../../include/msgtype/radarobjectarray.pb.h \
+        dialogsetting.h \
         adcintelligentshow.h \
         gps_nbtype.h \
         ivmapview.h \
@@ -67,7 +69,8 @@ HEADERS += \
         pos_def.h
 
 FORMS += \
-        adcintelligentshow.ui
+        adcintelligentshow.ui \
+        dialogsetting.ui
 
 RESOURCES += \
     adcintelligentshow.qrc

+ 1 - 0
src/ui/ADCIntelligentShow_grpc/Car-Control-icon/JinGuang-Guan.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1623727712053" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3848" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M473.349 320C451.078 384.54 440 448.756 440 512.83c0 63.946 11.033 127.603 33.204 191.17H680c106.039 0 192-85.961 192-192s-85.961-192-192-192H473.349z m-16.883-48H680c132.548 0 240 107.452 240 240S812.548 752 680 752H456.387a24 24 0 0 1-22.454-15.526C405.978 662.402 392 587.854 392 512.831c0-75.064 13.992-150.135 41.977-225.213A24 24 0 0 1 456.466 272z m-128.903 60.942c12.734-3.677 26.039 3.664 29.716 16.399 3.678 12.734-3.664 26.039-16.398 29.717l-207.751 60c-12.734 3.677-26.04-3.664-29.717-16.399-3.678-12.734 3.664-26.039 16.398-29.717l207.752-60z m0 144c12.734-3.677 26.039 3.664 29.716 16.399 3.678 12.734-3.664 26.039-16.398 29.717l-207.751 60c-12.734 3.677-26.04-3.664-29.717-16.399-3.678-12.734 3.664-26.039 16.398-29.717l207.752-60z m0 144c12.734-3.677 26.039 3.664 29.716 16.399 3.678 12.734-3.664 26.039-16.398 29.717l-207.751 60c-12.734 3.677-26.04-3.664-29.717-16.399-3.678-12.734 3.664-26.039 16.398-29.717l207.752-60z" p-id="3849" fill="#bfbfbf"></path></svg>

+ 1 - 0
src/ui/ADCIntelligentShow_grpc/Car-Control-icon/JinGuang-Kai.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1623727299416" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1557" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M473.349 320C451.078 384.54 440 448.756 440 512.83c0 63.946 11.033 127.603 33.204 191.17H680c106.039 0 192-85.961 192-192s-85.961-192-192-192H473.349z m-16.883-48H680c132.548 0 240 107.452 240 240S812.548 752 680 752H456.387a24 24 0 0 1-22.454-15.526C405.978 662.402 392 587.854 392 512.831c0-75.064 13.992-150.135 41.977-225.213A24 24 0 0 1 456.466 272z m-128.903 60.942c12.734-3.677 26.039 3.664 29.716 16.399 3.678 12.734-3.664 26.039-16.398 29.717l-207.751 60c-12.734 3.677-26.04-3.664-29.717-16.399-3.678-12.734 3.664-26.039 16.398-29.717l207.752-60z m0 144c12.734-3.677 26.039 3.664 29.716 16.399 3.678 12.734-3.664 26.039-16.398 29.717l-207.751 60c-12.734 3.677-26.04-3.664-29.717-16.399-3.678-12.734 3.664-26.039 16.398-29.717l207.752-60z m0 144c12.734-3.677 26.039 3.664 29.716 16.399 3.678 12.734-3.664 26.039-16.398 29.717l-207.751 60c-12.734 3.677-26.04-3.664-29.717-16.399-3.678-12.734 3.664-26.039 16.398-29.717l207.752-60z" p-id="1558" fill="#c6c01f"></path></svg>

+ 1 - 0
src/ui/ADCIntelligentShow_grpc/Car-Control-icon/MenJin-Guan.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1623727498511" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2985" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M870.4 133.12c11.264 0 20.48 9.216 20.48 20.48v716.8c0 11.264-9.216 20.48-20.48 20.48H153.6c-11.264 0-20.48-9.216-20.48-20.48V153.6c0-11.264 9.216-20.48 20.48-20.48h716.8m0-30.72H153.6c-28.672 0-51.2 22.528-51.2 51.2v716.8c0 28.672 22.528 51.2 51.2 51.2h716.8c28.672 0 51.2-22.528 51.2-51.2V153.6c0-28.672-22.528-51.2-51.2-51.2z" p-id="2986" fill="#d6204b"></path><path d="M404.48 450.56c-14.336 0-25.6 11.264-25.6 25.6v71.68c0 14.336 11.264 25.6 25.6 25.6s25.6-11.264 25.6-25.6v-71.68c0-14.336-11.264-25.6-25.6-25.6zM619.52 450.56c-14.336 0-25.6 11.264-25.6 25.6v71.68c0 14.336 11.264 25.6 25.6 25.6s25.6-11.264 25.6-25.6v-71.68c0-14.336-11.264-25.6-25.6-25.6zM532.48 102.4h-40.96v819.2h40.96z" p-id="2987" fill="#d6204b"></path></svg>

+ 1 - 0
src/ui/ADCIntelligentShow_grpc/Car-Control-icon/MenJin-Kai.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1623727531340" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3243" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M870.4 133.12c11.264 0 20.48 9.216 20.48 20.48v716.8c0 11.264-9.216 20.48-20.48 20.48H153.6c-11.264 0-20.48-9.216-20.48-20.48V153.6c0-11.264 9.216-20.48 20.48-20.48h716.8m0-30.72H153.6c-28.672 0-51.2 22.528-51.2 51.2v716.8c0 28.672 22.528 51.2 51.2 51.2h716.8c28.672 0 51.2-22.528 51.2-51.2V153.6c0-28.672-22.528-51.2-51.2-51.2z" p-id="3244" fill="#d6204b"></path><path d="M147.456 134.144L440.32 294.912v434.176L147.456 889.856c-8.192-3.072-14.336-10.24-14.336-19.456V153.6c0-9.216 6.144-17.408 14.336-19.456M153.6 102.4c-28.672 0-51.2 22.528-51.2 51.2v716.8c0 28.672 22.528 51.2 51.2 51.2l307.2-167.936c6.144-4.096 10.24-10.24 10.24-18.432V288.768c0-7.168-4.096-14.336-10.24-18.432L153.6 102.4zM876.544 134.144c8.192 3.072 14.336 10.24 14.336 19.456v716.8c0 9.216-6.144 17.408-14.336 19.456L583.68 729.088V294.912l292.864-160.768M870.4 102.4L563.2 270.336c-6.144 4.096-10.24 10.24-10.24 18.432v446.464c0 7.168 4.096 14.336 10.24 18.432L870.4 921.6c28.672 0 51.2-22.528 51.2-51.2V153.6c0-28.672-22.528-51.2-51.2-51.2z" p-id="3245" fill="#d6204b"></path><path d="M363.52 450.56c-14.336 0-25.6 11.264-25.6 25.6v71.68c0 14.336 11.264 25.6 25.6 25.6s25.6-11.264 25.6-25.6v-71.68c0-14.336-11.264-25.6-25.6-25.6zM660.48 450.56c-14.336 0-25.6 11.264-25.6 25.6v71.68c0 14.336 11.264 25.6 25.6 25.6s25.6-11.264 25.6-25.6v-71.68c0-14.336-11.264-25.6-25.6-25.6z" p-id="3246" fill="#d6204b"></path></svg>

+ 1 - 0
src/ui/ADCIntelligentShow_grpc/Car-Control-icon/YuanGuang-Guan.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1623727745272" class="icon" viewBox="0 0 1365 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4320" xmlns:xlink="http://www.w3.org/1999/xlink" width="266.6015625" height="200"><defs><style type="text/css"></style></defs><path d="M582.0416 139.946667C606.583467 64.034133 681.130667 13.994667 760.832 22.391467 1096.533333 57.924267 1352.704 261.632 1352.704 512c0 250.333867-256.2048 454.075733-591.9744 489.5744-82.261333 8.669867-158.993067-44.919467-180.906667-124.893867A1375.0272 1375.0272 0 0 1 530.773333 512c0-116.053333 14.472533-230.331733 42.769067-340.992l6.2464-23.6544 2.218667-7.441067z m96.5632 34.474666l-6.212267 23.483734A1273.070933 1273.070933 0 0 0 633.173333 512c0 115.131733 15.36 228.317867 45.397334 337.578667 8.772267 32.0512 39.5264 53.521067 71.406933 50.176 289.211733-30.583467 500.3264-198.4512 500.3264-387.754667 0-189.303467-211.080533-357.1712-500.3264-387.754667-31.880533-3.345067-62.634667 18.1248-71.406933 50.176zM475.101867 144.5888H31.402667a25.6 25.6 0 0 0 0 51.2h443.665066a25.6 25.6 0 1 0 0-51.2zM431.104 311.808H31.4368a25.6 25.6 0 1 0 0 51.2h399.701333a25.6 25.6 0 1 0 0-51.2zM422.673067 478.958933H31.402667a25.6 25.6 0 1 0 0 51.2h391.202133a25.6 25.6 0 1 0 0-51.2zM431.104 646.144H31.4368a25.6 25.6 0 1 0 0 51.2h399.701333a25.6 25.6 0 1 0 0-51.2zM475.101867 813.3632H31.402667a25.6 25.6 0 1 0 0 51.2h443.665066a25.6 25.6 0 1 0 0-51.2z" fill="#bfbfbf" p-id="4321"></path></svg>

+ 1 - 0
src/ui/ADCIntelligentShow_grpc/Car-Control-icon/YuanGuang-Kai.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1623727434071" class="icon" viewBox="0 0 1365 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2048" xmlns:xlink="http://www.w3.org/1999/xlink" width="266.6015625" height="200"><defs><style type="text/css"></style></defs><path d="M582.0416 139.946667C606.583467 64.034133 681.130667 13.994667 760.832 22.391467 1096.533333 57.924267 1352.704 261.632 1352.704 512c0 250.333867-256.2048 454.075733-591.9744 489.5744-82.261333 8.669867-158.993067-44.919467-180.906667-124.893867A1375.0272 1375.0272 0 0 1 530.773333 512c0-116.053333 14.472533-230.331733 42.769067-340.992l6.2464-23.6544 2.218667-7.441067z m96.5632 34.474666l-6.212267 23.483734A1273.070933 1273.070933 0 0 0 633.173333 512c0 115.131733 15.36 228.317867 45.397334 337.578667 8.772267 32.0512 39.5264 53.521067 71.406933 50.176 289.211733-30.583467 500.3264-198.4512 500.3264-387.754667 0-189.303467-211.080533-357.1712-500.3264-387.754667-31.880533-3.345067-62.634667 18.1248-71.406933 50.176zM475.101867 144.5888H31.402667a25.6 25.6 0 0 0 0 51.2h443.665066a25.6 25.6 0 1 0 0-51.2zM431.104 311.808H31.4368a25.6 25.6 0 1 0 0 51.2h399.701333a25.6 25.6 0 1 0 0-51.2zM422.673067 478.958933H31.402667a25.6 25.6 0 1 0 0 51.2h391.202133a25.6 25.6 0 1 0 0-51.2zM431.104 646.144H31.4368a25.6 25.6 0 1 0 0 51.2h399.701333a25.6 25.6 0 1 0 0-51.2zM475.101867 813.3632H31.402667a25.6 25.6 0 1 0 0 51.2h443.665066a25.6 25.6 0 1 0 0-51.2z" fill="#c6c01f" p-id="2049"></path></svg>

+ 23 - 0
src/ui/ADCIntelligentShow_grpc/adcintelligentshow.cpp

@@ -176,6 +176,8 @@ ADCIntelligentShow::ADCIntelligentShow(QWidget *parent) :
                         "QPushButton#pushButton_2:hover\n{border-image: url(:/new/pic/restart4.png);\n}"
                         "QPushButton#pushButton_2:pressed\n{ border-image: url(:/new/pic/restart3.png); \n}"
                         "QPushButton#park:pressed\n{border-image: url(:/new/pic/park_press.png);\n}"
+                        "QPushButton#pushButton_Setting\n{ border-image: url(:/new/pic/setting.png); \n}"
+                        "QPushButton#pushButton_Setting:pressed\n{ border-image: url(:/new/pic/setting2.png); \n}"
                         "QCheckBox#checkBox::indicator\n{width: 110px;height: 110px;\n}"
                         "QCheckBox#checkBox::indicator:unchecked\n{ border-image:url(:/new/pic/call_gray1.png);\n}"
                         "QCheckBox#checkBox::indicator:checked\n{ border-image:url(:/new/pic/call1.png);\n}"
@@ -197,6 +199,7 @@ ADCIntelligentShow::ADCIntelligentShow(QWidget *parent) :
     myview->setGeometry(QRect(100,20,900,1000));
 
     myview->setCacheMode(myview->CacheBackground);
+
     scene = new QGraphicsScene;
     myview->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
     myview->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
@@ -281,11 +284,17 @@ ADCIntelligentShow::ADCIntelligentShow(QWidget *parent) :
     ui->label_station->setStyleSheet("background: transparent; color: white;font: 15pt 'Arial';");
     ui->label_station->setText("");
 
+
+
     if(gvectorpos.size()>0)
     {
         mnStationIndex = 0;
         ui->label_station->setText(gvectorpos[0].mstrstationname.data());
     }
+
+    mpDS = new DialogSetting(this);
+    connect(mpDS,SIGNAL(signalswith(int)),this,SLOT(onSwitchClick(int)));
+    connect(mpDS,SIGNAL(signalMode(int)),this,SLOT(onModeClick(int)));
 //    ui->pushButton_go->setStyleSheet("color: red");
 
     ///////////////////////////////////////////////////////////////////////
@@ -1076,3 +1085,17 @@ void ADCIntelligentShow::on_pushButton_go_clicked()
     ggt->UpdateData((char *)&xo,sizeof(xodrobj),"xodrreq");
 #endif
 }
+
+void ADCIntelligentShow::onSwitchClick(int nswitch)
+{
+    qDebug("click");
+}
+
+void ADCIntelligentShow::onModeClick(int nMode)
+{
+
+}
+void ADCIntelligentShow::on_pushButton_Setting_clicked()
+{
+    mpDS->show();
+}

+ 10 - 0
src/ui/ADCIntelligentShow_grpc/adcintelligentshow.h

@@ -34,6 +34,8 @@
 #include "myview.h"
 #include "ivmapview.h"
 
+#include "dialogsetting.h"
+
 using namespace std;
 
 class QSound;
@@ -204,6 +206,11 @@ private slots:
 
     void on_pushButton_go_clicked();
 
+    void onSwitchClick(int nswitch);
+    void onModeClick(int nMode);
+
+    void on_pushButton_Setting_clicked();
+
 public slots:
     void slotAlarm();
 
@@ -256,6 +263,9 @@ private:
     void *mpadst;
     int mnStationIndex = 0;
     int mndefaultlane = 1;
+
+
+    DialogSetting * mpDS;
     ////////////////////////////////////////////////////
 
 };

+ 10 - 0
src/ui/ADCIntelligentShow_grpc/adcintelligentshow.qrc

@@ -27,5 +27,15 @@
         <file>call1.png</file>
         <file>car.png</file>
         <file>alarm.wav</file>
+        <file>setting.png</file>
+        <file>setting2.png</file>
+    </qresource>
+    <qresource prefix="/">
+        <file>Car-Control-icon/JinGuang-Guan.svg</file>
+        <file>Car-Control-icon/JinGuang-Kai.svg</file>
+        <file>Car-Control-icon/MenJin-Guan.svg</file>
+        <file>Car-Control-icon/MenJin-Kai.svg</file>
+        <file>Car-Control-icon/YuanGuang-Guan.svg</file>
+        <file>Car-Control-icon/YuanGuang-Kai.svg</file>
     </qresource>
 </RCC>

+ 19 - 2
src/ui/ADCIntelligentShow_grpc/adcintelligentshow.ui

@@ -6,7 +6,7 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>1500</width>
+    <width>1600</width>
     <height>1126</height>
    </rect>
   </property>
@@ -486,7 +486,7 @@ font: 15pt &quot;Arial&quot;;</string>
      <rect>
       <x>730</x>
       <y>-80</y>
-      <width>1101</width>
+      <width>1300</width>
       <height>1350</height>
      </rect>
     </property>
@@ -963,6 +963,22 @@ border:7px groove rgb(0,45,70);</string>
      <set>Qt::AlignCenter</set>
     </property>
    </widget>
+   <widget class="QPushButton" name="pushButton_Setting">
+    <property name="geometry">
+     <rect>
+      <x>560</x>
+      <y>40</y>
+      <width>91</width>
+      <height>81</height>
+     </rect>
+    </property>
+    <property name="styleSheet">
+     <string notr="true"/>
+    </property>
+    <property name="text">
+     <string/>
+    </property>
+   </widget>
    <zorder>pushButton_2</zorder>
    <zorder>run</zorder>
    <zorder>mapimg</zorder>
@@ -1002,6 +1018,7 @@ border:7px groove rgb(0,45,70);</string>
    <zorder>label_6</zorder>
    <zorder>label_17</zorder>
    <zorder>break_1</zorder>
+   <zorder>pushButton_Setting</zorder>
   </widget>
  </widget>
  <layoutdefault spacing="6" margin="11"/>

+ 75 - 0
src/ui/ADCIntelligentShow_grpc/dialogsetting.cpp

@@ -0,0 +1,75 @@
+#include "dialogsetting.h"
+#include "ui_dialogsetting.h"
+
+DialogSetting::DialogSetting(QWidget *parent) :
+    QDialog(parent),
+    ui(new Ui::DialogSetting)
+{
+    ui->setupUi(this);
+
+    ui->pushButton_OpenDoor->setIcon(QIcon(":/Car-Control-icon/MenJin-Kai.svg"));
+    ui->pushButton_CloseDoor->setIcon(QIcon(":/Car-Control-icon/MenJin-Guan.svg"));
+    ui->pushButton_OpenJinguan->setIcon(QIcon(":/Car-Control-icon/JinGuang-Kai.svg"));
+    ui->pushButton_CloseJinguang->setIcon(QIcon(":/Car-Control-icon/JinGuang-Guan.svg"));
+    ui->pushButton_OpenYuanguang->setIcon(QIcon(":/Car-Control-icon/YuanGuang-Kai.svg"));
+    ui->pushButton_CloseYuanguang->setIcon(QIcon(":/Car-Control-icon/YuanGuang-Guan.svg"));
+
+    ui->radioButton_Normal->setChecked(true);
+
+    setWindowTitle("Setting");
+}
+
+DialogSetting::~DialogSetting()
+{
+    delete ui;
+}
+
+void DialogSetting::on_pushButton_Close_clicked()
+{
+    this->accept();
+}
+
+void DialogSetting::on_pushButton_OpenDoor_clicked()
+{
+    emit signalswith(0);
+}
+
+void DialogSetting::on_radioButton_Eco_clicked()
+{
+    emit signalMode(0);
+}
+
+void DialogSetting::on_radioButton_Normal_clicked()
+{
+    emit signalMode(1);
+}
+
+void DialogSetting::on_radioButton_Sport_clicked()
+{
+    emit signalMode(2);
+}
+
+void DialogSetting::on_pushButton_CloseDoor_clicked()
+{
+    emit signalswith(1);
+}
+
+void DialogSetting::on_pushButton_OpenJinguan_clicked()
+{
+    emit signalswith(2);
+}
+
+void DialogSetting::on_pushButton_CloseJinguang_clicked()
+{
+    emit signalswith(3);
+}
+
+void DialogSetting::on_pushButton_OpenYuanguang_clicked()
+{
+    emit signalswith(4);
+}
+
+void DialogSetting::on_pushButton_CloseYuanguang_clicked()
+{
+    emit signalswith(5);
+}

+ 47 - 0
src/ui/ADCIntelligentShow_grpc/dialogsetting.h

@@ -0,0 +1,47 @@
+#ifndef DIALOGSETTING_H
+#define DIALOGSETTING_H
+
+#include <QDialog>
+
+namespace Ui {
+class DialogSetting;
+}
+
+class DialogSetting : public QDialog
+{
+    Q_OBJECT
+
+public:
+    explicit DialogSetting(QWidget *parent = nullptr);
+    ~DialogSetting();
+
+private slots:
+    void on_pushButton_Close_clicked();
+
+    void on_pushButton_OpenDoor_clicked();
+
+    void on_radioButton_Eco_clicked();
+
+    void on_radioButton_Normal_clicked();
+
+    void on_radioButton_Sport_clicked();
+
+    void on_pushButton_CloseDoor_clicked();
+
+    void on_pushButton_OpenJinguan_clicked();
+
+    void on_pushButton_CloseJinguang_clicked();
+
+    void on_pushButton_OpenYuanguang_clicked();
+
+    void on_pushButton_CloseYuanguang_clicked();
+
+signals:
+    void signalswith(int nswitch);
+    void signalMode(int nMode);
+private:
+    Ui::DialogSetting *ui;
+
+};
+
+#endif // DIALOGSETTING_H

+ 246 - 0
src/ui/ADCIntelligentShow_grpc/dialogsetting.ui

@@ -0,0 +1,246 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>DialogSetting</class>
+ <widget class="QDialog" name="DialogSetting">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>629</width>
+    <height>607</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Dialog</string>
+  </property>
+  <property name="styleSheet">
+   <string notr="true">background-color: rgb(85, 86, 83);</string>
+  </property>
+  <widget class="QPushButton" name="pushButton_Close">
+   <property name="geometry">
+    <rect>
+     <x>220</x>
+     <y>530</y>
+     <width>161</width>
+     <height>71</height>
+    </rect>
+   </property>
+   <property name="text">
+    <string>Close</string>
+   </property>
+  </widget>
+  <widget class="QPushButton" name="pushButton_OpenDoor">
+   <property name="geometry">
+    <rect>
+     <x>30</x>
+     <y>20</y>
+     <width>251</width>
+     <height>71</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>30</pointsize>
+    </font>
+   </property>
+   <property name="text">
+    <string>开门</string>
+   </property>
+   <property name="iconSize">
+    <size>
+     <width>60</width>
+     <height>60</height>
+    </size>
+   </property>
+  </widget>
+  <widget class="QPushButton" name="pushButton_CloseDoor">
+   <property name="geometry">
+    <rect>
+     <x>320</x>
+     <y>20</y>
+     <width>251</width>
+     <height>71</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>30</pointsize>
+    </font>
+   </property>
+   <property name="text">
+    <string>关门</string>
+   </property>
+   <property name="iconSize">
+    <size>
+     <width>60</width>
+     <height>60</height>
+    </size>
+   </property>
+  </widget>
+  <widget class="QPushButton" name="pushButton_OpenJinguan">
+   <property name="geometry">
+    <rect>
+     <x>30</x>
+     <y>120</y>
+     <width>251</width>
+     <height>71</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>30</pointsize>
+    </font>
+   </property>
+   <property name="text">
+    <string>近光开</string>
+   </property>
+   <property name="iconSize">
+    <size>
+     <width>60</width>
+     <height>60</height>
+    </size>
+   </property>
+  </widget>
+  <widget class="QPushButton" name="pushButton_CloseJinguang">
+   <property name="geometry">
+    <rect>
+     <x>320</x>
+     <y>120</y>
+     <width>251</width>
+     <height>71</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>30</pointsize>
+    </font>
+   </property>
+   <property name="text">
+    <string>近光关</string>
+   </property>
+   <property name="iconSize">
+    <size>
+     <width>60</width>
+     <height>60</height>
+    </size>
+   </property>
+  </widget>
+  <widget class="QPushButton" name="pushButton_OpenYuanguang">
+   <property name="geometry">
+    <rect>
+     <x>30</x>
+     <y>230</y>
+     <width>251</width>
+     <height>71</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>30</pointsize>
+    </font>
+   </property>
+   <property name="text">
+    <string>远光开</string>
+   </property>
+   <property name="iconSize">
+    <size>
+     <width>60</width>
+     <height>60</height>
+    </size>
+   </property>
+  </widget>
+  <widget class="QPushButton" name="pushButton_CloseYuanguang">
+   <property name="geometry">
+    <rect>
+     <x>320</x>
+     <y>230</y>
+     <width>251</width>
+     <height>71</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>30</pointsize>
+    </font>
+   </property>
+   <property name="text">
+    <string>远光关</string>
+   </property>
+   <property name="iconSize">
+    <size>
+     <width>60</width>
+     <height>60</height>
+    </size>
+   </property>
+  </widget>
+  <widget class="QGroupBox" name="groupBox">
+   <property name="geometry">
+    <rect>
+     <x>20</x>
+     <y>310</y>
+     <width>571</width>
+     <height>131</height>
+    </rect>
+   </property>
+   <property name="title">
+    <string>模式设置</string>
+   </property>
+   <widget class="QRadioButton" name="radioButton_Eco">
+    <property name="geometry">
+     <rect>
+      <x>10</x>
+      <y>40</y>
+      <width>171</width>
+      <height>71</height>
+     </rect>
+    </property>
+    <property name="font">
+     <font>
+      <pointsize>30</pointsize>
+     </font>
+    </property>
+    <property name="text">
+     <string>经济</string>
+    </property>
+   </widget>
+   <widget class="QRadioButton" name="radioButton_Normal">
+    <property name="geometry">
+     <rect>
+      <x>191</x>
+      <y>40</y>
+      <width>171</width>
+      <height>71</height>
+     </rect>
+    </property>
+    <property name="font">
+     <font>
+      <pointsize>30</pointsize>
+     </font>
+    </property>
+    <property name="text">
+     <string>普通</string>
+    </property>
+   </widget>
+   <widget class="QRadioButton" name="radioButton_Sport">
+    <property name="geometry">
+     <rect>
+      <x>370</x>
+      <y>40</y>
+      <width>171</width>
+      <height>71</height>
+     </rect>
+    </property>
+    <property name="font">
+     <font>
+      <pointsize>30</pointsize>
+     </font>
+    </property>
+    <property name="text">
+     <string>运动</string>
+    </property>
+   </widget>
+  </widget>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>

BIN
src/ui/ADCIntelligentShow_grpc/setting.png


BIN
src/ui/ADCIntelligentShow_grpc/setting2.png


+ 5 - 4
src/ui/ui_ads_hmi/ADCIntelligentVehicle.ui

@@ -1974,7 +1974,7 @@ background-color: rgb(85, 87, 83);</string>
 &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
 p, li { white-space: pre-wrap; }
 &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
-&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu';&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
        </property>
       </widget>
       <widget class="QLabel" name="label_12">
@@ -2095,7 +2095,7 @@ gridline-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(
 &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
 p, li { white-space: pre-wrap; }
 &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
-&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu';&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
        </property>
       </widget>
       <widget class="QTextEdit" name="textEdit_aobzdis_tj">
@@ -2150,7 +2150,7 @@ p, li { white-space: pre-wrap; }
 &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
 p, li { white-space: pre-wrap; }
 &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
-&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu';&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
        </property>
       </widget>
       <widget class="QTextEdit" name="textEdit_aocftime_tj">
@@ -2351,7 +2351,7 @@ background-color: rgb(85, 87, 83);</string>
       <property name="title">
        <string>小巴调试</string>
       </property>
-      <widget class="QWidget" name="">
+      <widget class="QWidget" name="layoutWidget">
        <property name="geometry">
         <rect>
          <x>21</x>
@@ -2551,6 +2551,7 @@ background-color: rgb(85, 87, 83);</string>
  <resources>
   <include location="ADCIntelligentVehicle.qrc"/>
   <include location="ADCIntelligentVehicle.qrc"/>
+  <include location="ADCIntelligentVehicle.qrc"/>
  </resources>
  <connections>
   <connection>