Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+64
@@ -0,0 +1,64 @@
|
||||
/**
|
||||
* @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_dtc.h>
|
||||
#include <GuezNasat/gna_ftc.h>
|
||||
#include <LtsUtilsGuiDds/request_helper.h>
|
||||
#include <GuezNasat/logger.h>
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
class GuezNasatDialog;
|
||||
}
|
||||
|
||||
namespace GuezNasat
|
||||
{
|
||||
class NasatAircraftModel;
|
||||
|
||||
class GuezNasatDialog final : public LtsWidgets::LtsDialog
|
||||
, protected GuezNasat::Interface::Ftc::ModifyNasatAircraftReplyHandler
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
explicit GuezNasatDialog(const QString &menuGroup, QWidget *parent = nullptr);
|
||||
~GuezNasatDialog();
|
||||
|
||||
bool init(const std::shared_ptr<GuezNasat::Interface::Ftc> &ftc,
|
||||
const std::shared_ptr<GuezNasat::Interface::Dtc> &dtc);
|
||||
|
||||
void retranslate() override;
|
||||
|
||||
protected:
|
||||
void onModifyNasatAircraftReply(const Core::FunctionReplyObject &replyObject) override final { m_requestHelper->requestReply(replyObject); }
|
||||
|
||||
private slots:
|
||||
void onSelectionChanged();
|
||||
void onNewAircraft();
|
||||
void onRemoveAircraft();
|
||||
void onEditAircraft();
|
||||
|
||||
private:
|
||||
void tableColumnOrganiserSetting() override;
|
||||
|
||||
NasatAircraftModel *m_nasatAircraftModel;
|
||||
|
||||
std::shared_ptr<GuezNasat::Interface::Dtc> m_dtc;
|
||||
std::shared_ptr<GuezNasat::Interface::Ftc> m_ftc;
|
||||
|
||||
Ui::GuezNasatDialog *m_ui;
|
||||
QString m_menuGroup;
|
||||
LtsUtils::RequestHelper *m_requestHelper;
|
||||
LOGGER_T m_logger;
|
||||
};
|
||||
|
||||
} // namespace GuezNasat
|
||||
Reference in new issue
Block a user