60 lines
1.3 KiB
C++
Executable File
60 lines
1.3 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* OperatorManangement - Operator Edit Dialog
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Christian Ehrlicher, SLSE, 2016-02-29
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LtsWidgets/lts_dialog.h>
|
|
#include <ProjectDataManagement/pdm_ftc.h>
|
|
#include <ProjectDataManagement/logger.h>
|
|
|
|
namespace Ui {
|
|
class ChargeEditDialog;
|
|
}
|
|
|
|
namespace LtsSession {
|
|
class LtsSession;
|
|
}
|
|
|
|
namespace LtsUtils {
|
|
class RequestHelper;
|
|
}
|
|
|
|
namespace ProjectDataManagement
|
|
{
|
|
class ChargeEditDialog : public LtsWidgets::LtsDialog
|
|
, protected ProjectDataManagement::Interface::Ftc::UpdateChargeNamesReplyHandler
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ChargeEditDialog(const int chargeId,
|
|
LtsSession::LtsSession *session,
|
|
QWidget *parent = nullptr);
|
|
~ChargeEditDialog();
|
|
|
|
bool init();
|
|
void loadUiValues();
|
|
|
|
|
|
protected:
|
|
void onUpdateChargeNamesReply(const Core::FunctionReplyObject &reply) override;
|
|
|
|
private:
|
|
void retranslate() override;
|
|
bool apply() override final;
|
|
|
|
Ui::ChargeEditDialog *m_ui;
|
|
LtsSession::LtsSession *m_session;
|
|
std::shared_ptr<ProjectDataManagement::Interface::Ftc> m_ftc;
|
|
LtsUtils::RequestHelper *m_requestHelper;
|
|
ChargeType m_chargeType;
|
|
LOGGER_T m_logger;
|
|
};
|
|
} //namespace ProjectDataManagement
|