-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwidget.h
48 lines (42 loc) · 1.14 KB
/
widget.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
#ifndef WIDGET_H
#define WIDGET_H
#include<QMap>
#include <QWidget>
#include<QTimer>
#include<unordered_map>
#include<set>
#include<QWheelEvent>
#include"beam.h"
namespace Ui {
class Widget;
}
class Widget : public QWidget
{
Q_OBJECT
public:
explicit Widget(QWidget *parent = 0);
~Widget();
beam *beam1;
double ratio=1;
private:
Ui::Widget *ui;
void drawBeam(QPainter& painter);
protected:
void paintEvent(QPaintEvent* event);
bool boolScale=true;
private slots:
void on_pushButton_2_clicked();
void on_IzText_textChanged(const QString &arg1);
void on_lengthText_textChanged(const QString &arg1);
void on_ElaText_textChanged(const QString &arg1);
void on_comboBox_currentIndexChanged(int index);
void on_pushButton_3_clicked();
void on_BeamTypeBox_currentIndexChanged(int index);
void on_rResText_textChanged(const QString &arg1);
void wheelEvent(QWheelEvent* event);
void mouseMoveEvent(QMouseEvent *e);
void on_savePicButton_clicked();
void on_saveFileButton_clicked();
void on_scaleOpt_clicked();
};
#endif // WIDGET_H