- #include <QObject> zu 106+ Header-Dateien hinzugefügt (Qt6 benötigt explizites Include) - ui_requirement.h/cpp zu requirement_widget.h/cpp umbenannt (vermeidet AutoUIC-Scan) - CMakeLists.txt aktualisiert - Qt6Positioning-Dependency in Dockerfile hinzugefügt Fixes: - AutoUIC-Fehler bei AesBaseGui (requirement.ui nicht gefunden) - QObject-Missing-Include-Fehler in Qt6 - Qt6Location-Modul nicht gefunden (qtpositioning fehlte)
61 lines
1.4 KiB
C++
Executable File
61 lines
1.4 KiB
C++
Executable File
#pragma once
|
|
#include <QObject>
|
|
|
|
#include "lts_multi_monitor_export.h"
|
|
|
|
#include <QWidget>
|
|
#include <QRect>
|
|
|
|
class QSplitter;
|
|
class QHBoxLayout;
|
|
|
|
namespace LtsUtils { class Promise; }
|
|
|
|
namespace LtsMultiMonitor
|
|
{
|
|
class LtsScreenContainer;
|
|
|
|
|
|
|
|
class LTSMULTIMONITOR_EXPORT LtsScreenBase : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
enum WidgetType
|
|
{
|
|
MainWidget,
|
|
SecondaryWidget,
|
|
None,
|
|
};
|
|
|
|
LtsScreenBase(QRect screenGeo, int screenId, bool debugMargins, const QString &serial);
|
|
|
|
const QRect &screenRect() const { return m_screenRect; }
|
|
int screenId() const { return m_screenId; }
|
|
const QString serialNumber() const { return m_serial; }
|
|
QWidget *screenDialog() const { return m_screenDialog; }
|
|
|
|
virtual int screenType() const = 0;
|
|
virtual int containerIdOfWidget(QWidget *widget) const noexcept(false) = 0;
|
|
virtual LtsScreenContainer *putWidget(QWidget *widget, int screenPart = -1 ) noexcept(false) = 0;
|
|
virtual LtsScreenContainer *containerOfWidget(QWidget *widget) noexcept(false) = 0;
|
|
virtual bool isEmpty() const = 0;
|
|
virtual bool isIrreplaceable() const = 0;
|
|
virtual void check() {}
|
|
virtual bool hasWidget(QWidget *widget) const = 0;
|
|
virtual void switchToTemp(WidgetType ) {}
|
|
virtual void finalizeSwitch() {}
|
|
virtual void revertSwitch() {}
|
|
|
|
protected:
|
|
QWidget *m_screenDialog;
|
|
|
|
private:
|
|
int m_screenId;
|
|
QString m_serial;
|
|
QRect m_screenRect;
|
|
};
|
|
|
|
}
|