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).
62 lines
1.3 KiB
C++
62 lines
1.3 KiB
C++
/**
|
|
* @RDE_HEADER@
|
|
* LtsTextEditDialog
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Norbert Thoden, SLSE, 2023-06-14
|
|
*/
|
|
#pragma once
|
|
|
|
#include <LtsWidgets/lts_dialog.h>
|
|
#include <LtsWidgets/lts_text_editor.h>
|
|
#include <LtsWidgets/lts_text_editor2.h>
|
|
|
|
|
|
namespace LtsWidgets
|
|
{
|
|
|
|
class LTSWIDGETS_EXPORT LtsTextEditDialog : public LtsWidgets::LtsDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
using BaseClass = LtsWidgets::LtsDialog;
|
|
|
|
public:
|
|
LtsTextEditDialog(QWidget *parent = nullptr);
|
|
~LtsTextEditDialog();
|
|
|
|
void enableBackgroundColor(bool onOff);
|
|
void setInitialBackgroundColor(const QColor &bgColor);
|
|
|
|
void retranslate() override;
|
|
bool apply() override;
|
|
void setHtml(const QString &htmlText);
|
|
QString getHtmlText() const;
|
|
|
|
protected:
|
|
void dialogCanceled() override;
|
|
|
|
private:
|
|
LtsTextEditor *m_textEditor{nullptr};
|
|
LtsTextEditor2 *m_textEditor2{nullptr};
|
|
|
|
|
|
protected Q_SLOTS:
|
|
void onBackgroundColorChanged(const QColor &backgroundColor);
|
|
|
|
Q_SIGNALS:
|
|
void signalTextChanged(const QString &htmlText);
|
|
void signalTextApplied(const QString &htmlText);
|
|
void signalTextAppliedWithBackGroundColor(const QString &htmlText);
|
|
void signalBackgroundColorChanged(const QColor &bgColor);
|
|
void signalDialogApplied();
|
|
void signalDialogCanceled();
|
|
|
|
};
|
|
|
|
} // namespace FileManagement
|
|
|
|
|
|
|