This repository has been archived by the owner on Aug 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Showing
15 changed files
with
312 additions
and
99 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
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,26 @@ | ||
#include "debugmessage.h" | ||
#include "ui_debugmessage.h" | ||
|
||
#include <QDateTime> | ||
|
||
DebugMessage::DebugMessage(QWidget *parent) : | ||
QDialog(parent), | ||
ui(new Ui::DebugMessage) | ||
{ | ||
ui->setupUi(this); | ||
} | ||
|
||
DebugMessage::~DebugMessage() | ||
{ | ||
delete ui; | ||
} | ||
|
||
void DebugMessage::on_pushButton_clicked() | ||
{ | ||
QString pilot = ui->lineEdit_pilot->text(); | ||
QString message = ui->lineEdit_message->text(); | ||
|
||
// [ 2016.07.24 16:27:15 ] | ||
QString date = QDateTime::currentDateTimeUtc().toString("[ yyyy.MM.dd HH:mm:ss ] "); | ||
emit testMessage(date + pilot + " > " + message); | ||
} |
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,28 @@ | ||
#ifndef DEBUGMESSAGE_H | ||
#define DEBUGMESSAGE_H | ||
|
||
#include <QDialog> | ||
|
||
namespace Ui { | ||
class DebugMessage; | ||
} | ||
|
||
class DebugMessage : public QDialog | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit DebugMessage(QWidget *parent = 0); | ||
~DebugMessage(); | ||
|
||
signals: | ||
void testMessage(const QString& line); | ||
|
||
private slots: | ||
void on_pushButton_clicked(); | ||
|
||
private: | ||
Ui::DebugMessage *ui; | ||
}; | ||
|
||
#endif // DEBUGMESSAGE_H |
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,81 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>DebugMessage</class> | ||
<widget class="QDialog" name="DebugMessage"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>470</width> | ||
<height>101</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Debugging</string> | ||
</property> | ||
<layout class="QGridLayout" name="gridLayout"> | ||
<item row="0" column="0"> | ||
<widget class="QLabel" name="label_2"> | ||
<property name="text"> | ||
<string>Test Message:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="0"> | ||
<widget class="QLineEdit" name="lineEdit_pilot"> | ||
<property name="text"> | ||
<string>Test Pilot Name</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="1"> | ||
<widget class="QLabel" name="label"> | ||
<property name="text"> | ||
<string>></string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="2" colspan="2"> | ||
<widget class="QLineEdit" name="lineEdit_message"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> | ||
<horstretch>2</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="text"> | ||
<string>Test message here</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="2" column="2"> | ||
<spacer name="horizontalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>193</width> | ||
<height>20</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
<item row="2" column="3"> | ||
<widget class="QPushButton" name="pushButton"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="text"> | ||
<string>&Inject</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |
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
Oops, something went wrong.