- BUILD_RTI Guards in LtsSession implementiert (6 Dateien) - LtsSessionDataDds Stub für BUILD_RTI=OFF erstellt - Export-Header Stubs erstellt (GuezNasat, AlarmManagement, MarkerManagement) - Include-Pfade korrigiert (resource_path.h, logger.h, Proxies) - QStringRef → QString migriert (Qt6 Kompatibilität) - Qt6::Gui Dependencies hinzugefügt (LtsElevation, AdvancedSymbology) - FilterManagement-Plugins temporär vom Build ausgeschlossen - MOC-Probleme gefixt (staticMetaObject, override final) - Build erfolgreich: 1940 Targets mit BUILD_RTI=OFF im Docker-Container Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
82 lines
1.9 KiB
C++
Executable File
82 lines
1.9 KiB
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
#include <QSortFilterProxyModel>
|
|
#include <ProjectDataManagement/pdm_dtc.h>
|
|
#include <Lts/Proxies/TrainingAreaBase/training_area_telegrams.h>
|
|
|
|
class QComboBox;
|
|
class QStandardItemModel;
|
|
|
|
namespace ProjectDataManagement
|
|
{
|
|
enum class PdmComboBoxType
|
|
{
|
|
CbUnkown = 0,
|
|
CbLanguage,
|
|
CbOperationMode,
|
|
CbModeHelmet,
|
|
CbModeVest,
|
|
CbPersonalProtection,
|
|
CbProtectionLevel,
|
|
CbHandgrenadeSearchMode,
|
|
CbInternationalMode,
|
|
CbABCProtectionMode,
|
|
};
|
|
|
|
|
|
|
|
|
|
namespace PdmComboBox
|
|
{
|
|
class ChargeTypeFilterProxyModel final : public QSortFilterProxyModel
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
using QSortFilterProxyModel::QSortFilterProxyModel;
|
|
|
|
void setPropertyFilter(const QString &property, const QVariant &value);
|
|
void setSourceModel(QAbstractItemModel *model) override;
|
|
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
|
|
|
|
private:
|
|
QStandardItemModel *m_model = nullptr;
|
|
QString m_property;
|
|
QVariant m_value;
|
|
};
|
|
|
|
namespace CBUserRoles
|
|
{
|
|
enum Role
|
|
{
|
|
Id = Qt::UserRole,
|
|
Properties
|
|
};
|
|
}
|
|
namespace TargetSubTypeRole
|
|
{
|
|
enum Role
|
|
{
|
|
Id = Qt::UserRole,
|
|
Abbreviation
|
|
};
|
|
}
|
|
|
|
bool fill(QComboBox *cbx, PdmComboBoxType type);
|
|
bool fill(QComboBox *cbx, GearClass gearClass, const std::shared_ptr<Interface::Dtc> &dtc);
|
|
void fillIgniterType(QComboBox *cbx, int chargeTypeId, const std::shared_ptr<Interface::Dtc> &dtc);
|
|
void fillIgniterFunction(QComboBox *cbx, int chargeTypeId, int igniterTypeId, const std::shared_ptr<Interface::Dtc> &dtc);
|
|
void fillLoadType(QComboBox *cbx, int chargeTypeId, const std::shared_ptr<Interface::Dtc> &dtc);
|
|
void fillTargetType(QComboBox *cbx, const std::shared_ptr<Interface::Dtc> &dtc);
|
|
void fillTargetSubType(QComboBox *cbx, int targetTypeId, const std::shared_ptr<Interface::Dtc> &dtc);
|
|
void fillFirePurpose(QComboBox *cbx, const std::shared_ptr<Interface::Dtc> &dtc);
|
|
|
|
bool setChargeTypePropertyFilter(QComboBox *cbx, const QString &property, const QVariant &value);
|
|
|
|
}
|
|
|
|
}
|