-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
gztss
committed
Jun 30, 2018
1 parent
94e8f1e
commit 0c12bd6
Showing
31 changed files
with
1,557 additions
and
321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -246,3 +246,6 @@ ModelManifest.xml | |
|
||
*-Debug/ | ||
*-Release/ | ||
|
||
.qmake.stash | ||
*/.vscode/ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#ifndef __FILETRANSFERVIEW_H | ||
#define __FILETRANSFERVIEW_H | ||
|
||
#include <QWidget> | ||
#include "filethread.h" | ||
|
||
namespace Ui { | ||
class FileTransmitView; | ||
} | ||
class QSettings; | ||
|
||
class FileTransmitView : public QWidget | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
FileTransmitView(QWidget *parent = Q_NULLPTR); | ||
~FileTransmitView(); | ||
void retranslate(); | ||
void loadConfig(QSettings *config); | ||
void saveConfig(QSettings *config); | ||
|
||
public slots: | ||
void readData(const QByteArray &array); | ||
void cancelTransfer(); | ||
void logOut(const QString &string, QColor color = Qt::black); | ||
|
||
private: | ||
void beforceSend(); | ||
|
||
private slots: | ||
void browseButtonClicked(); | ||
void portSendData(const QByteArray &array); | ||
void sendFile(); | ||
void onTransFinsh(); | ||
void onTimeoutError(); | ||
|
||
signals: | ||
void sendData(const QByteArray &); | ||
|
||
private: | ||
Ui::FileTransmitView *ui; | ||
FileThread thread; | ||
QByteArray receiveArray; // 接收缓冲区 | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
#ifndef __VERSION_H | ||
#define __VERSION_H | ||
|
||
#define MAIN_VERSION 1.2.2 | ||
#define MAIN_VERSION 1.2.3 | ||
|
||
#define SOFTWARE_NAME "SerialTool" | ||
#define COPYRIGHT "Copyleft 2017 by Wenliang" | ||
#define COPYRIGHT "Copyleft 2017-2018, Wenliang Guan" | ||
|
||
#define _STR_(s) #s | ||
#define __STR(s) _STR_(s) | ||
|
||
#define BUILD_VERSION _STR_(45248M) | ||
#define BUILD_VERSION _STR_(492de) | ||
#define SOFTWARE_VERSION __STR(MAIN_VERSION) | ||
|
||
#endif |
Oops, something went wrong.