86 lines
2.7 KiB
C++
Executable File
86 lines
2.7 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* MarkerManagement - Marker Overview Dialog
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Christian Ehrlicher, SLSE, 2016-02-29
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <MarkerManagement/mrk_ftc.h>
|
|
#include <MarkerManagement/mrk_dtc.h>
|
|
#include <MarkerManagement/logger.h>
|
|
#include <Plugins/AudioVideoManagement/avm_data_plugin_interface.h>
|
|
#include <Plugins/FileManagement/flm_data_plugin_interface.h>
|
|
#include <LtsWidgets/lts_dialog.h>
|
|
#include <LtsUtilsGuiDds/request_helper.h>
|
|
#include <FileManagement/flm_ftc.h>
|
|
|
|
|
|
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<MarkerManagement::Interface::Dtc> &dtc,
|
|
const std::shared_ptr<MarkerManagement::Interface::Ftc> &ftc,
|
|
const std::shared_ptr<FileManagement::Interface::Ftc> &flmFtc,
|
|
const std::shared_ptr<AudioVideoManagement::ForeignDataInterface> &avmInterface,
|
|
const std::shared_ptr<FileManagement::ForeignGuiInterface> &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<MarkerManagement::Interface::Dtc> m_dtc;
|
|
std::shared_ptr<MarkerManagement::Interface::Ftc> m_ftc;
|
|
std::shared_ptr<FileManagement::Interface::Ftc> m_flmFtc;
|
|
std::shared_ptr<AudioVideoManagement::ForeignDataInterface> m_avmInterface;
|
|
std::shared_ptr<FileManagement::ForeignGuiInterface> m_flmGui;
|
|
LtsUtils::RequestHelper *m_requestHelper;
|
|
|
|
LOGGER_T m_logger;
|
|
};
|
|
}
|