51 lines
1018 B
C++
Executable File
51 lines
1018 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "zwmssaab_export.h"
|
|
#include "saab_types.h"
|
|
|
|
#include <LtsWidgets/lts_frameless_dialog.h>
|
|
#include <ParticipantManagement/ppm.hpp>
|
|
|
|
class Ui_MapParty;
|
|
|
|
namespace saab
|
|
{
|
|
class ZWMSSAAB_EXPORT MapParty
|
|
: public LtsWidgets::LtsFramelessDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit MapParty(const QString &partyName,
|
|
const QMap<QString, QString> &forces,
|
|
const QMap<QString, SaabEchelon> &echelons,
|
|
const QMap<QString, SaabSymbol> &symbols,
|
|
QWidget *parent = nullptr);
|
|
virtual ~MapParty();
|
|
|
|
bool isSkipped() const;
|
|
|
|
QString force() const;
|
|
QString echelonCode() const;
|
|
QString symbolCode() const;
|
|
|
|
private: // methods
|
|
template <typename T>
|
|
void sortList(QList<T> &list)
|
|
{
|
|
std::sort(list.begin(), list.end(), [](const T &a, const T& b){ return (a.text < b.text); });
|
|
}
|
|
|
|
private: // attributes
|
|
bool m_skipped;
|
|
Ui_MapParty *m_ui;
|
|
};
|
|
}
|
|
|