Qt-Gebouw/mainwindow.h

40 lines
792 B
C
Raw Normal View History

2022-02-10 16:44:22 +00:00
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
class Hallsensor;
class Sensor;
class Schuifdeur;
2022-02-17 23:51:34 +00:00
class draaideur;
class Deur;
2022-02-10 16:44:22 +00:00
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
void paintEvent(QPaintEvent *event);
~MainWindow();
private slots:
void on_schuifdeurSensorKnop_clicked();
void on_vd_clicked();
2022-02-17 23:51:34 +00:00
void on_d1_clicked();
void on_d2_clicked();
2022-02-10 16:44:22 +00:00
private:
Ui::MainWindow *ui;
2022-02-17 23:51:34 +00:00
Hallsensor *s1;
std::shared_ptr<Schuifdeur> *vd;
std::shared_ptr<draaideur> *d1, *d2;
// std::vector<std::unique_ptr<Deur*>> deuren;
// Schuifdeur *vd;
// draaideur *d1, *d2;
std::vector<std::shared_ptr<Deur>> deuren;
2022-02-10 16:44:22 +00:00
};
#endif // MAINWINDOW_H