Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* @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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user