68 lines
1.6 KiB
C++
Executable File
68 lines
1.6 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* PresentationManagement - Script Create / Edit Dialog
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*
|
|
* Created by Mike Wille, SLSE, 2017-03-20
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <Services/PresentationManagement/logger.h>
|
|
#include <LtsWidgets/lts_frameless_dialog.h>
|
|
#include <LtsUtilsGuiDds/request_helper.h>
|
|
#include <Services/PresentationManagement/pre_dtc.h>
|
|
#include <Services/PresentationManagement/pre_ftc.h>
|
|
#include <Services/OperatorManagement/opm_dtc.h>
|
|
#include <Plugins/PresentationManagement/Gui/Common/preguicommon_export.h>
|
|
|
|
namespace LtsWidgets
|
|
{
|
|
class UiRequirementList;
|
|
}
|
|
|
|
namespace Ui
|
|
{
|
|
class PresentationEditDialog;
|
|
}
|
|
|
|
namespace PresentationManagement
|
|
{
|
|
|
|
class PREGUICOMMON_EXPORT PresentationEditDialog : public LtsWidgets::LtsFramelessDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit PresentationEditDialog(QWidget *parent = nullptr);
|
|
~PresentationEditDialog();
|
|
|
|
bool init(int presentationId,
|
|
const std::shared_ptr<Interface::Dtc> &dtc,
|
|
const std::shared_ptr<Interface::Ftc> &ftc,
|
|
const std::shared_ptr<OperatorManagement::Interface::Dtc> &opmDtc);
|
|
|
|
signals:
|
|
void newScript(int scriptId);
|
|
|
|
private slots:
|
|
void onSavePresentation();
|
|
void validate(const QString &fileName);
|
|
void onReturnPressed();
|
|
|
|
private:
|
|
bool apply();
|
|
|
|
std::shared_ptr<Interface::Dtc> m_dtc;
|
|
std::shared_ptr<Interface::Ftc> m_ftc;
|
|
std::shared_ptr<OperatorManagement::Interface::Dtc> m_opmDtc;
|
|
int m_presentationId;
|
|
std::vector<PresentationManagement::PresentationContent> m_content;
|
|
Ui::PresentationEditDialog *m_ui;
|
|
LOGGER_T m_logger;
|
|
|
|
};
|
|
}
|