Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Plugins/Timeline/Gui/EventTimelineClassic/tln_dialog.h
T
torstenandCopilot b774f4035c Qt6 Migration: DDS-Stubs, Logger-Fixes, Export-Header Korrekturen
- NGL_ADD_LIBRARY2: 87 CMakeLists.txt konvertiert für Export-Header Generierung
- 44 Export-Header Include-Pfade korrigiert (_export.h)
- 81 DDS-Stub-Header generiert (*_dtc.h, *_fts.h, *_dts.h, *_ftc.h)
- INGLLogger: Duplikat gelöscht, m_logger Member entfernt, variadische Makros
- Q_FUNC_INFO Redefinition behoben (Qt6 definiert bereits)
- FATAL_LOG Makro hinzugefügt
- InfrastructureManagement DDS-Stubs (ism.hpp, ism_enums.hpp, ism_ftc.h)
- FilterManagement DDS-Stubs (flt_ftc.h, flt_dts.h)
- AreaEffectSimulation DDS-Stubs (aes.hpp, aes_enums.hpp)
- SymbolAppearance Klasse vollständig definiert mit content() Methode
- BuildingComponentFilter Klasse definiert mit Copy-Konstruktor
- Ftc Factory: nullptr Return (abstract class)
- AesFilter Klasse in aes.hpp hinzugefügt
- Dtc Klasse in ppm.hpp mit participantChanged Signal
- AesType Enum: alle 15 At* Werte definiert
- AesEffectState_def: EsReceived hinzugefügt
- DataModification Enum: eAdded/eModified/eRemoved
- function_reply_object.h → core_types.h Include-Pfad (72 Dateien)
- Enum-Class-Streaming Template-Operator in INGLLogger.h
- ism_mounting_point.h: QImage → QtGui/QImage, QGuiApplication/QScreen
- ism_data_plugin_interface.h: QSet Include, Include-Reihenfolge
- QRegExp → QRegularExpression in tpm_js_parser.cpp
- .underlying() Aufrufe zu direktem Enum-Vergleich korrigiert
- Include-Pfade: aes.hpp in symbol_appearance_settings_impl.h und aes_display_filter_impl.h

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-19 06:06:24 +02:00

166 lines
6.0 KiB
C++
Executable File

#pragma once
#include "tln_view_gui_plugin.h"
#include <LtsWidgets/lts_dialog.h>
#include <LtsUtilsGuiDds/request_helper.h>
#include <LtsTimelineClassic/EventList.h>
#include <Plugins/Timeline/tln_data_plugin_interface.h>
#include <Plugins/MarkerManagement/mrk_gui_plugin_interface.h>
#include <Plugins/SituationReplayManagement/srm_data_plugin_interface.h>
#include <Plugins/ProjectDataManagement/pdm_data_plugin_interface.h>
#include <Plugins/InfrastructureManagement/ism_data_plugin_interface.h>
#include <Plugins/AreaEffectSimulation/aes_data_plugin_interface.h>
#include <Plugins/FilterManagement/flt_participant_plugin_interface.h>
#include <Plugins/FilterManagement/flt_building_cmpnt_plugin_interface.h>
#include <Plugins/SituationReplay/srp_gui_plugin_interface.h>
#include <QJsonArray>
namespace AudioVideoManagement
{
class StreamNameMapping;
}
namespace LtsTimelineClassic
{
class EventGraphic;
class Event;
}
namespace Ui
{
class TimelineViewDialog;
}
namespace LtsSession
{
class LtsSession;
}
namespace LtsPluginManager
{
class LtsPluginManager;
}
namespace Timeline
{
class FilterWindow;
class DetailData;
class DDSTimelineModel;
class EventListDialog;
class TimelineLegendDialog;
class TimelineViewDialog : public LtsWidgets::LtsDialog
, protected SituationReplayManagement::Interface::Ftc::ReplayPartitionCreateReplyHandler
{
Q_OBJECT
public:
explicit TimelineViewDialog(const QString &menuGroup, const LtsWidgets::ButtonCombination &buttonCombo, bool isMain, QWidget *parent = nullptr);
~TimelineViewDialog();
bool init(const std::shared_ptr<TimeLineManagement::ForeignDataInterface> &eemForeign,
const std::shared_ptr<MarkerManagement::Interface::Dtc> &mrkDtc,
const std::shared_ptr<ExerciseManagement::Interface::Dtc> &exmDtc,
const std::shared_ptr<FileManagement::ForeignGuiInterface> &flmIfc,
const std::shared_ptr<ParticipantManagement::Interface::Dtc> &ppmDtc,
const std::shared_ptr<ParticipantManagement::ForeignParticipantInfoGuiInterface> &ppmInfoIfc,
const std::shared_ptr<AudioVideoManagement::ForeignMenuEditGuiInterface> &avmIfc,
const std::shared_ptr<MarkerManagement::ForeignGuiInterface> &mrkIfc,
const std::shared_ptr<SituationReplayManagement::ForeignDataInterface> &srmDataIfc,
const std::shared_ptr<Core::Interface::Dtc> &coreDtc,
const std::shared_ptr<ProjectDataManagement::Interface::Dtc> &pdmDtc,
const std::shared_ptr<InfrastructureManagement::Interface::Dtc> &ismDtc,
const std::shared_ptr<FilterManagement::ForeignFltParticipantGuiInterface> &fltParticipantIfc,
const std::shared_ptr<FilterManagement::ForeignAesGuiInterface> &fltAesIfc,
const std::shared_ptr<FilterManagement::ForeignFltBuildingComponentGuiInterface> &fltBuildingComponentIfc,
LtsSession::LtsSession *session,
AudioVideoManagement::StreamNameMapping *streamNameMapping);
private slots:
void showDetailsAction(LtsTimelineClassic::EventGraphic *eg, int action);
void showDetails(const LtsTimelineClassic::EventList &eventList);
void slotApplyFilter(const QJsonArray &filter);
void slotShowEventDetails(const LtsTimelineClassic::Event *event);
void slotShowEvents(const QJsonArray &filter);
void slotWaitForReady();
void slotShowFiltersDialog();
void slotShowLegend();
void slotStartReplaySituation();
void updateRange(bool initial = false);
void slotLoading();
void slotLoadingDone();
void slotSpanChanged();
void slotEventTypesChanged(QSet<int> activeEventTypeIds);
void loadAllEvents();
void slotDebugCreateFakeEvent();
signals:
void signalWaitForReady();
void signalInitEventList();
private:
void retranslate() override;
void onReplayPartitionCreateReply(const Core::FunctionReplyObject &reply) override { m_requestHelper->requestReply(reply); }
qint64 currentSpanTime() const;
std::shared_ptr<Core::Interface::Dtc> m_coreDtc;
std::shared_ptr<ExerciseManagement::Interface::Dtc> m_exmDtc;
std::shared_ptr<ProjectDataManagement::Interface::Dtc> m_pdmDtc;
std::shared_ptr<InfrastructureManagement::Interface::Dtc> m_ismDtc;
std::shared_ptr<MarkerManagement::Interface::Dtc> m_mrkDtc;
std::shared_ptr<ParticipantManagement::Interface::Dtc> m_ppmDtc;
std::shared_ptr<FileManagement::ForeignGuiInterface> m_flmIfc;
std::shared_ptr<ParticipantManagement::ForeignParticipantInfoGuiInterface> m_ppmInfoIfc;
std::shared_ptr<AudioVideoManagement::ForeignMenuEditGuiInterface> m_avmIfc;
std::shared_ptr<MarkerManagement::ForeignGuiInterface> m_mrkIfc;
std::shared_ptr<SituationReplayManagement::ForeignDataInterface> m_srmDataIfc;
std::shared_ptr<FilterManagement::ForeignFltParticipantGuiInterface> m_fltParticipantIfc;
std::shared_ptr<FilterManagement::ForeignAesGuiInterface> m_fltAesIfc;
std::shared_ptr<FilterManagement::ForeignFltBuildingComponentGuiInterface> m_fltBuildingComponentIfc;
Ui::TimelineViewDialog *m_ui;
QString m_menuGroup;
DDSTimelineModel *m_model;
DetailData *m_detailData;
FilterWindow *m_filterWindow;
QPointer<EventListDialog> m_eventListDialog;
QPointer<EventListDialog> m_allEventsListDialog;
LtsSession::LtsSession *m_session;
LtsUtils::RequestHelper *m_requestHelper;
QPointer<LtsPluginManager::LtsPluginManager> m_replayApp;
QPointer<LtsSession::LtsSession> m_replayAppSession;
AudioVideoManagement::StreamNameMapping *m_streamNameMapping;
bool m_rangeChanged;
QJsonArray m_filter;
int m_loadingCount;
bool m_armed;
qint64 m_exerciseStart;
TimelineLegendDialog *m_legendDialog;
QTimer *m_armTimer;
void setCustomSpan();
void calculateAndSetRange();
void setRange(qint64 min, qint64 max);
void updateActiveEventTypesByFilters();
void updateFiltersByActiveEventTypes();
void applyFilter(const QJsonArray &filter, bool doUpdateActiveEventTypes = true, bool reloadFilterWindow = false);
void rangeChanged();
void setTimelineUsable(bool usable = true);
void aboutToClose() override;
};
}