-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainwindow.h
50 lines (44 loc) · 1.15 KB
/
mainwindow.h
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
40
41
42
43
44
45
46
47
48
49
50
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "oglmanager.h"
#include <QLineEdit>
#include <QSlider>
#include <QPushButton>
#include <QDoubleSpinBox>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
void setSliderValue(int value);
void setdoubleSpinBoxValue(GLfloat value);
~MainWindow();
protected:
void keyPressEvent(QKeyEvent *event); //
void keyReleaseEvent(QKeyEvent *event);
private:
Ui::MainWindow *ui;
OGLManager *oglManager;
QLineEdit *ui_linedit;
QSlider *ui_slider;
QPushButton *ui_addkey_button;
QPushButton *ui_run_button;
QDoubleSpinBox *ui_double_splineBox;
private slots:
void updateOGL(){
oglManager->update();
}
void on_checkBox_2_clicked(bool checked);
void on_checkBox_clicked(bool checked);
void on_pushButton_3_clicked();
void on_doubleSpinBox_valueChanged(double arg1);
void showframe();
void on_AddKey_Button_clicked();
void on_Run_Button_clicked();
void on_verticalSlider_valueChanged(int value);
};
#endif // MAINWINDOW_H