40 lines
989 B
C++
Executable File
40 lines
989 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* A Frameless dialog to select parties
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Christian Ehrlicher, SLSE, 2017-06-22
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LtsWidgets/lts_frameless_dialog.h>
|
|
#include <ParticipantManagement/ppm_dtc.h>
|
|
#include <QSet>
|
|
#include "ui_ppm_party_selector.h"
|
|
|
|
namespace ParticipantManagement
|
|
{
|
|
class PartySelector final : public LtsWidgets::LtsFramelessDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit PartySelector(QWidget *parent = nullptr);
|
|
~PartySelector();
|
|
|
|
bool init(const std::shared_ptr<ParticipantManagement::Interface::Dtc> &dtc,
|
|
const QSet<int> &preselectedParties,
|
|
const QVector<int> &visibleParties);
|
|
Q_SIGNALS:
|
|
void partiesSelected(const QSet<int> &selectedParties);
|
|
private:
|
|
void partyCheckBoxChanged(int partyId, bool bChecked);
|
|
void reject() override;
|
|
private:
|
|
QSet<int> m_selectedParties;
|
|
QSet<int> m_selectedPartiesOriginal;
|
|
Ui::PartySelector m_ui;
|
|
};
|
|
} // namespace ParticipantManagement
|