-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.h
130 lines (97 loc) · 2.26 KB
/
menu.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
//
// Menu Class Header File
//
#ifndef MENU_H
#define MENU_H
#include <qwidget.h>
#include <qmenubar.h>
#include <qlabel.h>
#include <qmlined.h>
#include <qlined.h>
#include <qstring.h>
#include <qmainwindow.h>
#include "transfo.h"
#include "canvas.h"
class PropMenuLine: public QWidget {
Q_OBJECT
friend class Nplot;
private:
Nplot *nplot;
long thisline;
Canvas *canvas;
typecanvas *cv;
QPopupMenu *prop;
long *propmenulineflag;
public :
PropMenuLine(long thisline1, Canvas *canvas2, typecanvas *cv2, Nplot *nplot2,
QPopupMenu *prop1, long *propmenulineflag1){
thisline=thisline1;
nplot=nplot2;
canvas=canvas2;
cv=cv2;
prop=prop1;
propmenulineflag=propmenulineflag1;
}
public slots:
void change_numprop();
};
class GetData : public QMainWindow {
Q_OBJECT
public:
GetData(char *messtr, double *inputnumber1, Canvas *canvas1);
private:
QPushButton *apply,*dismiss;
QLabel *message;
QLineEdit *le;
long err;
double *inputnumber;
double inputnumber_tmp;
Canvas *canvas;
private slots:
void slotDismiss();
void slotApply();
void slotTextChanged(const QString & newText);
};
class Menu : public QWidget
{
Q_OBJECT
friend class Nplot;
public:
Menu( QWidget *parent=0, const char *name=0 );
void init(Nplot *nplot2);
void linkcanvas(typecanvas *cv2,Canvas *canvas2);
private slots:
void newwindow();
void closewindow();
void aboutNPlot();
void aboutinstanthelp();
void aboutQt();
void instanthelp();
void centerxycanvas();
void resetzoomfactor();
void setdatamin();
void setdatamax();
void scandatamin();
void scandatamax();
void rainbow();
void steelblue();
void gray();
void exit();
void propspacing();
void nonpropspacing();
void incscalelevels();
void decscalelevels();
private:
Nplot *nplot;
QMenuBar *menu;
typecanvas *cv;
Transfo transfo;
int rainbowID,steelblueID,grayID,propID,nonpropID;
QPopupMenu *scaletype;
QPopupMenu *nodespacing;
Canvas *canvas;
long propmenu;
PropMenuLine **propmenuline;
long *propmenulineflag;
};
#endif // MENU_H