-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdirectioncalculator.h
More file actions
32 lines (32 loc) · 853 Bytes
/
directioncalculator.h
File metadata and controls
32 lines (32 loc) · 853 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
#ifndef DIRECTIONCALCULATOR_H
#define DIRECTIONCALCULATOR_H
#include"dialog.h"
#include"param.h"
#include"main.h"
class DirectionCalculator:public Dialog{
DoubleParam*spacingParam,*energyParam;
VectorParam*hParam,*beamParam;
QVBoxLayout*vertical=new QVBoxLayout(frame);
QLineEdit
*spacingBox=new QLineEdit(this),
*energyBox=new QLineEdit(this),
*braggBox=new QLineEdit(this),
*hx=new QLineEdit(this),
*hy=new QLineEdit(this),
*hz=new QLineEdit(this),
*userx=new QLineEdit(this),
*usery=new QLineEdit(this),
*userz=new QLineEdit(this),
*resx=new QLineEdit(this),
*resy=new QLineEdit(this),
*resz=new QLineEdit(this);
public:
DirectionCalculator(QWidget*parent=0);
vector result();
void setParams(DoubleParam*,DoubleParam*,VectorParam*,VectorParam*);
void setVisible(bool);
private slots:
void calculate();
void onAccept();
};
#endif