#ifndef HMI_H #define HMI_H #include #include #include namespace Ui { class HMI; } class HMI : public QWidget { Q_OBJECT public: explicit HMI(QWidget *parent = nullptr); ~HMI(); void createComponents(); void clearScene(); void applyProjectToScene(const Project& proj); void extractSceneToProject(Project& proj); protected: bool eventFilter(QObject *obj, QEvent *event) override; private slots: void onListwidgetCurrenttextchanged(const QString ¤tText); private: Ui::HMI *ui; QGraphicsScene *hmi_scene_; QString selectedComponentType; }; #endif // HMI_H