103 lines
3.2 KiB
C++
Executable File
103 lines
3.2 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Evaluations - Script Create / Edit Dialog
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*
|
|
* Created by Mike Wille, SLSE, 2017-03-20
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <Evaluations/logger.h>
|
|
#include <Evaluations/evl_dtc.h>
|
|
#include <Evaluations/evl_ftc.h>
|
|
#include <AudioVideoManagement/avm_data_plugin_interface.h>
|
|
#include <ExerciseManagement/exm_dtc.h>
|
|
#include <FilterManagement/flt_participant_plugin_interface.h>
|
|
#include <FilterManagement/flt_aes_plugin_interface.h>
|
|
#include <FilterManagement/flt_building_cmpnt_plugin_interface.h>
|
|
#include <FilterManagement/flt_data_plugin_interface.h>
|
|
#include <LtsUtilsGuiDds/request_helper.h>
|
|
#include <LtsWidgets/lts_dialog.h>
|
|
|
|
|
|
namespace LtsWidgets
|
|
{
|
|
class UiRequirementList;
|
|
}
|
|
|
|
namespace Ui
|
|
{
|
|
class ElementEditDialog;
|
|
}
|
|
|
|
namespace LtsSession
|
|
{
|
|
class LtsSession;
|
|
}
|
|
|
|
namespace Evaluations
|
|
{
|
|
|
|
class ElementEditDialog : public LtsWidgets::LtsDialog
|
|
, protected Interface::Ftc::EvlElementModifyReplyHandler
|
|
, protected Interface::Ftc::EvlElementRemoveReplyHandler
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ElementEditDialog(QWidget *parent = nullptr);
|
|
~ElementEditDialog();
|
|
|
|
bool init(int elementId,
|
|
int criteriumId,
|
|
int exerciseId,
|
|
const std::shared_ptr<Interface::Dtc> &dtc,
|
|
const std::shared_ptr<Interface::Ftc> &ftc,
|
|
const std::shared_ptr<ExerciseManagement::Interface::Dtc> &exmDtc,
|
|
const std::shared_ptr<AudioVideoManagement::ForeignDataInterface> &avmDataIfc,
|
|
const std::shared_ptr<FilterManagement::ForeignFltParticipantGuiInterface> &fltParticipantIfc,
|
|
const std::shared_ptr<FilterManagement::ForeignAesGuiInterface> &fltAesIfc,
|
|
const std::shared_ptr<FilterManagement::ForeignFltBuildingComponentGuiInterface> &fltBuildingComponentIfc,
|
|
LtsSession::LtsSession *session);
|
|
|
|
protected:
|
|
void onEvlElementModifyReply(const Core::FunctionReplyObject &replyObject) override final { m_requestHelper->requestReply(replyObject); }
|
|
void onEvlElementRemoveReply(const Core::FunctionReplyObject &replyObject) override final { m_requestHelper->requestReply(replyObject); }
|
|
|
|
QJsonObject getFilterSettings();
|
|
|
|
private slots:
|
|
void onReturnPressed();
|
|
void onCheckBoxClicked();
|
|
void onAudioClicked();
|
|
void onVideoClicked();
|
|
|
|
private:
|
|
void retranslate() override;
|
|
bool apply() override;
|
|
void fillPhasesComboBox();
|
|
|
|
std::shared_ptr<Interface::Dtc> m_dtc;
|
|
std::shared_ptr<Interface::Ftc> m_ftc;
|
|
std::shared_ptr<ExerciseManagement::Interface::Dtc> m_exmDtc;
|
|
std::shared_ptr<AudioVideoManagement::ForeignDataInterface> m_avmDataIfc;
|
|
std::shared_ptr<FilterManagement::ForeignFltParticipantGuiInterface> m_fltParticipantIfc;
|
|
std::shared_ptr<FilterManagement::ForeignAesGuiInterface> m_fltAesIfc;
|
|
std::shared_ptr<FilterManagement::ForeignFltBuildingComponentGuiInterface> m_fltBuildingComponentIfc;
|
|
std::shared_ptr<FilterManagement::Interface::Dtc> m_fltDtc;
|
|
LtsSession::LtsSession *m_session{nullptr};
|
|
int m_elementId{0};
|
|
int m_criteriumId{-1};
|
|
int m_exerciseId{-1};
|
|
qint64 m_startTime { 0 };
|
|
LtsUtils::RequestHelper *m_requestHelper{nullptr};
|
|
Ui::ElementEditDialog *m_ui{nullptr};
|
|
LOGGER_T m_logger;
|
|
QStringList m_audioStreams;
|
|
QStringList m_videoStreams;
|
|
};
|
|
}
|