-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmainwindow.h
52 lines (36 loc) · 921 Bytes
/
mainwindow.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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "ui_mainwindow.h"
#include <QList>
class QWidget;
class QMenu;
#include "filesnpdata.h"
class MainWindow : public QMainWindow, public Ui::MainWindow
{
Q_OBJECT
// PUBLIC METHODS
public:
MainWindow(QWidget* pwgt = 0);
// PRIVATE METHODS
private:
// creates empty QChart and ChartView
void setupChart();
// creates Configuration node in the TreeView
void setupConfigNode();
void saveConfig();
void loadConfig();
void clearAll();
void refreshEditors();
bool eventFilter(QObject* watched, QEvent* event);
void copyChart() const;
QMenu* copyMenu;
QMenu* deleteFileMenu;
int fileToBeRemoved;
void removeFile();
public slots:
// opens file selection window and reads the file
// called when clicking on "AddFile" button
void addFile();
};
#endif // MAINWINDOW_H