Files
qt5-legatus-legacy/Lts/Plugins/InfrastructureManagement/Gui/ResourceManagement/ism_plan_edit_dialog.h
T
2026-08-13 18:33:10 +02:00

76 lines
1.9 KiB
C++
Executable File

/**
* @RDE_HEADER@
* ResourceManangement - Plan Edit Dialog
* $Id$
* $HeadURL$
* $Author$
*
* Created by Mike Wille, SLSE, 2017-04-21
*/
#pragma once
#include <LtsWidgets/lts_dialog.h>
#include <LtsSession/lts_session.h>
#include <LtsUtilsGuiDds/request_helper.h>
#include <InfrastructureManagement/ism_combobox_gui_plugin_interface.h>
#include <InfrastructureManagement/logger.h>
#include <Plugins/InfrastructureManagement/Data/ism_data_plugin.h>
#include <Plugins/InfrastructureManagement/ism_resource_management_gui_plugin_interface.h>
namespace Ui
{
class PlanEditDialog;
}
namespace LtsSession
{
class LtsSession;
}
namespace InfrastructureManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
class PlanDialogModel;
class PlanEditDialog : public LtsWidgets::LtsDialog
, protected Interface::Ftc::MainScheduleModifyReplyHandler
{
Q_OBJECT
public:
explicit PlanEditDialog(QWidget *parent = nullptr);
bool init(LtsSession::LtsSession *session, const int scheduleId,
const std::shared_ptr<Interface::Dtc> &dtc,
const std::shared_ptr<Interface::Ftc> &ftc,
const std::shared_ptr<ForeignGuiComboboxInterface> &ismCbx);
~PlanEditDialog();
protected:
void onMainScheduleModifyReply(const Core::FunctionReplyObject &replyObject) override final { m_requestHelper->requestReply(replyObject); }
void enaDisa();
private:
void retranslate() override;
bool apply() override final;
LtsSession::LtsSession *m_session{nullptr};
Ui::PlanEditDialog *m_ui;
int m_scheduleId;
ScheduleStatus m_currentState;
std::shared_ptr<Interface::Dtc> m_dtc;
std::shared_ptr<Interface::Ftc> m_ftc;
std::shared_ptr<ForeignGuiComboboxInterface> m_ismGuiCbxIfc;
LtsUtils::RequestHelper *m_requestHelper;
NGL::INGLLogger &m_logger;
};
}