-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.qml
61 lines (49 loc) · 1.48 KB
/
main.qml
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
import QtQuick 2.12
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.12
import QtQuick.Controls.Material 2.12
import QtQuick.Dialogs 1.2
import QtQuick.Window 2.13
import Qt.labs.settings 1.1
import App.Utility 1.0
import "ui" as Ui
ApplicationWindow {
id: appWindow
visible: true
width: Screen.width
height: Screen.height
title: qsTr("Brain DICOM")
menuBar: Ui.MenuBar {
id: menuBar
}
header: Ui.ToolBar {
id: toolBar
}
Ui.ContentPanel {
id: contentPanel
}
Ui.TableViewContextMenu {
id: tableViewPopup
}
footer: Ui.StatusBar {
id: statusBar
}
FileDialog {
id: fileDialog
onFileUrlChanged: {
if (Utility.fileExists(fileUrl)) {
appWindow.title = "Brain DICOM: [" + Utility.extractFileNameFromPath(fileUrl)+"]"
contentPanel.imageSource = fileUrl
dicomTagsModel.loadFromFile(fileUrl)
}
}
}
Settings {
property alias tableViewTagIdVisible: contentPanel.tableViewTagIdVisible
property alias tableViewVRVisible: contentPanel.tableViewVRVisible
property alias tableViewVMVisible: contentPanel.tableViewVMVisible
property alias tableViewLengthVisible: contentPanel.tableViewLengthVisible
property alias tableViewDescriptionVisible: contentPanel.tableViewDescriptionVisible
property alias tableViewValueVisible: contentPanel.tableViewValueVisible
}
}