Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Plugins/ProjectDataManagement/pdm_gui_plugin_interface.h
T
torstenandCopilot d890b11c5f Qt6 Migration: LtsWidgets, BUILD_RTI Guards, externe Dependencies dokumentiert
- LtsWidgets Verzeichnis vollständig migriert (Qt5→Qt6)
- BUILD_RTI Guards für RTI-spezifische Module hinzugefügt
- Externe Dependencies in EXTERNAL_DEPS.md dokumentiert
- Qt6 API-Änderungen: QRegExp→QRegularExpression, enterEvent(QEnterEvent*)
- AutoUic-Fehler bei ui_requirement behoben (SKIP_AUTOUIC)
- Include-Pfade korrigiert (LtsElevation, LtsMultiMonitor, LtsUtilsCore)
- MOC-Fehler behoben (Q_INTERFACES entfernt wo nicht benötigt)
- CMakeLists.txt Anpassungen für Qt6 (PUBLIC statt INTERFACE)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-21 10:29:34 +02:00

64 lines
2.4 KiB
C++
Executable File

#pragma once
#include <QSet>
#include <functional>
#include <ProjectDataManagement/pdm_enums.hpp>
class QComboBox;
class QWidget;
class QVariant;
// Forward declaration for external dependency
enum class GearClass;
namespace ProjectDataManagement
{
class ForeignGuiInterface
{
public:
ForeignGuiInterface() = default;
virtual ~ForeignGuiInterface() = default;
virtual bool fillBComboBox(QComboBox *cbx) = 0;
virtual bool fillCComboBox(QComboBox *cbx) = 0;
virtual bool fillNComboBox(QComboBox *cbx) = 0;
virtual bool fillArtilleryComboBox(QComboBox *cbx) = 0;
virtual bool fillMortarComboBox(QComboBox *cbx) = 0;
virtual bool fillSingleMineComboBox(QComboBox *cbx) = 0;
virtual bool fillMineFieldComboBox(QComboBox *cbx) = 0;
virtual bool fillBoobyTrapComboBox(QComboBox *cbx) = 0;
virtual bool fillOffRouteMineComboBox(QComboBox *cbx) = 0;
virtual bool fillFunctionalAreaComboBox(QComboBox *cbx) = 0;
virtual bool fillAirSupportComboBox(QComboBox *cbx) = 0;
virtual bool setChargeTypePropertyFilter(QComboBox *cbx, const QString &property, const QVariant &value) = 0;
virtual bool fillPlayerLanguageComboBox(QComboBox *cbx) = 0;
virtual bool fillPlayerOperationModeComboBox(QComboBox *cbx) = 0;
virtual bool fillPlayerModeHelmetComboBox(QComboBox *cbx) = 0;
virtual bool fillPlayerModeVestComboBox(QComboBox *cbx) = 0;
virtual bool fillPlayerPersonalProtectionComboBox(QComboBox *cbx) = 0;
virtual bool fillPlayerProtectionLevelComboBox(QComboBox *cbx) = 0;
virtual bool fillPlayerHandgrenadeSearchModeComboBox(QComboBox *cbx) = 0;
virtual bool fillPlayerInternationalModeComboBox(QComboBox *cbx) = 0;
virtual bool fillABCProtectionComboBox(QComboBox *cbx) = 0;
virtual void fillIgniterComboBox(QComboBox *cbx, int chargeTypeId) = 0;
virtual void fillIgniterFunctionComboBox(QComboBox *cbx, int chargeTypeId, int igniterTypeId) = 0;
virtual void fillLoadComboBox(QComboBox *cbx, int chargeTypeId) = 0;
virtual void fillTargetTypeComboBox(QComboBox *cbx) = 0;
virtual void fillTargetSubTypeComboBox(QComboBox *cbx, int targetTypeId) = 0;
virtual void fillFirePurposeComboBox(QComboBox *cbx) = 0;
virtual void chargeSelector(const QSet<int> &preselectedCharges,
GearClass gearClass,
const std::function<void(const QSet<int>&)> &cb,
QWidget *parent) = 0;
};
}