2020-05-15 11:57:09 +00:00
|
|
|
/**
|
|
|
|
* Main GUI controller - User IO handlings
|
|
|
|
*
|
|
|
|
* @author Lukas Heiligenbrunner
|
|
|
|
* @date 09.05.2020
|
|
|
|
*/
|
2020-05-09 21:08:23 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QtWidgets/QMainWindow>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class MainWindow;
|
|
|
|
}
|
|
|
|
|
2020-05-10 16:10:44 +00:00
|
|
|
class MainWindow : public QMainWindow {
|
2020-05-09 21:08:23 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2020-05-15 11:57:09 +00:00
|
|
|
/**
|
|
|
|
* constructor with basic initializations
|
|
|
|
*/
|
|
|
|
explicit MainWindow();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* destruct all gui elements
|
|
|
|
*/
|
2020-05-09 21:08:23 +00:00
|
|
|
~MainWindow();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::MainWindow *ui;
|
2020-05-19 14:23:00 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* all static initializations of custom gui elements
|
|
|
|
*/
|
|
|
|
void initGui();
|
|
|
|
|
2020-05-09 21:08:23 +00:00
|
|
|
private slots:
|
2020-05-19 14:23:00 +00:00
|
|
|
|
2020-05-15 11:57:09 +00:00
|
|
|
/**
|
|
|
|
* executed click handler for config button
|
|
|
|
*/
|
2020-05-10 16:10:44 +00:00
|
|
|
void checkConfigBtn();
|
|
|
|
|
2020-05-15 11:57:09 +00:00
|
|
|
/**
|
|
|
|
* executed click handler for refresh btn
|
|
|
|
*/
|
2020-05-10 16:10:44 +00:00
|
|
|
void refreshIPBtn();
|
|
|
|
|
2020-05-19 14:23:00 +00:00
|
|
|
/**
|
|
|
|
* executed click handler for save config btn
|
|
|
|
*/
|
|
|
|
void saveConfigBtn();
|
|
|
|
|
2020-05-09 21:08:23 +00:00
|
|
|
signals:
|
2020-05-19 14:23:00 +00:00
|
|
|
|
2020-05-15 11:57:09 +00:00
|
|
|
/**
|
|
|
|
* append a String line to the Log field
|
|
|
|
*
|
|
|
|
* @param QString string to be appended
|
|
|
|
*/
|
2020-05-09 21:08:23 +00:00
|
|
|
void appendLogField(QString);
|
|
|
|
};
|