/** * @RDE_HEADER@ * MarkerManagement - Marker Overview Dialog * $Id$ * $HeadURL$ * $Author$ * Created by Christian Ehrlicher, SLSE, 2016-02-29 */ #pragma once #include #include #include #include #include #include #include #include namespace Ui { class MarkerManagementDialog; } namespace LtsSession { class LtsSession; } namespace FileManagement { class ForeignGuiInterface; } namespace MarkerManagement { class MarkerManagementDialogModel; // -------------------------------------------------------- // MarkerManagementDialog // -------------------------------------------------------- class MarkerManagementDialog : public LtsWidgets::LtsDialog , protected MarkerManagement::Interface::Ftc::MarkerRemoveReplyHandler , protected FileManagement::Interface::Ftc::FileContentRemoveReplyHandler { Q_OBJECT public: explicit MarkerManagementDialog(const QString &menuGroup, LtsSession::LtsSession *session, QWidget *parent = nullptr); ~MarkerManagementDialog(); bool init(const std::shared_ptr &dtc, const std::shared_ptr &ftc, const std::shared_ptr &flmFtc, const std::shared_ptr &avmInterface, const std::shared_ptr &flmGui); void onMarkerRemoveReply(const Core::FunctionReplyObject &replyObject) override final { m_requestHelper->requestReply(replyObject); } void onFileContentRemoveReply(const Core::FunctionReplyObject &replyObject) override final { m_requestHelper->requestReply(replyObject); } private slots: void enaDisa(); void onEditMarker(); void onRemoveMarker(); void onPrint(); void onShowOtherUsersMarkers(bool isChecked); private: void retranslate() override; void tableColumnOrganiserSetting() override; QString m_menuGroup; MarkerManagementDialogModel *m_model; LtsSession::LtsSession *m_session; Ui::MarkerManagementDialog *m_ui; std::shared_ptr m_dtc; std::shared_ptr m_ftc; std::shared_ptr m_flmFtc; std::shared_ptr m_avmInterface; std::shared_ptr m_flmGui; LtsUtils::RequestHelper *m_requestHelper; LOGGER_T m_logger; }; }