diff --git a/Project02/Project02.pro b/Project02/Project02.pro index 0086fd6..13952ff 100644 --- a/Project02/Project02.pro +++ b/Project02/Project02.pro @@ -1,4 +1,4 @@ -QT += core gui +QT += core gui charts serialport greaterThan(QT_MAJOR_VERSION, 4): QT += widgets @@ -16,16 +16,43 @@ DEFINES += QT_DEPRECATED_WARNINGS #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + classifierwidget.cpp \ + dynamichistogramwidget.cpp \ + homewidget.cpp \ main.cpp \ - mainwindow.cpp + mainwindow.cpp \ + operationallogwidget.cpp \ + passwordsettingwidget.cpp \ + registerwidget.cpp \ + serialportdebuggingwindow.cpp \ + settingswidget.cpp HEADERS += \ - mainwindow.h + classifierwidget.h \ + dynamichistogramwidget.h \ + homewidget.h \ + mainwindow.h \ + operationallogwidget.h \ + passwordsettingwidget.h \ + registerwidget.h \ + serialportdebuggingwindow.h \ + settingswidget.h FORMS += \ - mainwindow.ui + classifierwidget.ui \ + dynamichistogramwidget.ui \ + homewidget.ui \ + mainwindow.ui \ + operationallogwidget.ui \ + passwordsettingwidget.ui \ + registerwidget.ui \ + serialportdebuggingwindow.ui \ + settingswidget.ui # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target + +RESOURCES += \ + res.qrc diff --git a/Project02/classifierwidget.cpp b/Project02/classifierwidget.cpp new file mode 100644 index 0000000..0084d6b --- /dev/null +++ b/Project02/classifierwidget.cpp @@ -0,0 +1,14 @@ +#include "classifierwidget.h" +#include "ui_classifierwidget.h" + +ClassifierWidget::ClassifierWidget(QWidget *parent) : + QWidget(parent), + ui(new Ui::ClassifierWidget) +{ + ui->setupUi(this); +} + +ClassifierWidget::~ClassifierWidget() +{ + delete ui; +} diff --git a/Project02/classifierwidget.h b/Project02/classifierwidget.h new file mode 100644 index 0000000..f8ccf30 --- /dev/null +++ b/Project02/classifierwidget.h @@ -0,0 +1,22 @@ +#ifndef CLASSIFIERWIDGET_H +#define CLASSIFIERWIDGET_H + +#include + +namespace Ui { +class ClassifierWidget; +} + +class ClassifierWidget : public QWidget +{ + Q_OBJECT + +public: + explicit ClassifierWidget(QWidget *parent = nullptr); + ~ClassifierWidget(); + +private: + Ui::ClassifierWidget *ui; +}; + +#endif // CLASSIFIERWIDGET_H diff --git a/Project02/classifierwidget.ui b/Project02/classifierwidget.ui new file mode 100644 index 0000000..4b53570 --- /dev/null +++ b/Project02/classifierwidget.ui @@ -0,0 +1,99 @@ + + + ClassifierWidget + + + + 0 + 0 + 1021 + 691 + + + + Form + + + + + 120 + 170 + 131 + 61 + + + + font: 75 14pt "微软雅黑"; + + + 分类器名称 + + + + + + 280 + 180 + 401 + 41 + + + + font: 75 14pt "微软雅黑"; + + + + + + + + + 800 + 160 + 100 + 70 + + + + font: 75 14pt "微软雅黑"; + + + 增加 + + + + + + 800 + 310 + 100 + 70 + + + + font: 75 14pt "微软雅黑"; + + + 删除 + + + + + + 800 + 460 + 100 + 70 + + + + font: 75 14pt "微软雅黑"; + + + 查询 + + + + + + diff --git a/Project02/dynamichistogramwidget.cpp b/Project02/dynamichistogramwidget.cpp new file mode 100644 index 0000000..502a82d --- /dev/null +++ b/Project02/dynamichistogramwidget.cpp @@ -0,0 +1,88 @@ +#include "dynamichistogramwidget.h" +#include "ui_dynamichistogramwidget.h" + +QVectordata0; +QVectordata1; +QVectordata2; +QVectordata3; + +using namespace QtCharts; + +DynamicHistogramWidget::DynamicHistogramWidget(QWidget *parent) : + QWidget(parent), + ui(new Ui::DynamicHistogramWidget) +{ + ui->setupUi(this); + + for (int i = 0; i < 7; ++i) { + data0.push_front(0); + data1.push_front(0); + data2.push_front(0); + data3.push_front(0); + } + connect(ui->createBtn,&QPushButton::clicked,[=](){ + data0.push_front(ui->line1->text().toInt()); + data1.push_front(ui->line2->text().toInt()); + data2.push_front(ui->line3->text().toInt()); + data3.push_front(ui->line4->text().toInt()); + + QBarSet *set0 = new QBarSet("日光(min)"); + QBarSet *set1 = new QBarSet("UV(min)"); + QBarSet *set2 = new QBarSet("日光(month)"); + QBarSet *set3 = new QBarSet("UV(month)"); + + QVector::iterator it1 = data0.begin(); + QVector::iterator it2 = data1.begin(); + QVector::iterator it3 = data2.begin(); + qDebug()<::iterator it4 = data3.begin();it4append(set0); + series->append(set1); + series->append(set2); + series->append(set3); + QChart *c = new QChart(); + c->setTitle("光照UV强度"); + c->addSeries(series); + ui->graphicsView->setChart(c); + c->legend()->setVisible(true); + c->setAnimationOptions(QChart::SeriesAnimations); + ui->graphicsView->setRenderHint(QPainter::Antialiasing); + c->createDefaultAxes();//创建默认的左侧的坐标轴(根据 QBarSet 设置的值) + QValueAxis *axisX = new QValueAxis();//轴变量、数据系列变量,都不能声明为局部临时变量 + QValueAxis *axisY = new QValueAxis();//创建X/Y轴 + axisX->setRange(0, 7); + axisY->setRange(0, 10);//设置X/Y显示的区间 +// c->setAxisX(axisX); +// c->setAxisY(axisY);//设置chart的坐标轴 +// series->attachAxis(axisX); + c->addAxis(axisX,Qt::AlignBottom); +// c->addAxis(axisY,Qt::AlignLeft); + series->attachAxis(axisX); +// series->attachAxis(axisY); + + + c->legend()->setVisible(true); //设置图例为显示状态 + c->legend()->setAlignment(Qt::AlignBottom);//设置图例的显示位置在底部 + + }); +} + +DynamicHistogramWidget::~DynamicHistogramWidget() +{ + delete ui; +} diff --git a/Project02/dynamichistogramwidget.h b/Project02/dynamichistogramwidget.h new file mode 100644 index 0000000..16cbb5d --- /dev/null +++ b/Project02/dynamichistogramwidget.h @@ -0,0 +1,54 @@ +#ifndef DYNAMICHISTOGRAMWIDGET_H +#define DYNAMICHISTOGRAMWIDGET_H + +#include + +// 柱状图 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Ui { +class DynamicHistogramWidget; +} + +class DynamicHistogramWidget : public QWidget +{ + Q_OBJECT + +public: + explicit DynamicHistogramWidget(QWidget *parent = nullptr); + ~DynamicHistogramWidget(); + +private: + Ui::DynamicHistogramWidget *ui; +}; + +#endif // DYNAMICHISTOGRAMWIDGET_H diff --git a/Project02/dynamichistogramwidget.ui b/Project02/dynamichistogramwidget.ui new file mode 100644 index 0000000..4573bef --- /dev/null +++ b/Project02/dynamichistogramwidget.ui @@ -0,0 +1,186 @@ + + + DynamicHistogramWidget + + + + 0 + 0 + 1182 + 709 + + + + Form + + + + + 20 + 110 + 191 + 444 + + + + + + + + + + 日光次数(分钟) + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + + + 紫外次数(分钟) + + + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + 日光次数(小时) + + + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + 紫外次数(小时) + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + + 50 + 570 + 121 + 51 + + + + font: 20pt "微软雅黑"; + + + 生成 + + + + + + 230 + 10 + 901 + 671 + + + + + 0 + 0 + + + + + + + QChartView + QGraphicsView +
qchartview.h
+
+
+ + +
diff --git a/Project02/homewidget.cpp b/Project02/homewidget.cpp new file mode 100644 index 0000000..ddb2cac --- /dev/null +++ b/Project02/homewidget.cpp @@ -0,0 +1,111 @@ +#include "homewidget.h" +#include "ui_homewidget.h" + +HomeWidget::HomeWidget(QWidget *parent) : + QWidget(parent), + ui(new Ui::HomeWidget) +{ + // 计时器 + timer = new QTimer(this); + connect(timer,&QTimer::timeout,[&]{ + QDateTime cur_datetime = QDateTime::currentDateTime(); + QString cur_date = cur_datetime.toString("yyyy.MM.dd"); + QString cur_time = cur_datetime.toString("hh:mm:ss"); + + ui->datetimeLabel->setText(cur_date+"\n"+cur_time); + }); + + timer->start(1000); + + ui->setupUi(this); + change_port_label_show(); // 修改串口连接信息 + this->setWindowTitle("不知名系统"); + this->setWindowIcon(QIcon(":logo")); + + // 启用所有按钮 + ui->homeBtn->setEnabled(true); + ui->exitBtn->setEnabled(true); + ui->logsBtn->setEnabled(true); + ui->statusBtn->setEnabled(true); + ui->settingBtn->setEnabled(true); +} + +HomeWidget::~HomeWidget() +{ + delete ui; + delete timer; +} + +void HomeWidget::on_exitBtn_clicked() +{ +// emit this->exit_to_shell_window(); +// this->close(); + QApplication::quit(); +} + +void HomeWidget::on_homeBtn_clicked() +{ + ui->homeStackWidget->setCurrentIndex(0); + ui->homeBtn->setEnabled(false); // 按钮按下后禁用当前,并启用其他按钮,防止多次点击 + ui->exitBtn->setEnabled(true); + ui->logsBtn->setEnabled(true); + ui->statusBtn->setEnabled(true); + ui->settingBtn->setEnabled(true); +} + +void HomeWidget::on_settingBtn_clicked() +{ + ui->homeStackWidget->setCurrentIndex(1); + ui->homeBtn->setEnabled(true); + ui->exitBtn->setEnabled(true); + ui->logsBtn->setEnabled(true); + ui->statusBtn->setEnabled(true); + ui->settingBtn->setEnabled(false); +} + +void HomeWidget::change_port_label_show() +{ + + qDebug() <<"可用串口信息"< ports = QSerialPortInfo::availablePorts(); + for(int i = 0; iport_con_msg->setStyleSheet("background-color: rgb(0, 170, 255)"); + QFont font("微软雅黑",18); + ui->port_con_msg->setFont(font); // 设置字体 + ui->port_con_msg->setAlignment(Qt::AlignCenter); // 居中显示 + ui->port_con_msg->setText("串口: "+portid.portName()+" 已连接"); + + } + +// qDebug() <<"可用波特率信息"< rates = QSerialPortInfo::standardBaudRates(); +// for(int i=0;ihomeBtn->setEnabled(true); + ui->exitBtn->setEnabled(true); + ui->logsBtn->setEnabled(true); + ui->statusBtn->setEnabled(false); + ui->settingBtn->setEnabled(true); +} + +void HomeWidget::on_logsBtn_clicked() +{ + ui->homeBtn->setEnabled(true); + ui->exitBtn->setEnabled(true); + ui->logsBtn->setEnabled(false); + ui->statusBtn->setEnabled(true); + ui->settingBtn->setEnabled(true); +} diff --git a/Project02/homewidget.h b/Project02/homewidget.h new file mode 100644 index 0000000..35d0b12 --- /dev/null +++ b/Project02/homewidget.h @@ -0,0 +1,54 @@ +#ifndef HOMEWIDGET_H +#define HOMEWIDGET_H + +#include + +// 计时器 +#include // timer +#include + +// 串口信息 +#include +#include +#include + +#include "serialportdebuggingwindow.h" + +namespace Ui { +class HomeWidget; +} + +class HomeWidget : public QWidget +{ + Q_OBJECT + +private: + QTimer *timer; + +private: + void change_port_label_show(); + +public: + explicit HomeWidget(QWidget *parent = nullptr); + ~HomeWidget(); + +private slots: + void on_exitBtn_clicked(); + + void on_homeBtn_clicked(); + + void on_settingBtn_clicked(); + + + void on_statusBtn_clicked(); + + void on_logsBtn_clicked(); + +private: + Ui::HomeWidget *ui; + +signals: + void exit_to_shell_window(); +}; + +#endif // HOMEWIDGET_H diff --git a/Project02/homewidget.ui b/Project02/homewidget.ui new file mode 100644 index 0000000..e8e5e39 --- /dev/null +++ b/Project02/homewidget.ui @@ -0,0 +1,307 @@ + + + HomeWidget + + + + 0 + 0 + 1200 + 900 + + + + Form + + + + + + 0 + + + + + + + + + + + 30 + 30 + 72 + 15 + + + + + + + + + + + + + + 11 + 4 + 291 + 51 + + + + font: 12pt "微软雅黑"; + + + + + + + + + + + + + + background-color: rgb(255, 0, 0); +font: 18pt "微软雅黑"; + + + PLC读取失败: 串口未连接! + + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + homeBtn + + + + :/home:/home + + + + 80 + 80 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + settingBtn + + + + :/set:/set + + + + 80 + 80 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + :/picture:/picture + + + + 80 + 80 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + logsBtn + + + + :/history:/history + + + + 80 + 80 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + exitBtn + + + + :/exit2:/exit2 + + + + 80 + 80 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + DynamicHistogramWidget + QWidget +
dynamichistogramwidget.h
+ 1 +
+ + SettingsWidget + QWidget +
settingswidget.h
+ 1 +
+
+ + + + +
diff --git a/Project02/images/login_images/background.jpg b/Project02/images/login_images/background.jpg new file mode 100644 index 0000000..e2659bc Binary files /dev/null and b/Project02/images/login_images/background.jpg differ diff --git a/Project02/images/login_images/exit.jpg b/Project02/images/login_images/exit.jpg new file mode 100644 index 0000000..ad418c2 Binary files /dev/null and b/Project02/images/login_images/exit.jpg differ diff --git a/Project02/images/login_images/history.jpg b/Project02/images/login_images/history.jpg new file mode 100644 index 0000000..fab7c5b Binary files /dev/null and b/Project02/images/login_images/history.jpg differ diff --git a/Project02/images/login_images/home.jpg b/Project02/images/login_images/home.jpg new file mode 100644 index 0000000..b23b13e Binary files /dev/null and b/Project02/images/login_images/home.jpg differ diff --git a/Project02/images/login_images/picture.jpg b/Project02/images/login_images/picture.jpg new file mode 100644 index 0000000..e7ce293 Binary files /dev/null and b/Project02/images/login_images/picture.jpg differ diff --git a/Project02/images/login_images/set.jpg b/Project02/images/login_images/set.jpg new file mode 100644 index 0000000..0215bb8 Binary files /dev/null and b/Project02/images/login_images/set.jpg differ diff --git a/Project02/images/login_images/widget.jpg b/Project02/images/login_images/widget.jpg new file mode 100644 index 0000000..7342a80 Binary files /dev/null and b/Project02/images/login_images/widget.jpg differ diff --git a/Project02/images/main_images/add.png b/Project02/images/main_images/add.png new file mode 100644 index 0000000..8c41538 Binary files /dev/null and b/Project02/images/main_images/add.png differ diff --git a/Project02/images/main_images/cleanport.png b/Project02/images/main_images/cleanport.png new file mode 100644 index 0000000..c1bf216 Binary files /dev/null and b/Project02/images/main_images/cleanport.png differ diff --git a/Project02/images/main_images/clearbytes.png b/Project02/images/main_images/clearbytes.png new file mode 100644 index 0000000..2858dc8 Binary files /dev/null and b/Project02/images/main_images/clearbytes.png differ diff --git a/Project02/images/main_images/edit-clear.png b/Project02/images/main_images/edit-clear.png new file mode 100644 index 0000000..4c8f8ee Binary files /dev/null and b/Project02/images/main_images/edit-clear.png differ diff --git a/Project02/images/main_images/exit.png b/Project02/images/main_images/exit.png new file mode 100644 index 0000000..4c067c0 Binary files /dev/null and b/Project02/images/main_images/exit.png differ diff --git a/Project02/images/main_images/header.bmp b/Project02/images/main_images/header.bmp new file mode 100644 index 0000000..52bb8bb Binary files /dev/null and b/Project02/images/main_images/header.bmp differ diff --git a/Project02/images/main_images/lcd.bmp b/Project02/images/main_images/lcd.bmp new file mode 100644 index 0000000..726446c Binary files /dev/null and b/Project02/images/main_images/lcd.bmp differ diff --git a/Project02/images/main_images/linuxico.bmp b/Project02/images/main_images/linuxico.bmp new file mode 100644 index 0000000..c4caf68 Binary files /dev/null and b/Project02/images/main_images/linuxico.bmp differ diff --git a/Project02/images/main_images/loadfile.png b/Project02/images/main_images/loadfile.png new file mode 100644 index 0000000..9bb7abe Binary files /dev/null and b/Project02/images/main_images/loadfile.png differ diff --git a/Project02/images/main_images/logo.png b/Project02/images/main_images/logo.png new file mode 100644 index 0000000..76b7fe2 Binary files /dev/null and b/Project02/images/main_images/logo.png differ diff --git a/Project02/images/main_images/mesage.png b/Project02/images/main_images/mesage.png new file mode 100644 index 0000000..89b7c80 Binary files /dev/null and b/Project02/images/main_images/mesage.png differ diff --git a/Project02/images/main_images/open.png b/Project02/images/main_images/open.png new file mode 100644 index 0000000..1282b1e Binary files /dev/null and b/Project02/images/main_images/open.png differ diff --git a/Project02/images/main_images/pause.png b/Project02/images/main_images/pause.png new file mode 100644 index 0000000..01a6602 Binary files /dev/null and b/Project02/images/main_images/pause.png differ diff --git a/Project02/images/main_images/reload.png b/Project02/images/main_images/reload.png new file mode 100644 index 0000000..4a80a85 Binary files /dev/null and b/Project02/images/main_images/reload.png differ diff --git a/Project02/images/main_images/save.png b/Project02/images/main_images/save.png new file mode 100644 index 0000000..4e33bd4 Binary files /dev/null and b/Project02/images/main_images/save.png differ diff --git a/Project02/images/main_images/send.png b/Project02/images/main_images/send.png new file mode 100644 index 0000000..1ee5a29 Binary files /dev/null and b/Project02/images/main_images/send.png differ diff --git a/Project02/images/main_images/stop.png b/Project02/images/main_images/stop.png new file mode 100644 index 0000000..8178019 Binary files /dev/null and b/Project02/images/main_images/stop.png differ diff --git a/Project02/images/main_images/time.png b/Project02/images/main_images/time.png new file mode 100644 index 0000000..b62bdca Binary files /dev/null and b/Project02/images/main_images/time.png differ diff --git a/Project02/images/main_images/write2file.png b/Project02/images/main_images/write2file.png new file mode 100644 index 0000000..1d82305 Binary files /dev/null and b/Project02/images/main_images/write2file.png differ diff --git a/Project02/images/main_images/yafeilinux.PNG b/Project02/images/main_images/yafeilinux.PNG new file mode 100644 index 0000000..a571cd3 Binary files /dev/null and b/Project02/images/main_images/yafeilinux.PNG differ diff --git a/Project02/images/other_res/BitMap/1 (1).bmp b/Project02/images/other_res/BitMap/1 (1).bmp new file mode 100644 index 0000000..b05ee3e Binary files /dev/null and b/Project02/images/other_res/BitMap/1 (1).bmp differ diff --git a/Project02/images/other_res/BitMap/1 (10).bmp b/Project02/images/other_res/BitMap/1 (10).bmp new file mode 100644 index 0000000..b2056f1 Binary files /dev/null and b/Project02/images/other_res/BitMap/1 (10).bmp differ diff --git a/Project02/images/other_res/BitMap/1 (13).bmp b/Project02/images/other_res/BitMap/1 (13).bmp new file mode 100644 index 0000000..71ee188 Binary files /dev/null and b/Project02/images/other_res/BitMap/1 (13).bmp differ diff --git a/Project02/images/other_res/BitMap/1 (14).bmp b/Project02/images/other_res/BitMap/1 (14).bmp new file mode 100644 index 0000000..58beb33 Binary files /dev/null and b/Project02/images/other_res/BitMap/1 (14).bmp differ diff --git a/Project02/images/other_res/BitMap/1 (18).bmp b/Project02/images/other_res/BitMap/1 (18).bmp new file mode 100644 index 0000000..3a97d38 Binary files /dev/null and b/Project02/images/other_res/BitMap/1 (18).bmp differ diff --git a/Project02/images/other_res/BitMap/1 (19).bmp b/Project02/images/other_res/BitMap/1 (19).bmp new file mode 100644 index 0000000..342097b Binary files /dev/null and b/Project02/images/other_res/BitMap/1 (19).bmp differ diff --git a/Project02/images/other_res/BitMap/1 (20).bmp b/Project02/images/other_res/BitMap/1 (20).bmp new file mode 100644 index 0000000..55769d1 Binary files /dev/null and b/Project02/images/other_res/BitMap/1 (20).bmp differ diff --git a/Project02/images/other_res/BitMap/1 (21).bmp b/Project02/images/other_res/BitMap/1 (21).bmp new file mode 100644 index 0000000..80f2933 Binary files /dev/null and b/Project02/images/other_res/BitMap/1 (21).bmp differ diff --git a/Project02/images/other_res/BitMap/1 (28).bmp b/Project02/images/other_res/BitMap/1 (28).bmp new file mode 100644 index 0000000..b77f143 Binary files /dev/null and b/Project02/images/other_res/BitMap/1 (28).bmp differ diff --git a/Project02/images/other_res/BitMap/1 (29).bmp b/Project02/images/other_res/BitMap/1 (29).bmp new file mode 100644 index 0000000..100f310 Binary files /dev/null and b/Project02/images/other_res/BitMap/1 (29).bmp differ diff --git a/Project02/images/other_res/BitMap/1 (30).bmp b/Project02/images/other_res/BitMap/1 (30).bmp new file mode 100644 index 0000000..4d8bf23 Binary files /dev/null and b/Project02/images/other_res/BitMap/1 (30).bmp differ diff --git a/Project02/images/other_res/BitMap/1 (31).bmp b/Project02/images/other_res/BitMap/1 (31).bmp new file mode 100644 index 0000000..136b59e Binary files /dev/null and b/Project02/images/other_res/BitMap/1 (31).bmp differ diff --git a/Project02/images/other_res/BitMap/1 (4).bmp b/Project02/images/other_res/BitMap/1 (4).bmp new file mode 100644 index 0000000..105d3ae Binary files /dev/null and b/Project02/images/other_res/BitMap/1 (4).bmp differ diff --git a/Project02/images/other_res/BitMap/1 (5).bmp b/Project02/images/other_res/BitMap/1 (5).bmp new file mode 100644 index 0000000..9cda706 Binary files /dev/null and b/Project02/images/other_res/BitMap/1 (5).bmp differ diff --git a/Project02/images/other_res/BitMap/1 (6).bmp b/Project02/images/other_res/BitMap/1 (6).bmp new file mode 100644 index 0000000..a279f7c Binary files /dev/null and b/Project02/images/other_res/BitMap/1 (6).bmp differ diff --git a/Project02/images/other_res/BitMap/1 (7).bmp b/Project02/images/other_res/BitMap/1 (7).bmp new file mode 100644 index 0000000..2f4f56f Binary files /dev/null and b/Project02/images/other_res/BitMap/1 (7).bmp differ diff --git a/Project02/images/other_res/BitMap/1 (8).bmp b/Project02/images/other_res/BitMap/1 (8).bmp new file mode 100644 index 0000000..9a07e51 Binary files /dev/null and b/Project02/images/other_res/BitMap/1 (8).bmp differ diff --git a/Project02/images/other_res/BitMap/1 (9).bmp b/Project02/images/other_res/BitMap/1 (9).bmp new file mode 100644 index 0000000..081a3d7 Binary files /dev/null and b/Project02/images/other_res/BitMap/1 (9).bmp differ diff --git a/Project02/images/other_res/BitMap/1/guanbi1.bmp b/Project02/images/other_res/BitMap/1/guanbi1.bmp new file mode 100644 index 0000000..2b56392 Binary files /dev/null and b/Project02/images/other_res/BitMap/1/guanbi1.bmp differ diff --git a/Project02/images/other_res/BitMap/1/guanbi2.bmp b/Project02/images/other_res/BitMap/1/guanbi2.bmp new file mode 100644 index 0000000..287e3f1 Binary files /dev/null and b/Project02/images/other_res/BitMap/1/guanbi2.bmp differ diff --git a/Project02/images/other_res/BitMap/1/guanbi3.bmp b/Project02/images/other_res/BitMap/1/guanbi3.bmp new file mode 100644 index 0000000..cb504d2 Binary files /dev/null and b/Project02/images/other_res/BitMap/1/guanbi3.bmp differ diff --git a/Project02/images/other_res/BitMap/1/kaishi1.bmp b/Project02/images/other_res/BitMap/1/kaishi1.bmp new file mode 100644 index 0000000..22af405 Binary files /dev/null and b/Project02/images/other_res/BitMap/1/kaishi1.bmp differ diff --git a/Project02/images/other_res/BitMap/1/kaishi2.bmp b/Project02/images/other_res/BitMap/1/kaishi2.bmp new file mode 100644 index 0000000..5677ecd Binary files /dev/null and b/Project02/images/other_res/BitMap/1/kaishi2.bmp differ diff --git a/Project02/images/other_res/BitMap/1/kaishi3.bmp b/Project02/images/other_res/BitMap/1/kaishi3.bmp new file mode 100644 index 0000000..0144eee Binary files /dev/null and b/Project02/images/other_res/BitMap/1/kaishi3.bmp differ diff --git a/Project02/images/other_res/BitMap/1/stop1.bmp b/Project02/images/other_res/BitMap/1/stop1.bmp new file mode 100644 index 0000000..514b87a Binary files /dev/null and b/Project02/images/other_res/BitMap/1/stop1.bmp differ diff --git a/Project02/images/other_res/BitMap/1/stop2.bmp b/Project02/images/other_res/BitMap/1/stop2.bmp new file mode 100644 index 0000000..e5a830e Binary files /dev/null and b/Project02/images/other_res/BitMap/1/stop2.bmp differ diff --git a/Project02/images/other_res/BitMap/1/stop3.bmp b/Project02/images/other_res/BitMap/1/stop3.bmp new file mode 100644 index 0000000..3f6cd07 Binary files /dev/null and b/Project02/images/other_res/BitMap/1/stop3.bmp differ diff --git a/Project02/images/other_res/BitMap/QQtupian20150423153431.bmp b/Project02/images/other_res/BitMap/QQtupian20150423153431.bmp new file mode 100644 index 0000000..25c5192 Binary files /dev/null and b/Project02/images/other_res/BitMap/QQtupian20150423153431.bmp differ diff --git a/Project02/images/other_res/BitMap/greenLamp.bmp b/Project02/images/other_res/BitMap/greenLamp.bmp new file mode 100644 index 0000000..185f9d5 Binary files /dev/null and b/Project02/images/other_res/BitMap/greenLamp.bmp differ diff --git a/Project02/images/other_res/BitMap/greenLampPress.bmp b/Project02/images/other_res/BitMap/greenLampPress.bmp new file mode 100644 index 0000000..17032e5 Binary files /dev/null and b/Project02/images/other_res/BitMap/greenLampPress.bmp differ diff --git a/Project02/images/other_res/BitMap/green_lamp_off.bmp b/Project02/images/other_res/BitMap/green_lamp_off.bmp new file mode 100644 index 0000000..47fad97 Binary files /dev/null and b/Project02/images/other_res/BitMap/green_lamp_off.bmp differ diff --git a/Project02/images/other_res/BitMap/green_lamp_on.bmp b/Project02/images/other_res/BitMap/green_lamp_on.bmp new file mode 100644 index 0000000..94b9fb0 Binary files /dev/null and b/Project02/images/other_res/BitMap/green_lamp_on.bmp differ diff --git a/Project02/images/other_res/BitMap/pic_1.bmp b/Project02/images/other_res/BitMap/pic_1.bmp new file mode 100644 index 0000000..411f18b Binary files /dev/null and b/Project02/images/other_res/BitMap/pic_1.bmp differ diff --git a/Project02/images/other_res/BitMap/redLamp.bmp b/Project02/images/other_res/BitMap/redLamp.bmp new file mode 100644 index 0000000..f496c97 Binary files /dev/null and b/Project02/images/other_res/BitMap/redLamp.bmp differ diff --git a/Project02/images/other_res/BitMap/redLampPress.bmp b/Project02/images/other_res/BitMap/redLampPress.bmp new file mode 100644 index 0000000..7d57a09 Binary files /dev/null and b/Project02/images/other_res/BitMap/redLampPress.bmp differ diff --git a/Project02/images/other_res/BitMap/red_lamp_off.bmp b/Project02/images/other_res/BitMap/red_lamp_off.bmp new file mode 100644 index 0000000..4d52f47 Binary files /dev/null and b/Project02/images/other_res/BitMap/red_lamp_off.bmp differ diff --git a/Project02/images/other_res/BitMap/red_lamp_on.bmp b/Project02/images/other_res/BitMap/red_lamp_on.bmp new file mode 100644 index 0000000..64502a4 Binary files /dev/null and b/Project02/images/other_res/BitMap/red_lamp_on.bmp differ diff --git a/Project02/images/other_res/BitMap/state_off.bmp b/Project02/images/other_res/BitMap/state_off.bmp new file mode 100644 index 0000000..0be017a Binary files /dev/null and b/Project02/images/other_res/BitMap/state_off.bmp differ diff --git a/Project02/images/other_res/BitMap/state_on.bmp b/Project02/images/other_res/BitMap/state_on.bmp new file mode 100644 index 0000000..85b9bc7 Binary files /dev/null and b/Project02/images/other_res/BitMap/state_on.bmp differ diff --git a/Project02/images/other_res/BitMap/stopFanNormal.bmp b/Project02/images/other_res/BitMap/stopFanNormal.bmp new file mode 100644 index 0000000..32393b4 Binary files /dev/null and b/Project02/images/other_res/BitMap/stopFanNormal.bmp differ diff --git a/Project02/images/other_res/BitMap/stopFanPress.bmp b/Project02/images/other_res/BitMap/stopFanPress.bmp new file mode 100644 index 0000000..bb4e4a5 Binary files /dev/null and b/Project02/images/other_res/BitMap/stopFanPress.bmp differ diff --git a/Project02/images/other_res/BitMap/yellow_lamp_off.bmp b/Project02/images/other_res/BitMap/yellow_lamp_off.bmp new file mode 100644 index 0000000..92c7a23 Binary files /dev/null and b/Project02/images/other_res/BitMap/yellow_lamp_off.bmp differ diff --git a/Project02/images/other_res/BitMap/yellow_lamp_on.bmp b/Project02/images/other_res/BitMap/yellow_lamp_on.bmp new file mode 100644 index 0000000..ff29339 Binary files /dev/null and b/Project02/images/other_res/BitMap/yellow_lamp_on.bmp differ diff --git a/Project02/images/other_res/ForeignFiberMachineTest.ico b/Project02/images/other_res/ForeignFiberMachineTest.ico new file mode 100644 index 0000000..d56fbcd Binary files /dev/null and b/Project02/images/other_res/ForeignFiberMachineTest.ico differ diff --git a/Project02/images/other_res/ForeignFiberMachineTest.rc2 b/Project02/images/other_res/ForeignFiberMachineTest.rc2 new file mode 100644 index 0000000..01aef39 Binary files /dev/null and b/Project02/images/other_res/ForeignFiberMachineTest.rc2 differ diff --git a/Project02/images/other_res/false.ico b/Project02/images/other_res/false.ico new file mode 100644 index 0000000..7ebbbd2 Binary files /dev/null and b/Project02/images/other_res/false.ico differ diff --git a/Project02/images/other_res/png/0-01.png b/Project02/images/other_res/png/0-01.png new file mode 100644 index 0000000..374b714 Binary files /dev/null and b/Project02/images/other_res/png/0-01.png differ diff --git a/Project02/images/other_res/png/00-01.png b/Project02/images/other_res/png/00-01.png new file mode 100644 index 0000000..584eb89 Binary files /dev/null and b/Project02/images/other_res/png/00-01.png differ diff --git a/Project02/images/other_res/png/01-01.png b/Project02/images/other_res/png/01-01.png new file mode 100644 index 0000000..bbf2d94 Binary files /dev/null and b/Project02/images/other_res/png/01-01.png differ diff --git a/Project02/images/other_res/png/01-02-01.png b/Project02/images/other_res/png/01-02-01.png new file mode 100644 index 0000000..a42e67e Binary files /dev/null and b/Project02/images/other_res/png/01-02-01.png differ diff --git a/Project02/images/other_res/png/02-01-01.png b/Project02/images/other_res/png/02-01-01.png new file mode 100644 index 0000000..cc0900d Binary files /dev/null and b/Project02/images/other_res/png/02-01-01.png differ diff --git a/Project02/images/other_res/png/02-01.png b/Project02/images/other_res/png/02-01.png new file mode 100644 index 0000000..81c72b0 Binary files /dev/null and b/Project02/images/other_res/png/02-01.png differ diff --git a/Project02/images/other_res/png/03-01-01.png b/Project02/images/other_res/png/03-01-01.png new file mode 100644 index 0000000..8c4f7f1 Binary files /dev/null and b/Project02/images/other_res/png/03-01-01.png differ diff --git a/Project02/images/other_res/png/03-01.png b/Project02/images/other_res/png/03-01.png new file mode 100644 index 0000000..b5802e5 Binary files /dev/null and b/Project02/images/other_res/png/03-01.png differ diff --git a/Project02/images/other_res/png/1-01.png b/Project02/images/other_res/png/1-01.png new file mode 100644 index 0000000..64fc439 Binary files /dev/null and b/Project02/images/other_res/png/1-01.png differ diff --git a/Project02/images/other_res/png/11-01.png b/Project02/images/other_res/png/11-01.png new file mode 100644 index 0000000..ac39031 Binary files /dev/null and b/Project02/images/other_res/png/11-01.png differ diff --git a/Project02/images/other_res/png/2-01.png b/Project02/images/other_res/png/2-01.png new file mode 100644 index 0000000..d67f738 Binary files /dev/null and b/Project02/images/other_res/png/2-01.png differ diff --git a/Project02/images/other_res/png/22-01.png b/Project02/images/other_res/png/22-01.png new file mode 100644 index 0000000..08fee6c Binary files /dev/null and b/Project02/images/other_res/png/22-01.png differ diff --git a/Project02/images/other_res/png/24-01.png b/Project02/images/other_res/png/24-01.png new file mode 100644 index 0000000..dab75b7 Binary files /dev/null and b/Project02/images/other_res/png/24-01.png differ diff --git a/Project02/images/other_res/png/24-021-01.png b/Project02/images/other_res/png/24-021-01.png new file mode 100644 index 0000000..b50fa55 Binary files /dev/null and b/Project02/images/other_res/png/24-021-01.png differ diff --git a/Project02/images/other_res/png/3-01.png b/Project02/images/other_res/png/3-01.png new file mode 100644 index 0000000..ca60167 Binary files /dev/null and b/Project02/images/other_res/png/3-01.png differ diff --git a/Project02/images/other_res/png/33-01.png b/Project02/images/other_res/png/33-01.png new file mode 100644 index 0000000..ee23a4a Binary files /dev/null and b/Project02/images/other_res/png/33-01.png differ diff --git a/Project02/images/other_res/png/88-01.png b/Project02/images/other_res/png/88-01.png new file mode 100644 index 0000000..6bad95d Binary files /dev/null and b/Project02/images/other_res/png/88-01.png differ diff --git a/Project02/images/other_res/png/NEDlaping.png b/Project02/images/other_res/png/NEDlaping.png new file mode 100644 index 0000000..91f4a33 Binary files /dev/null and b/Project02/images/other_res/png/NEDlaping.png differ diff --git a/Project02/images/other_res/png/a-01-01.png b/Project02/images/other_res/png/a-01-01.png new file mode 100644 index 0000000..71bb34c Binary files /dev/null and b/Project02/images/other_res/png/a-01-01.png differ diff --git a/Project02/images/other_res/png/a-01.png b/Project02/images/other_res/png/a-01.png new file mode 100644 index 0000000..8a704f9 Binary files /dev/null and b/Project02/images/other_res/png/a-01.png differ diff --git a/Project02/images/other_res/png/b-01-01.png b/Project02/images/other_res/png/b-01-01.png new file mode 100644 index 0000000..7b78687 Binary files /dev/null and b/Project02/images/other_res/png/b-01-01.png differ diff --git a/Project02/images/other_res/png/b-01.png b/Project02/images/other_res/png/b-01.png new file mode 100644 index 0000000..7f1f691 Binary files /dev/null and b/Project02/images/other_res/png/b-01.png differ diff --git a/Project02/images/other_res/png/baidi.png b/Project02/images/other_res/png/baidi.png new file mode 100644 index 0000000..b97588f Binary files /dev/null and b/Project02/images/other_res/png/baidi.png differ diff --git a/Project02/images/other_res/png/baiseanjian.png b/Project02/images/other_res/png/baiseanjian.png new file mode 100644 index 0000000..352e1de Binary files /dev/null and b/Project02/images/other_res/png/baiseanjian.png differ diff --git a/Project02/images/other_res/png/banbenxinxi-01.png b/Project02/images/other_res/png/banbenxinxi-01.png new file mode 100644 index 0000000..3b07b0f Binary files /dev/null and b/Project02/images/other_res/png/banbenxinxi-01.png differ diff --git a/Project02/images/other_res/png/banbenxinxi.png b/Project02/images/other_res/png/banbenxinxi.png new file mode 100644 index 0000000..1efb9b2 Binary files /dev/null and b/Project02/images/other_res/png/banbenxinxi.png differ diff --git a/Project02/images/other_res/png/bangzhu-01.png b/Project02/images/other_res/png/bangzhu-01.png new file mode 100644 index 0000000..332a06d Binary files /dev/null and b/Project02/images/other_res/png/bangzhu-01.png differ diff --git a/Project02/images/other_res/png/bankaxinxi.png b/Project02/images/other_res/png/bankaxinxi.png new file mode 100644 index 0000000..6a224c7 Binary files /dev/null and b/Project02/images/other_res/png/bankaxinxi.png differ diff --git a/Project02/images/other_res/png/baocun-01.png b/Project02/images/other_res/png/baocun-01.png new file mode 100644 index 0000000..2fc4966 Binary files /dev/null and b/Project02/images/other_res/png/baocun-01.png differ diff --git a/Project02/images/other_res/png/baojingjilu-01.png b/Project02/images/other_res/png/baojingjilu-01.png new file mode 100644 index 0000000..4683b67 Binary files /dev/null and b/Project02/images/other_res/png/baojingjilu-01.png differ diff --git a/Project02/images/other_res/png/blue.png b/Project02/images/other_res/png/blue.png new file mode 100644 index 0000000..8550c85 Binary files /dev/null and b/Project02/images/other_res/png/blue.png differ diff --git a/Project02/images/other_res/png/btnNormal.png b/Project02/images/other_res/png/btnNormal.png new file mode 100644 index 0000000..ad857d2 Binary files /dev/null and b/Project02/images/other_res/png/btnNormal.png differ diff --git a/Project02/images/other_res/png/btnSelect.png b/Project02/images/other_res/png/btnSelect.png new file mode 100644 index 0000000..7462f39 Binary files /dev/null and b/Project02/images/other_res/png/btnSelect.png differ diff --git a/Project02/images/other_res/png/btn_menu2_prs.png b/Project02/images/other_res/png/btn_menu2_prs.png new file mode 100644 index 0000000..f1ab7b1 Binary files /dev/null and b/Project02/images/other_res/png/btn_menu2_prs.png differ diff --git a/Project02/images/other_res/png/canshushezhi.png b/Project02/images/other_res/png/canshushezhi.png new file mode 100644 index 0000000..ccb7774 Binary files /dev/null and b/Project02/images/other_res/png/canshushezhi.png differ diff --git a/Project02/images/other_res/png/caozuojilu-01.png b/Project02/images/other_res/png/caozuojilu-01.png new file mode 100644 index 0000000..5a8e234 Binary files /dev/null and b/Project02/images/other_res/png/caozuojilu-01.png differ diff --git a/Project02/images/other_res/png/caozuojilu2-01-01.png b/Project02/images/other_res/png/caozuojilu2-01-01.png new file mode 100644 index 0000000..f9fd78d Binary files /dev/null and b/Project02/images/other_res/png/caozuojilu2-01-01.png differ diff --git a/Project02/images/other_res/png/caozuorizhi.png b/Project02/images/other_res/png/caozuorizhi.png new file mode 100644 index 0000000..f4f4444 Binary files /dev/null and b/Project02/images/other_res/png/caozuorizhi.png differ diff --git a/Project02/images/other_res/png/ceshikaishi-01.png b/Project02/images/other_res/png/ceshikaishi-01.png new file mode 100644 index 0000000..6d61a62 Binary files /dev/null and b/Project02/images/other_res/png/ceshikaishi-01.png differ diff --git a/Project02/images/other_res/png/chicun.png b/Project02/images/other_res/png/chicun.png new file mode 100644 index 0000000..4a7ab58 Binary files /dev/null and b/Project02/images/other_res/png/chicun.png differ diff --git a/Project02/images/other_res/png/congji.png b/Project02/images/other_res/png/congji.png new file mode 100644 index 0000000..30e2258 Binary files /dev/null and b/Project02/images/other_res/png/congji.png differ diff --git a/Project02/images/other_res/png/erjibaojingjilu-01.png b/Project02/images/other_res/png/erjibaojingjilu-01.png new file mode 100644 index 0000000..4683b67 Binary files /dev/null and b/Project02/images/other_res/png/erjibaojingjilu-01.png differ diff --git a/Project02/images/other_res/png/erjicaozuojilu-01.png b/Project02/images/other_res/png/erjicaozuojilu-01.png new file mode 100644 index 0000000..5a8e234 Binary files /dev/null and b/Project02/images/other_res/png/erjicaozuojilu-01.png differ diff --git a/Project02/images/other_res/png/erjichangtai-01.png b/Project02/images/other_res/png/erjichangtai-01.png new file mode 100644 index 0000000..16d2329 Binary files /dev/null and b/Project02/images/other_res/png/erjichangtai-01.png differ diff --git a/Project02/images/other_res/png/erjikuozhangongneng-01.png b/Project02/images/other_res/png/erjikuozhangongneng-01.png new file mode 100644 index 0000000..7c068a8 Binary files /dev/null and b/Project02/images/other_res/png/erjikuozhangongneng-01.png differ diff --git a/Project02/images/other_res/png/erjipenfaceshi-01.png b/Project02/images/other_res/png/erjipenfaceshi-01.png new file mode 100644 index 0000000..7bd1cdc Binary files /dev/null and b/Project02/images/other_res/png/erjipenfaceshi-01.png differ diff --git a/Project02/images/other_res/png/erjipenfafenzhongtongji-01.png b/Project02/images/other_res/png/erjipenfafenzhongtongji-01.png new file mode 100644 index 0000000..8d0649a Binary files /dev/null and b/Project02/images/other_res/png/erjipenfafenzhongtongji-01.png differ diff --git a/Project02/images/other_res/png/erjipenfaxiaoshitongji-01.png b/Project02/images/other_res/png/erjipenfaxiaoshitongji-01.png new file mode 100644 index 0000000..c5c1958 Binary files /dev/null and b/Project02/images/other_res/png/erjipenfaxiaoshitongji-01.png differ diff --git a/Project02/images/other_res/png/erjishijiao-01.png b/Project02/images/other_res/png/erjishijiao-01.png new file mode 100644 index 0000000..0697722 Binary files /dev/null and b/Project02/images/other_res/png/erjishijiao-01.png differ diff --git a/Project02/images/other_res/png/erjixiangjipeizhi-01.png b/Project02/images/other_res/png/erjixiangjipeizhi-01.png new file mode 100644 index 0000000..e1f9ec8 Binary files /dev/null and b/Project02/images/other_res/png/erjixiangjipeizhi-01.png differ diff --git a/Project02/images/other_res/png/erjixiangjisheding-01.png b/Project02/images/other_res/png/erjixiangjisheding-01.png new file mode 100644 index 0000000..5639b1b Binary files /dev/null and b/Project02/images/other_res/png/erjixiangjisheding-01.png differ diff --git a/Project02/images/other_res/png/erjixuanzhong-01.png b/Project02/images/other_res/png/erjixuanzhong-01.png new file mode 100644 index 0000000..e78e008 Binary files /dev/null and b/Project02/images/other_res/png/erjixuanzhong-01.png differ diff --git a/Project02/images/other_res/png/erjiyichangkongzhi-01.png b/Project02/images/other_res/png/erjiyichangkongzhi-01.png new file mode 100644 index 0000000..3718afe Binary files /dev/null and b/Project02/images/other_res/png/erjiyichangkongzhi-01.png differ diff --git a/Project02/images/other_res/png/error.png b/Project02/images/other_res/png/error.png new file mode 100644 index 0000000..1e7b01d Binary files /dev/null and b/Project02/images/other_res/png/error.png differ diff --git a/Project02/images/other_res/png/exit.png b/Project02/images/other_res/png/exit.png new file mode 100644 index 0000000..e9db2d0 Binary files /dev/null and b/Project02/images/other_res/png/exit.png differ diff --git a/Project02/images/other_res/png/false.png b/Project02/images/other_res/png/false.png new file mode 100644 index 0000000..1946a7a Binary files /dev/null and b/Project02/images/other_res/png/false.png differ diff --git a/Project02/images/other_res/png/fengji-01.png b/Project02/images/other_res/png/fengji-01.png new file mode 100644 index 0000000..e197c6c Binary files /dev/null and b/Project02/images/other_res/png/fengji-01.png differ diff --git a/Project02/images/other_res/png/fengji11-01.png b/Project02/images/other_res/png/fengji11-01.png new file mode 100644 index 0000000..0ce911d Binary files /dev/null and b/Project02/images/other_res/png/fengji11-01.png differ diff --git a/Project02/images/other_res/png/fengji12-01-01.png b/Project02/images/other_res/png/fengji12-01-01.png new file mode 100644 index 0000000..66829ee Binary files /dev/null and b/Project02/images/other_res/png/fengji12-01-01.png differ diff --git a/Project02/images/other_res/png/fenleiqi.png b/Project02/images/other_res/png/fenleiqi.png new file mode 100644 index 0000000..d4ab5cc Binary files /dev/null and b/Project02/images/other_res/png/fenleiqi.png differ diff --git a/Project02/images/other_res/png/fenleiqi_old.png b/Project02/images/other_res/png/fenleiqi_old.png new file mode 100644 index 0000000..a8ab2c3 Binary files /dev/null and b/Project02/images/other_res/png/fenleiqi_old.png differ diff --git a/Project02/images/other_res/png/firstMenuBtnActived - fuben.png b/Project02/images/other_res/png/firstMenuBtnActived - fuben.png new file mode 100644 index 0000000..71aaa4a Binary files /dev/null and b/Project02/images/other_res/png/firstMenuBtnActived - fuben.png differ diff --git a/Project02/images/other_res/png/firstMenuBtnActived.png b/Project02/images/other_res/png/firstMenuBtnActived.png new file mode 100644 index 0000000..eaad4ce Binary files /dev/null and b/Project02/images/other_res/png/firstMenuBtnActived.png differ diff --git a/Project02/images/other_res/png/firstMenuBtnActived1.png b/Project02/images/other_res/png/firstMenuBtnActived1.png new file mode 100644 index 0000000..71aaa4a Binary files /dev/null and b/Project02/images/other_res/png/firstMenuBtnActived1.png differ diff --git a/Project02/images/other_res/png/firstMenuBtnNoActived - fuben.png b/Project02/images/other_res/png/firstMenuBtnNoActived - fuben.png new file mode 100644 index 0000000..2c8c84b Binary files /dev/null and b/Project02/images/other_res/png/firstMenuBtnNoActived - fuben.png differ diff --git a/Project02/images/other_res/png/firstMenuBtnNoActived.png b/Project02/images/other_res/png/firstMenuBtnNoActived.png new file mode 100644 index 0000000..0496261 Binary files /dev/null and b/Project02/images/other_res/png/firstMenuBtnNoActived.png differ diff --git a/Project02/images/other_res/png/green.png b/Project02/images/other_res/png/green.png new file mode 100644 index 0000000..56e9ffe Binary files /dev/null and b/Project02/images/other_res/png/green.png differ diff --git a/Project02/images/other_res/png/greenLamp.png b/Project02/images/other_res/png/greenLamp.png new file mode 100644 index 0000000..f0d0a7d Binary files /dev/null and b/Project02/images/other_res/png/greenLamp.png differ diff --git a/Project02/images/other_res/png/guandao-01.png b/Project02/images/other_res/png/guandao-01.png new file mode 100644 index 0000000..4278413 Binary files /dev/null and b/Project02/images/other_res/png/guandao-01.png differ diff --git a/Project02/images/other_res/png/guandao11-01.png b/Project02/images/other_res/png/guandao11-01.png new file mode 100644 index 0000000..4e387bf Binary files /dev/null and b/Project02/images/other_res/png/guandao11-01.png differ diff --git a/Project02/images/other_res/png/guandao12221-01-01.png b/Project02/images/other_res/png/guandao12221-01-01.png new file mode 100644 index 0000000..134d8d3 Binary files /dev/null and b/Project02/images/other_res/png/guandao12221-01-01.png differ diff --git a/Project02/images/other_res/png/hangpin.png b/Project02/images/other_res/png/hangpin.png new file mode 100644 index 0000000..d2d1add Binary files /dev/null and b/Project02/images/other_res/png/hangpin.png differ diff --git a/Project02/images/other_res/png/help.png b/Project02/images/other_res/png/help.png new file mode 100644 index 0000000..0054611 Binary files /dev/null and b/Project02/images/other_res/png/help.png differ diff --git a/Project02/images/other_res/png/hong-01 (2).png b/Project02/images/other_res/png/hong-01 (2).png new file mode 100644 index 0000000..16fe8ef Binary files /dev/null and b/Project02/images/other_res/png/hong-01 (2).png differ diff --git a/Project02/images/other_res/png/hong-01-01.png b/Project02/images/other_res/png/hong-01-01.png new file mode 100644 index 0000000..16fe8ef Binary files /dev/null and b/Project02/images/other_res/png/hong-01-01.png differ diff --git a/Project02/images/other_res/png/hong-01.png b/Project02/images/other_res/png/hong-01.png new file mode 100644 index 0000000..94a81ee Binary files /dev/null and b/Project02/images/other_res/png/hong-01.png differ diff --git a/Project02/images/other_res/png/hs.png b/Project02/images/other_res/png/hs.png new file mode 100644 index 0000000..aa460e6 Binary files /dev/null and b/Project02/images/other_res/png/hs.png differ diff --git a/Project02/images/other_res/png/huiseanjian-01.png b/Project02/images/other_res/png/huiseanjian-01.png new file mode 100644 index 0000000..95102a8 Binary files /dev/null and b/Project02/images/other_res/png/huiseanjian-01.png differ diff --git a/Project02/images/other_res/png/huitiao.png b/Project02/images/other_res/png/huitiao.png new file mode 100644 index 0000000..cf3b8e8 Binary files /dev/null and b/Project02/images/other_res/png/huitiao.png differ diff --git a/Project02/images/other_res/png/jia-03.png b/Project02/images/other_res/png/jia-03.png new file mode 100644 index 0000000..023bab2 Binary files /dev/null and b/Project02/images/other_res/png/jia-03.png differ diff --git a/Project02/images/other_res/png/jian-03.png b/Project02/images/other_res/png/jian-03.png new file mode 100644 index 0000000..36ffa6e Binary files /dev/null and b/Project02/images/other_res/png/jian-03.png differ diff --git a/Project02/images/other_res/png/jiancecanshu-01.png b/Project02/images/other_res/png/jiancecanshu-01.png new file mode 100644 index 0000000..602df5f Binary files /dev/null and b/Project02/images/other_res/png/jiancecanshu-01.png differ diff --git a/Project02/images/other_res/png/jiancecanshu.png b/Project02/images/other_res/png/jiancecanshu.png new file mode 100644 index 0000000..bc9738a Binary files /dev/null and b/Project02/images/other_res/png/jiancecanshu.png differ diff --git a/Project02/images/other_res/png/jiancemokuai.png b/Project02/images/other_res/png/jiancemokuai.png new file mode 100644 index 0000000..7fe48d0 Binary files /dev/null and b/Project02/images/other_res/png/jiancemokuai.png differ diff --git a/Project02/images/other_res/png/jiazai-01.png b/Project02/images/other_res/png/jiazai-01.png new file mode 100644 index 0000000..7a677d1 Binary files /dev/null and b/Project02/images/other_res/png/jiazai-01.png differ diff --git a/Project02/images/other_res/png/jibencanshu.png b/Project02/images/other_res/png/jibencanshu.png new file mode 100644 index 0000000..2015f4b Binary files /dev/null and b/Project02/images/other_res/png/jibencanshu.png differ diff --git a/Project02/images/other_res/png/jiting-01.png b/Project02/images/other_res/png/jiting-01.png new file mode 100644 index 0000000..f9a6d59 Binary files /dev/null and b/Project02/images/other_res/png/jiting-01.png differ diff --git a/Project02/images/other_res/png/jiting11-01.png b/Project02/images/other_res/png/jiting11-01.png new file mode 100644 index 0000000..d4f74e0 Binary files /dev/null and b/Project02/images/other_res/png/jiting11-01.png differ diff --git a/Project02/images/other_res/png/jiting1221-01-01.png b/Project02/images/other_res/png/jiting1221-01-01.png new file mode 100644 index 0000000..9c648e4 Binary files /dev/null and b/Project02/images/other_res/png/jiting1221-01-01.png differ diff --git a/Project02/images/other_res/png/kaishi-01.png b/Project02/images/other_res/png/kaishi-01.png new file mode 100644 index 0000000..6d61a62 Binary files /dev/null and b/Project02/images/other_res/png/kaishi-01.png differ diff --git a/Project02/images/other_res/png/kuaijieqiehuanfenleiqi.png b/Project02/images/other_res/png/kuaijieqiehuanfenleiqi.png new file mode 100644 index 0000000..9358831 Binary files /dev/null and b/Project02/images/other_res/png/kuaijieqiehuanfenleiqi.png differ diff --git a/Project02/images/other_res/png/kuozhangongneng-01.png b/Project02/images/other_res/png/kuozhangongneng-01.png new file mode 100644 index 0000000..7c068a8 Binary files /dev/null and b/Project02/images/other_res/png/kuozhangongneng-01.png differ diff --git a/Project02/images/other_res/png/kuozhangongneng.png b/Project02/images/other_res/png/kuozhangongneng.png new file mode 100644 index 0000000..d361c67 Binary files /dev/null and b/Project02/images/other_res/png/kuozhangongneng.png differ diff --git a/Project02/images/other_res/png/liusu.png b/Project02/images/other_res/png/liusu.png new file mode 100644 index 0000000..ad0a430 Binary files /dev/null and b/Project02/images/other_res/png/liusu.png differ diff --git a/Project02/images/other_res/png/lv-01 (2).png b/Project02/images/other_res/png/lv-01 (2).png new file mode 100644 index 0000000..346cc5b Binary files /dev/null and b/Project02/images/other_res/png/lv-01 (2).png differ diff --git a/Project02/images/other_res/png/lv-01.png b/Project02/images/other_res/png/lv-01.png new file mode 100644 index 0000000..346cc5b Binary files /dev/null and b/Project02/images/other_res/png/lv-01.png differ diff --git a/Project02/images/other_res/png/mail.png b/Project02/images/other_res/png/mail.png new file mode 100644 index 0000000..e23e80a Binary files /dev/null and b/Project02/images/other_res/png/mail.png differ diff --git a/Project02/images/other_res/png/miandaiman-01.png b/Project02/images/other_res/png/miandaiman-01.png new file mode 100644 index 0000000..853ab39 Binary files /dev/null and b/Project02/images/other_res/png/miandaiman-01.png differ diff --git a/Project02/images/other_res/png/miandaiman-221-01.png b/Project02/images/other_res/png/miandaiman-221-01.png new file mode 100644 index 0000000..3678c4d Binary files /dev/null and b/Project02/images/other_res/png/miandaiman-221-01.png differ diff --git a/Project02/images/other_res/png/miandaiman1121-01-01.png b/Project02/images/other_res/png/miandaiman1121-01-01.png new file mode 100644 index 0000000..d8de62c Binary files /dev/null and b/Project02/images/other_res/png/miandaiman1121-01-01.png differ diff --git a/Project02/images/other_res/png/mianliuxinxi.png b/Project02/images/other_res/png/mianliuxinxi.png new file mode 100644 index 0000000..fe88684 Binary files /dev/null and b/Project02/images/other_res/png/mianliuxinxi.png differ diff --git a/Project02/images/other_res/png/mima-01.png b/Project02/images/other_res/png/mima-01.png new file mode 100644 index 0000000..2b6692c Binary files /dev/null and b/Project02/images/other_res/png/mima-01.png differ diff --git a/Project02/images/other_res/png/mima.png b/Project02/images/other_res/png/mima.png new file mode 100644 index 0000000..677442d Binary files /dev/null and b/Project02/images/other_res/png/mima.png differ diff --git a/Project02/images/other_res/png/mimasheding.png b/Project02/images/other_res/png/mimasheding.png new file mode 100644 index 0000000..afaa1eb Binary files /dev/null and b/Project02/images/other_res/png/mimasheding.png differ diff --git a/Project02/images/other_res/png/neironganniu-01.png b/Project02/images/other_res/png/neironganniu-01.png new file mode 100644 index 0000000..d23f92d Binary files /dev/null and b/Project02/images/other_res/png/neironganniu-01.png differ diff --git a/Project02/images/other_res/png/paiza.png b/Project02/images/other_res/png/paiza.png new file mode 100644 index 0000000..8bd03d8 Binary files /dev/null and b/Project02/images/other_res/png/paiza.png differ diff --git a/Project02/images/other_res/png/pass.png b/Project02/images/other_res/png/pass.png new file mode 100644 index 0000000..e558648 Binary files /dev/null and b/Project02/images/other_res/png/pass.png differ diff --git a/Project02/images/other_res/png/penfa.png b/Project02/images/other_res/png/penfa.png new file mode 100644 index 0000000..1e98bee Binary files /dev/null and b/Project02/images/other_res/png/penfa.png differ diff --git a/Project02/images/other_res/png/penfaceshi-01.png b/Project02/images/other_res/png/penfaceshi-01.png new file mode 100644 index 0000000..7bd1cdc Binary files /dev/null and b/Project02/images/other_res/png/penfaceshi-01.png differ diff --git a/Project02/images/other_res/png/penfaceshi1.png b/Project02/images/other_res/png/penfaceshi1.png new file mode 100644 index 0000000..acff97c Binary files /dev/null and b/Project02/images/other_res/png/penfaceshi1.png differ diff --git a/Project02/images/other_res/png/penfafenzhongtongji-01.png b/Project02/images/other_res/png/penfafenzhongtongji-01.png new file mode 100644 index 0000000..8d0649a Binary files /dev/null and b/Project02/images/other_res/png/penfafenzhongtongji-01.png differ diff --git a/Project02/images/other_res/png/penfatongji.png b/Project02/images/other_res/png/penfatongji.png new file mode 100644 index 0000000..6109359 Binary files /dev/null and b/Project02/images/other_res/png/penfatongji.png differ diff --git a/Project02/images/other_res/png/penfaxiaoshitongji-01.png b/Project02/images/other_res/png/penfaxiaoshitongji-01.png new file mode 100644 index 0000000..c5c1958 Binary files /dev/null and b/Project02/images/other_res/png/penfaxiaoshitongji-01.png differ diff --git a/Project02/images/other_res/png/pic_1.png b/Project02/images/other_res/png/pic_1.png new file mode 100644 index 0000000..d1d9aed Binary files /dev/null and b/Project02/images/other_res/png/pic_1.png differ diff --git a/Project02/images/other_res/png/qidian.png b/Project02/images/other_res/png/qidian.png new file mode 100644 index 0000000..6e14356 Binary files /dev/null and b/Project02/images/other_res/png/qidian.png differ diff --git a/Project02/images/other_res/png/qiehuanfenleiqi.png b/Project02/images/other_res/png/qiehuanfenleiqi.png new file mode 100644 index 0000000..29cce29 Binary files /dev/null and b/Project02/images/other_res/png/qiehuanfenleiqi.png differ diff --git a/Project02/images/other_res/png/qingchu-01.png b/Project02/images/other_res/png/qingchu-01.png new file mode 100644 index 0000000..a89c46d Binary files /dev/null and b/Project02/images/other_res/png/qingchu-01.png differ diff --git a/Project02/images/other_res/png/qiya-01.png b/Project02/images/other_res/png/qiya-01.png new file mode 100644 index 0000000..dcda073 Binary files /dev/null and b/Project02/images/other_res/png/qiya-01.png differ diff --git a/Project02/images/other_res/png/qiya11-01.png b/Project02/images/other_res/png/qiya11-01.png new file mode 100644 index 0000000..5be2665 Binary files /dev/null and b/Project02/images/other_res/png/qiya11-01.png differ diff --git a/Project02/images/other_res/png/qiya121-01-01.png b/Project02/images/other_res/png/qiya121-01-01.png new file mode 100644 index 0000000..759f5a5 Binary files /dev/null and b/Project02/images/other_res/png/qiya121-01-01.png differ diff --git a/Project02/images/other_res/png/queren-01.png b/Project02/images/other_res/png/queren-01.png new file mode 100644 index 0000000..9bf965e Binary files /dev/null and b/Project02/images/other_res/png/queren-01.png differ diff --git a/Project02/images/other_res/png/quxian.png b/Project02/images/other_res/png/quxian.png new file mode 100644 index 0000000..f372e0f Binary files /dev/null and b/Project02/images/other_res/png/quxian.png differ diff --git a/Project02/images/other_res/png/quxiao-01.png b/Project02/images/other_res/png/quxiao-01.png new file mode 100644 index 0000000..fa6ae86 Binary files /dev/null and b/Project02/images/other_res/png/quxiao-01.png differ diff --git a/Project02/images/other_res/png/red.png b/Project02/images/other_res/png/red.png new file mode 100644 index 0000000..7b716fe Binary files /dev/null and b/Project02/images/other_res/png/red.png differ diff --git a/Project02/images/other_res/png/redLamp.png b/Project02/images/other_res/png/redLamp.png new file mode 100644 index 0000000..9a2f79e Binary files /dev/null and b/Project02/images/other_res/png/redLamp.png differ diff --git a/Project02/images/other_res/png/richangcaozuo-01.png b/Project02/images/other_res/png/richangcaozuo-01.png new file mode 100644 index 0000000..1fafe14 Binary files /dev/null and b/Project02/images/other_res/png/richangcaozuo-01.png differ diff --git a/Project02/images/other_res/png/richangcaozuo.png b/Project02/images/other_res/png/richangcaozuo.png new file mode 100644 index 0000000..a776a0e Binary files /dev/null and b/Project02/images/other_res/png/richangcaozuo.png differ diff --git a/Project02/images/other_res/png/right.png b/Project02/images/other_res/png/right.png new file mode 100644 index 0000000..52945a1 Binary files /dev/null and b/Project02/images/other_res/png/right.png differ diff --git a/Project02/images/other_res/png/riguang.png b/Project02/images/other_res/png/riguang.png new file mode 100644 index 0000000..1d1001b Binary files /dev/null and b/Project02/images/other_res/png/riguang.png differ diff --git a/Project02/images/other_res/png/secondMenuBtnActived.png b/Project02/images/other_res/png/secondMenuBtnActived.png new file mode 100644 index 0000000..e78e008 Binary files /dev/null and b/Project02/images/other_res/png/secondMenuBtnActived.png differ diff --git a/Project02/images/other_res/png/secondMenuBtnNoActived.png b/Project02/images/other_res/png/secondMenuBtnNoActived.png new file mode 100644 index 0000000..16d2329 Binary files /dev/null and b/Project02/images/other_res/png/secondMenuBtnNoActived.png differ diff --git a/Project02/images/other_res/png/shanchu-01.png b/Project02/images/other_res/png/shanchu-01.png new file mode 100644 index 0000000..91ce0c5 Binary files /dev/null and b/Project02/images/other_res/png/shanchu-01.png differ diff --git a/Project02/images/other_res/png/shanchu2-01.png b/Project02/images/other_res/png/shanchu2-01.png new file mode 100644 index 0000000..3e10689 Binary files /dev/null and b/Project02/images/other_res/png/shanchu2-01.png differ diff --git a/Project02/images/other_res/png/shanchudantiao-01.png b/Project02/images/other_res/png/shanchudantiao-01.png new file mode 100644 index 0000000..a971e33 Binary files /dev/null and b/Project02/images/other_res/png/shanchudantiao-01.png differ diff --git a/Project02/images/other_res/png/shebeiweihu.png b/Project02/images/other_res/png/shebeiweihu.png new file mode 100644 index 0000000..1e1d64e Binary files /dev/null and b/Project02/images/other_res/png/shebeiweihu.png differ diff --git a/Project02/images/other_res/png/shengchantongji.png b/Project02/images/other_res/png/shengchantongji.png new file mode 100644 index 0000000..45fa2ad Binary files /dev/null and b/Project02/images/other_res/png/shengchantongji.png differ diff --git a/Project02/images/other_res/png/shijiao.png b/Project02/images/other_res/png/shijiao.png new file mode 100644 index 0000000..0a5f8ee Binary files /dev/null and b/Project02/images/other_res/png/shijiao.png differ diff --git a/Project02/images/other_res/png/shoudongzhuce-01.png b/Project02/images/other_res/png/shoudongzhuce-01.png new file mode 100644 index 0000000..79e9dda Binary files /dev/null and b/Project02/images/other_res/png/shoudongzhuce-01.png differ diff --git a/Project02/images/other_res/png/start_bk.png b/Project02/images/other_res/png/start_bk.png new file mode 100644 index 0000000..57594b8 Binary files /dev/null and b/Project02/images/other_res/png/start_bk.png differ diff --git a/Project02/images/other_res/png/stop_fan_disable.png b/Project02/images/other_res/png/stop_fan_disable.png new file mode 100644 index 0000000..6ed3e5d Binary files /dev/null and b/Project02/images/other_res/png/stop_fan_disable.png differ diff --git a/Project02/images/other_res/png/stop_fan_normal.png b/Project02/images/other_res/png/stop_fan_normal.png new file mode 100644 index 0000000..b65a0bf Binary files /dev/null and b/Project02/images/other_res/png/stop_fan_normal.png differ diff --git a/Project02/images/other_res/png/stop_fan_press.png b/Project02/images/other_res/png/stop_fan_press.png new file mode 100644 index 0000000..db85104 Binary files /dev/null and b/Project02/images/other_res/png/stop_fan_press.png differ diff --git a/Project02/images/other_res/png/suo-01.png b/Project02/images/other_res/png/suo-01.png new file mode 100644 index 0000000..622d9c9 Binary files /dev/null and b/Project02/images/other_res/png/suo-01.png differ diff --git a/Project02/images/other_res/png/suoping-01.png b/Project02/images/other_res/png/suoping-01.png new file mode 100644 index 0000000..ad239be Binary files /dev/null and b/Project02/images/other_res/png/suoping-01.png differ diff --git a/Project02/images/other_res/png/tianjia-01.png b/Project02/images/other_res/png/tianjia-01.png new file mode 100644 index 0000000..eb4da2c Binary files /dev/null and b/Project02/images/other_res/png/tianjia-01.png differ diff --git a/Project02/images/other_res/png/tiaoshi-01.png b/Project02/images/other_res/png/tiaoshi-01.png new file mode 100644 index 0000000..a243888 Binary files /dev/null and b/Project02/images/other_res/png/tiaoshi-01.png differ diff --git a/Project02/images/other_res/png/tingfengji-01.png b/Project02/images/other_res/png/tingfengji-01.png new file mode 100644 index 0000000..ceabd51 Binary files /dev/null and b/Project02/images/other_res/png/tingfengji-01.png differ diff --git a/Project02/images/other_res/png/tingzhi-01.png b/Project02/images/other_res/png/tingzhi-01.png new file mode 100644 index 0000000..40f3516 Binary files /dev/null and b/Project02/images/other_res/png/tingzhi-01.png differ diff --git a/Project02/images/other_res/png/tingzhiceshi-01.png b/Project02/images/other_res/png/tingzhiceshi-01.png new file mode 100644 index 0000000..40f3516 Binary files /dev/null and b/Project02/images/other_res/png/tingzhiceshi-01.png differ diff --git a/Project02/images/other_res/png/true.png b/Project02/images/other_res/png/true.png new file mode 100644 index 0000000..4bc6e86 Binary files /dev/null and b/Project02/images/other_res/png/true.png differ diff --git a/Project02/images/other_res/png/tuichu-01.png b/Project02/images/other_res/png/tuichu-01.png new file mode 100644 index 0000000..3efbb6c Binary files /dev/null and b/Project02/images/other_res/png/tuichu-01.png differ diff --git a/Project02/images/other_res/png/tuichuanxia-01-01.png b/Project02/images/other_res/png/tuichuanxia-01-01.png new file mode 100644 index 0000000..106b4dd Binary files /dev/null and b/Project02/images/other_res/png/tuichuanxia-01-01.png differ diff --git a/Project02/images/other_res/png/tuichubeijing-01.png b/Project02/images/other_res/png/tuichubeijing-01.png new file mode 100644 index 0000000..8306a79 Binary files /dev/null and b/Project02/images/other_res/png/tuichubeijing-01.png differ diff --git a/Project02/images/other_res/png/xiangji-01.png b/Project02/images/other_res/png/xiangji-01.png new file mode 100644 index 0000000..183f8ab Binary files /dev/null and b/Project02/images/other_res/png/xiangji-01.png differ diff --git a/Project02/images/other_res/png/xiangjikuozhan-01.png b/Project02/images/other_res/png/xiangjikuozhan-01.png new file mode 100644 index 0000000..2a5332c Binary files /dev/null and b/Project02/images/other_res/png/xiangjikuozhan-01.png differ diff --git a/Project02/images/other_res/png/xiangjipeizhi-01.png b/Project02/images/other_res/png/xiangjipeizhi-01.png new file mode 100644 index 0000000..2a5332c Binary files /dev/null and b/Project02/images/other_res/png/xiangjipeizhi-01.png differ diff --git a/Project02/images/other_res/png/xiangjiquxian-01.png b/Project02/images/other_res/png/xiangjiquxian-01.png new file mode 100644 index 0000000..0734914 Binary files /dev/null and b/Project02/images/other_res/png/xiangjiquxian-01.png differ diff --git a/Project02/images/other_res/png/xiangjishezhi.png b/Project02/images/other_res/png/xiangjishezhi.png new file mode 100644 index 0000000..9456710 Binary files /dev/null and b/Project02/images/other_res/png/xiangjishezhi.png differ diff --git a/Project02/images/other_res/png/xiaojianpanqueren-01.png b/Project02/images/other_res/png/xiaojianpanqueren-01.png new file mode 100644 index 0000000..ad102f0 Binary files /dev/null and b/Project02/images/other_res/png/xiaojianpanqueren-01.png differ diff --git a/Project02/images/other_res/png/xinxitongji-01.png b/Project02/images/other_res/png/xinxitongji-01.png new file mode 100644 index 0000000..2eedb92 Binary files /dev/null and b/Project02/images/other_res/png/xinxitongji-01.png differ diff --git a/Project02/images/other_res/png/xiugai-01.png b/Project02/images/other_res/png/xiugai-01.png new file mode 100644 index 0000000..2a59295 Binary files /dev/null and b/Project02/images/other_res/png/xiugai-01.png differ diff --git a/Project02/images/other_res/png/yaoshi-01.png b/Project02/images/other_res/png/yaoshi-01.png new file mode 100644 index 0000000..6ba19f8 Binary files /dev/null and b/Project02/images/other_res/png/yaoshi-01.png differ diff --git a/Project02/images/other_res/png/yijichangtai-01-01.png b/Project02/images/other_res/png/yijichangtai-01-01.png new file mode 100644 index 0000000..06bd83f Binary files /dev/null and b/Project02/images/other_res/png/yijichangtai-01-01.png differ diff --git a/Project02/images/other_res/png/yijixuanzhong-01.png b/Project02/images/other_res/png/yijixuanzhong-01.png new file mode 100644 index 0000000..7526ab7 Binary files /dev/null and b/Project02/images/other_res/png/yijixuanzhong-01.png differ diff --git a/Project02/images/other_res/png/yixiancuntu-01.png b/Project02/images/other_res/png/yixiancuntu-01.png new file mode 100644 index 0000000..8daf6c2 Binary files /dev/null and b/Project02/images/other_res/png/yixiancuntu-01.png differ diff --git a/Project02/images/other_res/png/yixiancuntu.png b/Project02/images/other_res/png/yixiancuntu.png new file mode 100644 index 0000000..f627f83 Binary files /dev/null and b/Project02/images/other_res/png/yixiancuntu.png differ diff --git a/Project02/images/other_res/png/you-01.png b/Project02/images/other_res/png/you-01.png new file mode 100644 index 0000000..ff73b05 Binary files /dev/null and b/Project02/images/other_res/png/you-01.png differ diff --git a/Project02/images/other_res/png/you-03.png b/Project02/images/other_res/png/you-03.png new file mode 100644 index 0000000..3f9dc53 Binary files /dev/null and b/Project02/images/other_res/png/you-03.png differ diff --git a/Project02/images/other_res/png/yuzhiyichang.png b/Project02/images/other_res/png/yuzhiyichang.png new file mode 100644 index 0000000..8e38a09 Binary files /dev/null and b/Project02/images/other_res/png/yuzhiyichang.png differ diff --git a/Project02/images/other_res/png/zhuji.png b/Project02/images/other_res/png/zhuji.png new file mode 100644 index 0000000..36f38b1 Binary files /dev/null and b/Project02/images/other_res/png/zhuji.png differ diff --git a/Project02/images/other_res/png/ziwai.png b/Project02/images/other_res/png/ziwai.png new file mode 100644 index 0000000..91678c2 Binary files /dev/null and b/Project02/images/other_res/png/ziwai.png differ diff --git a/Project02/images/other_res/png/zuo-01.png b/Project02/images/other_res/png/zuo-01.png new file mode 100644 index 0000000..2ae1057 Binary files /dev/null and b/Project02/images/other_res/png/zuo-01.png differ diff --git a/Project02/images/other_res/png/zuo-03.png b/Project02/images/other_res/png/zuo-03.png new file mode 100644 index 0000000..f6cd6a7 Binary files /dev/null and b/Project02/images/other_res/png/zuo-03.png differ diff --git a/Project02/images/other_res/true.ico b/Project02/images/other_res/true.ico new file mode 100644 index 0000000..7b60de9 Binary files /dev/null and b/Project02/images/other_res/true.ico differ diff --git a/Project02/images/other_res/yixian01-1.ico b/Project02/images/other_res/yixian01-1.ico new file mode 100644 index 0000000..72d7b55 Binary files /dev/null and b/Project02/images/other_res/yixian01-1.ico differ diff --git a/Project02/main.cpp b/Project02/main.cpp index fd3e533..dd268c5 100644 --- a/Project02/main.cpp +++ b/Project02/main.cpp @@ -1,11 +1,21 @@ #include "mainwindow.h" +#include "homewidget.h" + #include +#include int main(int argc, char *argv[]) { QApplication a(argc, argv); - MainWindow w; - w.show(); + MainWindow w; // 登录页 + w.show(); // 先显示登录页 + HomeWidget hw; // 主页 + + QObject::connect(&w,&MainWindow::login_success,[&](){ // 登录成功则显示主页并关闭登录页 + hw.show(); + w.close(); + }); + return a.exec(); } diff --git a/Project02/mainwindow.cpp b/Project02/mainwindow.cpp index 41a26bd..40425d0 100644 --- a/Project02/mainwindow.cpp +++ b/Project02/mainwindow.cpp @@ -6,10 +6,77 @@ MainWindow::MainWindow(QWidget *parent) , ui(new Ui::MainWindow) { ui->setupUi(this); + this->setWindowTitle("不知名系统"); + this->setWindowIcon(QIcon(":logo")); } MainWindow::~MainWindow() { delete ui; + delete register_widget; // 释放注册页 } +void MainWindow::on_registerBtn_clicked() +{ + register_widget = new RegisterWidget(); + register_widget->show(); +} + +void MainWindow::on_loginBtn_clicked() +{ + // debug 模式: 无密码登录 + // emit this->login_success(); // 广播登录成功 + + + // 密码验证登录 + // QString id = ui->idEdit->text(); + // QString password = ui->passwordEdit->text(); + + // if(id == "123" && password == "321"){ + // emit this->login_success(); // 广播登录成功 + // } + // else{ + // QMessageBox::critical(this,"账号或密码错误","请检查用户名或密码"); + // return; + // } + + + // "./userdata.txt" + QFile file("./userdata.txt"); + if(!file.open(QIODevice::ReadOnly|QIODevice::Text)) + { + QMessageBox::warning(this,"警告","数据库为空,请先注册"); + return; + } + + QTextStream in(&file); + + QString name = ui->idEdit->text(); + QString pwd = ui->passwordEdit->text(); + + QString line = ""; + while((line = in.readLine()) != "") + { + qDebug() <login_success(); // 广播登录成功 + break; + } + } + file.close(); +} + +void MainWindow::on_clearBtn_clicked() +{ + ui->idEdit->clear(); + ui->passwordEdit->clear(); +} + +void MainWindow::on_exitBtn_clicked() +{ + this->close(); +} + + diff --git a/Project02/mainwindow.h b/Project02/mainwindow.h index 4643e32..dd1a56b 100644 --- a/Project02/mainwindow.h +++ b/Project02/mainwindow.h @@ -2,6 +2,12 @@ #define MAINWINDOW_H #include +#include +#include +#include +#include + +#include "registerwidget.h" QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } @@ -11,10 +17,27 @@ class MainWindow : public QMainWindow { Q_OBJECT +private: + RegisterWidget *register_widget; // 注册页面 + +signals: + void send_connected_port_id(const QString &); + + void login_success(); + public: MainWindow(QWidget *parent = nullptr); ~MainWindow(); +private slots: + void on_registerBtn_clicked(); + + void on_loginBtn_clicked(); + + void on_clearBtn_clicked(); + + void on_exitBtn_clicked(); + private: Ui::MainWindow *ui; }; diff --git a/Project02/mainwindow.ui b/Project02/mainwindow.ui index b232854..fe49a66 100644 --- a/Project02/mainwindow.ui +++ b/Project02/mainwindow.ui @@ -2,19 +2,330 @@ MainWindow + + true + 0 0 - 800 - 600 + 600 + 500 MainWindow - - + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + font: 75 16pt "微软雅黑"; + + + 账号: + + + + + + + font: 75 16pt "微软雅黑"; + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + font: 75 16pt "微软雅黑"; + + + 密码: + + + + + + + font: 75 16pt "微软雅黑"; + + + QLineEdit::PasswordEchoOnEdit + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + font: 75 16pt "微软雅黑"; + + + 注册 + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + font: 75 16pt "微软雅黑"; + + + 登录 + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + font: 75 16pt "微软雅黑"; + + + 清除 + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + font: 75 16pt "微软雅黑"; + + + 退出 + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 0 + 600 + 26 + + + diff --git a/Project02/operationallogwidget.cpp b/Project02/operationallogwidget.cpp new file mode 100644 index 0000000..7b9d7f7 --- /dev/null +++ b/Project02/operationallogwidget.cpp @@ -0,0 +1,92 @@ +#include "operationallogwidget.h" +#include "ui_operationallogwidget.h" + +OperationalLogWidget::OperationalLogWidget(QWidget *parent) : + QWidget(parent), + ui(new Ui::OperationalLogWidget) +{ + ui->setupUi(this); +// ui->tableWidget->setLineWidth(500); + initTableWidgetFormat(); // 初始化表格 +} + +OperationalLogWidget::~OperationalLogWidget() +{ + delete ui; +} + +void OperationalLogWidget::initTableWidgetFormat() +{ + ui->tableWidget->setColumnCount(2); + ui->tableWidget->setColumnWidth(0,505); + ui->tableWidget->setColumnWidth(1,505); + + // 添加默认空行 + ui->tableWidget->setRowCount(50); // 设置表格行数为50 + + // 获取水平标题栏 + QHeaderView *table_header = ui->tableWidget->horizontalHeader(); + + // 设置标题栏的背景色 + table_header->setStyleSheet("background-color: rgb(0, 255, 255);"); + + // 设置标题栏的字体 + QFont font("黑体",14,QFont::Bold); + table_header->setFont(font); + + // 设置标题栏的文本 + table_header->setSectionResizeMode(QHeaderView::Stretch); + table_header->setSortIndicatorShown(true); + table_header->setSortIndicator(0, Qt::AscendingOrder); + table_header->setSectionsClickable(true); + table_header->setSectionsMovable(true); + table_header->setHighlightSections(true); + + ui->tableWidget->setHorizontalHeader(table_header); + + ui->tableWidget->setHorizontalHeaderLabels({"操作类型","操作时间"}); + + + // 创建7行数据 + QStringList operations = {"开机", "关机", "调试", "运行"}; +// QStringList data = {"Data 1", "Data 2", "Data 3", "Data 4", "Data 5", "Data 6", "Data 7"}; +// QDateTime currentTime = QDateTime::currentDateTime(); + + // 设置时间范围 + QDateTime startTime = QDateTime::fromString("2019-01-01 00:00:00", "yyyy-MM-dd hh:mm:ss"); + QDateTime endTime = QDateTime::fromString("2023-08-02 00:00:00", "yyyy-MM-dd hh:mm:ss"); + + for (int row = 0; row < 7; ++row) { + // 生成随机时间戳 + qint64 randomTimestamp = QRandomGenerator::global()->generate64(); + qint64 range = endTime.toSecsSinceEpoch() - startTime.toSecsSinceEpoch(); + qint64 randomSeconds = randomTimestamp % range; + QDateTime randomTime = startTime.addSecs(randomSeconds); + + // 将随机时间转换为文本格式 + QString randomTimeString = randomTime.toString("yyyy-MM-dd hh:mm:ss"); + + // 设置操作时间 + QTableWidgetItem *timeItem = new QTableWidgetItem(randomTimeString); + ui->tableWidget->setItem(row, 1, timeItem); + } + + + for (int row = 0; row < 7; ++row) { + // 设置操作类型 + QTableWidgetItem *operationItem = new QTableWidgetItem(operations[row % operations.size()]); + ui->tableWidget->setItem(row, 0, operationItem); + +// // 设置操作数据 +// QTableWidgetItem *dataItem = new QTableWidgetItem(data[row]); +// ui->tableWidget->setItem(row, 1, dataItem); + +// // 设置时间格式为"yyyy-MM-dd hh:mm:ss" +// QTableWidgetItem *timeItem = new QTableWidgetItem(currentTime.toString("yyyy-MM-dd hh:mm:ss")); +// ui->tableWidget->setItem(row, 2, timeItem); + +// // 增加时间 +// currentTime = currentTime.addSecs(60); // 增加60秒 + } + +} diff --git a/Project02/operationallogwidget.h b/Project02/operationallogwidget.h new file mode 100644 index 0000000..af18730 --- /dev/null +++ b/Project02/operationallogwidget.h @@ -0,0 +1,27 @@ +#ifndef OPERATIONALLOGWIDGET_H +#define OPERATIONALLOGWIDGET_H + +#include +#include +#include + +namespace Ui { +class OperationalLogWidget; +} + +class OperationalLogWidget : public QWidget +{ + Q_OBJECT + +private: + void initTableWidgetFormat(); + +public: + explicit OperationalLogWidget(QWidget *parent = nullptr); + ~OperationalLogWidget(); + +private: + Ui::OperationalLogWidget *ui; +}; + +#endif // OPERATIONALLOGWIDGET_H diff --git a/Project02/operationallogwidget.ui b/Project02/operationallogwidget.ui new file mode 100644 index 0000000..a13398f --- /dev/null +++ b/Project02/operationallogwidget.ui @@ -0,0 +1,29 @@ + + + OperationalLogWidget + + + + 0 + 0 + 1021 + 691 + + + + Form + + + + + 20 + 20 + 981 + 651 + + + + + + + diff --git a/Project02/passwordsettingwidget.cpp b/Project02/passwordsettingwidget.cpp new file mode 100644 index 0000000..02c80e8 --- /dev/null +++ b/Project02/passwordsettingwidget.cpp @@ -0,0 +1,14 @@ +#include "passwordsettingwidget.h" +#include "ui_passwordsettingwidget.h" + +PasswordSettingWidget::PasswordSettingWidget(QWidget *parent) : + QWidget(parent), + ui(new Ui::PasswordSettingWidget) +{ + ui->setupUi(this); +} + +PasswordSettingWidget::~PasswordSettingWidget() +{ + delete ui; +} diff --git a/Project02/passwordsettingwidget.h b/Project02/passwordsettingwidget.h new file mode 100644 index 0000000..f85512f --- /dev/null +++ b/Project02/passwordsettingwidget.h @@ -0,0 +1,22 @@ +#ifndef PASSWORDSETTINGWIDGET_H +#define PASSWORDSETTINGWIDGET_H + +#include + +namespace Ui { +class PasswordSettingWidget; +} + +class PasswordSettingWidget : public QWidget +{ + Q_OBJECT + +public: + explicit PasswordSettingWidget(QWidget *parent = nullptr); + ~PasswordSettingWidget(); + +private: + Ui::PasswordSettingWidget *ui; +}; + +#endif // PASSWORDSETTINGWIDGET_H diff --git a/Project02/passwordsettingwidget.ui b/Project02/passwordsettingwidget.ui new file mode 100644 index 0000000..89c51c7 --- /dev/null +++ b/Project02/passwordsettingwidget.ui @@ -0,0 +1,295 @@ + + + PasswordSettingWidget + + + + 0 + 0 + 1021 + 691 + + + + Form + + + + + 440 + 40 + 101 + 41 + + + + font: 75 14pt "微软雅黑"; + + + 密码设置 + + + + + + 340 + 570 + 93 + 50 + + + + font: 75 12pt "微软雅黑"; + + + 修改 + + + + + + 530 + 570 + 93 + 50 + + + + font: 75 12pt "微软雅黑"; + + + 保存 + + + + + + 250 + 110 + 466 + 424 + + + + + + + + + + font: 75 14pt "微软雅黑"; + + + 请输入静态码: + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + font: 75 14pt "微软雅黑"; + + + 请输入安全码: + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + font: 75 14pt "微软雅黑"; + + + 再次输入静态码: + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + font: 75 14pt "微软雅黑"; + + + 再次输入安全码: + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + font: 75 14pt "微软雅黑"; + + + 密码设定为: + + + + + + + + + + + + + font: 75 14pt "微软雅黑"; + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + font: 75 14pt "微软雅黑"; + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + font: 75 14pt "微软雅黑"; + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + font: 75 14pt "微软雅黑"; + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + font: 75 14pt "微软雅黑"; + + + + + + + + + + + + + + + diff --git a/Project02/registerwidget.cpp b/Project02/registerwidget.cpp new file mode 100644 index 0000000..beb94d5 --- /dev/null +++ b/Project02/registerwidget.cpp @@ -0,0 +1,40 @@ +#include "registerwidget.h" +#include "ui_registerwidget.h" + +RegisterWidget::RegisterWidget(QWidget *parent) : + QWidget(parent), + ui(new Ui::RegisterWidget) +{ + ui->setupUi(this); + this->setWindowTitle("注册"); +} + +RegisterWidget::~RegisterWidget() +{ + delete ui; +} + +void RegisterWidget::on_pushButton_2_clicked() +{ + this->close(); +} + +void RegisterWidget::on_pushButton_clicked() +{ + QString name = ui->lineEdit->text(); + QString pwd = ui->lineEdit_2->text(); + + QString res_file_path = "./userdata.txt"; // 资源文件路径 + + QFile file(res_file_path); + if(!file.open(QIODevice::Append|QIODevice::Text)) + { + QMessageBox::warning(this,"警告","打开数据文件失败"); + return; + } + + QTextStream out(&file); + out< +#include +#include +#include +#include // Qt 资源 + +namespace Ui { +class RegisterWidget; +} + +class RegisterWidget : public QWidget +{ + Q_OBJECT + +public: + explicit RegisterWidget(QWidget *parent = nullptr); + ~RegisterWidget(); + +private slots: + void on_pushButton_2_clicked(); + + void on_pushButton_clicked(); + +private: + Ui::RegisterWidget *ui; +}; + +#endif // REGISTERWIDGET_H diff --git a/Project02/registerwidget.ui b/Project02/registerwidget.ui new file mode 100644 index 0000000..38e5308 --- /dev/null +++ b/Project02/registerwidget.ui @@ -0,0 +1,174 @@ + + + RegisterWidget + + + + 0 + 0 + 400 + 300 + + + + Form + + + + + + font: 75 20pt "Agency FB"; + + + 来,没注册的注册一下: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + font: 75 16pt "微软雅黑"; + + + 确认 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + font: 75 16pt "微软雅黑"; + + + 取消 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + + + + font: 75 13pt "微软雅黑"; + + + 账号 : + + + + + + + font: 75 13pt "微软雅黑"; + + + 密码 : + + + + + + + + + + + + + font: 75 13pt "微软雅黑"; + + + + + + + font: 75 13pt "微软雅黑"; + + + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + diff --git a/Project02/res.qrc b/Project02/res.qrc new file mode 100644 index 0000000..ff6c868 --- /dev/null +++ b/Project02/res.qrc @@ -0,0 +1,29 @@ + + + images/login_images/exit.jpg + images/login_images/history.jpg + images/login_images/home.jpg + images/login_images/picture.jpg + images/login_images/set.jpg + images/login_images/widget.jpg + images/main_images/add.png + images/main_images/cleanport.png + images/main_images/clearbytes.png + images/main_images/edit-clear.png + images/main_images/exit.png + images/main_images/loadfile.png + images/main_images/logo.png + images/main_images/mesage.png + images/main_images/open.png + images/main_images/pause.png + images/main_images/reload.png + images/main_images/save.png + images/main_images/send.png + images/main_images/stop.png + images/main_images/time.png + images/main_images/write2file.png + + + data/userdata.txt + + diff --git a/Project02/serialportdebuggingwindow.cpp b/Project02/serialportdebuggingwindow.cpp new file mode 100644 index 0000000..477c0cc --- /dev/null +++ b/Project02/serialportdebuggingwindow.cpp @@ -0,0 +1,121 @@ +#include "serialportdebuggingwindow.h" +#include "ui_serialportdebuggingwindow.h" +#include + +SerialPortDebuggingWindow::SerialPortDebuggingWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::SerialPortDebuggingWindow) +{ + ui->setupUi(this); + + // 初始化串口调试窗 + initSPDW(); +} + +SerialPortDebuggingWindow::~SerialPortDebuggingWindow() +{ + delete ui; +} + +void SerialPortDebuggingWindow::initSPDW() +{ + initMenuBar(); // 初始化菜单栏 + initToolBar(); // 初始化工具栏 + initPortShow(); // 初始化串口设置栏 +} + +void SerialPortDebuggingWindow::initMenuBar() +{ + // 关于 + connect(ui->actionabout,&QAction::triggered,[&](){ + QMessageBox::about(this,"关于","这是liubo写的Qt的练习项目"); + }); + + // 退出 + connect(ui->actionexitAction,&QAction::triggered,[&](){ + qDebug() <<"退出"; +// emit close_app(); + QApplication::quit(); + }); + +} + +void SerialPortDebuggingWindow::initToolBar() +{ + open_action = new QAction(this); + stop_action = new QAction(this); + add_action = new QAction(this); + time_action = new QAction(this); + loadfile_action = new QAction(this); + write2file_action = new QAction(this); + save_action = new QAction(this); + clearbytes_action = new QAction(this); + cleanport_action = new QAction(this); + msg_action = new QAction(this); + + open_action->setIcon(QIcon(":open")); + stop_action->setIcon(QIcon(":stop")); + add_action->setIcon(QIcon(":add")); + time_action->setIcon(QIcon(":time")); + loadfile_action->setIcon(QIcon(":loadfile")); + write2file_action->setIcon(QIcon(":write2file")); + save_action->setIcon(QIcon(":save")); + clearbytes_action->setIcon(QIcon(":clearbytes")); + cleanport_action->setIcon(QIcon(":cleanport")); + msg_action->setIcon(QIcon(":msg")); + + tool_bar = new QToolBar(this); + tool_bar->addAction(open_action); + tool_bar->addAction(stop_action); + tool_bar->addSeparator(); // 分隔线 + tool_bar->addAction(add_action); + tool_bar->addAction(time_action); + tool_bar->addAction(loadfile_action); + tool_bar->addAction(write2file_action); + tool_bar->addAction(save_action); + tool_bar->addSeparator(); + tool_bar->addAction(clearbytes_action); + tool_bar->addAction(cleanport_action); + tool_bar->addSeparator(); + tool_bar->addAction(msg_action); + + tool_bar->setMovable(false); // 禁止移动 + // tool_bar->setFloatable(true); + tool_bar->setAllowedAreas(Qt::TopToolBarArea); + tool_bar->setFixedHeight(40); + + this->addToolBar(tool_bar); // 将工具栏添加到当前 Window + + // 绑定工具行为 + connect(msg_action,&QAction::triggered,[&](){ + QMessageBox::about(this,"关于","这是liubo写的Qt的练习项目"); + }); +} + +void SerialPortDebuggingWindow::initPortShow() +{ + // 添加串口并显示当前串口 + qDebug() <<"可用串口信息"<port_select_combo_box->clear(); + QList ports = QSerialPortInfo::availablePorts(); + for(int i = 0; iport_select_combo_box->addItem(info.portName()); + } + // if(ports.size()!=0){ // 当串口不为空时,至少存在一个串口 + // QSerialPortInfo portid = ports.at(0); // 获取第一个串口 + // ui->port_select_combo_box->setCurrentText(portid.portName()); + // } + + + // 添加波特率 + qDebug() <<"可用波特率信息"<rates_check_box->clear(); // 清空可选下拉框 + QList rates = QSerialPortInfo::standardBaudRates(); + for(int i=0;irates_check_box->addItem(QString::number(rate_item)); + } +} diff --git a/Project02/serialportdebuggingwindow.h b/Project02/serialportdebuggingwindow.h new file mode 100644 index 0000000..ab794cb --- /dev/null +++ b/Project02/serialportdebuggingwindow.h @@ -0,0 +1,41 @@ +#ifndef SERIALPORTDEBUGGINGWINDOW_H +#define SERIALPORTDEBUGGINGWINDOW_H + +#include +#include +#include +#include +#include + +namespace Ui { +class SerialPortDebuggingWindow; +} + +class SerialPortDebuggingWindow : public QMainWindow +{ + Q_OBJECT + +private: + QAction *open_action,*stop_action,*add_action,*time_action, + *loadfile_action,*write2file_action,*save_action, + *clearbytes_action,*cleanport_action,*msg_action; + QToolBar *tool_bar; + +private: + void initSPDW(); + void initToolBar(); + void initMenuBar(); + void initPortShow(); + +signals: +// void close_app(); // 关闭软件 + +public: + explicit SerialPortDebuggingWindow(QWidget *parent = nullptr); + ~SerialPortDebuggingWindow(); + +private: + Ui::SerialPortDebuggingWindow *ui; +}; + +#endif // SERIALPORTDEBUGGINGWINDOW_H diff --git a/Project02/serialportdebuggingwindow.ui b/Project02/serialportdebuggingwindow.ui new file mode 100644 index 0000000..dfbea2b --- /dev/null +++ b/Project02/serialportdebuggingwindow.ui @@ -0,0 +1,452 @@ + + + SerialPortDebuggingWindow + + + + 0 + 0 + 1021 + 691 + + + + MainWindow + + + + + + 20 + 10 + 151 + 591 + + + + font: 10pt "黑体"; + + + 串口设置 + + + + + + 串口 + + + + + + + + + + 波特率 + + + + + + + + + + 数据位 + + + + + + + + 5 + + + + + 6 + + + + + 7 + + + + + 8 + + + + + + + + 校验位 + + + + + + + + + + + + + + + + + + + + + + + + + + 停止位 + + + + + + + + 1 + + + + + 1.5 + + + + + 2 + + + + + + + + 检测串口 + + + + + + + 连续发送 + + + + + + + 间隔(毫秒) + + + + + + + + + + + + 200 + 10 + 791 + 71 + + + + font: 10pt "黑体"; + + + 接收数据 + + + + + 20 + 20 + 391 + 41 + + + + + + + 字符-字符 + + + + + + + 字符-HEX + + + + + + + DEC字符 + + + + + + + + + 460 + 20 + 141 + 41 + + + + background-color: rgb(0, 255, 0); +color: rgb(0, 85, 255); + + + + + + 620 + 20 + 151 + 41 + + + + 清空显示 + + + + :/edit-clear:/edit-clear + + + + + + + 200 + 90 + 791 + 431 + + + + + + + 200 + 530 + 791 + 71 + + + + font: 10pt "黑体"; + + + 发送数据 + + + + + 20 + 20 + 111 + 41 + + + + background-color: rgb(0, 255, 0); +color: rgb(0, 85, 255); + + + + + + 150 + 20 + 491 + 41 + + + + + + + 660 + 20 + 111 + 41 + + + + 发送 + + + + :/send:/send + + + + + + + + 0 + 0 + 1021 + 26 + + + + + 操作 (C) + + + + + + + + + + + + + + + + + + + + 关于 (A) + + + + + + + + + + :/msg:/msg + + + 关于不知名系统 + + + + + + :/add:/add + + + 添加串口 + + + + + + :/open:/open + + + 打开串口 + + + + + + :/stop:/stop + + + 关闭串口 + + + + + + :/save:/save + + + 保存数据 + + + + + + :/loadfile:/loadfile + + + 读取文件 + + + + + + :/write2file:/write2file + + + 写入文件 + + + + + + :/time:/time + + + 读取间隔 + + + + + + :/clearbytes:/clearbytes + + + 计数清零 + + + + + + :/cleanport:/cleanport + + + 清空串口 + + + + + + :/exit:/exit + + + 退出程序 + + + + + + + + diff --git a/Project02/settingswidget.cpp b/Project02/settingswidget.cpp new file mode 100644 index 0000000..6695412 --- /dev/null +++ b/Project02/settingswidget.cpp @@ -0,0 +1,57 @@ +#include "settingswidget.h" +#include "ui_settingswidget.h" + +SettingsWidget::SettingsWidget(QWidget *parent) : + QWidget(parent), + ui(new Ui::SettingsWidget) +{ + ui->setupUi(this); + + // 启用所有按钮 + ui->classifier_btn->setEnabled(true); + ui->operational_log_btn->setEnabled(true); + ui->password_setting_btn->setEnabled(true); + ui->serial_port_debugging_btn->setEnabled(true); +} + +SettingsWidget::~SettingsWidget() +{ + delete ui; +} + +void SettingsWidget::on_classifier_btn_clicked() +{ + ui->settings_stacked_widget->setCurrentIndex(0); + ui->classifier_btn->setEnabled(false); + ui->operational_log_btn->setEnabled(true); + ui->password_setting_btn->setEnabled(true); + ui->serial_port_debugging_btn->setEnabled(true); +} + +void SettingsWidget::on_operational_log_btn_clicked() +{ + ui->settings_stacked_widget->setCurrentIndex(1); + ui->classifier_btn->setEnabled(true); + ui->operational_log_btn->setEnabled(false); + ui->password_setting_btn->setEnabled(true); + ui->serial_port_debugging_btn->setEnabled(true); +} + + +void SettingsWidget::on_password_setting_btn_clicked() +{ + ui->settings_stacked_widget->setCurrentIndex(2); + ui->classifier_btn->setEnabled(true); + ui->operational_log_btn->setEnabled(true); + ui->password_setting_btn->setEnabled(false); + ui->serial_port_debugging_btn->setEnabled(true); +} + +void SettingsWidget::on_serial_port_debugging_btn_clicked() +{ + ui->settings_stacked_widget->setCurrentIndex(3); + ui->classifier_btn->setEnabled(true); + ui->operational_log_btn->setEnabled(true); + ui->password_setting_btn->setEnabled(true); + ui->serial_port_debugging_btn->setEnabled(false); +} diff --git a/Project02/settingswidget.h b/Project02/settingswidget.h new file mode 100644 index 0000000..4366c1b --- /dev/null +++ b/Project02/settingswidget.h @@ -0,0 +1,34 @@ +#ifndef SETTINGSWIDGET_H +#define SETTINGSWIDGET_H + +#include + +namespace Ui { +class SettingsWidget; +} + +class SettingsWidget : public QWidget +{ + Q_OBJECT + +signals: + void close_app(); + +public: + explicit SettingsWidget(QWidget *parent = nullptr); + ~SettingsWidget(); + +private slots: + void on_operational_log_btn_clicked(); + + void on_classifier_btn_clicked(); + + void on_password_setting_btn_clicked(); + + void on_serial_port_debugging_btn_clicked(); + +private: + Ui::SettingsWidget *ui; +}; + +#endif // SETTINGSWIDGET_H diff --git a/Project02/settingswidget.ui b/Project02/settingswidget.ui new file mode 100644 index 0000000..9cb3bd3 --- /dev/null +++ b/Project02/settingswidget.ui @@ -0,0 +1,126 @@ + + + SettingsWidget + + + + 0 + 0 + 1182 + 709 + + + + Form + + + + + 1050 + 446 + 100 + 70 + + + + font: 75 12pt "微软雅黑"; + + + 串口调试 + + + + + true + + + + 1050 + 146 + 100 + 70 + + + + font: 75 12pt "微软雅黑"; + + + 分类器 + + + + + + 1050 + 346 + 100 + 70 + + + + font: 75 12pt "微软雅黑"; + + + 密码设置 + + + + + + 1050 + 246 + 100 + 70 + + + + font: 75 12pt "微软雅黑"; + + + 操作记录 + + + + + + 10 + 10 + 1021 + 691 + + + + + + + + + + + ClassifierWidget + QWidget +
classifierwidget.h
+ 1 +
+ + OperationalLogWidget + QWidget +
operationallogwidget.h
+ 1 +
+ + PasswordSettingWidget + QWidget +
passwordsettingwidget.h
+ 1 +
+ + SerialPortDebuggingWindow + QWidget +
serialportdebuggingwindow.h
+ 1 +
+
+ + +