Lts/Common: drop the 17 submodules excluded from the RELEASE_BUILD branch of Lts/Common/CMakeLists.txt (CodeGen, LtsAppManager, LtsBotan, LtsCoordinate, LtsElevation, LtsLogin, LtsMultiMonitor, LtsPluginManager, LtsPrinting, LtsProjectionWorkstation, LtsScriptTimeline, LtsSession, LtsTimeline, LtsTimelineClassic, LtsVirtualKeyboard, LtsWidgets, TopicEditorBase). Only the 13 subdirectories actually built remain. TrainingAreaBase: drop sources of targets excluded by IF(NOT RELEASE_BUILD) / IF(BUILD_RTI) (svcTabClient, svcTabServer, svcTrainingAreaBase exe, RecordReplayPlugin customization) and the 7 plugin directories not added in the release path (AdlerJson, ApacheHlaJson, DebugJsonDir, HlaJson, Nmea, UAS, WlsTetra). Only tabTelegrams, svcTabCommon and the TetraJson plugin are compiled. Cross-checked: no kept compiled source includes headers from the removed modules (GuiPluginInterface - the only LtsWidgets consumer - is itself NOT RELEASE_BUILD-guarded).
61 lines
1.3 KiB
C++
61 lines
1.3 KiB
C++
/**
|
|
* @RDE_HEADER@
|
|
* Background Widget that covers a monitor with the project image
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Mike Wille, SLSE, 2016-05-05
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "lts_widgets_export.h"
|
|
|
|
#include <QtWidgets/QDialog>
|
|
|
|
|
|
class QPixmap;
|
|
class QEvent;
|
|
|
|
namespace LtsWidgets
|
|
{
|
|
|
|
/**
|
|
* @brief The LtsBackgroundWidget class creates a fullscreen Widget that covers a monitor with the project image (used for payloads in opApp)
|
|
*/
|
|
class LTSWIDGETS_EXPORT LtsBackgroundWidget : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit LtsBackgroundWidget(QWidget *parent = nullptr);
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *e) override;
|
|
void closeEvent(QCloseEvent *e) override;
|
|
void resizeEvent(QResizeEvent *e) override;
|
|
bool event(QEvent *e) override;
|
|
|
|
private:
|
|
void setBackground();
|
|
void setUltraWide(bool set = true);
|
|
|
|
signals:
|
|
/**
|
|
* @brief signalOperatorAction is emitted when the operator moves/clickes the cursor or enters some letters - for example, show window again after it's hidden (screen saver effect)
|
|
*/
|
|
void signalOperatorAction();
|
|
|
|
public slots:
|
|
/**
|
|
* @brief showFullScreen shows the widget and raises it. Otherwise the widget would be far in the background (and wihtout a show not shown)
|
|
*/
|
|
void showFullScreen();
|
|
private:
|
|
QPixmap m_pixmap;
|
|
bool m_isUltraWide;
|
|
|
|
};
|
|
|
|
}
|