Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,60 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* Alarm Configuration
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Mike Wille, SLSE, 2017-01-11
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LtsWidgets/lts_dialog.h>
|
||||
#include <GuezNasat/gna_ftc.h>
|
||||
#include <LtsUtilsGuiDds/request_helper.h>
|
||||
#include <GuezNasat/logger.h>
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
class AssignGuezNasatPartDialog;
|
||||
}
|
||||
|
||||
namespace GuezNasat
|
||||
{
|
||||
class NasatAircraftParticipantModel;
|
||||
|
||||
class AssignGuezNasatPartDialog final : public LtsWidgets::LtsDialog
|
||||
, protected GuezNasat::Interface::Ftc::ModifyNasatAircraftParticipantReplyHandler
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
explicit AssignGuezNasatPartDialog(int exerciseId, QWidget *parent = nullptr);
|
||||
~AssignGuezNasatPartDialog();
|
||||
|
||||
bool init(const std::shared_ptr<GuezNasat::Interface::Ftc> &ftc,
|
||||
NasatAircraftParticipantModel *nasatAircraftParticipantModel,
|
||||
const NasatAircraftParticipant &nap = NasatAircraftParticipant());
|
||||
|
||||
void retranslate() override;
|
||||
bool apply() override;
|
||||
|
||||
protected:
|
||||
void onModifyNasatAircraftParticipantReply(const Core::FunctionReplyObject &replyObject) override final { m_requestHelper->requestReply(replyObject); }
|
||||
|
||||
private:
|
||||
void getCheckedValues();
|
||||
void initCmbNasats();
|
||||
void initCmbParticipants();
|
||||
|
||||
std::shared_ptr<GuezNasat::Interface::Ftc> m_ftc;
|
||||
NasatAircraftParticipantModel *m_nasatAircraftParticipantModel;
|
||||
int m_exerciseId;
|
||||
Ui::AssignGuezNasatPartDialog *m_ui;
|
||||
LtsUtils::RequestHelper *m_requestHelper;
|
||||
LOGGER_T m_logger;
|
||||
NasatAircraftParticipant m_nap;
|
||||
};
|
||||
|
||||
} // namespace GuezNasat
|
||||
Reference in new issue
Block a user