-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
69 lines (46 loc) · 1.62 KB
/
mainwindow.h
File metadata and controls
69 lines (46 loc) · 1.62 KB
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QGraphicsSimpleTextItem>
#include "image.h"
#include "roi.h"
enum class ViewMode: char{MOVE, SELECT, EDIT};
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
static ViewMode viewMode(){return viewmode;}
static bool isAnonymized(){return anonymized;}
private slots:
void on_actionOpen_triggered();
void on_sliderImSelector_valueChanged(int newNumSlice);
void on_actionImport_ROI_s_triggered();
void on_actionDelete_all_ROIs_triggered();
void on_action_Select_triggered(bool checked);
void on_action_Move_triggered(bool checked);
void on_action_Edit_triggered(bool checked);
void on_action_Anonymize_triggered(bool checked);
private:
Ui::MainWindow *ui;
static ViewMode viewmode;
static bool anonymized;
metaInfoGlobal_s metaInfoGlobal;
QList<slice_s> slicesList;
//QList<roiImage_s> roiImageList;
QGraphicsScene* sceneWelcomeText_p; // stay with QGraphics scene to avoid mouse effects
QGraphicsSimpleTextItem* welcomeTextItem_p;
void setViewMode(ViewMode newViewMode){viewmode = newViewMode;}
void openImages();
bool parseSlices(metaInfoGlobal_s& metaInfoGlobalTmp, std::list<slice_s>& slicesListTmp);
bool loadImages(metaInfoGlobal_s& metaInfoGlobalTmp, std::list<slice_s>& slicesListTmp);
void importROIs();
void deleteImportingROIs(QList<roiImport_s>& roiImageListTmp);
void displayAllROIs();
void deleteAllROIs();
};
#endif // MAINWINDOW_H