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
+62
-59
@@ -1,15 +1,13 @@
|
||||
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LtsWidgets/lts_dialog.h>
|
||||
#include <Services/EffectShowClient/esc_dtc.h>
|
||||
#include <Services/EffectShowClient/esc_ftc.h>
|
||||
#include <EffectShowClient/logger.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>
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
@@ -23,75 +21,80 @@ class ForeignGuiInterface;
|
||||
|
||||
namespace EffectShowClient
|
||||
{
|
||||
class SmokeState;
|
||||
class SafetyConfirmationWidget;
|
||||
|
||||
|
||||
class SmokeState;
|
||||
class SafetyConfirmationWidget;
|
||||
|
||||
class OperatingCondition : public LtsWidgets::LtsDialog,
|
||||
protected EffectShowClient::Interface::Ftc::SendAmmunitionReplyHandler,
|
||||
protected EffectShowClient::Interface::Ftc::SendReadinessReplyHandler
|
||||
protected EffectShowClient::Interface::Ftc::SendAmmunitionReplyHandler,
|
||||
protected EffectShowClient::Interface::Ftc::SendReadinessReplyHandler
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit OperatingCondition(QWidget *parent = nullptr);
|
||||
~OperatingCondition();
|
||||
public:
|
||||
explicit OperatingCondition(QWidget* parent = nullptr);
|
||||
~OperatingCondition();
|
||||
|
||||
bool init(const std::shared_ptr<EffectShowClient::Interface::Dtc> &dtc,
|
||||
const std::shared_ptr<EffectShowClient::Interface::Ftc> &ftc);
|
||||
private:
|
||||
NGL::INGLLogger &m_logger;
|
||||
void retranslate() override;
|
||||
void onSendAmmunitionReply(const Core::FunctionReplyObject &replyObject) override { m_requestHelper->requestReply(replyObject); }
|
||||
void onSendReadinessReply(const Core::FunctionReplyObject &replyObject) override { m_requestHelper->requestReply(replyObject); }
|
||||
int getSmokeCount();
|
||||
bool init(const std::shared_ptr<EffectShowClient::Interface::Dtc>& dtc,
|
||||
const std::shared_ptr<EffectShowClient::Interface::Ftc>& ftc);
|
||||
|
||||
private Q_SLOTS:
|
||||
void onMeteoNearVehicleChanged(const EffectShowClient::MeteoNearVehicle &data, DataModification modType);
|
||||
void onOperatingConditionEntityChanged(const EffectShowClient::OperatingConditionEntity &data, DataModification modType);
|
||||
void onFiringExplosionEntityChanged(const EffectShowClient::FiringExplosionEntity &data, DataModification modType);
|
||||
void onFiringSmokeEntityChanged(const EffectShowClient::FiringSmokeEntity &data, DataModification modType);
|
||||
void onSafetyConfirmationDisplay();
|
||||
bool onSendRevokeReadiness();
|
||||
bool onSendConfirmReadiness();
|
||||
private:
|
||||
NGL::INGLLogger& m_logger;
|
||||
void retranslate() override;
|
||||
|
||||
bool onSendAmmunition();
|
||||
void onSendAmmunitionReply(const Core::FunctionReplyObject& replyObject) override
|
||||
{
|
||||
m_requestHelper->requestReply(replyObject);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
void onSendReadinessReply(const Core::FunctionReplyObject& replyObject) override
|
||||
{
|
||||
m_requestHelper->requestReply(replyObject);
|
||||
}
|
||||
|
||||
struct BatteryVoltage_t
|
||||
{
|
||||
double redBoundary = 5;
|
||||
double yellowBoundary = 15;
|
||||
double greenMaximum = 25;
|
||||
double maximumValue = 100;
|
||||
};
|
||||
|
||||
int getSmokeCount();
|
||||
|
||||
void setBatteryVoltageConstraints(double redBoundary, double yellowBoundary, double greenMaximum);
|
||||
|
||||
private Q_SLOTS:
|
||||
void onMeteoNearVehicleChanged(const EffectShowClient::MeteoNearVehicle& data, DataModification modType);
|
||||
void onOperatingConditionEntityChanged(const EffectShowClient::OperatingConditionEntity& data,
|
||||
DataModification modType);
|
||||
void onFiringExplosionEntityChanged(const EffectShowClient::FiringExplosionEntity& data, DataModification modType);
|
||||
void onFiringSmokeEntityChanged(const EffectShowClient::FiringSmokeEntity& data, DataModification modType);
|
||||
void onSafetyConfirmationDisplay();
|
||||
bool onSendRevokeReadiness();
|
||||
bool onSendConfirmReadiness();
|
||||
|
||||
void setBatteryVoltage(double batteryVoltage);
|
||||
void onMeteoTimeout();
|
||||
bool onSendAmmunition();
|
||||
|
||||
private:
|
||||
std::shared_ptr<EffectShowClient::Interface::Dtc> m_dtc;
|
||||
std::shared_ptr<EffectShowClient::Interface::Ftc> m_ftc;
|
||||
private:
|
||||
struct BatteryVoltage_t
|
||||
{
|
||||
double redBoundary = 5;
|
||||
double yellowBoundary = 15;
|
||||
double greenMaximum = 25;
|
||||
double maximumValue = 100;
|
||||
};
|
||||
|
||||
EffectShowClient::OperatingConditionEntity m_lastState;
|
||||
EffectShowClient::SafetyConfirmation_e m_safetyConfirmation;
|
||||
void setBatteryVoltageConstraints(double redBoundary, double yellowBoundary, double greenMaximum);
|
||||
|
||||
int m_meteoTimerTimeout;
|
||||
QTimer *m_meteoTimer;
|
||||
void setBatteryVoltage(double batteryVoltage);
|
||||
void onMeteoTimeout();
|
||||
|
||||
SmokeState *m_smokeState;
|
||||
SafetyConfirmationWidget *m_safetyConfirmationWidget;
|
||||
Ui::OperatingCondition *m_ui;
|
||||
LtsUtils::RequestHelper *m_requestHelper;
|
||||
private:
|
||||
std::shared_ptr<EffectShowClient::Interface::Dtc> m_dtc;
|
||||
std::shared_ptr<EffectShowClient::Interface::Ftc> m_ftc;
|
||||
|
||||
BatteryVoltage_t m_batteryVoltage;
|
||||
EffectShowClient::OperatingConditionEntity m_lastState;
|
||||
EffectShowClient::SafetyConfirmation_e m_safetyConfirmation;
|
||||
|
||||
int m_meteoTimerTimeout;
|
||||
QTimer* m_meteoTimer;
|
||||
|
||||
SmokeState* m_smokeState;
|
||||
SafetyConfirmationWidget* m_safetyConfirmationWidget;
|
||||
Ui::OperatingCondition* m_ui;
|
||||
LtsUtils::RequestHelper* m_requestHelper;
|
||||
|
||||
BatteryVoltage_t m_batteryVoltage;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace EffectShowClient
|
||||
Reference in new issue
Block a user