This commit is contained in:
2019-06-11 11:29:45 +02:00
parent d2d25cdd69
commit 111c48e3fa
2 changed files with 9 additions and 57 deletions

View File

@ -1,72 +1,28 @@
#pragma once
#include "qDefs.h"
#include "qDebugStream.h"
class qDetectorMain;
#include <QWidget>
#include <QTextEdit>
#include <QEvent>
#include <QPushButton>
class QTextEdit;
class QPushButton;
/**
*@short sets up the Messages parameters
*/
class qTabMessages:public QWidget{
Q_OBJECT
public:
/**
* The constructor
* @param parent parent widget
*/
qTabMessages(QWidget* parent);
/**
* Destructor
*/
~qTabMessages();
private slots:
/**
* Stream log to textedit in GUI
*/
void customEvent(QEvent *e);
/**
* Save Log to File
*/
void SaveLog();
/**
* Clear Log to File
*/
void ClearLog();
private:
/**
* Sets up the widget
*/
void SetupWidgetWindow();
/**
* Sets up all the slots and signals
*/
void Initialization();
/** The qDetectorMain object */
qDetectorMain *myMainTab;
/** Log of executed commands */
QTextEdit *dispLog;
/** To save the log to file */
QPushButton *btnSave;
/** To clear the log to file */
QPushButton *btnClear;
};