- training_area_telegrams.cpp: Fixed QJsonObject initializer syntax (Qt6 requires {{}} not ({}))
- training_area_telegrams.cpp: Fixed fromJson() methods to access m_* members directly
- training_area_telegrams.cpp: Fixed brace mismatches in multiple toJson() methods
- training_area_telegrams.h: Changed Header struct to public members for consistency
- tx_mixin.cpp: Fixed getEquipmentNumber() template for direct member access
- lts_coordinate.cpp: Added missing #include <iomanip>
- MIGRATION_STATUS.md: Added migration progress tracking document
C++17 constraint enforced due to RTI Connext DDS 7.7.0 incompatibility with C++20+
Build status: BUILD_RTI=OFF successful (0 errors, warnings only)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
99 lines
2.2 KiB
C++
Executable File
99 lines
2.2 KiB
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
#include <QtCore/QSet>
|
|
|
|
namespace Core {
|
|
class FunctionReplyObject;
|
|
}
|
|
|
|
namespace LtsSession {
|
|
class LtsSession;
|
|
}
|
|
|
|
namespace LtsUtils {
|
|
class RequestHelper;
|
|
}
|
|
|
|
namespace FileManagement {
|
|
class ForeignGuiInterface;
|
|
}
|
|
|
|
namespace ProjectDataManagement
|
|
{
|
|
|
|
#ifdef BUILD_WITH_EXTERNAL_DDS
|
|
// Forward declarations for external dependencies
|
|
struct GearClass;
|
|
struct ChargeType;
|
|
#else
|
|
// Forward declarations for external dependencies
|
|
struct GearClass;
|
|
struct ChargeType;
|
|
#endif
|
|
|
|
namespace Interface {
|
|
namespace Ftc {
|
|
class UpdateChargeTypeReplyHandler;
|
|
class UpdateChargeNamesReplyHandler;
|
|
}
|
|
}
|
|
|
|
// Forward declaration - LtsWidgets::LtsDialog wird in CPP definiert
|
|
namespace LtsWidgets {
|
|
class LtsDialog;
|
|
}
|
|
|
|
#ifdef BUILD_WITH_EXTERNAL_DDS
|
|
|
|
class ChargeTableDialog : public LtsWidgets::LtsDialog
|
|
, protected ProjectDataManagement::Interface::Ftc::UpdateChargeTypeReplyHandler
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ChargeTableDialog(QWidget *parent = nullptr, bool organiser = false);
|
|
~ChargeTableDialog();
|
|
|
|
bool init(LtsSession::LtsSession *session, bool showDetails = false, const QSet<GearClass> &gearClasses = {GearClass::DuelSim});
|
|
bool apply() override;
|
|
|
|
public slots:
|
|
void setValues(const std::vector<int> &values, bool includeChildren = false);
|
|
void setValues(const QSet<int> &values, bool includeChildren = false);
|
|
|
|
private:
|
|
void retranslate() override;
|
|
void onUpdateChargeTypeReply(const Core::FunctionReplyObject &replyObject) override final;
|
|
void tableColumnOrganiserSetting() override;
|
|
|
|
Ui::ChargeTableDialog *m_ui;
|
|
LtsSession::LtsSession *m_session;
|
|
std::shared_ptr<ProjectDataManagement::Interface::Ftc> m_ftc;
|
|
std::shared_ptr<FileManagement::ForeignGuiInterface> m_flmGui;
|
|
LtsUtils::RequestHelper *m_requestHelper;
|
|
ChargeTableDialogModel *m_model;
|
|
bool m_isOrganiser;
|
|
LOGGER_T m_logger;
|
|
|
|
signals:
|
|
void selectedUleisCodes(const QSet<int> &codes);
|
|
|
|
private slots:
|
|
void enaDisa();
|
|
void showDetails(bool showThem);
|
|
void onEditCharge();
|
|
void onPrint();
|
|
void enaDisaOk(bool hasChanges);
|
|
void onImportButtonClicked();
|
|
void onExportButtonClicked();
|
|
};
|
|
|
|
#endif // BUILD_WITH_EXTERNAL_DDS
|
|
|
|
}
|