49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
|
|
|
|
#pragma once
|
|
|
|
#include <Evaluations/evl_dtc.h>
|
|
#include <Evaluations/logger.h>
|
|
#include <LtsWidgets/lts_dialog.h>
|
|
#include <OperatorManagement/opm_data_plugin_interface.h>
|
|
|
|
namespace Ui
|
|
{
|
|
class EvlCommentsDialog;
|
|
}
|
|
|
|
namespace Evaluations
|
|
{
|
|
class EvlCommentDataViewModel;
|
|
class EvlCommentDataViewProxyModel;
|
|
|
|
class EvlCommentsView : public LtsWidgets::LtsDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
EvlCommentsView(const std::shared_ptr<Interface::Dtc>& evlDtc,
|
|
const std::shared_ptr<OperatorManagement::Interface::Dtc>& opmDtc, QWidget* parent = nullptr);
|
|
~EvlCommentsView();
|
|
|
|
private slots:
|
|
void onLtsDataView_DoubleClicked();
|
|
void onCommentChanged(const Evaluations::EvaluationComment& data, DataModification modType);
|
|
|
|
private:
|
|
NGL::INGLLogger& m_logger;
|
|
bool insertComment(const Evaluations::EvaluationComment& c);
|
|
void retranslate() override;
|
|
bool eventFilter(QObject* object, QEvent* event) override;
|
|
void tableColumnOrganiserSetting() override;
|
|
|
|
Ui::EvlCommentsDialog* m_ui{nullptr};
|
|
|
|
std::shared_ptr<Interface::Dtc> m_evlDtc;
|
|
std::shared_ptr<OperatorManagement::Interface::Dtc> m_opmDtc;
|
|
|
|
EvlCommentDataViewModel* m_model{nullptr};
|
|
EvlCommentDataViewProxyModel* m_proxyModel{nullptr};
|
|
};
|
|
} // namespace Evaluations
|