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-07-10 08:05:13 +00:00
|
|
|
import QtQuick.Layouts 1.1
|
2015-06-04 10:36:36 +00:00
|
|
|
import org.subsurfacedivelog.mobile 1.0
|
2015-05-27 10:34:55 +00:00
|
|
|
|
|
|
|
ApplicationWindow {
|
2015-07-12 17:42:23 +00:00
|
|
|
title: qsTr("Subsurface mobile")
|
|
|
|
property bool fullscreen: true
|
|
|
|
visible: true
|
2015-06-04 08:27:38 +00:00
|
|
|
|
2015-06-04 10:36:36 +00:00
|
|
|
QMLManager {
|
|
|
|
id: manager
|
2015-06-04 08:27:38 +00:00
|
|
|
}
|
|
|
|
|
2015-07-10 08:05:13 +00:00
|
|
|
Preferences {
|
|
|
|
id: prefsWindow
|
2015-05-27 10:34:55 +00:00
|
|
|
}
|
2015-06-09 19:20:44 +00:00
|
|
|
|
2015-07-10 08:05:13 +00:00
|
|
|
ColumnLayout {
|
|
|
|
id: layout
|
|
|
|
anchors.fill: parent
|
|
|
|
spacing: 4
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: topPart
|
|
|
|
height: 35
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.maximumHeight: 35
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
Button {
|
|
|
|
id: prefsButton
|
|
|
|
text: "Preferences"
|
|
|
|
onClicked: {
|
|
|
|
prefsWindow.show()
|
|
|
|
}
|
|
|
|
}
|
2015-06-09 19:20:44 +00:00
|
|
|
|
2015-07-10 08:05:13 +00:00
|
|
|
Button {
|
2015-07-10 08:31:24 +00:00
|
|
|
id: loadDivesButton
|
|
|
|
text: "Load Dives"
|
2015-07-10 08:05:13 +00:00
|
|
|
onClicked: {
|
2015-07-10 08:31:24 +00:00
|
|
|
manager.loadDives();
|
2015-07-10 08:05:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-06-10 18:39:43 +00:00
|
|
|
|
2015-07-10 08:05:13 +00:00
|
|
|
}
|
2015-06-10 18:39:43 +00:00
|
|
|
|
2015-07-10 08:05:13 +00:00
|
|
|
Rectangle {
|
2015-07-10 08:40:30 +00:00
|
|
|
id: detailsPage
|
2015-07-10 08:05:13 +00:00
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
2015-07-10 08:40:30 +00:00
|
|
|
Layout.minimumWidth: 100
|
|
|
|
Layout.preferredHeight: 400
|
|
|
|
Layout.preferredWidth: 200
|
2015-06-10 18:39:43 +00:00
|
|
|
|
2015-07-10 08:40:30 +00:00
|
|
|
DiveList {
|
|
|
|
anchors.fill: detailsPage
|
|
|
|
id: diveDetails
|
2015-07-10 08:05:13 +00:00
|
|
|
}
|
2015-06-09 19:20:44 +00:00
|
|
|
}
|
2015-07-10 08:40:30 +00:00
|
|
|
|
2015-06-09 19:20:44 +00:00
|
|
|
}
|
2015-05-27 10:34:55 +00:00
|
|
|
}
|