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.4 KiB
C++
62 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include <LtsWidgets/lts_widgets_export.h>
|
|
|
|
#include <QtWidgets/QWidget>
|
|
|
|
|
|
namespace Ui
|
|
{
|
|
class LtsTextEditor;
|
|
}
|
|
|
|
class QTextEdit;
|
|
class QTextCharFormat;
|
|
|
|
|
|
namespace LtsWidgets
|
|
{
|
|
|
|
class LTSWIDGETS_EXPORT LtsTextEditor : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
LtsTextEditor(QWidget *parent = nullptr);
|
|
~LtsTextEditor();
|
|
void enableBackgroundColor(bool onOff);
|
|
void setInitialBackgroundColor(const QColor &bgColor);
|
|
QTextEdit *textEdit();
|
|
QColor backgroundColor() const;
|
|
|
|
Q_SIGNALS:
|
|
void backgroundColorChanged(const QColor &bgColor);
|
|
|
|
private:
|
|
Ui::LtsTextEditor *m_ui;
|
|
QColor m_backgroundColor{Qt::white};
|
|
QColor m_foregroundColor{Qt::black};
|
|
|
|
private slots:
|
|
void slotCurrentCharFormatChanged(const QTextCharFormat &format);
|
|
void slotFontChanged(const QFont &f);
|
|
void slotTextColorChanged(const QColor &c);
|
|
void slotBackgroundColorChanged(const QColor &bgColor);
|
|
void slotAlignmentChanged();
|
|
void slotMergeFormatOnWordOrSelection(const QTextCharFormat &format);
|
|
void slotClipboardDataChanged();
|
|
void slotTextColor();
|
|
void slotBackgroundColor();
|
|
void slotTextSize(int index);
|
|
void slotTextSizeEditingFinished();
|
|
void slotTextFamily(int index);
|
|
void slotTextItalic();
|
|
void slotTextUnderline();
|
|
void slotTextBold();
|
|
//void slotTextStyle(int styleIndex);
|
|
void slotTextAlign();
|
|
};
|
|
|
|
} // namespace LtsWidgets
|
|
|
|
|