diff --git a/README.md b/README.md index e69de29..e805b60 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,5 @@ +intelligent + +智能家居相关项目代码 + +项目开始于 2016/10 \ No newline at end of file diff --git a/AirDialog/AirDialog.pri b/SmartHome/AirDialog/AirDialog.pri similarity index 100% rename from AirDialog/AirDialog.pri rename to SmartHome/AirDialog/AirDialog.pri diff --git a/AirDialog/air_dialog.cpp b/SmartHome/AirDialog/air_dialog.cpp similarity index 100% rename from AirDialog/air_dialog.cpp rename to SmartHome/AirDialog/air_dialog.cpp diff --git a/AirDialog/air_dialog.h b/SmartHome/AirDialog/air_dialog.h similarity index 100% rename from AirDialog/air_dialog.h rename to SmartHome/AirDialog/air_dialog.h diff --git a/AirDialog/air_dialog.ui b/SmartHome/AirDialog/air_dialog.ui similarity index 100% rename from AirDialog/air_dialog.ui rename to SmartHome/AirDialog/air_dialog.ui diff --git a/MainWindow/MainWindow.pri b/SmartHome/MainWindow/MainWindow.pri similarity index 100% rename from MainWindow/MainWindow.pri rename to SmartHome/MainWindow/MainWindow.pri diff --git a/MainWindow/main.cpp b/SmartHome/MainWindow/main.cpp similarity index 100% rename from MainWindow/main.cpp rename to SmartHome/MainWindow/main.cpp diff --git a/MainWindow/mainwindow.cpp b/SmartHome/MainWindow/mainwindow.cpp similarity index 100% rename from MainWindow/mainwindow.cpp rename to SmartHome/MainWindow/mainwindow.cpp diff --git a/MainWindow/mainwindow.h b/SmartHome/MainWindow/mainwindow.h similarity index 100% rename from MainWindow/mainwindow.h rename to SmartHome/MainWindow/mainwindow.h diff --git a/MainWindow/mainwindow.ui b/SmartHome/MainWindow/mainwindow.ui similarity index 100% rename from MainWindow/mainwindow.ui rename to SmartHome/MainWindow/mainwindow.ui diff --git a/PowerDialog/PowerDialog.pri b/SmartHome/PowerDialog/PowerDialog.pri similarity index 100% rename from PowerDialog/PowerDialog.pri rename to SmartHome/PowerDialog/PowerDialog.pri diff --git a/PowerDialog/power_dialog.cpp b/SmartHome/PowerDialog/power_dialog.cpp similarity index 100% rename from PowerDialog/power_dialog.cpp rename to SmartHome/PowerDialog/power_dialog.cpp diff --git a/PowerDialog/power_dialog.h b/SmartHome/PowerDialog/power_dialog.h similarity index 100% rename from PowerDialog/power_dialog.h rename to SmartHome/PowerDialog/power_dialog.h diff --git a/PowerDialog/power_dialog.ui b/SmartHome/PowerDialog/power_dialog.ui similarity index 100% rename from PowerDialog/power_dialog.ui rename to SmartHome/PowerDialog/power_dialog.ui diff --git a/SerialPort/SerialPort.pri b/SmartHome/SerialPort/SerialPort.pri similarity index 100% rename from SerialPort/SerialPort.pri rename to SmartHome/SerialPort/SerialPort.pri diff --git a/SerialPort/dialogserial.cpp b/SmartHome/SerialPort/dialogserial.cpp similarity index 100% rename from SerialPort/dialogserial.cpp rename to SmartHome/SerialPort/dialogserial.cpp diff --git a/SerialPort/dialogserial.h b/SmartHome/SerialPort/dialogserial.h similarity index 100% rename from SerialPort/dialogserial.h rename to SmartHome/SerialPort/dialogserial.h diff --git a/SerialPort/dialogserial.ui b/SmartHome/SerialPort/dialogserial.ui similarity index 100% rename from SerialPort/dialogserial.ui rename to SmartHome/SerialPort/dialogserial.ui diff --git a/SerialPort/serial_data.cpp b/SmartHome/SerialPort/serial_data.cpp similarity index 100% rename from SerialPort/serial_data.cpp rename to SmartHome/SerialPort/serial_data.cpp diff --git a/SerialPort/serial_data.h b/SmartHome/SerialPort/serial_data.h similarity index 100% rename from SerialPort/serial_data.h rename to SmartHome/SerialPort/serial_data.h diff --git a/StatueDialog/StatueDialog.pri b/SmartHome/StatueDialog/StatueDialog.pri similarity index 100% rename from StatueDialog/StatueDialog.pri rename to SmartHome/StatueDialog/StatueDialog.pri diff --git a/StatueDialog/status_dialog.cpp b/SmartHome/StatueDialog/status_dialog.cpp similarity index 100% rename from StatueDialog/status_dialog.cpp rename to SmartHome/StatueDialog/status_dialog.cpp diff --git a/StatueDialog/status_dialog.h b/SmartHome/StatueDialog/status_dialog.h similarity index 100% rename from StatueDialog/status_dialog.h rename to SmartHome/StatueDialog/status_dialog.h diff --git a/StatueDialog/status_dialog.ui b/SmartHome/StatueDialog/status_dialog.ui similarity index 100% rename from StatueDialog/status_dialog.ui rename to SmartHome/StatueDialog/status_dialog.ui diff --git a/commonhelper.h b/SmartHome/commonhelper.h similarity index 100% rename from commonhelper.h rename to SmartHome/commonhelper.h diff --git a/image/checkbox.png b/SmartHome/image/checkbox.png similarity index 100% rename from image/checkbox.png rename to SmartHome/image/checkbox.png diff --git a/image/down_arrow.png b/SmartHome/image/down_arrow.png similarity index 100% rename from image/down_arrow.png rename to SmartHome/image/down_arrow.png diff --git a/image/handle.png b/SmartHome/image/handle.png similarity index 100% rename from image/handle.png rename to SmartHome/image/handle.png diff --git a/light_window_dialog.cpp b/SmartHome/light_window_dialog.cpp similarity index 100% rename from light_window_dialog.cpp rename to SmartHome/light_window_dialog.cpp diff --git a/light_window_dialog.h b/SmartHome/light_window_dialog.h similarity index 100% rename from light_window_dialog.h rename to SmartHome/light_window_dialog.h diff --git a/light_window_dialog.ui b/SmartHome/light_window_dialog.ui similarity index 100% rename from light_window_dialog.ui rename to SmartHome/light_window_dialog.ui diff --git a/misc/timer/TimeDialog.pri b/SmartHome/misc/timer/TimeDialog.pri similarity index 100% rename from misc/timer/TimeDialog.pri rename to SmartHome/misc/timer/TimeDialog.pri diff --git a/misc/timer/time_dialog.cpp b/SmartHome/misc/timer/time_dialog.cpp similarity index 100% rename from misc/timer/time_dialog.cpp rename to SmartHome/misc/timer/time_dialog.cpp diff --git a/misc/timer/time_dialog.h b/SmartHome/misc/timer/time_dialog.h similarity index 100% rename from misc/timer/time_dialog.h rename to SmartHome/misc/timer/time_dialog.h diff --git a/misc/timer/time_dialog.ui b/SmartHome/misc/timer/time_dialog.ui similarity index 100% rename from misc/timer/time_dialog.ui rename to SmartHome/misc/timer/time_dialog.ui diff --git a/my.qss b/SmartHome/my.qss similarity index 100% rename from my.qss rename to SmartHome/my.qss diff --git a/myserial.pro b/SmartHome/myserial.pro similarity index 100% rename from myserial.pro rename to SmartHome/myserial.pro diff --git a/resource.qrc b/SmartHome/resource.qrc similarity index 100% rename from resource.qrc rename to SmartHome/resource.qrc diff --git a/air_window_dialog.ui b/air_window_dialog.ui deleted file mode 100644 index 0289ffb..0000000 --- a/air_window_dialog.ui +++ /dev/null @@ -1,860 +0,0 @@ - - - Air_Window_Dialog - - - - 0 - 0 - 600 - 428 - - - - Dialog - - - - - 60 - 250 - 113 - 20 - - - - - - - 0 - - - 10 - - - - - 0 - - - - - - 12 - - - - 瀹ゅ娓╁害 - - - Qt::AlignCenter - - - - - - - - 12 - - - - border-image: url(:/weather/image/clear_to_overcast.png); - - - - - - - - - - - 12 - - - - 15 - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - 12 - - - - - - - - - - - - - 0 - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - - 0 - - - 0 - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - 0 - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - 12 - - - - 鐢垫簮 - - - Qt::AlignHCenter|Qt::AlignTop - - - - - - - - 12 - - - - 鍒剁儹 - - - Qt::AlignHCenter|Qt::AlignTop - - - - - - - - 12 - - - - 鍒跺喎 - - - Qt::AlignHCenter|Qt::AlignTop - - - - - - - - 12 - - - - 楂橀 - - - Qt::AlignHCenter|Qt::AlignTop - - - - - - - - 12 - - - - 涓 - - - Qt::AlignHCenter|Qt::AlignTop - - - - - - - - 12 - - - - 浣庨 - - - Qt::AlignHCenter|Qt::AlignTop - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - - - 210 - 100 - 329 - 189 - - - - - - - - - - 12 - - - - 瀹ゅ唴娓╁害 - - - - - - - - - - 瀹嬩綋 - 36 - 75 - true - - - - 26 - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - 瀹嬩綋 - 36 - 75 - true - - - - - - - - - - - - - - 12 - - - - 瀹ゅ唴婀垮害 - - - - - - - - - - 瀹嬩綋 - 36 - 75 - true - - - - 30 - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - 瀹嬩綋 - 36 - 75 - true - - - - % - - - - - - - - - - - - - - Algerian - - - - <html><head/><body><p><span style=" font-size:18pt;">TEMP.</span></p></body></html> - - - - - - - - - 2 - - - QLCDNumber::Flat - - - 26 - - - - - - - <html><head/><body><p><span style=" font-size:24pt; font-weight:600;">鈩</span></p></body></html> - - - - - - - - - 26 - - - Qt::Horizontal - - - false - - - true - - - - - - - - - - - - - - Algerian - - - - <html><head/><body><p><span style=" font-size:18pt;">RH.</span></p></body></html> - - - - - - - - - - Agency FB - 12 - - - - false - - - 2 - - - QLCDNumber::Flat - - - 30 - - - - - - - <html><head/><body><p><span style=" font-size:24pt; font-weight:600;">%</span></p></body></html> - - - - - - - - - 30 - - - Qt::Horizontal - - - false - - - true - - - - - - - - - - - - - 20 - 340 - 291 - 53 - - - - - - - - 12 - - - - 椋庨 - - - Qt::AlignCenter - - - - - - - - - - Arial Black - 12 - 75 - true - - - - L - - - - - - - 0 - - - Qt::Horizontal - - - false - - - false - - - QSlider::TicksBelow - - - - - - - - Arial Black - 12 - 75 - true - - - - H - - - - - - - - - - - - dialRh - valueChanged(int) - lcdNumber - display(int) - - - 365 - 175 - - - 352 - 137 - - - - - dialTemp - valueChanged(int) - lcdNumber_2 - display(int) - - - 496 - 212 - - - 460 - 136 - - - - - diff --git a/control_dialog.h b/control_dialog.h deleted file mode 100644 index d53ef66..0000000 --- a/control_dialog.h +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef CONTROL_DIALOG_H -#define CONTROL_DIALOG_H - -#include -#include "QPushButton" - -#define SETTING_NUM 1 -#define LIGHT_NUM 2 -#define CURTAIN_NUM 3 -#define AIR_NUM 4 -#define SECURITY_NUM 5 -#define TV_NUM 6 -#define TALKBACK_NUM 7 -#define MUSIC_NUM 8 -#define MOV_NUM 9 -namespace Ui { -class Control_Dialog; -} - -class Control_Dialog : public QDialog -{ - Q_OBJECT - -public: - explicit Control_Dialog(QWidget *parent = 0); - ~Control_Dialog(); - char GetControl_Num(void); - -private slots: - // void on_Light_Control_toggled(bool checked); - - - void on_LightControl_toggled(bool checked); - - void on_SettingControl_toggled(bool checked); - - void on_CurtainControl_toggled(bool checked); - - void on_AirControl_toggled(bool checked); - - void on_SecurityControl_toggled(bool checked); - - void on_TVControl_toggled(bool checked); - - void on_TalkbackControl_toggled(bool checked); - - void on_MusicControl_toggled(bool checked); - - void on_MoveControl_toggled(bool checked); - - void on_CurtainControl_clicked(); - - void on_LightControl_clicked(); - -private: - Ui::Control_Dialog *ui; - unsigned int Control_Num; - - void SetButtonFree(void); - -}; - -#endif // CONTROL_DIALOG_H diff --git a/control_dialog.ui b/control_dialog.ui deleted file mode 100644 index a1fb35e..0000000 --- a/control_dialog.ui +++ /dev/null @@ -1,425 +0,0 @@ - - - Control_Dialog - - - - 0 - 0 - 188 - 532 - - - - - 0 - 0 - - - - - 0 - 0 - - - - Dialog - - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - 1 - - - - - - 0 - 0 - - - - QPushButton -{ -color: rgb(0, 0, 0); - font: 14pt "瀹嬩綋"; - border-image: url(:/background/image/buttonback.png); -} -QPushButton:checked -{ -color: rgb(255, 255, 255); -border-image: url(:/background/image/buttonback_p.png); -} - - - - 绯荤粺璁剧疆 - - - - :/control_icon/image/setting.png:/control_icon/image/setting.png - - - - 50 - 50 - - - - true - - - - - - - - 0 - 0 - - - - QPushButton -{ -color: rgb(0, 0, 0); - font: 14pt "瀹嬩綋"; - border-image: url(:/background/image/buttonback.png); -} -QPushButton:checked -{ -color: rgb(255, 255, 255); -border-image: url(:/background/image/buttonback_p.png); -} - - - - 鐏厜鎺у埗 - - - - :/control_icon/image/light.png:/control_icon/image/light.png - - - - 50 - 50 - - - - true - - - true - - - - - - - - 0 - 0 - - - - QPushButton -{ -color: rgb(0, 0, 0); - font: 14pt "瀹嬩綋"; - border-image: url(:/background/image/buttonback.png); -} -QPushButton:checked -{ -color: rgb(255, 255, 255); -border-image: url(:/background/image/buttonback_p.png); -} - - - - 绐楀笜鎺у埗 - - - - :/control_icon/image/curtain.png:/control_icon/image/curtain.png - - - - 50 - 50 - - - - true - - - false - - - - - - - - 0 - 0 - - - - QPushButton -{ -color: rgb(0, 0, 0); - font: 14pt "瀹嬩綋"; - border-image: url(:/background/image/buttonback.png); -} -QPushButton:checked -{ -color: rgb(255, 255, 255); -border-image: url(:/background/image/buttonback_p.png); -} - - - - 绌鸿皟鎺у埗 - - - - :/control_icon/image/air.png:/control_icon/image/air.png - - - - 50 - 50 - - - - true - - - - - - - - 0 - 0 - - - - QPushButton -{ -color: rgb(0, 0, 0); - font: 14pt "瀹嬩綋"; - border-image: url(:/background/image/buttonback.png); -} -QPushButton:checked -{ -color: rgb(255, 255, 255); -border-image: url(:/background/image/buttonback_p.png); -} - - - - 瀹夐槻鎺у埗 - - - - :/control_icon/image/security.png:/control_icon/image/security.png - - - - 50 - 50 - - - - true - - - - - - - - 0 - 0 - - - - QPushButton -{ -color: rgb(0, 0, 0); - font: 14pt "瀹嬩綋"; - border-image: url(:/background/image/buttonback.png); -} -QPushButton:checked -{ -color: rgb(255, 255, 255); -border-image: url(:/background/image/buttonback_p.png); -} - - - - - 鐢佃鎺у埗 - - - - :/control_icon/image/tv.png:/control_icon/image/tv.png - - - - 50 - 50 - - - - true - - - - - - - - 0 - 0 - - - - QPushButton -{ -color: rgb(0, 0, 0); - font: 14pt "瀹嬩綋"; - border-image: url(:/background/image/buttonback.png); -} -QPushButton:checked -{ -color: rgb(255, 255, 255); -border-image: url(:/background/image/buttonback_p.png); -} - - - - - 瀵硅鎺у埗 - - - - :/control_icon/image/talkback.png:/control_icon/image/talkback.png - - - - 50 - 50 - - - - true - - - - - - - - 0 - 0 - - - - QPushButton -{ -color: rgb(0, 0, 0); - font: 14pt "瀹嬩綋"; - border-image: url(:/background/image/buttonback.png); -} -QPushButton:checked -{ -color: rgb(255, 255, 255); -border-image: url(:/background/image/buttonback_p.png); -} - - - - 鑳屾櫙闊充箰 - - - - :/control_icon/image/music.png:/control_icon/image/music.png - - - - 50 - 50 - - - - true - - - - - - - - 0 - 0 - - - - QPushButton -{ -color: rgb(0, 0, 0); - font: 14pt "瀹嬩綋"; - border-image: url(:/background/image/buttonback.png); -} -QPushButton:checked -{ -color: rgb(255, 255, 255); -border-image: url(:/background/image/buttonback_p.png); -} - - - - 瀹跺涵褰遍櫌 - - - - :/control_icon/image/move.png:/control_icon/image/move.png - - - - 50 - 50 - - - - true - - - - - - - - - - - - diff --git a/image/air.png b/image/air.png deleted file mode 100644 index f2fe975..0000000 Binary files a/image/air.png and /dev/null differ diff --git a/image/back_left.png b/image/back_left.png deleted file mode 100644 index 4bd49e1..0000000 Binary files a/image/back_left.png and /dev/null differ diff --git a/image/back_right.png b/image/back_right.png deleted file mode 100644 index be08706..0000000 Binary files a/image/back_right.png and /dev/null differ diff --git a/image/background.png b/image/background.png deleted file mode 100644 index 208d9f5..0000000 Binary files a/image/background.png and /dev/null differ diff --git a/image/button_black.png b/image/button_black.png deleted file mode 100644 index c36425c..0000000 Binary files a/image/button_black.png and /dev/null differ diff --git a/image/button_white.png b/image/button_white.png deleted file mode 100644 index 4b96a59..0000000 Binary files a/image/button_white.png and /dev/null differ diff --git a/image/button_yellow.png b/image/button_yellow.png deleted file mode 100644 index c765028..0000000 Binary files a/image/button_yellow.png and /dev/null differ diff --git a/image/buttonback.png b/image/buttonback.png deleted file mode 100644 index fb0434a..0000000 Binary files a/image/buttonback.png and /dev/null differ diff --git a/image/buttonback_p.png b/image/buttonback_p.png deleted file mode 100644 index a38d1a0..0000000 Binary files a/image/buttonback_p.png and /dev/null differ diff --git a/image/clear_to_overcast.png b/image/clear_to_overcast.png deleted file mode 100644 index d7e8cf4..0000000 Binary files a/image/clear_to_overcast.png and /dev/null differ diff --git a/image/cloudy.png b/image/cloudy.png deleted file mode 100644 index 002ce1c..0000000 Binary files a/image/cloudy.png and /dev/null differ diff --git a/image/curtain.gif b/image/curtain.gif deleted file mode 100644 index ea337bf..0000000 Binary files a/image/curtain.gif and /dev/null differ diff --git a/image/curtain.png b/image/curtain.png deleted file mode 100644 index f804c8d..0000000 Binary files a/image/curtain.png and /dev/null differ diff --git a/image/fine.png b/image/fine.png deleted file mode 100644 index 2470837..0000000 Binary files a/image/fine.png and /dev/null differ diff --git a/image/heavy_rain.png b/image/heavy_rain.png deleted file mode 100644 index 80550d5..0000000 Binary files a/image/heavy_rain.png and /dev/null differ diff --git a/image/heavy_snow.png b/image/heavy_snow.png deleted file mode 100644 index 377b7db..0000000 Binary files a/image/heavy_snow.png and /dev/null differ diff --git a/image/light.png b/image/light.png deleted file mode 100644 index b3508a2..0000000 Binary files a/image/light.png and /dev/null differ diff --git a/image/mainwindow.png b/image/mainwindow.png deleted file mode 100644 index 6b7e4b3..0000000 Binary files a/image/mainwindow.png and /dev/null differ diff --git a/image/move.png b/image/move.png deleted file mode 100644 index 997af79..0000000 Binary files a/image/move.png and /dev/null differ diff --git a/image/music.png b/image/music.png deleted file mode 100644 index 613887a..0000000 Binary files a/image/music.png and /dev/null differ diff --git a/image/scouther.png b/image/scouther.png deleted file mode 100644 index a523ba7..0000000 Binary files a/image/scouther.png and /dev/null differ diff --git a/image/security.png b/image/security.png deleted file mode 100644 index d9d8085..0000000 Binary files a/image/security.png and /dev/null differ diff --git a/image/selectback.png b/image/selectback.png deleted file mode 100644 index 4f041e4..0000000 Binary files a/image/selectback.png and /dev/null differ diff --git a/image/setting.png b/image/setting.png deleted file mode 100644 index a8dad17..0000000 Binary files a/image/setting.png and /dev/null differ diff --git a/image/sleet.png b/image/sleet.png deleted file mode 100644 index aad78f4..0000000 Binary files a/image/sleet.png and /dev/null differ diff --git a/image/spit.png b/image/spit.png deleted file mode 100644 index dc58833..0000000 Binary files a/image/spit.png and /dev/null differ diff --git a/image/talkback.png b/image/talkback.png deleted file mode 100644 index 2b83972..0000000 Binary files a/image/talkback.png and /dev/null differ diff --git a/image/thundershower.png b/image/thundershower.png deleted file mode 100644 index b90af87..0000000 Binary files a/image/thundershower.png and /dev/null differ diff --git a/image/timedialog.png b/image/timedialog.png deleted file mode 100644 index eafe737..0000000 Binary files a/image/timedialog.png and /dev/null differ diff --git a/image/tv.png b/image/tv.png deleted file mode 100644 index fcdcf63..0000000 Binary files a/image/tv.png and /dev/null differ diff --git a/light_dialog.h b/light_dialog.h deleted file mode 100644 index 65ec306..0000000 --- a/light_dialog.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef LIGHT_DIALOG_H -#define LIGHT_DIALOG_H - -#include - -namespace Ui { -class Light_Dialog; -} - -class Light_Dialog : public QDialog -{ - Q_OBJECT - -public: - explicit Light_Dialog(QWidget *parent = 0); - ~Light_Dialog(); - -private: - Ui::Light_Dialog *ui; -}; - -#endif // LIGHT_DIALOG_H diff --git a/light_dialog.ui b/light_dialog.ui deleted file mode 100644 index d8fbab6..0000000 --- a/light_dialog.ui +++ /dev/null @@ -1,18 +0,0 @@ - - Light_Dialog - - - - 0 - 0 - 400 - 300 - - - - Dialog - - - - - diff --git a/myserial.pro.user b/myserial.pro.user deleted file mode 100644 index 57d985d..0000000 --- a/myserial.pro.user +++ /dev/null @@ -1,569 +0,0 @@ - - - - - - EnvironmentId - {03a128ce-d70e-4801-8dae-79e0769131bf} - - - ProjectExplorer.Project.ActiveTarget - 0 - - - ProjectExplorer.Project.EditorSettings - - true - false - true - - Cpp - - CppGlobal - - - - QmlJS - - QmlJSGlobal - - - 2 - UTF-8 - false - 4 - false - 80 - true - true - 1 - true - false - 0 - true - true - 0 - 8 - true - 1 - true - true - true - false - - - - ProjectExplorer.Project.PluginSettings - - - - - - ProjectExplorer.Project.Target.0 - - Qt Desktop - Qt Desktop - {7d81bd98-e0f9-4d4f-a297-38248fa7e2cf} - 0 - 0 - 0 - - C:/Users/Asus/Smart/SmartHome - - - true - qmake - - QtProjectManager.QMakeBuildStep - true - - false - false - false - - - true - Make - - Qt4ProjectManager.MakeStep - - false - - - - 2 - 鏋勫缓 - - ProjectExplorer.BuildSteps.Build - - - - true - Make - - Qt4ProjectManager.MakeStep - - true - clean - - - 1 - 娓呯悊 - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Debug - - Qt4ProjectManager.Qt4BuildConfiguration - 2 - true - - - C:/Users/Asus/Smart/build-myserial-Qt_Desktop-Release - - - true - qmake - - QtProjectManager.QMakeBuildStep - false - - false - false - false - - - true - Make - - Qt4ProjectManager.MakeStep - - false - - - - 2 - 鏋勫缓 - - ProjectExplorer.BuildSteps.Build - - - - true - Make - - Qt4ProjectManager.MakeStep - - true - clean - - - 1 - 娓呯悊 - - ProjectExplorer.BuildSteps.Clean - - 2 - true - - Release - - Qt4ProjectManager.Qt4BuildConfiguration - 0 - true - - - C:/Users/Asus/SmartHome - - - true - qmake - - QtProjectManager.QMakeBuildStep - true - - false - true - false - - - true - Make - - Qt4ProjectManager.MakeStep - - false - - - - 2 - 鏋勫缓 - - ProjectExplorer.BuildSteps.Build - - - - true - Make - - Qt4ProjectManager.MakeStep - - true - clean - - - 1 - 娓呯悊 - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Profile - - Qt4ProjectManager.Qt4BuildConfiguration - 0 - true - - 3 - - - 0 - 閮ㄧ讲 - - ProjectExplorer.BuildSteps.Deploy - - 1 - 鍦ㄦ湰鍦伴儴缃 - - ProjectExplorer.DefaultDeployConfiguration - - 1 - - - false - false - 1000 - - true - - false - false - false - false - true - 0.01 - 10 - true - 1 - 25 - - 1 - true - false - true - valgrind - - 0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - - 2 - - PATH=E:\Qt\Qt5.3.2\5.3\mingw482_32\bin - - myserial - - Qt4ProjectManager.Qt4RunConfiguration:C:/Users/Asus/Smart/SmartHome/myserial.pro - true - - myserial.pro - false - - C:/Users/Asus/Smart/SmartHome - 3768 - false - true - false - false - true - - 1 - - - - ProjectExplorer.Project.Target.1 - - Qt static - Qt static - {6ac9aa8f-2796-4cd4-80f4-276beef5f0ea} - 0 - 0 - 0 - - C:/Users/Asus/Smart/build-myserial-Qt_static-Debug - - - true - qmake - - QtProjectManager.QMakeBuildStep - true - - false - false - false - - - true - Make - - Qt4ProjectManager.MakeStep - - false - - - - 2 - 鏋勫缓 - - ProjectExplorer.BuildSteps.Build - - - - true - Make - - Qt4ProjectManager.MakeStep - - true - clean - - - 1 - 娓呯悊 - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Debug - - Qt4ProjectManager.Qt4BuildConfiguration - 2 - true - - - C:/Users/Asus/Smart/build-myserial-Qt_static-Release - - - true - qmake - - QtProjectManager.QMakeBuildStep - false - - false - false - false - - - true - Make - - Qt4ProjectManager.MakeStep - - false - - - - 2 - 鏋勫缓 - - ProjectExplorer.BuildSteps.Build - - - - true - Make - - Qt4ProjectManager.MakeStep - - true - clean - - - 1 - 娓呯悊 - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Release - - Qt4ProjectManager.Qt4BuildConfiguration - 0 - true - - - C:/Users/Asus/Smart/build-myserial-Qt_static-Profile - - - true - qmake - - QtProjectManager.QMakeBuildStep - true - - false - true - false - - - true - Make - - Qt4ProjectManager.MakeStep - - false - - - - 2 - 鏋勫缓 - - ProjectExplorer.BuildSteps.Build - - - - true - Make - - Qt4ProjectManager.MakeStep - - true - clean - - - 1 - 娓呯悊 - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Profile - - Qt4ProjectManager.Qt4BuildConfiguration - 0 - true - - 3 - - - 0 - 閮ㄧ讲 - - ProjectExplorer.BuildSteps.Deploy - - 1 - 鍦ㄦ湰鍦伴儴缃 - - ProjectExplorer.DefaultDeployConfiguration - - 1 - - - false - false - 1000 - - true - - false - false - false - false - true - 0.01 - 10 - true - 1 - 25 - - 1 - true - false - true - valgrind - - 0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - - 2 - - myserial - - Qt4ProjectManager.Qt4RunConfiguration:C:/Users/Asus/Smart/SmartHome/myserial.pro - true - - myserial.pro - false - - - 3768 - false - true - false - false - true - - 1 - - - - ProjectExplorer.Project.TargetCount - 2 - - - ProjectExplorer.Project.Updater.FileVersion - 18 - - - Version - 18 - - diff --git a/qt8_2_1.pro.user b/qt8_2_1.pro.user deleted file mode 100644 index 575e6f3..0000000 --- a/qt8_2_1.pro.user +++ /dev/null @@ -1,318 +0,0 @@ - - - - - - EnvironmentId - {03a128ce-d70e-4801-8dae-79e0769131bf} - - - ProjectExplorer.Project.ActiveTarget - 0 - - - ProjectExplorer.Project.EditorSettings - - true - false - true - - Cpp - - CppGlobal - - - - QmlJS - - QmlJSGlobal - - - 2 - System - false - 4 - false - 80 - true - true - 1 - true - false - 0 - true - true - 0 - 8 - true - 1 - true - true - true - false - - - - ProjectExplorer.Project.PluginSettings - - - - ProjectExplorer.Project.Target.0 - - Qt Desktop - Qt Desktop - {7d81bd98-e0f9-4d4f-a297-38248fa7e2cf} - 0 - 0 - 0 - - C:/Users/Asus/Desktop/task/home/build-qt8_2_1-Qt_Desktop-Debug - - - true - qmake - - QtProjectManager.QMakeBuildStep - true - - false - false - false - - - true - Make - - Qt4ProjectManager.MakeStep - - false - - - - 2 - 鏋勫缓 - - ProjectExplorer.BuildSteps.Build - - - - true - Make - - Qt4ProjectManager.MakeStep - - true - clean - - - 1 - 娓呯悊 - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Debug - - Qt4ProjectManager.Qt4BuildConfiguration - 2 - true - - - C:/Users/Asus/Desktop/task/home/build-qt8_2_1-Qt_Desktop-Release - - - true - qmake - - QtProjectManager.QMakeBuildStep - false - - false - false - false - - - true - Make - - Qt4ProjectManager.MakeStep - - false - - - - 2 - 鏋勫缓 - - ProjectExplorer.BuildSteps.Build - - - - true - Make - - Qt4ProjectManager.MakeStep - - true - clean - - - 1 - 娓呯悊 - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Release - - Qt4ProjectManager.Qt4BuildConfiguration - 0 - true - - - C:/Users/Asus/Desktop/task/home/build-qt8_2_1-Qt_Desktop-Profile - - - true - qmake - - QtProjectManager.QMakeBuildStep - true - - false - true - false - - - true - Make - - Qt4ProjectManager.MakeStep - - false - - - - 2 - 鏋勫缓 - - ProjectExplorer.BuildSteps.Build - - - - true - Make - - Qt4ProjectManager.MakeStep - - true - clean - - - 1 - 娓呯悊 - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Profile - - Qt4ProjectManager.Qt4BuildConfiguration - 0 - true - - 3 - - - 0 - 閮ㄧ讲 - - ProjectExplorer.BuildSteps.Deploy - - 1 - 鍦ㄦ湰鍦伴儴缃 - - ProjectExplorer.DefaultDeployConfiguration - - 1 - - - false - false - 1000 - - true - - false - false - false - false - true - 0.01 - 10 - true - 1 - 25 - - 1 - true - false - true - valgrind - - 0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - - 2 - - qt8_2_1 - qt8_2_12 - Qt4ProjectManager.Qt4RunConfiguration:C:/Users/Asus/Desktop/task/home/serial2/qt8_2_1.pro - true - - qt8_2_1.pro - false - - - 3768 - false - true - false - false - true - - 1 - - - - ProjectExplorer.Project.TargetCount - 1 - - - ProjectExplorer.Project.Updater.FileVersion - 18 - - - Version - 18 - - diff --git a/qt8_2_1.pro.user.2.5pre1 b/qt8_2_1.pro.user.2.5pre1 deleted file mode 100644 index 553ea66..0000000 --- a/qt8_2_1.pro.user.2.5pre1 +++ /dev/null @@ -1,365 +0,0 @@ - - - - - - ProjectExplorer.Project.ActiveTarget - 0 - - - ProjectExplorer.Project.EditorSettings - - true - false - - Cpp - - CppGlobal - - - - QmlJS - - QmlJSGlobal - - - 2 - System - false - 4 - true - 1 - true - 0 - true - 0 - 8 - true - 1 - true - true - true - false - - - - ProjectExplorer.Project.PluginSettings - - - - ProjectExplorer.Project.Target.0 - - 妗岄潰 - 妗岄潰 - Qt4ProjectManager.Target.DesktopTarget - 2 - 0 - 0 - - ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb - - - qmake - - QtProjectManager.QMakeBuildStep - false - true - - false - - - Make - - Qt4ProjectManager.MakeStep - false - - - - 2 - 鏋勫缓 - - ProjectExplorer.BuildSteps.Build - - - - Make - - Qt4ProjectManager.MakeStep - true - clean - - - 1 - 娓呯悊 - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Qt 4.8.0 (绯荤粺) 鍙戝竷 - - Qt4ProjectManager.Qt4BuildConfiguration - 0 - /home/zengwenhao/qt8_2_1-build-desktop-Qt_4_8_0________ - 4 - true - - - ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb - - - qmake - - QtProjectManager.QMakeBuildStep - false - true - - false - - - Make - - Qt4ProjectManager.MakeStep - false - - - - 2 - 鏋勫缓 - - ProjectExplorer.BuildSteps.Build - - - - Make - - Qt4ProjectManager.MakeStep - true - clean - - - 1 - 娓呯悊 - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Qt 4.8.0 (绯荤粺) 璋冭瘯 - - Qt4ProjectManager.Qt4BuildConfiguration - 2 - /home/zengwenhao/qt8_2_1-build-desktop-Qt_4_8_0________ - 4 - true - - - ProjectExplorer.ToolChain.Gcc:/opt/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-g++.arm-linux-generic-elf-32bit. - - - qmake - - QtProjectManager.QMakeBuildStep - false - true - - false - - - Make - - Qt4ProjectManager.MakeStep - false - - - - 2 - 鏋勫缓 - - ProjectExplorer.BuildSteps.Build - - - - Make - - Qt4ProjectManager.MakeStep - true - clean - - - 1 - 娓呯悊 - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Qt4.7.3PATH(qt4.7.3) 鍙戝竷 - - Qt4ProjectManager.Qt4BuildConfiguration - 0 - /home/zengwenhao/qt8_2_1-build-desktop-Qt4_7_3PATH_qt4_7_3____ - 1 - true - - - ProjectExplorer.ToolChain.Gcc:/opt/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-g++.arm-linux-generic-elf-32bit. - - - qmake - - QtProjectManager.QMakeBuildStep - false - true - - false - - - Make - - Qt4ProjectManager.MakeStep - false - - - - 2 - 鏋勫缓 - - ProjectExplorer.BuildSteps.Build - - - - Make - - Qt4ProjectManager.MakeStep - true - clean - - - 1 - 娓呯悊 - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Qt4.7.3PATH(qt4.7.3) 璋冭瘯 - - Qt4ProjectManager.Qt4BuildConfiguration - 2 - /home/zengwenhao/qt8_2_1-build-desktop-Qt4_7_3PATH_qt4_7_3____ - 1 - true - - 4 - - - 0 - 閮ㄧ讲 - - ProjectExplorer.BuildSteps.Deploy - - 1 - 褰撳墠鏃犻儴缃 - - ProjectExplorer.DefaultDeployConfiguration - - 1 - - true - true - - - false - false - false - false - false - false - false - false - true - true - 0.01 - 0.01 - 10 - 10 - true - true - 25 - 25 - - - true - true - valgrind - valgrind - - 0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - - - 0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - - qt8_2_1 - - Qt4ProjectManager.Qt4RunConfiguration - 2 - - qt8_2_1.pro - false - false - - - 3768 - true - false - false - - 1 - - - - ProjectExplorer.Project.TargetCount - 1 - - - ProjectExplorer.Project.Updater.EnvironmentId - {bd1417e0-128d-4f16-ad14-5bc1cfcf4394} - - - ProjectExplorer.Project.Updater.FileVersion - 10 - - diff --git a/selectroom_dialog.h b/selectroom_dialog.h deleted file mode 100644 index ef07026..0000000 --- a/selectroom_dialog.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef SELECTROOM_DIALOG_H -#define SELECTROOM_DIALOG_H - -#include - -namespace Ui { -class SelectRoom_Dialog; -} - -class SelectRoom_Dialog : public QDialog -{ - Q_OBJECT - -public: - explicit SelectRoom_Dialog(QWidget *parent = 0); - ~SelectRoom_Dialog(); - -private: - Ui::SelectRoom_Dialog *ui; -}; - -#endif // SELECTROOM_DIALOG_H diff --git a/selectroom_dialog.ui b/selectroom_dialog.ui deleted file mode 100644 index 4eb3dfb..0000000 --- a/selectroom_dialog.ui +++ /dev/null @@ -1,513 +0,0 @@ - - - SelectRoom_Dialog - - - - 0 - 0 - 600 - 120 - - - - Dialog - - - - - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - 2 - - - - - - 12 - - - - - - - 鎴块棿閫夋嫨 - - - Qt::AlignCenter - - - - - - - - - 0 - - - - - 0 - - - 4 - - - - - 10 - - - 4 - - - 10 - - - 4 - - - - - - 0 - 0 - - - - - 12 - - - - QPushButton -{ - color: rgb(0, 0, 0); - border-image: url(:/background/image/button_black.png); - border-radius:10px; -} -QPushButton:checked -{ - color: rgb(255, 255, 255); - border-image: url(:/background/image/button_yellow.png); -} - - - - 瀹㈠巺 - - - true - - - true - - - - - - - - - 10 - - - 4 - - - 10 - - - 4 - - - - - - 0 - 0 - - - - - 12 - - - - QPushButton -{ - color: rgb(0, 0, 0); - border-image: url(:/background/image/button_black.png); - border-radius:10px; -} -QPushButton:checked -{ - color: rgb(255, 255, 255); - border-image: url(:/background/image/button_yellow.png); -} - - - - 娆″崸2 - - - true - - - - - - - - - - - 0 - - - - - 10 - - - 4 - - - 10 - - - 4 - - - - - - 0 - 0 - - - - - 12 - - - - QPushButton -{ - color: rgb(0, 0, 0); - border-image: url(:/background/image/button_black.png); - border-radius:10px; -} -QPushButton:checked -{ - color: rgb(255, 255, 255); - border-image: url(:/background/image/button_yellow.png); -} - - - - 椁愬巺 - - - true - - - - - - - - - 10 - - - 4 - - - 10 - - - 4 - - - - - - 0 - 0 - - - - - 12 - - - - QPushButton -{ - color: rgb(0, 0, 0); - border-image: url(:/background/image/button_black.png); - border-radius:10px; -} -QPushButton:checked -{ - color: rgb(255, 255, 255); - border-image: url(:/background/image/button_yellow.png); -} - - - - 妤兼 - - - true - - - - - - - - - - - 0 - - - - - 10 - - - 4 - - - 10 - - - 4 - - - - - - 0 - 0 - - - - - 12 - - - - QPushButton -{ - color: rgb(0, 0, 0); - border-image: url(:/background/image/button_black.png); - border-radius:10px; -} -QPushButton:checked -{ - color: rgb(255, 255, 255); - border-image: url(:/background/image/button_yellow.png); -} - - - - 涓诲崸 - - - true - - - - - - - - - 10 - - - 4 - - - 10 - - - 4 - - - - - - 0 - 0 - - - - - 12 - - - - QPushButton -{ - color: rgb(0, 0, 0); - border-image: url(:/background/image/button_black.png); - border-radius:10px; -} -QPushButton:checked -{ - color: rgb(255, 255, 255); - border-image: url(:/background/image/button_yellow.png); -} - - - - 璧板粖 - - - true - - - - - - - - - - - 0 - - - - - 10 - - - 4 - - - 10 - - - 4 - - - - - - 0 - 0 - - - - - 12 - - - - QPushButton -{ - color: rgb(0, 0, 0); - border-image: url(:/background/image/button_black.png); - border-radius:10px; -} -QPushButton:checked -{ - color: rgb(255, 255, 255); - border-image: url(:/background/image/button_yellow.png); -} - - - - 娆″崸1 - - - true - - - - - - - - - 10 - - - 4 - - - 10 - - - 4 - - - - - - 0 - 0 - - - - - 12 - - - - QPushButton -{ - color: rgb(0, 0, 0); - border-image: url(:/background/image/button_black.png); - border-radius:10px; -} -QPushButton:checked -{ - color: rgb(255, 255, 255); - border-image: url(:/background/image/button_yellow.png); -} - - - - 杞﹁締 - - - true - - - - - - - - - - - - - - diff --git a/serial_dialog.h b/serial_dialog.h deleted file mode 100644 index 7f9406b..0000000 --- a/serial_dialog.h +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef SERIAL_DIALOG_H -#define SERIAL_DIALOG_H - -#include "QTime" -#include -#include -#include -#include -#include - -extern QSerialPort *mSerialPort; - - -namespace Ui { -class serial_Dialog; -} - -class serial_Dialog : public QDialog -{ - Q_OBJECT - -public: - explicit serial_Dialog(QWidget *parent = 0); - ~serial_Dialog(); - -// QSerialPort *mSerialPort; - - -private slots: - - void on_pushButtonOpenPort_clicked(); - - void on_pushButtonClosePort_clicked(); - - void on_pushButtonTest_clicked(); - -private: - void initPort(); - void setNonSelectable(); - void setSelectable(); - void sleep(unsigned int msec); - Ui::serial_Dialog *ui; -}; - -#endif // SERIAL_DIALOG_H diff --git a/serial_dialog.ui b/serial_dialog.ui deleted file mode 100644 index 56bdf44..0000000 --- a/serial_dialog.ui +++ /dev/null @@ -1,444 +0,0 @@ - - - serial_Dialog - - - - 0 - 0 - 419 - 541 - - - - Dialog - - - - - 10 - 11 - 399 - 493 - - - - false - - - 0 - - - - 涓插彛 - - - - - 10 - 180 - 141 - 281 - - - - - - - - - 涓插彛鍙 - - - - - - - - 69 - 20 - - - - - 69 - 20 - - - - - - - - - - - - 娉㈢壒鐜 - - - - - - - - 69 - 20 - - - - - 69 - 20 - - - - - - - - - - - - 鏁版嵁浣 - - - - - - - - 69 - 20 - - - - - 69 - 20 - - - - - - - - - - - - 濂囧伓鏍¢獙浣 - - - - - - - - 69 - 20 - - - - - 69 - 20 - - - - - - - - - - - - 鍋滄浣 - - - - - - - - 69 - 20 - - - - - 69 - 20 - - - - - - - - - - - - 娴佹帶鍒 - - - - - - - - 69 - 20 - - - - - 69 - 20 - - - - - - - - - - - - - - - - - 280 - 370 - 81 - 21 - - - - 娴嬭瘯 - - - - - - 160 - 200 - 20 - 261 - - - - Qt::Vertical - - - - - - 160 - 180 - 54 - 12 - - - - 涓插彛娴嬭瘯 - - - - - - 220 - 180 - 118 - 16 - - - - Qt::Horizontal - - - - - - 10 - 10 - 381 - 161 - - - - - - - 190 - 430 - 169 - 25 - - - - - - - 鎵撳紑涓插彛 - - - - - - - 鍏抽棴涓插彛 - - - - - - - - - 190 - 211 - 181 - 151 - - - - - - - - - 涓插彛鎵撳紑: - - - - - - - Unknown - - - - - - - - - - - 涓插彛閰嶇疆: - - - - - - - Unknown - - - - - - - - - - - 涓插彛鍙戦: - - - - - - - Unknown - - - - - - - - - - - 涓插彛鎺ユ敹: - - - - - - - Unknown - - - - - - - - - - - 娴嬭瘯鍛戒护 - - - - - - - - - - - layoutWidget1 - layoutWidget2 - layoutWidget - pushButtonTest - line - label_9 - line_2 - textBrowser - - - - Tab 2 - - - - - 10 - 10 - 381 - 161 - - - - - - - - - 10 - 510 - 399 - 23 - - - - Qt::Horizontal - - - QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - - - - -