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