Apply clang-format to Lts/Common and DTC/enum headers
- Formatted all CodeGen module files (9 files) - Formatted LtsAppDescriptor module files - Formatted LtsAppManager/AppChooser files - Applied clang-format to all DTC and enum headers across modules - Removed coordTransTests from CommonUnitTestsPlaceholder (moved to tests/) Cosmetic changes only, no functional modifications. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
848 files changed
+89305
-100020
No files matched your search
Executable → Regular
+58
-56
@@ -1,18 +1,15 @@
|
||||
|
||||
|
||||
|
||||
#pragma once
|
||||
#include "esc_order_model.h"
|
||||
|
||||
#include <LtsWidgets/lts_dialog.h>
|
||||
#include <EffectShowClient/logger.h>
|
||||
#include <LtsSession/lts_session.h>
|
||||
#include <LtsUtils/LtsUtilsGui/LtsUtilsGuiDds/request_helper.h>
|
||||
#include <LtsWidgets/lts_dialog.h>
|
||||
#include <QTimer>
|
||||
#include <Services/EffectShowClient/esc_dtc.h>
|
||||
#include <Services/EffectShowClient/esc_ftc.h>
|
||||
#include <EffectShowClient/logger.h>
|
||||
#include <LtsUtils/LtsUtilsGui/LtsUtilsGuiDds/request_helper.h>
|
||||
|
||||
#include <QTimer>
|
||||
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
@@ -28,64 +25,69 @@ namespace EffectShowClient
|
||||
{
|
||||
class SafetyConfirmationWidget;
|
||||
|
||||
|
||||
|
||||
class FiringExplosion : public LtsWidgets::LtsDialog
|
||||
, protected EffectShowClient::Interface::Ftc::OrderModifyReplyHandler
|
||||
, protected EffectShowClient::Interface::Ftc::ManuallyExplosionReplyHandler
|
||||
class FiringExplosion : public LtsWidgets::LtsDialog,
|
||||
protected EffectShowClient::Interface::Ftc::OrderModifyReplyHandler,
|
||||
protected EffectShowClient::Interface::Ftc::ManuallyExplosionReplyHandler
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit FiringExplosion(QWidget *parent = nullptr);
|
||||
~FiringExplosion();
|
||||
public:
|
||||
explicit FiringExplosion(QWidget* parent = nullptr);
|
||||
~FiringExplosion();
|
||||
|
||||
bool init(const std::shared_ptr<EffectShowClient::Interface::Dtc> &dtc,
|
||||
const std::shared_ptr<EffectShowClient::Interface::Ftc> &ftc,
|
||||
LtsSession::LtsSession *session,
|
||||
bool freeForm = false);
|
||||
bool init(const std::shared_ptr<EffectShowClient::Interface::Dtc>& dtc,
|
||||
const std::shared_ptr<EffectShowClient::Interface::Ftc>& ftc, LtsSession::LtsSession* session,
|
||||
bool freeForm = false);
|
||||
|
||||
private:
|
||||
private:
|
||||
NGL::INGLLogger& m_logger;
|
||||
void retranslate() override;
|
||||
|
||||
NGL::INGLLogger &m_logger;
|
||||
void retranslate() override;
|
||||
void onOrderModifyReply(const Core::FunctionReplyObject &replyObject) override { m_requestHelper->requestReply(replyObject); }
|
||||
void onManuallyExplosionReply(const Core::FunctionReplyObject &replyObject) override { m_requestHelper->requestReply(replyObject); }
|
||||
void onOrderModifyReply(const Core::FunctionReplyObject& replyObject) override
|
||||
{
|
||||
m_requestHelper->requestReply(replyObject);
|
||||
}
|
||||
|
||||
private Q_SLOTS:
|
||||
void onFiringExplosionEntityChanged(const EffectShowClient::FiringExplosionEntity &data, DataModification modType);
|
||||
void onOperatingConditionEntityChanged(const EffectShowClient::OperatingConditionEntity &data, DataModification modType);
|
||||
void onApply();
|
||||
void onFire();
|
||||
void onAbort();
|
||||
void onInterrupt();
|
||||
void onCarriedOut();
|
||||
void onSafetyConfirmationDisplay();
|
||||
void onFiringClearanceCountDown();
|
||||
void onManuallyExplosionReply(const Core::FunctionReplyObject& replyObject) override
|
||||
{
|
||||
m_requestHelper->requestReply(replyObject);
|
||||
}
|
||||
|
||||
private:
|
||||
enum class EffectShowStatus_e : unsigned int { Apply, Fire, Abort, Interrupt, CarriedOut };
|
||||
bool statusChangedForManuallyEffectShow(EffectShowStatus_e status);
|
||||
bool statusChangedForOrderedEffectShow(EffectShowStatus_e status);
|
||||
private Q_SLOTS:
|
||||
void onFiringExplosionEntityChanged(const EffectShowClient::FiringExplosionEntity& data, DataModification modType);
|
||||
void onOperatingConditionEntityChanged(const EffectShowClient::OperatingConditionEntity& data,
|
||||
DataModification modType);
|
||||
void onApply();
|
||||
void onFire();
|
||||
void onAbort();
|
||||
void onInterrupt();
|
||||
void onCarriedOut();
|
||||
void onSafetyConfirmationDisplay();
|
||||
void onFiringClearanceCountDown();
|
||||
|
||||
private:
|
||||
QTimer *m_timer;
|
||||
std::shared_ptr<EffectShowClient::Interface::Dtc> m_dtc;
|
||||
std::shared_ptr<EffectShowClient::Interface::Ftc> m_ftc;
|
||||
LtsSession::LtsSession *m_session;
|
||||
SafetyConfirmationWidget *m_safetyConfirmationWidget;
|
||||
private:
|
||||
enum class EffectShowStatus_e : unsigned int { Apply, Fire, Abort, Interrupt, CarriedOut };
|
||||
bool statusChangedForManuallyEffectShow(EffectShowStatus_e status);
|
||||
bool statusChangedForOrderedEffectShow(EffectShowStatus_e status);
|
||||
|
||||
Ui::FiringExplosion *m_ui;
|
||||
LtsUtils::RequestHelper *m_requestHelper;
|
||||
private:
|
||||
QTimer* m_timer;
|
||||
std::shared_ptr<EffectShowClient::Interface::Dtc> m_dtc;
|
||||
std::shared_ptr<EffectShowClient::Interface::Ftc> m_ftc;
|
||||
LtsSession::LtsSession* m_session;
|
||||
SafetyConfirmationWidget* m_safetyConfirmationWidget;
|
||||
|
||||
EffectShowClient::FiringExplosionEntity m_oldEntity;
|
||||
EffectShowClient::SafetyConfirmation_e m_safetyConfirmation;
|
||||
int m_idOrder;
|
||||
int m_idEffectShow;
|
||||
int m_shotsAvail;
|
||||
bool m_isClearance;
|
||||
qint64 m_firingClearanceCountDown;
|
||||
qint64 m_endOfFiringClearanceCountDown;
|
||||
Ui::FiringExplosion* m_ui;
|
||||
LtsUtils::RequestHelper* m_requestHelper;
|
||||
|
||||
EffectShowClient::FiringExplosionEntity m_oldEntity;
|
||||
EffectShowClient::SafetyConfirmation_e m_safetyConfirmation;
|
||||
int m_idOrder;
|
||||
int m_idEffectShow;
|
||||
int m_shotsAvail;
|
||||
bool m_isClearance;
|
||||
qint64 m_firingClearanceCountDown;
|
||||
qint64 m_endOfFiringClearanceCountDown;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace EffectShowClient
|
||||
Reference in new issue
Block a user