54 lines
1.2 KiB
C++
Executable File
54 lines
1.2 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "msdl_logging.h"
|
|
|
|
#include <memory>
|
|
#include <ParticipantManagement/ppm_dtc.h>
|
|
#include <LtsWidgets/lts_frameless_dialog.h>
|
|
|
|
class Ui_MSDLMappingDialog;
|
|
|
|
namespace msdl
|
|
{
|
|
class MappingDialog : public LtsWidgets::LtsFramelessDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
MappingDialog(QWidget *parent,
|
|
bool typeClassIsUnit,
|
|
const QString &strReason,
|
|
const std::shared_ptr<ParticipantManagement::Interface::Dtc> &ppmDtc,
|
|
bool offerDatabaseEntriesWithoutDISType);
|
|
~MappingDialog();
|
|
|
|
bool mappingApplied() const;
|
|
bool skipAllUnmappedElements() const;
|
|
bool autoMapAllUnmappedElements() const;
|
|
|
|
int32_t getMappedTypeId() const;
|
|
|
|
private slots:
|
|
void slotClassTypeChanged();
|
|
void slotApplyMapping();
|
|
void slotSkipAllElements();
|
|
|
|
private:
|
|
bool m_offerDatabaseEntriesWithoutDISType = false;
|
|
bool m_mappingPerformed = false;
|
|
bool m_skipAllUnmappedElements = false;
|
|
|
|
QMap<qint32, ParticipantManagement::Type> m_mapTypes;
|
|
|
|
msdl::LOGGER_T mLogger;
|
|
std::shared_ptr<ParticipantManagement::Interface::Dtc> m_ppmDtc;
|
|
Ui_MSDLMappingDialog *mUi;
|
|
};
|
|
}
|