ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
mainwindow.h
Go to the documentation of this file.
1
23
24#ifndef MAINWINDOW_H
25#define MAINWINDOW_H
26
27#include <QMainWindow>
28#include <QVBoxLayout>
29#include <QThread>
30#include <QLabel>
31#include <QString>
32
33class BackEnd;
34class ImageView;
35
36class MainWindow : public QMainWindow
37{
38 Q_OBJECT
39
40public:
41 MainWindow(QWidget* parent = nullptr);
43
44 bool hasError();
45
46private:
47 BackEnd* m_backEnd = nullptr;
49 QVBoxLayout* m_layout = nullptr;
50 QLabel* m_labelInfo = nullptr;
51
52 bool m_hasError = true;
53
54 void createStatusBar();
55
56private slots:
57 void updateCounters(unsigned int frameCounter, unsigned int errorCounter);
58 void on_aboutQt_linkActivated(const QString& link);
59 void showMessageBox(QString messageTitle, QString messageText);
60};
61#endif // MAINWINDOW_H
Definition backend.h:38
Definition imageview.h:35
Definition mainwindow.h:47
bool hasError()
Definition mainwindow.cpp:155
BackEnd m_backEnd
Definition mainwindow.h:57
ImageView * m_imageView
Definition mainwindow.h:48
QVBoxLayout * m_layout
Definition mainwindow.h:66
void on_aboutQt_linkActivated(const QString &link)
Definition mainwindow.cpp:127
void showMessageBox(QString messageTitle, QString messageText)
Definition mainwindow.cpp:135
bool m_hasError
Definition mainwindow.h:59
MainWindow(QWidget *parent=nullptr)
void updateCounters(unsigned int frameCounter, unsigned int errorCounter)
Definition mainwindow.cpp:121
QLabel * m_labelInfo
Definition mainwindow.h:65
void createStatusBar()
Definition mainwindow.cpp:94