2015-05-27 10:34:55 +00:00
|
|
|
import QtQuick 2.3
|
|
|
|
import QtQuick.Controls 1.2
|
|
|
|
import QtQuick.Window 2.2
|
2015-06-04 08:27:38 +00:00
|
|
|
import QtQuick.Dialogs 1.2
|
2015-05-27 10:34:55 +00:00
|
|
|
|
|
|
|
ApplicationWindow {
|
|
|
|
title: qsTr("Subsurface")
|
|
|
|
width: 500;
|
|
|
|
height: 700
|
2015-06-04 08:27:38 +00:00
|
|
|
|
|
|
|
FileDialog {
|
|
|
|
id: fileOpen
|
|
|
|
selectExisting: true
|
|
|
|
selectMultiple: true
|
|
|
|
}
|
|
|
|
|
2015-05-27 10:34:55 +00:00
|
|
|
menuBar: MenuBar {
|
|
|
|
Menu {
|
|
|
|
title: qsTr("File")
|
2015-06-04 08:27:38 +00:00
|
|
|
MenuItem {
|
|
|
|
text: qsTr("Open")
|
|
|
|
onTriggered: fileOpen.open()
|
|
|
|
}
|
|
|
|
|
2015-05-27 10:34:55 +00:00
|
|
|
MenuItem {
|
|
|
|
text: qsTr("Exit")
|
|
|
|
onTriggered: Qt.quit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|