-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIROOTAxisEditor.h
94 lines (69 loc) · 2.53 KB
/
IROOTAxisEditor.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#ifndef IROOTAXISEDITOR_H
#define IROOTAXISEDITOR_H
#include <QWidget>
#include <IROOTPad.h>
#include <QMenu>
#include <QDebug>
#include <QMouseEvent>
namespace Ui {
class IROOTAxisEditor;
}
class IROOTAxisEditor : public QWidget
{
Q_OBJECT
public:
explicit IROOTAxisEditor(QWidget *parent = 0);
void setIROOTPadObject(IROOTPad *object);
~IROOTAxisEditor();
private slots:
// void on_xaxistitle_textChanged(const QString &arg1);
// void on_yaxistitle_textChanged(const QString &arg1);
// void on_zaxistitle_textChanged(const QString &arg1);
void on_centreTitle_clicked(bool checked);
void on_xmajorTicks_valueChanged(int arg1);
void on_xminorTicks_valueChanged(int arg1);
void on_xsemiTicks_valueChanged(int arg1);
void on_ymajorTicks_valueChanged(int arg1);
void on_yminorTicks_valueChanged(int arg1);
void on_ysemiTicks_valueChanged(int arg1);
void on_zmajorTicks_valueChanged(int arg1);
void on_zminorTicks_valueChanged(int arg1);
void on_zsemiTicks_valueChanged(int arg1);
void on_xMin_valueChanged(double arg1);
void on_xMax_valueChanged(double arg1);
void on_yMin_valueChanged(double arg1);
void on_yMax_valueChanged(double arg1);
void on_zMin_valueChanged(double arg1);
void on_zMax_valueChanged(double arg1);
void on_timeDispX_clicked(bool checked);
void on_timeDispY_clicked(bool checked);
void on_scinot_valueChanged(int arg1);
void on_xaxistitle_returnPressed();
void on_yaxistitle_returnPressed();
void on_zaxistitle_returnPressed();
void on_labelOffset_sliderReleased();
void on_titleOffset_sliderReleased();
void on_labelOffset_sliderPressed();
void on_titleOffset_sliderPressed();
void on_labelOffset_valueChanged(int value);
void on_titleOffset_valueChanged(int value);
void on_close_clicked();
void on_applyToAll_clicked();
private:
Ui::IROOTAxisEditor *ui;
IROOTPad *iPad;
int previousLabelOffset;
int previousTitleOffset;
bool labelOffset_slider_pressed;
bool titleOffset_slider_pressed;
bool applyToAll;
QPoint mousePressOrigin;
void mousePressEvent(QMouseEvent *e){ mousePressOrigin = e->globalPos();}
void mouseMoveEvent(QMouseEvent *e){
if(e->buttons() & Qt::LeftButton ){
move(pos()-(mousePressOrigin-e->globalPos()));
mousePressOrigin = e->globalPos();
}
}
};
#endif // IROOTAXISEDITOR_H