69 lines
2.1 KiB
C++
Executable File
69 lines
2.1 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* The AssetListDialog shows how many assets are needed for a specific schedule, needed elsewhere,
|
|
* totally possessed, free, and missing
|
|
* $Id: ism_exercise_assignment_dialog.h 45935 2019-03-08 08:36:11Z ehrlicher $
|
|
* $HeadURL: svn://192.168.133.21/TDS/branches/product/iterations/22_01_homer/Lts/Plugins/InfrastructureManagement/Gui/AudioVideoConfig/ExerciseAssignment/ism_exercise_assignment_dialog.h $
|
|
* $Author: ehrlicher $
|
|
* Created by Hannes Baeuerle, SLSE, 2017-06-29
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LtsWidgets/lts_dialog.h>
|
|
|
|
#include <ExerciseManagement/exm_dtc.h>
|
|
#include <InfrastructureManagement/ism_dtc.h>
|
|
#include <InfrastructureManagement/ism_ftc.h>
|
|
#include <InfrastructureManagement/logger.h>
|
|
|
|
namespace Ui
|
|
{
|
|
class ExerciseAssignmentDialog;
|
|
}
|
|
namespace LtsSession
|
|
{
|
|
class LtsSession;
|
|
}
|
|
namespace LtsUtils
|
|
{
|
|
class RequestHelper;
|
|
}
|
|
|
|
namespace InfrastructureManagement
|
|
{
|
|
class ExerciseAssignmentDialogModel;
|
|
|
|
class ExerciseAssignmentDialog
|
|
: public LtsWidgets::LtsDialog
|
|
, protected InfrastructureManagement::Interface::Ftc::MainStructureElementModifyReplyHandler
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ExerciseAssignmentDialog(LtsSession::LtsSession *session, QWidget *parent = nullptr);
|
|
~ExerciseAssignmentDialog();
|
|
|
|
bool init(const std::shared_ptr<Interface::Dtc> &ismDtc, const std::shared_ptr<Interface::Ftc> &ismFtc, const std::shared_ptr<ExerciseManagement::Interface::Dtc> &exmDtc);
|
|
void onMainStructureElementModifyReply(const Core::FunctionReplyObject &replyObject) override final;
|
|
|
|
private Q_SLOTS:
|
|
void onAssignedClicked();
|
|
void onSelectionChanged();
|
|
void onPrint();
|
|
|
|
private: // methods
|
|
void retranslate() override;
|
|
|
|
private: // attributes
|
|
LtsSession::LtsSession *m_session;
|
|
Ui::ExerciseAssignmentDialog *m_ui;
|
|
std::shared_ptr<Interface::Dtc> m_ismDtc;
|
|
std::shared_ptr<Interface::Ftc> m_ismFtc;
|
|
std::shared_ptr<ExerciseManagement::Interface::Dtc> m_exmDtc;
|
|
ExerciseAssignmentDialogModel *m_model;
|
|
LtsUtils::RequestHelper *m_requestHelper;
|
|
|
|
LOGGER_T m_logger;
|
|
}; // class AssetListDialogModel
|
|
} // namespace InfrastructureManagement
|