-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
92 lines (68 loc) · 1.98 KB
/
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
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QFileDialog>
#include <QDir>
#include <QDebug>
#include <QMessageBox>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QUrl>
#include <QDesktopServices>
#include <QSettings>
#include <QDesktopWidget>
#include <QUndoStack>
#include <QUndoView>
#include <QVector4D>
#include <QWhatsThis>
#include <QShortcut>
#include <nifti1.h>
#include <nifti1_io.h>
#include "displayinfo.h"
#include "niftimage.h"
#include "util.h"
#include "exception.h"
#include "subjectconfig.h"
#include "tracing.h"
#include "view_axialcoronallores.h"
#include "view_axialcoronalhires.h"
#include "quazip.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
protected:
Ui::MainWindow *ui;
bool userRequestedUpdate;
QDateTime lastUpdateCheck;
QString defaultOpenPath;
QString defaultSavePath;
NIFTImage *fatImage;
NIFTImage *waterImage;
SubjectConfig *subConfig;
TracingData *tracingData;
QuaZip *imageZip;
QuaZip *tracingResultsZip;
WindowViewType windowViewType;
const QString updateURLString = "https://api.github.com/repos/addisonElliott/SIUE-Fat-Segmentation-Tool/releases/latest";
const QString manualURLString = "https://github.com/addisonElliott/SIUE-Fat-Segmentation-Tool/releases/latest";
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void readSettings();
void writeSettings();
void switchView(WindowViewType type);
void checkForUpdates(bool userRequestedUpdate = false);
friend class viewAxialCoronalLoRes;
friend class viewAxialCoronalHiRes;
private slots:
void networkManager_replyFinished(QNetworkReply *reply);
void on_actionExit_triggered();
void on_actionAbout_triggered();
void on_actionCheckForUpdates_triggered();
void on_actionAxialCoronalLoRes_triggered(bool checked);
void on_actionAxialCoronalHiRes_triggered(bool checked);
};
#endif // MAINWINDOW_H