57 lines
918 B
C++
Executable File
57 lines
918 B
C++
Executable File
/*
|
|
* @RDE_HEADER@
|
|
* MainWindow
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Hanna E. Rathje, SLTE, 2022-03-29
|
|
*/
|
|
#pragma once
|
|
|
|
#include <QMainWindow>
|
|
|
|
class QLabel;
|
|
|
|
namespace NGL
|
|
{
|
|
class INGLLogger;
|
|
}
|
|
|
|
namespace Ui
|
|
{
|
|
class MainWindow;
|
|
}
|
|
|
|
namespace WlsRandomPositions
|
|
{
|
|
class PositionHelper;
|
|
class Worker;
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MainWindow(QWidget *parent = nullptr);
|
|
~MainWindow();
|
|
|
|
public slots:
|
|
void onStartClicked();
|
|
void onStopClicked();
|
|
void onConnectionStateChanged(bool connected, const QString &status);
|
|
void onTelegramsIncremented(int sentTelegrams);
|
|
void onTrainingAreaChanged(int index);
|
|
|
|
private:
|
|
Ui::MainWindow *m_ui;
|
|
QLabel *m_statusLabelConnected;
|
|
QLabel *m_statusLabelSentTelegrams;
|
|
Worker *m_worker;
|
|
PositionHelper *m_posHelper;
|
|
NGL::INGLLogger &m_logger;
|
|
|
|
};
|
|
|
|
} // Namespace WlsRandomPositions
|
|
|