-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappw.h
57 lines (45 loc) · 949 Bytes
/
appw.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
#ifndef APPW_H
#define APPW_H
#include <QMainWindow>
class QAction;
class QMenu;
class Plot;
class AppWindow : public QMainWindow
{
Q_OBJECT
public:
AppWindow();
void setDataFile(const QString & name,const QString & format);
protected:
void quitEvent(QCloseEvent *event);
private slots:
void open();
void move();
void scale();
void fclose();
void about();
// void needsSave();
private:
QString dataFile;
void addActions();
void addMenus();
// void addStatusBar();
// void addToolBar();
Plot *plot;
QMenu *fileMenu;
QMenu *editMenu;
QMenu *viewMenu;
QMenu *helpMenu;
QAction *openAction;
QAction *exportAction;
QAction *printAction;
QAction *closeAction;
QAction *quitAction;
QAction *moveAction;
QAction *scaleAction;
QAction *zoomFitAction;
QAction *aboutAction;
QAction *aboutQtAction;
bool checkSave();
};
#endif