-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
284 lines (213 loc) · 8.33 KB
/
mainwindow.h
File metadata and controls
284 lines (213 loc) · 8.33 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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QDockWidget>
#include <QIcon>
#include <QLabel>
#include <QGridLayout>
#include <QSplitter>
#include <QPushButton>
#include <QFrame>
#include <QList>
#include <QComboBox>
#include <QTableWidget>
#include <QCheckBox>
#include <QScrollArea>
#include <QSlider>
#include <QTreeWidget>
#include <QRadioButton>
#include <QPixmap>
#include <QMap>
#include "report.h"
#include "dicomdb.h"
#include "categorybutton.h"
#include "studysliderwidget.h"
#include "reportselectionwidget.h"
#include "imageseriesselectionwidget.h"
#include "findingswidget.h"
#include "reporttree.h"
#include "analysiswidget.h"
#include "findingscolormapdialog.h"
//namespace Ui {
//class MainWindow;
//}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow(void);
protected:
QDockWidget* GetDockWidgetModule();
QSplitter* GetSplitter();
QLabel* GetLabelSlicerLogo();
QWidget* GetWidgetTop();
QWidget* GetWidgetBottom();
StudySliderWidget* GetStudySliderWidget();
ReportSelectionWidget* GetReportSelectionWidget();
ImageSeriesSelectionWidget* GetImageSeriesSelectionWidget();
FindingsWidget* GetFindingsWidget();
AnalysisWidget* GetAnalysisWidget();
ReportTree* GetReportTree();
FindingsColorMapDialog* GetFindingsColorMapDialog();
void InitializeMainWindow();
void InitializeDICOMDB();
QList<CategoryButton*> GetListCategoryButtons();
QPushButton* CreateTopPanelButton(const QString& text, QWidget* parent = NULL);
protected slots:
void SlotChangeStudyInView(int idx);
void SlotReportCreate(const QString& name);
void SlotReportChange(const QString& name);
void SlotReportRename(const QString& oldname, const QString& newname);
void SlotReportDelete(const QString& name);
void SlotFindingCreate(const QString& name);
void SlotFindingChange(const QString& name);
void SlotFindingRename(const QString& oldname, const QString& newname);
void SlotFindingDelete(const QString& name);
void SlotSegmentationCreate(const QString& name);
void SlotSegmentationChange(const QString& name);
void SlotSegmentationRename(const QString& oldname, const QString& newname);
void SlotSegmentationDelete(const QString& name);
void SlotImageSelectionPatientChanged(const QString& name);
void SlotImageSelectionStudySelected(int idx, bool selected);
void SlotReportTreeClicked(const QString& positionCode);
void SlotAnaylsisShowReportSummaryDialog();
void SlotAnalysisAddStudy(int studyIdx);
void SlotAnaylsisRemoveStudy(int studyIdx);
void SlotAnalysisQuantitativeSelected();
void SlotAnalysisQualitativeSelected();
Report* GetReportByName(const QString& name);
Finding* GetFindingByName(const QString& name);
Segmentation* GetSegmentationByName(const QString& name);
void SetSelectedReport(Report* report, bool renamed = false);
void SetSelectedPatient(Patient* patient, bool reportChanged = false);
void SetSelectedStudy(Study* study);
void SetSelectedFinding(Finding* finding, bool renamed = false, bool updateTree = true);
void SetSelectedSegmentation(Segmentation* segmentation, bool sliderChanged = false, bool renamed = false, bool updateTree = true);
QList<Study*> GetCurrentPatientsSelectedStudies();
QList<QString> GetCurrentPatientsSelectedStudyDates();
bool RemoveCurrentReportsSegmentationsForStudy(Study* study);
void UpdateTree();
private:
DICOMDB* m_DicomDB;
QMap<QDateTime,Study*> m_Studies;
QList<Report*> m_Reports;
Report* m_SelectedReport;
Patient* m_SelectedPatient;
Finding* m_SelectedFinding;
Segmentation* m_SelectedSegmentation;
Study* m_SelectedStudy;
QDockWidget* m_DockWidgetModule;
QSplitter* m_Splitter;
QLabel* m_LabelSlicerLogo;
QWidget* m_WidgetTop;
QWidget* m_WidgetBottom;
ReportSelectionWidget* m_ReportSelectionWidget;
ImageSeriesSelectionWidget* m_ImageSeriesSelectionWidget;
FindingsWidget* m_FindingsWidget;
AnalysisWidget* m_AnalysisWidget;
ReportTree* m_ReportTree;
StudySliderWidget* m_StudySliderWidget;
FindingsColorMapDialog* m_FindingsColorMapDialog;
QList<CategoryButton*> m_ListCategoryButtons;
QList<Study*> m_AllSelectedStudies;
//signals:
// void sig_ReportCreated(bool created);
//public slots:
// void SlotSetReport(Report* report);
//protected:
// void CreateConnections();
// void InitializeImageViewWidgets();
// void ChangeImageView(VIEW_TYPE type);
// void InitializeTopPanelElements();
// void InitializeBottomPanelElements();
// QFrame* CreateSeparator(QWidget* parent = NULL);
// QPushButton* CreateTopPanelButton(const QString& text, QWidget* parent = NULL);
//protected slots:
// void on_TopPanelButtonClicked(bool checked);
// void on_ShowTopPanelWidget(bool show, QPushButton* button);
// void on_ReportComboboxImageWidgetActivation(int selectedID);
// void on_PatientsComboboxFillTable(int selectedID);
// void on_TableCheckboxClicked(bool checked);
// void on_FindingsComboboxSelectionChanged(int index);
// void on_DisplayROIButtonClicked();
// void on_EnableFindingsWidgetContent(bool enable);
// // void on_AddSegmentationToFinding();
// void on_ShowSegmentationTypeWidget(bool show);
// void on_AnalysisViewChanged(bool show);
// void on_BottomPanelTreeWidgetItemPressed(QTreeWidgetItem* item, int column = 0);
//private:
// //Ui::MainWindow *ui;
// Report* m_Report;
// DICOMDB* m_DicomDB;
// QMap<int,Report*> m_Reports;
// QMap<QDateTime,Study*> m_Studies;
// //Central Widget
// QGridLayout* m_CentralWidgetLayout;
// QLabel* m_CentralWidgetLabel;
// //Dock Widget
// QDockWidget* m_DockWidgetLeft;
// QSplitter* m_DockWidgetLeftSplitter;
// QWidget* m_ModulePanelTop;
// QWidget* m_ModulePanelBottom;
// //Icons for Buttons
// QIcon m_ButtonIconOpened;
// QIcon m_ButtonIconClosed;
// QIcon m_ButtonIconShow;
// QIcon m_ButtonIconHide;
// //ImageViewWidgets
// QWidget* m_ImageViewWidget3D;
// QLabel* m_ImageViewWidget3DTitlebarLabel;
// QLabel* m_ImageViewWidget3DRenderAreaLabel;
// QWidget* m_ImageViewWidgetAxial;
// QLabel* m_ImageViewWidgetAxialTitlebarLabel;
// QLabel* m_ImageViewWidgetAxialRenderAreaLabel;
// QWidget* m_ImageViewWidgetSagittal;
// QLabel* m_ImageViewWidgetSagittalTitlebarLabel;
// QLabel* m_ImageViewWidgetSagittalRenderAreaLabel;
// QWidget* m_ImageViewWidgetCoronal;
// QLabel* m_ImageViewWidgetCoronalTitlebarLabel;
// QLabel* m_ImageViewWidgetCoronalRenderAreaLabel;
// //Top Panel Buttons
// QPushButton* m_HelpButton;
// QPushButton* m_ReportButton;
// QPushButton* m_ImagesButton;
// QPushButton* m_FindingsButton;
// QPushButton* m_AnalysisButton;
// QList<QPushButton*> m_TopPanelButtons;
// QList<QWidget*> m_TopPanelWidgets;
// QList<QCheckBox*> m_ImagesTableCheckBoxes;
// //Bottom Panel Elements
// StudySliderWidget* m_BottomPanelTimepointSliderWidget;
// QTreeWidget* m_BottomPanelTreeWidget;
// //ReportWidget
// QWidget* m_ReportWidget;
// QWidget* CreateReportWidget(QWidget* parent = NULL);
// QComboBox* m_ReportComboBox;
// //ImagesWidget
// QWidget* m_ImagesWidget;
// QComboBox* m_ImagesSelectPatientComboBox;
// QTableWidget* m_ImagesSelectImageTable;
// QWidget* CreateImagesWidget(QWidget* parent = NULL);
// //FindingsWidget
// QWidget* m_FindingsWidget;
// QComboBox* m_FindingsSelectComboBox;
// QPushButton* m_FindingsDisplayROIButton;
// QRadioButton* m_FindingsNewSegmentationRadioButton;
// QRadioButton* m_FindingsSelectSegmentationRadioButton;
// QLabel* m_FindingsOrLabel;
// QWidget* m_FindingsNewSegmentationWidget;
// QWidget* m_FindingsSelectSegmentationWidget;
// QPushButton* m_FindingsAddSegmentationButton;
// QWidget* CreateFindingsWidget(QWidget* parent = NULL);
// //AnalysisWidget
// QWidget* m_AnalysisWidget;
// QRadioButton* m_AnalysisQualitativeRadioButton;
// QRadioButton* m_AnalysisQuantitativeRadioButton;
// QList<QCheckBox*> m_AnalysisCheckboxes;
// QPushButton* m_AnalysisPrintReportButton;
// QWidget* CreateAnalysisWidget(QWidget* parent = NULL);
// //Dates and Times
// QStringList m_Dates, m_Times;
};
#endif // MAINWINDOW_H