-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmainwindow.h
More file actions
39 lines (35 loc) · 715 Bytes
/
Copy pathmainwindow.h
File metadata and controls
39 lines (35 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <bits/stdc++.h>
#include <QMainWindow>
#include "gui.h"
#include <QEvent>
#include <QKeyEvent>
#include "Pipeline/scene.h"
#include <QSpinBox>
using namespace std;
class View :public QGraphicsView
{
Q_OBJECT
public:
myScene * my_scene;
View(QWidget *parent = nullptr);
protected:
void keyPressEvent(QKeyEvent *event);
signals:
void updatePipeline(int);
};
class MainWindow : public QMainWindow
{
Q_OBJECT
private:
GUI* gui ;
View* pipeline_gui;
void ray2();
public:
explicit MainWindow(QWidget *parent = nullptr);
public slots:
void show_pipeline_gui();
void slot_ray2(QAction*);
};
#endif // MAINWINDOW_H