25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

38 satır
655 B

  1. #ifndef HMI_H
  2. #define HMI_H
  3. #include <QGraphicsScene>
  4. #include <QWidget>
  5. #include <project.h>
  6. namespace Ui {
  7. class HMI;
  8. }
  9. class HMI : public QWidget
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit HMI(QWidget *parent = nullptr);
  14. ~HMI();
  15. void createComponents();
  16. void clearScene();
  17. void applyProjectToScene(const Project& proj);
  18. void extractSceneToProject(Project& proj);
  19. protected:
  20. bool eventFilter(QObject *obj, QEvent *event) override;
  21. private slots:
  22. void onListwidgetCurrenttextchanged(const QString &currentText);
  23. private:
  24. Ui::HMI *ui;
  25. QGraphicsScene *hmi_scene_;
  26. QString selectedComponentType;
  27. };
  28. #endif // HMI_H