- Formatted all CodeGen module files (9 files) - Formatted LtsAppDescriptor module files - Formatted LtsAppManager/AppChooser files - Applied clang-format to all DTC and enum headers across modules - Removed coordTransTests from CommonUnitTestsPlaceholder (moved to tests/) Cosmetic changes only, no functional modifications. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
80 lines
1.5 KiB
C++
80 lines
1.5 KiB
C++
#pragma once
|
|
#include "ltsmultimonitor_export.h"
|
|
|
|
#include <QObject>
|
|
#include <QRect>
|
|
#include <QWidget>
|
|
|
|
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;
|
|
};
|
|
|
|
} // namespace LtsMultiMonitor
|