/** * @RDE_HEADER@ * $Id$ * $HeadURL$ * $Author$ * Created by Philipp Last, NLSE, 2018-01-11 */ #pragma once #include #include #include #include namespace Ui { class EvlCommentsDialog; } namespace Evaluations { class EvlCommentDataViewModel; class EvlCommentDataViewProxyModel; class EvlCommentsView : public LtsWidgets::LtsDialog { Q_OBJECT public: EvlCommentsView(const std::shared_ptr &evlDtc, const std::shared_ptr &opmDtc, QWidget *parent = nullptr); ~EvlCommentsView(); private slots: void onLtsDataView_DoubleClicked(); void onCommentChanged(const Evaluations::EvaluationComment &data, DataModification modType); private: 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 m_evlDtc; std::shared_ptr m_opmDtc; EvlCommentDataViewModel *m_model{nullptr}; EvlCommentDataViewProxyModel *m_proxyModel{nullptr}; NGL::INGLLogger &m_logger; }; } // namespace BuildingViewer