mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
45 lines
934 B
C++
45 lines
934 B
C++
#ifndef SCREENCHECKER_H
|
|
#define SCREENCHECKER_H
|
|
|
|
#include "Core/dataparseroutput.h"
|
|
#include <QObject>
|
|
#include <QScreen>
|
|
#include <QGuiApplication>
|
|
#include <QDebug>
|
|
#include <QPushButton>
|
|
#include <QHBoxLayout>
|
|
#include <QToolButton>
|
|
#include <QLabel>
|
|
#include <QBitmap>
|
|
#include <QToolButton>
|
|
#include <QPainter>
|
|
|
|
#include <Data/monitorInfo.h>
|
|
|
|
class DataParser;
|
|
class ScreenChecker : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ScreenChecker(QWidget *widget,DataParserOutput *dataParserOutput, QHBoxLayout *layout,QObject *parent = nullptr);
|
|
~ScreenChecker();
|
|
void check();
|
|
QString getScreenCount() const;
|
|
|
|
|
|
private:
|
|
QWidget *mainWidget;
|
|
QWidget *widget;
|
|
DataParserOutput *dataParserOutput;
|
|
QHBoxLayout *layout;
|
|
qint64 screenCount;
|
|
QList<QScreen *> screens;
|
|
QList<QToolButton *> buttons;
|
|
QList<QPushButton *> labels;
|
|
|
|
void updateDisplayData();
|
|
};
|
|
|
|
#endif // SCREENCHECKER_H
|