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).
55 lines
1.2 KiB
C++
55 lines
1.2 KiB
C++
/**
|
|
* @RDE_HEADER@
|
|
* An overlay for LtsDialog's setOverlay(..) which shows a 'loading bar'
|
|
* (a progress bar in a special state) and a default label "Loading ...", which
|
|
* can be altered
|
|
* $Id: $
|
|
* $HeadURL: $
|
|
* $Author: $
|
|
*
|
|
* Created by Mike Lennart Wille, SLTE, 2022-07-07
|
|
*/
|
|
|
|
#include "lts_overlay_loading.h"
|
|
#include "ui_lts_overlay_loading.h"
|
|
|
|
#include <QtWidgets/QHBoxLayout>
|
|
#include <QtWidgets/QLabel>
|
|
#include <QtWidgets/QProgressBar>
|
|
#include <QtWidgets/QPushButton>
|
|
|
|
|
|
namespace LtsWidgets
|
|
{
|
|
LtsOverlayLoading::LtsOverlayLoading(QWidget *parent)
|
|
: QWidget(parent)
|
|
, m_ui(new Ui::LtsOverlayLoading)
|
|
{
|
|
m_ui->setupUi(this);
|
|
setCancelButtonVisible(false);
|
|
connect(m_ui->pbCancel, &QPushButton::clicked,
|
|
this, [this](){ setCancelButtonEnabled(false); });
|
|
connect(m_ui->pbCancel, &QPushButton::clicked,
|
|
this, &LtsOverlayLoading::cancel);
|
|
}
|
|
|
|
|
|
void LtsOverlayLoading::setText(const QString &text)
|
|
{
|
|
m_ui->label->setText(text);
|
|
}
|
|
|
|
|
|
void LtsOverlayLoading::setCancelButtonVisible(bool visible)
|
|
{
|
|
m_ui->pbCancel->setVisible(visible);
|
|
}
|
|
|
|
|
|
void LtsOverlayLoading::setCancelButtonEnabled(bool enabled)
|
|
{
|
|
m_ui->pbCancel->setEnabled(enabled);
|
|
}
|
|
|
|
} // namespace LtsWidgets
|