Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+36
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* Model for mounted participants table
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Dassow Philipp, SLEA, 2017-08-29
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LtsWidgets/lts_abstract_table_model.h>
|
||||
#include <ParticipantManagement/ppm_dtc.h>
|
||||
|
||||
namespace ParticipantManagement {
|
||||
|
||||
class ParticipantsMountedTableModel : public LtsWidgets::LtsAbstractTableModel<Participant>
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ParticipantsMountedTableModel(QObject *parent = nullptr);
|
||||
|
||||
bool initModel(int32_t carrierId, const std::shared_ptr<Interface::Dtc> &dtc);
|
||||
|
||||
QVariant data(const QModelIndex &index, int role) const override;
|
||||
|
||||
private Q_SLOTS:
|
||||
void onPositionChanged(const ParticipantPosition &data, DataModification modType);
|
||||
private:
|
||||
void reInitModel();
|
||||
|
||||
private:
|
||||
int32_t m_carrierId;
|
||||
std::shared_ptr<Interface::Dtc> m_dtc;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user