Files
qt5-legatus-legacy/Lts/Plugins/PlanOverlays/Gui/TopicEditor/topic_editor.h
T
2026-08-13 18:33:10 +02:00

68 lines
1.4 KiB
C++
Executable File

/**
* @RDE_HEADER@
* Topic Editor for the Situation Topic in the Script Editor
* $Id: topic_editor.h 47904 2019-08-09 09:11:38Z ehrlicher $
* $HeadURL: svn://slssvn/TDS/branches/product/devel/trunk/Lts/Plugins/FileManagement/Gui/Explorer/TopicEditor/topic_editor.h $
* $Author: ehrlicher $
*
* Created by Mike Wille, NLE, 2019-11-11
*/
#pragma once
#include <FileManagement/logger.h>
#include <FileManagement/Data/flm_data_plugin.h>
#include <LtsSession/lts_session.h>
#include <TopicEditorBase/topic_editor_base.h>
#include <QJsonArray>
namespace Ui { class PlanTopicEditor; }
namespace PlanOverlaysPlugin
{
class ForeignGuiInterface;
class PlanOverlayModel;
class PlanTopicEditor : public TopicEditorBase::TopicEditor
{
Q_OBJECT
public:
explicit PlanTopicEditor(
ForeignGuiInterface **ifc, const std::shared_ptr<FileManagement::Interface::Dtc> &flmDtc, QWidget *parent = nullptr
);
~PlanTopicEditor();
// void updatePreview();
private:
void updateInternalData() override final;
void retranslate() override final;
void retable();
void enaDisa();
private slots:
bool apply2() override final;
void onOpenPlanOverlayDialog();
private:
ForeignGuiInterface **m_ifc { nullptr };
std::shared_ptr<FileManagement::Interface::Dtc> m_flmDtc { nullptr };
QJsonArray m_planItems;
PlanOverlayModel *m_model { nullptr };
Ui::PlanTopicEditor *m_ui { nullptr };
NGL::INGLLogger &m_logger;
};
} // namespace PlanOverlaysPlugin