Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* ParticipantManagement - Show ParticipantInfo by Equipment No
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Malte Diers, NLSE, 2018-04-20
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <Plugins/ParticipantManagement/Gui/Common/ppmcommon_export.h>
|
||||
#include <LtsWidgets/lts_frameless_dialog.h>
|
||||
#include <QMap>
|
||||
#include <memory>
|
||||
|
||||
enum class DataModification;
|
||||
namespace Ui
|
||||
{
|
||||
class ParticipantSearchModal;
|
||||
}
|
||||
|
||||
namespace ParticipantManagement
|
||||
{
|
||||
class Participant;
|
||||
namespace Interface
|
||||
{
|
||||
class Dtc;
|
||||
}
|
||||
|
||||
class PPMCOMMON_EXPORT ParticipantSearchModal : public LtsWidgets::LtsFramelessDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ParticipantSearchModal(QWidget *parent = nullptr);
|
||||
~ParticipantSearchModal();
|
||||
bool init(const std::shared_ptr<ParticipantManagement::Interface::Dtc> &dtc);
|
||||
|
||||
void showEvent(QShowEvent *e) override;
|
||||
|
||||
private slots:
|
||||
void onOkay();
|
||||
void onParticipantChanged(const ParticipantManagement::Participant &data, DataModification modType);
|
||||
|
||||
signals:
|
||||
void participantSelected(int participantId);
|
||||
|
||||
private:
|
||||
QMap<int,int> m_eqId2PartId;
|
||||
QMap<int,int> m_partId2EqId;
|
||||
Ui::ParticipantSearchModal *m_ui;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in new issue
Block a user