| 
									
										
										
										
											2017-04-27 20:30:36 +02:00
										 |  |  | // SPDX-License-Identifier: GPL-2.0
 | 
					
						
							| 
									
										
										
										
											2017-10-29 08:44:06 +01:00
										 |  |  | import QtQuick 2.6 | 
					
						
							| 
									
										
										
										
											2017-10-29 13:44:22 +01:00
										 |  |  | import QtQuick.Controls 2.2 as Controls | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | import QtQuick.Dialogs 1.2 | 
					
						
							| 
									
										
										
										
											2017-10-30 11:26:47 +01:00
										 |  |  | import QtQuick.Layouts 1.2 | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | import org.subsurfacedivelog.mobile 1.0 | 
					
						
							| 
									
										
										
										
											2018-09-27 22:09:26 +02:00
										 |  |  | import org.kde.kirigami 2.4 as Kirigami | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | Item { | 
					
						
							| 
									
										
										
										
											2016-01-12 01:15:02 +01:00
										 |  |  | 	id: detailsEdit | 
					
						
							|  |  |  | 	property int dive_id | 
					
						
							|  |  |  | 	property int number | 
					
						
							| 
									
										
										
										
											2016-01-05 06:59:04 -08:00
										 |  |  | 	property alias dateText: txtDate.text | 
					
						
							| 
									
										
										
										
											2018-03-09 15:24:54 +01:00
										 |  |  | 	property alias locationText: locationBox.editText | 
					
						
							|  |  |  | 	property alias locationIndex: locationBox.currentIndex | 
					
						
							| 
									
										
										
										
											2016-04-15 05:17:39 -07:00
										 |  |  | 	property alias gpsText: txtGps.text | 
					
						
							| 
									
										
										
										
											2015-12-26 22:57:47 -08:00
										 |  |  | 	property alias airtempText: txtAirTemp.text | 
					
						
							|  |  |  | 	property alias watertempText: txtWaterTemp.text | 
					
						
							| 
									
										
										
										
											2016-05-16 19:59:05 +02:00
										 |  |  | 	property alias suitIndex: suitBox.currentIndex | 
					
						
							| 
									
										
										
										
											2018-02-11 12:06:27 +01:00
										 |  |  | 	property alias suitText: suitBox.editText | 
					
						
							| 
									
										
										
										
											2016-05-16 19:59:05 +02:00
										 |  |  | 	property alias buddyIndex: buddyBox.currentIndex | 
					
						
							| 
									
										
										
										
											2018-02-11 12:06:27 +01:00
										 |  |  | 	property alias buddyText: buddyBox.editText | 
					
						
							| 
									
										
										
										
											2016-05-16 19:59:05 +02:00
										 |  |  | 	property alias divemasterIndex: divemasterBox.currentIndex | 
					
						
							| 
									
										
										
										
											2018-02-11 12:06:27 +01:00
										 |  |  | 	property alias divemasterText: divemasterBox.editText | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 	property alias cylinderIndex0: cylinderBox0.currentIndex | 
					
						
							|  |  |  | 	property alias cylinderIndex1: cylinderBox1.currentIndex | 
					
						
							|  |  |  | 	property alias cylinderIndex2: cylinderBox2.currentIndex | 
					
						
							|  |  |  | 	property alias cylinderIndex3: cylinderBox3.currentIndex | 
					
						
							|  |  |  | 	property alias cylinderIndex4: cylinderBox4.currentIndex | 
					
						
							| 
									
										
										
										
											2015-12-26 22:57:47 -08:00
										 |  |  | 	property alias notesText: txtNotes.text | 
					
						
							| 
									
										
										
										
											2016-01-01 00:23:15 -08:00
										 |  |  | 	property alias durationText: txtDuration.text | 
					
						
							| 
									
										
										
										
											2016-01-01 00:32:30 -08:00
										 |  |  | 	property alias depthText: txtDepth.text | 
					
						
							| 
									
										
										
										
											2016-01-28 18:26:37 -08:00
										 |  |  | 	property alias weightText: txtWeight.text | 
					
						
							| 
									
										
										
										
											2018-07-28 15:07:43 +02:00
										 |  |  | 	property var usedGas: [] | 
					
						
							| 
									
										
										
										
											2018-08-06 09:34:39 +02:00
										 |  |  | 	property var endpressure: [] | 
					
						
							|  |  |  | 	property var startpressure: [] | 
					
						
							| 
									
										
										
										
											2016-04-15 05:17:39 -07:00
										 |  |  | 	property alias gpsCheckbox: checkboxGPS.checked | 
					
						
							| 
									
										
										
										
											2016-05-20 18:48:36 +02:00
										 |  |  | 	property alias suitModel: suitBox.model | 
					
						
							|  |  |  | 	property alias divemasterModel: divemasterBox.model | 
					
						
							|  |  |  | 	property alias buddyModel: buddyBox.model | 
					
						
							| 
									
										
										
										
											2018-07-28 15:43:05 +02:00
										 |  |  | 	property alias cylinderModel0: cylinderBox0.model | 
					
						
							|  |  |  | 	property alias cylinderModel1: cylinderBox1.model | 
					
						
							|  |  |  | 	property alias cylinderModel2: cylinderBox2.model | 
					
						
							|  |  |  | 	property alias cylinderModel3: cylinderBox3.model | 
					
						
							|  |  |  | 	property alias cylinderModel4: cylinderBox4.model | 
					
						
							| 
									
										
										
										
											2018-03-09 15:24:54 +01:00
										 |  |  | 	property alias locationModel: locationBox.model | 
					
						
							| 
									
										
										
										
											2017-07-28 17:43:26 +02:00
										 |  |  | 	property int rating | 
					
						
							|  |  |  | 	property int visibility | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 	property var usedCyl: [] | 
					
						
							| 
									
										
										
										
											2016-01-28 18:26:37 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
											
												mobile: clear internal data when edit/add dive is finished
When editing (or adding) a dive, the internal data containing the
attributes on the edit page was not cleared when editing was
finished (in any way, by saving the edit or by cancelling it).
As long as the user only edits existing dives, all this poses
no problem, as at the start of a dive edit, the data is filled
from the dive to be edited. However, when adding a dive, data
coming from previous edits shows up. This not clearing data
also causes the strange effect as written in issue #950: adding
a dive, deleting it, and adding a dive again, added the first
added dive data, without the edit screen being shown.
All this can be solved by clearing the data from the edit when
editing is done.
Fixes: #950
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
											
										 
											2017-12-15 17:13:15 +01:00
										 |  |  | 	function clearDetailsEdit() { | 
					
						
							|  |  |  | 		detailsEdit.dive_id = 0 | 
					
						
							|  |  |  | 		detailsEdit.number = 0 | 
					
						
							|  |  |  | 		detailsEdit.dateText = "" | 
					
						
							|  |  |  | 		detailsEdit.locationText = "" | 
					
						
							|  |  |  | 		detailsEdit.durationText = "" | 
					
						
							|  |  |  | 		detailsEdit.depthText = "" | 
					
						
							|  |  |  | 		detailsEdit.airtempText = "" | 
					
						
							|  |  |  | 		detailsEdit.watertempText = "" | 
					
						
							| 
									
										
										
										
											2018-01-28 11:28:01 +01:00
										 |  |  | 		detailsEdit.divemasterText = "" | 
					
						
							|  |  |  | 		detailsEdit.buddyText = "" | 
					
						
							| 
									
										
										
											
												mobile: clear internal data when edit/add dive is finished
When editing (or adding) a dive, the internal data containing the
attributes on the edit page was not cleared when editing was
finished (in any way, by saving the edit or by cancelling it).
As long as the user only edits existing dives, all this poses
no problem, as at the start of a dive edit, the data is filled
from the dive to be edited. However, when adding a dive, data
coming from previous edits shows up. This not clearing data
also causes the strange effect as written in issue #950: adding
a dive, deleting it, and adding a dive again, added the first
added dive data, without the edit screen being shown.
All this can be solved by clearing the data from the edit when
editing is done.
Fixes: #950
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
											
										 
											2017-12-15 17:13:15 +01:00
										 |  |  | 		suitBox.currentIndex = -1 | 
					
						
							|  |  |  | 		buddyBox.currentIndex = -1 | 
					
						
							|  |  |  | 		divemasterBox.currentIndex = -1 | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 		cylinderBox0.currentIndex = -1 | 
					
						
							|  |  |  | 		cylinderBox1.currentIndex = -1 | 
					
						
							|  |  |  | 		cylinderBox2.currentIndex = -1 | 
					
						
							|  |  |  | 		cylinderBox3.currentIndex = -1 | 
					
						
							|  |  |  | 		cylinderBox4.currentIndex = -1 | 
					
						
							| 
									
										
										
											
												mobile: clear internal data when edit/add dive is finished
When editing (or adding) a dive, the internal data containing the
attributes on the edit page was not cleared when editing was
finished (in any way, by saving the edit or by cancelling it).
As long as the user only edits existing dives, all this poses
no problem, as at the start of a dive edit, the data is filled
from the dive to be edited. However, when adding a dive, data
coming from previous edits shows up. This not clearing data
also causes the strange effect as written in issue #950: adding
a dive, deleting it, and adding a dive again, added the first
added dive data, without the edit screen being shown.
All this can be solved by clearing the data from the edit when
editing is done.
Fixes: #950
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
											
										 
											2017-12-15 17:13:15 +01:00
										 |  |  | 		detailsEdit.notesText = "" | 
					
						
							|  |  |  | 		detailsEdit.rating = 0 | 
					
						
							|  |  |  | 		detailsEdit.visibility = 0 | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-13 21:25:10 -08:00
										 |  |  | 	function saveData() { | 
					
						
							| 
									
										
										
										
											2018-07-29 15:42:56 +02:00
										 |  |  | 		var state =  diveDetailsPage.state | 
					
						
							| 
									
										
										
										
											2017-10-04 21:53:40 -07:00
										 |  |  | 		diveDetailsPage.state = "view" // run the transition
 | 
					
						
							| 
									
										
										
										
											2018-07-16 18:01:56 +02:00
										 |  |  | 		// join cylinder info from separate string into a list.
 | 
					
						
							|  |  |  | 		if (usedCyl[0] != null) { | 
					
						
							|  |  |  | 			usedCyl[0] = cylinderBox0.currentText | 
					
						
							| 
									
										
										
										
											2018-08-06 09:29:00 +02:00
										 |  |  | 			usedGas[0] = txtGasMix0.text | 
					
						
							| 
									
										
										
										
											2018-08-06 09:34:39 +02:00
										 |  |  | 			startpressure[0] = txtStartPressure0.text | 
					
						
							|  |  |  | 			endpressure[0] = txtEndPressure0.text | 
					
						
							| 
									
										
										
										
											2018-07-16 18:01:56 +02:00
										 |  |  | 		} | 
					
						
							|  |  |  | 		if (usedCyl[1] != null) { | 
					
						
							|  |  |  | 			usedCyl[1] = cylinderBox1.currentText | 
					
						
							| 
									
										
										
										
											2018-08-06 09:29:00 +02:00
										 |  |  | 			usedGas[1] = txtGasMix0.text | 
					
						
							| 
									
										
										
										
											2018-08-06 09:34:39 +02:00
										 |  |  | 			startpressure[1] = txtStartPressure1.text | 
					
						
							|  |  |  | 			endpressure[1] = txtEndPressure1.text | 
					
						
							| 
									
										
										
										
											2018-07-16 18:01:56 +02:00
										 |  |  | 		} | 
					
						
							|  |  |  | 		if (usedCyl[2] != null) { | 
					
						
							|  |  |  | 			usedCyl[2] = cylinderBox2.currentText | 
					
						
							| 
									
										
										
										
											2018-08-06 09:29:00 +02:00
										 |  |  | 			usedGas[2] = txtGasMix0.text | 
					
						
							| 
									
										
										
										
											2018-08-06 09:34:39 +02:00
										 |  |  | 			startpressure[2] = txtStartPressure2.text | 
					
						
							|  |  |  | 			endpressure[2] = txtEndPressure2.text | 
					
						
							| 
									
										
										
										
											2018-07-16 18:01:56 +02:00
										 |  |  | 		} | 
					
						
							|  |  |  | 		if (usedCyl[3] != null) { | 
					
						
							|  |  |  | 			usedCyl[3] = cylinderBox3.currentText | 
					
						
							| 
									
										
										
										
											2018-08-06 09:29:00 +02:00
										 |  |  | 			usedGas[3] = txtGasMix0.text | 
					
						
							| 
									
										
										
										
											2018-08-06 09:34:39 +02:00
										 |  |  | 			startpressure[3] = txtStartPressure3.text | 
					
						
							|  |  |  | 			endpressure[3] = txtEndPressure3.text | 
					
						
							| 
									
										
										
										
											2018-07-16 18:01:56 +02:00
										 |  |  | 		} | 
					
						
							|  |  |  | 		if (usedCyl[4] != null) { | 
					
						
							|  |  |  | 			usedCyl[4] = cylinderBox4.currentText | 
					
						
							| 
									
										
										
										
											2018-08-06 09:29:00 +02:00
										 |  |  | 			usedGas[4] = txtGasMix0.text | 
					
						
							| 
									
										
										
										
											2018-08-06 09:34:39 +02:00
										 |  |  | 			startpressure[4] = txtStartPressure4.text | 
					
						
							|  |  |  | 			endpressure[4] = txtEndPressure4.text | 
					
						
							| 
									
										
										
										
											2018-07-16 18:01:56 +02:00
										 |  |  | 		} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-13 21:25:10 -08:00
										 |  |  | 		// apply the changes to the dive_table
 | 
					
						
							| 
									
										
										
										
											2018-03-09 15:24:54 +01:00
										 |  |  | 		manager.commitChanges(dive_id, detailsEdit.dateText, locationBox.editText, detailsEdit.gpsText, detailsEdit.durationText, | 
					
						
							| 
									
										
										
										
											2018-02-11 12:06:27 +01:00
										 |  |  | 				      detailsEdit.depthText, detailsEdit.airtempText, detailsEdit.watertempText, | 
					
						
							| 
									
										
										
										
											2018-09-18 07:35:53 +02:00
										 |  |  | 				      suitBox.editText, buddyBox.editText, divemasterBox.editText, | 
					
						
							| 
									
										
										
										
											2018-08-06 09:34:39 +02:00
										 |  |  | 				      detailsEdit.weightText, detailsEdit.notesText, startpressure, | 
					
						
							|  |  |  | 				      endpressure, usedGas, usedCyl , | 
					
						
							| 
									
										
										
										
											2018-02-11 12:06:27 +01:00
										 |  |  | 				      detailsEdit.rating, | 
					
						
							| 
									
										
										
										
											2018-07-29 15:42:56 +02:00
										 |  |  | 				      detailsEdit.visibility, state) | 
					
						
							| 
									
										
										
										
											2016-02-28 15:49:21 +01:00
										 |  |  | 		// trigger the profile to be redrawn
 | 
					
						
							|  |  |  | 		QMLProfile.diveId = dive_id | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-13 21:25:10 -08:00
										 |  |  | 		// apply the changes to the dive detail view - since the edit could have changed the order
 | 
					
						
							|  |  |  | 		// first make sure that we are looking at the correct dive - our model allows us to look
 | 
					
						
							|  |  |  | 		// up the index based on the unique dive_id
 | 
					
						
							| 
									
										
										
										
											2016-03-02 09:02:00 -08:00
										 |  |  | 		var newIdx = diveModel.getIdxForId(dive_id) | 
					
						
							|  |  |  | 		diveDetailsListView.currentIndex = newIdx | 
					
						
							| 
									
										
										
										
											2016-02-13 21:25:10 -08:00
										 |  |  | 		diveDetailsListView.currentItem.modelData.date = detailsEdit.dateText | 
					
						
							| 
									
										
										
										
											2018-03-09 15:24:54 +01:00
										 |  |  | 		diveDetailsListView.currentItem.modelData.location = locationBox.currentText | 
					
						
							| 
									
										
										
										
											2016-02-13 21:25:10 -08:00
										 |  |  | 		diveDetailsListView.currentItem.modelData.duration = detailsEdit.durationText | 
					
						
							|  |  |  | 		diveDetailsListView.currentItem.modelData.depth = detailsEdit.depthText | 
					
						
							|  |  |  | 		diveDetailsListView.currentItem.modelData.airtemp = detailsEdit.airtempText | 
					
						
							|  |  |  | 		diveDetailsListView.currentItem.modelData.watertemp = detailsEdit.watertempText | 
					
						
							| 
									
										
										
										
											2016-05-16 19:59:05 +02:00
										 |  |  | 		diveDetailsListView.currentItem.modelData.suit = suitBox.currentText | 
					
						
							|  |  |  | 		diveDetailsListView.currentItem.modelData.buddy = buddyBox.currentText | 
					
						
							|  |  |  | 		diveDetailsListView.currentItem.modelData.divemaster = divemasterBox.currentText | 
					
						
							| 
									
										
										
										
											2016-02-13 21:25:10 -08:00
										 |  |  | 		diveDetailsListView.currentItem.modelData.notes = detailsEdit.notesText | 
					
						
							| 
									
										
										
										
											2017-07-28 19:28:52 +02:00
										 |  |  | 		diveDetailsListView.currentItem.modelData.rating = detailsEdit.rating | 
					
						
							|  |  |  | 		diveDetailsListView.currentItem.modelData.visibility = detailsEdit.visibility | 
					
						
							| 
									
										
										
										
											2016-02-13 21:25:10 -08:00
										 |  |  | 		Qt.inputMethod.hide() | 
					
						
							| 
									
										
										
										
											2016-03-02 04:47:51 -08:00
										 |  |  | 		// now make sure we directly show the saved dive (this may be a new dive, or it may have moved)
 | 
					
						
							| 
									
										
										
										
											2016-03-02 09:02:00 -08:00
										 |  |  | 		showDiveIndex(newIdx) | 
					
						
							| 
									
										
										
											
												mobile: clear internal data when edit/add dive is finished
When editing (or adding) a dive, the internal data containing the
attributes on the edit page was not cleared when editing was
finished (in any way, by saving the edit or by cancelling it).
As long as the user only edits existing dives, all this poses
no problem, as at the start of a dive edit, the data is filled
from the dive to be edited. However, when adding a dive, data
coming from previous edits shows up. This not clearing data
also causes the strange effect as written in issue #950: adding
a dive, deleting it, and adding a dive again, added the first
added dive data, without the edit screen being shown.
All this can be solved by clearing the data from the edit when
editing is done.
Fixes: #950
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
											
										 
											2017-12-15 17:13:15 +01:00
										 |  |  | 		clearDetailsEdit() | 
					
						
							| 
									
										
										
										
											2016-02-13 21:25:10 -08:00
										 |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-01-20 14:07:06 -08:00
										 |  |  | 	height: editArea.height | 
					
						
							| 
									
										
										
										
											2017-10-04 12:27:13 -07:00
										 |  |  | 	width: diveDetailsPage.width - diveDetailsPage.leftPadding - diveDetailsPage.rightPadding - Kirigami.Units.smallSpacing * 2 | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 	ColumnLayout { | 
					
						
							| 
									
										
										
										
											2016-01-20 14:07:06 -08:00
										 |  |  | 		id: editArea | 
					
						
							| 
									
										
										
										
											2016-03-08 21:26:54 +01:00
										 |  |  | 		spacing: Kirigami.Units.smallSpacing | 
					
						
							| 
									
										
										
										
											2017-07-31 19:43:56 +02:00
										 |  |  | 		width: parent.width | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 		GridLayout { | 
					
						
							|  |  |  | 			id: editorDetails | 
					
						
							|  |  |  | 			width: parent.width | 
					
						
							|  |  |  | 			columns: 2 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-08 21:26:54 +01:00
										 |  |  | 			Kirigami.Heading { | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 				Layout.columnSpan: 2 | 
					
						
							| 
									
										
										
										
											2016-05-03 21:24:00 +02:00
										 |  |  | 				text: qsTr("Dive %1").arg(number) | 
					
						
							| 
									
										
										
										
											2016-01-05 06:59:04 -08:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.Label { | 
					
						
							| 
									
										
										
										
											2016-01-05 06:59:04 -08:00
										 |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							| 
									
										
										
										
											2016-05-03 21:24:00 +02:00
										 |  |  | 				text: qsTr("Date:") | 
					
						
							| 
									
										
										
										
											2017-07-28 20:09:59 +02:00
										 |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							| 
									
										
										
										
											2016-01-05 06:59:04 -08:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.TextField { | 
					
						
							| 
									
										
										
										
											2016-01-05 06:59:04 -08:00
										 |  |  | 				id: txtDate; | 
					
						
							|  |  |  | 				Layout.fillWidth: true | 
					
						
							| 
									
										
										
										
											2017-07-31 18:37:19 +02:00
										 |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.Label { | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							| 
									
										
										
										
											2016-05-03 21:24:00 +02:00
										 |  |  | 				text: qsTr("Location:") | 
					
						
							| 
									
										
										
										
											2017-07-28 20:09:59 +02:00
										 |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2018-02-11 12:06:27 +01:00
										 |  |  | 			Controls.ComboBox { | 
					
						
							| 
									
										
										
										
											2018-03-09 15:24:54 +01:00
										 |  |  | 				id: locationBox | 
					
						
							| 
									
										
										
										
											2018-02-11 12:06:27 +01:00
										 |  |  | 				editable: true | 
					
						
							|  |  |  | 				flat: true | 
					
						
							|  |  |  | 				model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ? | 
					
						
							| 
									
										
										
										
											2018-03-09 14:49:15 +01:00
										 |  |  | 					manager.locationList : null | 
					
						
							| 
									
										
										
										
											2017-11-22 16:19:44 +01:00
										 |  |  | 				inputMethodHints: Qt.ImhNoPredictiveText | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							| 
									
										
										
										
											2018-02-11 12:06:27 +01:00
										 |  |  | 				onAccepted: { | 
					
						
							| 
									
										
										
										
											2018-02-11 16:23:04 +01:00
										 |  |  | 					focus = false | 
					
						
							| 
									
										
										
										
											2018-03-09 17:27:13 +01:00
										 |  |  | 					gpsText = manager.getGpsFromSiteName(editText) | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				onActivated: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 					gpsText = manager.getGpsFromSiteName(editText) | 
					
						
							| 
									
										
										
										
											2017-11-22 19:22:02 +01:00
										 |  |  | 				} | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.Label { | 
					
						
							| 
									
										
										
										
											2016-04-15 05:17:39 -07:00
										 |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							| 
									
										
										
										
											2016-05-03 21:24:00 +02:00
										 |  |  | 				text: qsTr("Coordinates:") | 
					
						
							| 
									
										
										
										
											2017-07-28 20:09:59 +02:00
										 |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							| 
									
										
										
										
											2016-04-15 05:17:39 -07:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.TextField { | 
					
						
							| 
									
										
										
										
											2016-04-15 05:17:39 -07:00
										 |  |  | 				id: txtGps | 
					
						
							|  |  |  | 				Layout.fillWidth: true | 
					
						
							| 
									
										
										
										
											2017-07-31 18:37:19 +02:00
										 |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							| 
									
										
										
										
											2016-04-15 05:17:39 -07:00
										 |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.Label { | 
					
						
							| 
									
										
										
										
											2016-01-01 17:23:29 -08:00
										 |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							| 
									
										
										
										
											2016-05-03 21:24:00 +02:00
										 |  |  | 				text: qsTr("Use current\nGPS location:") | 
					
						
							| 
									
										
										
										
											2016-04-17 22:57:14 -07:00
										 |  |  | 				visible: manager.locationServiceAvailable | 
					
						
							| 
									
										
										
										
											2017-07-28 20:09:59 +02:00
										 |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							| 
									
										
										
										
											2016-01-01 17:23:29 -08:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-07-24 20:29:32 +02:00
										 |  |  | 			SsrfCheckBox { | 
					
						
							| 
									
										
										
										
											2016-01-01 17:23:29 -08:00
										 |  |  | 				id: checkboxGPS | 
					
						
							| 
									
										
										
										
											2016-04-17 22:57:14 -07:00
										 |  |  | 				visible: manager.locationServiceAvailable | 
					
						
							| 
									
										
										
										
											2016-01-01 17:23:29 -08:00
										 |  |  | 				onCheckedChanged: { | 
					
						
							|  |  |  | 					if (checked) | 
					
						
							|  |  |  | 						gpsText = manager.getCurrentPosition() | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2018-04-14 11:12:07 -07:00
										 |  |  | 			Connections { | 
					
						
							|  |  |  | 				target: manager | 
					
						
							|  |  |  | 				onWaitingForPositionChanged: { | 
					
						
							|  |  |  | 					gpsText = manager.getCurrentPosition() | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2015-12-26 22:57:47 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.Label { | 
					
						
							| 
									
										
										
										
											2016-01-01 00:32:30 -08:00
										 |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							| 
									
										
										
										
											2016-05-03 21:24:00 +02:00
										 |  |  | 				text: qsTr("Depth:") | 
					
						
							| 
									
										
										
										
											2017-07-28 20:09:59 +02:00
										 |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							| 
									
										
										
										
											2016-01-01 00:32:30 -08:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.TextField { | 
					
						
							| 
									
										
										
										
											2016-01-01 00:32:30 -08:00
										 |  |  | 				id: txtDepth | 
					
						
							|  |  |  | 				Layout.fillWidth: true | 
					
						
							| 
									
										
										
										
											2016-02-20 21:50:11 -08:00
										 |  |  | 				validator: RegExpValidator { regExp: /[^-]*/ } | 
					
						
							| 
									
										
										
										
											2017-07-31 18:37:19 +02:00
										 |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							| 
									
										
										
										
											2016-01-01 00:32:30 -08:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.Label { | 
					
						
							| 
									
										
										
										
											2016-01-01 00:23:15 -08:00
										 |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							| 
									
										
										
										
											2016-05-03 21:24:00 +02:00
										 |  |  | 				text: qsTr("Duration:") | 
					
						
							| 
									
										
										
										
											2017-07-28 20:09:59 +02:00
										 |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							| 
									
										
										
										
											2016-01-01 00:23:15 -08:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.TextField { | 
					
						
							| 
									
										
										
										
											2016-01-01 00:23:15 -08:00
										 |  |  | 				id: txtDuration | 
					
						
							|  |  |  | 				Layout.fillWidth: true | 
					
						
							| 
									
										
										
										
											2016-02-20 21:50:11 -08:00
										 |  |  | 				validator: RegExpValidator { regExp: /[^-]*/ } | 
					
						
							| 
									
										
										
										
											2017-07-31 18:37:19 +02:00
										 |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							| 
									
										
										
										
											2016-01-01 00:23:15 -08:00
										 |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.Label { | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							| 
									
										
										
										
											2016-05-03 21:24:00 +02:00
										 |  |  | 				text: qsTr("Air Temp:") | 
					
						
							| 
									
										
										
										
											2017-07-31 15:55:30 +02:00
										 |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.TextField { | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 				id: txtAirTemp | 
					
						
							|  |  |  | 				Layout.fillWidth: true | 
					
						
							| 
									
										
										
										
											2017-07-31 18:37:19 +02:00
										 |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.Label { | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							| 
									
										
										
										
											2016-05-03 21:24:00 +02:00
										 |  |  | 				text: qsTr("Water Temp:") | 
					
						
							| 
									
										
										
										
											2017-07-28 20:09:59 +02:00
										 |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.TextField { | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 				id: txtWaterTemp | 
					
						
							|  |  |  | 				Layout.fillWidth: true | 
					
						
							| 
									
										
										
										
											2017-07-31 18:37:19 +02:00
										 |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.Label { | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							| 
									
										
										
										
											2016-05-03 21:24:00 +02:00
										 |  |  | 				text: qsTr("Suit:") | 
					
						
							| 
									
										
										
										
											2017-07-28 20:09:59 +02:00
										 |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2018-02-11 12:06:27 +01:00
										 |  |  | 			Controls.ComboBox { | 
					
						
							| 
									
										
										
										
											2016-05-16 19:59:05 +02:00
										 |  |  | 				id: suitBox | 
					
						
							| 
									
										
										
										
											2018-02-11 12:06:27 +01:00
										 |  |  | 				editable: true | 
					
						
							|  |  |  | 				flat: true | 
					
						
							|  |  |  | 				model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ? | 
					
						
							|  |  |  | 					manager.suitList : null | 
					
						
							| 
									
										
										
										
											2016-05-16 19:59:05 +02:00
										 |  |  | 				inputMethodHints: Qt.ImhNoPredictiveText | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							| 
									
										
										
										
											2017-12-08 07:58:23 -06:00
										 |  |  | 				onActivated: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							| 
									
										
										
										
											2018-02-11 16:23:04 +01:00
										 |  |  | 				onAccepted: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.Label { | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							| 
									
										
										
										
											2016-05-03 21:24:00 +02:00
										 |  |  | 				text: qsTr("Buddy:") | 
					
						
							| 
									
										
										
										
											2017-07-28 20:09:59 +02:00
										 |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2018-02-11 12:06:27 +01:00
										 |  |  | 			Controls.ComboBox { | 
					
						
							| 
									
										
										
										
											2016-05-16 19:59:05 +02:00
										 |  |  | 				id: buddyBox | 
					
						
							| 
									
										
										
										
											2018-02-11 12:06:27 +01:00
										 |  |  | 				editable: true | 
					
						
							|  |  |  | 				model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ? | 
					
						
							|  |  |  | 					manager.buddyList : null | 
					
						
							| 
									
										
										
										
											2016-05-16 19:59:05 +02:00
										 |  |  | 				inputMethodHints: Qt.ImhNoPredictiveText | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							| 
									
										
										
										
											2017-12-08 07:58:23 -06:00
										 |  |  | 				onActivated: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							| 
									
										
										
										
											2018-02-11 16:23:04 +01:00
										 |  |  | 				onAccepted: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.Label { | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							| 
									
										
										
										
											2017-02-27 12:14:22 +01:00
										 |  |  | 				text: qsTr("Divemaster:") | 
					
						
							| 
									
										
										
										
											2017-07-28 20:09:59 +02:00
										 |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2018-02-11 12:06:27 +01:00
										 |  |  | 			Controls.ComboBox { | 
					
						
							| 
									
										
										
										
											2016-05-16 19:59:05 +02:00
										 |  |  | 				id: divemasterBox | 
					
						
							| 
									
										
										
										
											2018-02-11 12:06:27 +01:00
										 |  |  | 				editable: true | 
					
						
							|  |  |  | 				model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ? | 
					
						
							|  |  |  | 					manager.divemasterList : null | 
					
						
							| 
									
										
										
										
											2016-05-16 19:59:05 +02:00
										 |  |  | 				inputMethodHints: Qt.ImhNoPredictiveText | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							| 
									
										
										
										
											2017-12-08 07:58:23 -06:00
										 |  |  | 				onActivated: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							| 
									
										
										
										
											2018-02-11 16:23:04 +01:00
										 |  |  | 				onAccepted: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.Label { | 
					
						
							| 
									
										
										
										
											2016-01-28 18:26:37 -08:00
										 |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							| 
									
										
										
										
											2016-05-03 21:24:00 +02:00
										 |  |  | 				text: qsTr("Weight:") | 
					
						
							| 
									
										
										
										
											2017-07-28 20:09:59 +02:00
										 |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							| 
									
										
										
										
											2016-01-28 18:26:37 -08:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.TextField { | 
					
						
							| 
									
										
										
										
											2016-01-28 18:26:37 -08:00
										 |  |  | 				id: txtWeight | 
					
						
							| 
									
										
										
										
											2017-03-31 16:15:14 +02:00
										 |  |  | 				readOnly: text === "cannot edit multiple weight systems" | 
					
						
							| 
									
										
										
										
											2016-01-28 18:26:37 -08:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							| 
									
										
										
										
											2017-07-31 18:37:19 +02:00
										 |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							| 
									
										
										
										
											2016-01-28 18:26:37 -08:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | // all cylinder info should be able to become dynamic instead of this blob of code.
 | 
					
						
							|  |  |  | // first cylinder
 | 
					
						
							|  |  |  | 			Controls.Label { | 
					
						
							|  |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							|  |  |  | 				text: qsTr("Cylinder1:") | 
					
						
							|  |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			Controls.ComboBox { | 
					
						
							|  |  |  | 				id: cylinderBox0 | 
					
						
							|  |  |  | 				flat: true | 
					
						
							|  |  |  | 				model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ? | 
					
						
							|  |  |  | 					diveDetailsListView.currentItem.modelData.dive.cylinderList : null | 
					
						
							|  |  |  | 				inputMethodHints: Qt.ImhNoPredictiveText | 
					
						
							|  |  |  | 				Layout.fillWidth: true | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			Controls.Label { | 
					
						
							|  |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							|  |  |  | 				text: qsTr("Gas mix:") | 
					
						
							|  |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			Controls.TextField { | 
					
						
							|  |  |  | 				id: txtGasMix0 | 
					
						
							| 
									
										
										
										
											2018-07-28 15:07:43 +02:00
										 |  |  | 				text: usedGas[0] != null ? usedGas[0] : null | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							|  |  |  | 				validator: RegExpValidator { regExp: /(EAN100|EAN\d\d|AIR|100|\d{1,2}|\d{1,2}\/\d{1,2})/i } | 
					
						
							|  |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			Controls.Label { | 
					
						
							|  |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							|  |  |  | 				text: qsTr("Start Pressure:") | 
					
						
							|  |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			Controls.TextField { | 
					
						
							|  |  |  | 				id: txtStartPressure0 | 
					
						
							| 
									
										
										
										
											2018-08-06 09:34:39 +02:00
										 |  |  | 				text: startpressure[0] != null ? startpressure[0] : null | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							|  |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			Controls.Label { | 
					
						
							|  |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							|  |  |  | 				text: qsTr("End Pressure:") | 
					
						
							|  |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			Controls.TextField { | 
					
						
							|  |  |  | 				id: txtEndPressure0 | 
					
						
							| 
									
										
										
										
											2018-08-06 09:34:39 +02:00
										 |  |  | 				text: endpressure[0] != null ? endpressure[0] : null | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							|  |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | //second cylinder
 | 
					
						
							|  |  |  | 			Controls.Label { | 
					
						
							|  |  |  | 				visible: usedCyl[1] != null ? true : false | 
					
						
							|  |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							|  |  |  | 				text: qsTr("Cylinder2:") | 
					
						
							|  |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			Controls.ComboBox { | 
					
						
							|  |  |  | 				visible: usedCyl[1] != null ? true : false | 
					
						
							|  |  |  | 				id: cylinderBox1 | 
					
						
							|  |  |  | 				flat: true | 
					
						
							|  |  |  | 				model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ? | 
					
						
							|  |  |  | 					diveDetailsListView.currentItem.modelData.dive.cylinderList : null | 
					
						
							|  |  |  | 				inputMethodHints: Qt.ImhNoPredictiveText | 
					
						
							|  |  |  | 				Layout.fillWidth: true | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			Controls.Label { | 
					
						
							|  |  |  | 				visible: usedCyl[1] != null ? true : false | 
					
						
							|  |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							|  |  |  | 				text: qsTr("Gas mix:") | 
					
						
							|  |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			Controls.TextField { | 
					
						
							|  |  |  | 				visible: usedCyl[1] != null ? true : false | 
					
						
							|  |  |  | 				id: txtGasMix1 | 
					
						
							| 
									
										
										
										
											2018-07-28 15:07:43 +02:00
										 |  |  | 				text: usedGas[1] != null ? usedGas[1] : null | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							|  |  |  | 				validator: RegExpValidator { regExp: /(EAN100|EAN\d\d|AIR|100|\d{1,2}|\d{1,2}\/\d{1,2})/i } | 
					
						
							|  |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2016-01-28 18:26:37 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.Label { | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				visible: usedCyl[1] != null ? true : false | 
					
						
							|  |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							|  |  |  | 				text: qsTr("Start Pressure:") | 
					
						
							|  |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			Controls.TextField { | 
					
						
							|  |  |  | 				visible: usedCyl[1] != null ? true : false | 
					
						
							|  |  |  | 				id: txtStartPressure1 | 
					
						
							| 
									
										
										
										
											2018-08-06 09:34:39 +02:00
										 |  |  | 				text: startpressure[1] != null ? startpressure[1] : null | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							|  |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			Controls.Label { | 
					
						
							|  |  |  | 				visible: usedCyl[1] != null ? true : false | 
					
						
							|  |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							|  |  |  | 				text: qsTr("End Pressure:") | 
					
						
							|  |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			Controls.TextField { | 
					
						
							|  |  |  | 				visible: usedCyl[1] != null ? true : false | 
					
						
							|  |  |  | 				id: txtEndPressure1 | 
					
						
							| 
									
										
										
										
											2018-08-06 09:34:39 +02:00
										 |  |  | 				text: endpressure[1] != null ? endpressure[1] : null  | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							|  |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | // third cylinder
 | 
					
						
							|  |  |  | 			Controls.Label { | 
					
						
							|  |  |  | 				visible: usedCyl[2] != null ? true : false | 
					
						
							|  |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							|  |  |  | 				text: qsTr("Cylinder3:") | 
					
						
							|  |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			Controls.ComboBox { | 
					
						
							|  |  |  | 				visible: usedCyl[2] != null ? true : false | 
					
						
							|  |  |  | 				id: cylinderBox2 | 
					
						
							|  |  |  | 				currentIndex: find(usedCyl[2]) | 
					
						
							|  |  |  | 				flat: true | 
					
						
							|  |  |  | 				model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ? | 
					
						
							|  |  |  | 					diveDetailsListView.currentItem.modelData.dive.cylinderList : null | 
					
						
							|  |  |  | 				inputMethodHints: Qt.ImhNoPredictiveText | 
					
						
							|  |  |  | 				Layout.fillWidth: true | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			Controls.Label { | 
					
						
							|  |  |  | 				visible: usedCyl[2] != null ? true : false | 
					
						
							|  |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							|  |  |  | 				text: qsTr("Gas mix:") | 
					
						
							|  |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			Controls.TextField { | 
					
						
							|  |  |  | 				visible: usedCyl[2] != null ? true : false | 
					
						
							|  |  |  | 				id: txtGasMix2 | 
					
						
							| 
									
										
										
										
											2018-07-28 15:07:43 +02:00
										 |  |  | 				text: usedGas[2] != null ? usedGas[2] : null | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							|  |  |  | 				validator: RegExpValidator { regExp: /(EAN100|EAN\d\d|AIR|100|\d{1,2}|\d{1,2}\/\d{1,2})/i } | 
					
						
							|  |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			Controls.Label { | 
					
						
							|  |  |  | 				visible: usedCyl[2] != null ? true : false | 
					
						
							|  |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							|  |  |  | 				text: qsTr("Start Pressure:") | 
					
						
							|  |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			Controls.TextField { | 
					
						
							|  |  |  | 				visible: usedCyl[2] != null ? true : false | 
					
						
							|  |  |  | 				id: txtStartPressure2 | 
					
						
							| 
									
										
										
										
											2018-08-06 09:34:39 +02:00
										 |  |  | 				text: startpressure[2] != null ? startpressure[2] : null | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							|  |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			Controls.Label { | 
					
						
							|  |  |  | 				visible: usedCyl[2] != null ? true : false | 
					
						
							|  |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							|  |  |  | 				text: qsTr("End Pressure:") | 
					
						
							|  |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			Controls.TextField { | 
					
						
							|  |  |  | 				visible: usedCyl[2] != null ? true : false | 
					
						
							|  |  |  | 				id: txtEndPressure2 | 
					
						
							| 
									
										
										
										
											2018-08-06 09:34:39 +02:00
										 |  |  | 				text: endpressure[2] != null ? endpressure[2] : null | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							|  |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | // fourth cylinder
 | 
					
						
							|  |  |  | 			Controls.Label { | 
					
						
							|  |  |  | 				visible: usedCyl[3] != null ? true : false | 
					
						
							|  |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							|  |  |  | 				text: qsTr("Cylinder4:") | 
					
						
							|  |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			Controls.ComboBox { | 
					
						
							|  |  |  | 				visible: usedCyl[3] != null ? true : false | 
					
						
							|  |  |  | 				id: cylinderBox3 | 
					
						
							|  |  |  | 				currentIndex: find(usedCyl[3]) | 
					
						
							|  |  |  | 				flat: true | 
					
						
							|  |  |  | 				model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ? | 
					
						
							|  |  |  | 					diveDetailsListView.currentItem.modelData.dive.cylinderList : null | 
					
						
							|  |  |  | 				inputMethodHints: Qt.ImhNoPredictiveText | 
					
						
							|  |  |  | 				Layout.fillWidth: true | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			Controls.Label { | 
					
						
							|  |  |  | 				visible: usedCyl[3] != null ? true : false | 
					
						
							|  |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							|  |  |  | 				text: qsTr("Gas mix:") | 
					
						
							|  |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			Controls.TextField { | 
					
						
							|  |  |  | 				visible: usedCyl[3] != null ? true : false | 
					
						
							|  |  |  | 				id: txtGasMix3 | 
					
						
							| 
									
										
										
										
											2018-07-28 15:07:43 +02:00
										 |  |  | 				text: usedGas[3] != null ? usedGas[3] : null | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							|  |  |  | 				validator: RegExpValidator { regExp: /(EAN100|EAN\d\d|AIR|100|\d{1,2}|\d{1,2}\/\d{1,2})/i } | 
					
						
							|  |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			Controls.Label { | 
					
						
							|  |  |  | 				visible: usedCyl[3] != null ? true : false | 
					
						
							|  |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							|  |  |  | 				text: qsTr("Start Pressure:") | 
					
						
							|  |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			Controls.TextField { | 
					
						
							|  |  |  | 				visible: usedCyl[3] != null ? true : false | 
					
						
							|  |  |  | 				id: txtStartPressure3 | 
					
						
							| 
									
										
										
										
											2018-08-06 09:34:39 +02:00
										 |  |  | 				text: startpressure[3] != null ? startpressure[3] : null | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							|  |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			Controls.Label { | 
					
						
							|  |  |  | 				visible: usedCyl[3] != null ? true : false | 
					
						
							|  |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							|  |  |  | 				text: qsTr("End Pressure:") | 
					
						
							|  |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			Controls.TextField { | 
					
						
							|  |  |  | 				visible: usedCyl[3] != null ? true : false | 
					
						
							|  |  |  | 				id: txtEndPressure3 | 
					
						
							| 
									
										
										
										
											2018-08-06 09:34:39 +02:00
										 |  |  | 				text: endpressure[3] != null ? endpressure[3] : null | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							|  |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | // fifth cylinder
 | 
					
						
							|  |  |  | 			Controls.Label { | 
					
						
							|  |  |  | 				visible: usedCyl[4] != null ? true : false | 
					
						
							| 
									
										
										
										
											2016-08-30 16:24:19 +02:00
										 |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				text: qsTr("Cylinder5:") | 
					
						
							| 
									
										
										
										
											2017-07-28 20:09:59 +02:00
										 |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							| 
									
										
										
										
											2016-08-30 16:24:19 +02:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2018-02-11 12:06:27 +01:00
										 |  |  | 			Controls.ComboBox { | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				visible: usedCyl[4] != null ? true : false | 
					
						
							|  |  |  | 				id: cylinderBox4 | 
					
						
							|  |  |  | 				currentIndex: find(usedCyl[4]) | 
					
						
							| 
									
										
										
										
											2017-12-08 07:57:59 -06:00
										 |  |  | 				flat: true | 
					
						
							| 
									
										
										
										
											2017-08-05 17:08:21 +10:00
										 |  |  | 				model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ? | 
					
						
							|  |  |  | 					diveDetailsListView.currentItem.modelData.dive.cylinderList : null | 
					
						
							| 
									
										
										
										
											2016-08-30 16:24:19 +02:00
										 |  |  | 				inputMethodHints: Qt.ImhNoPredictiveText | 
					
						
							|  |  |  | 				Layout.fillWidth: true | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.Label { | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				visible: usedCyl[4] != null ? true : false | 
					
						
							| 
									
										
										
										
											2016-02-13 18:34:31 +01:00
										 |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							| 
									
										
										
										
											2016-05-03 21:24:00 +02:00
										 |  |  | 				text: qsTr("Gas mix:") | 
					
						
							| 
									
										
										
										
											2017-07-28 20:09:59 +02:00
										 |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							| 
									
										
										
										
											2016-02-13 18:34:31 +01:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.TextField { | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				visible: usedCyl[4] != null ? true : false | 
					
						
							|  |  |  | 				id: txtGasMix4 | 
					
						
							| 
									
										
										
										
											2018-07-28 15:07:43 +02:00
										 |  |  | 				text: usedGas[4] != null ? usedGas[4] : null | 
					
						
							| 
									
										
										
										
											2016-02-13 18:34:31 +01:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							| 
									
										
										
										
											2016-04-07 22:56:37 -07:00
										 |  |  | 				validator: RegExpValidator { regExp: /(EAN100|EAN\d\d|AIR|100|\d{1,2}|\d{1,2}\/\d{1,2})/i } | 
					
						
							| 
									
										
										
										
											2017-07-31 18:37:19 +02:00
										 |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							| 
									
										
										
										
											2016-02-13 18:34:31 +01:00
										 |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.Label { | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				visible: usedCyl[4] != null ? true : false | 
					
						
							| 
									
										
										
										
											2016-02-09 17:20:17 +01:00
										 |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							| 
									
										
										
										
											2016-05-03 21:24:00 +02:00
										 |  |  | 				text: qsTr("Start Pressure:") | 
					
						
							| 
									
										
										
										
											2017-07-28 20:09:59 +02:00
										 |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							| 
									
										
										
										
											2016-02-09 17:20:17 +01:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.TextField { | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				visible: usedCyl[4] != null ? true : false | 
					
						
							|  |  |  | 				id: txtStartPressure4 | 
					
						
							| 
									
										
										
										
											2018-08-06 09:34:39 +02:00
										 |  |  | 				text: startpressure[4] != null ? startpressure[4] : null | 
					
						
							| 
									
										
										
										
											2016-02-09 17:20:17 +01:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							| 
									
										
										
										
											2017-07-31 18:37:19 +02:00
										 |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							| 
									
										
										
										
											2016-02-09 17:20:17 +01:00
										 |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.Label { | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				visible: usedCyl[4] != null ? true : false | 
					
						
							| 
									
										
										
										
											2016-02-09 17:20:17 +01:00
										 |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							| 
									
										
										
										
											2016-05-03 21:24:00 +02:00
										 |  |  | 				text: qsTr("End Pressure:") | 
					
						
							| 
									
										
										
										
											2017-07-28 20:09:59 +02:00
										 |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							| 
									
										
										
										
											2016-02-09 17:20:17 +01:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.TextField { | 
					
						
							| 
									
										
										
										
											2018-07-16 15:21:39 +02:00
										 |  |  | 				visible: usedCyl[4] != null ? true : false | 
					
						
							|  |  |  | 				id: txtEndPressure4 | 
					
						
							| 
									
										
										
										
											2018-08-06 09:34:39 +02:00
										 |  |  | 				text: endpressure[4] != null ? endpressure[4] : null | 
					
						
							| 
									
										
										
										
											2016-02-09 17:20:17 +01:00
										 |  |  | 				Layout.fillWidth: true | 
					
						
							| 
									
										
										
										
											2017-07-31 18:37:19 +02:00
										 |  |  | 				onEditingFinished: { | 
					
						
							|  |  |  | 					focus = false | 
					
						
							|  |  |  | 				} | 
					
						
							| 
									
										
										
										
											2016-02-09 17:20:17 +01:00
										 |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.Label { | 
					
						
							| 
									
										
										
										
											2017-07-28 19:28:52 +02:00
										 |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							|  |  |  | 				text: qsTr("Rating:") | 
					
						
							| 
									
										
										
										
											2017-07-28 20:09:59 +02:00
										 |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							| 
									
										
										
										
											2017-07-28 19:28:52 +02:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.SpinBox { | 
					
						
							| 
									
										
										
										
											2017-07-28 19:28:52 +02:00
										 |  |  | 				id: ratingPicker | 
					
						
							|  |  |  | 				from: 0 | 
					
						
							|  |  |  | 				to: 5 | 
					
						
							|  |  |  | 				value: rating | 
					
						
							|  |  |  | 				onValueChanged: rating = value | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.Label { | 
					
						
							| 
									
										
										
										
											2017-07-28 19:28:52 +02:00
										 |  |  | 				Layout.alignment: Qt.AlignRight | 
					
						
							|  |  |  | 				text: qsTr("Visibility:") | 
					
						
							| 
									
										
										
										
											2017-07-28 20:09:59 +02:00
										 |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							| 
									
										
										
										
											2017-07-28 19:28:52 +02:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.SpinBox { | 
					
						
							| 
									
										
										
										
											2017-07-28 19:28:52 +02:00
										 |  |  | 				id: visibilityPicker | 
					
						
							|  |  |  | 				from: 0 | 
					
						
							|  |  |  | 				to: 5 | 
					
						
							|  |  |  | 				value: visibility | 
					
						
							|  |  |  | 				onValueChanged: visibility = value | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.Label { | 
					
						
							| 
									
										
										
										
											2016-01-21 13:09:10 -08:00
										 |  |  | 				Layout.columnSpan: 2 | 
					
						
							|  |  |  | 				Layout.alignment: Qt.AlignLeft | 
					
						
							| 
									
										
										
										
											2016-05-03 21:24:00 +02:00
										 |  |  | 				text: qsTr("Notes:") | 
					
						
							| 
									
										
										
										
											2017-07-28 20:09:59 +02:00
										 |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-10-12 14:25:22 +02:00
										 |  |  | 			Controls.TextArea { | 
					
						
							| 
									
										
										
										
											2016-01-21 13:09:10 -08:00
										 |  |  | 				Layout.columnSpan: 2 | 
					
						
							|  |  |  | 				width: parent.width | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 				id: txtNotes | 
					
						
							| 
									
										
										
										
											2016-01-06 23:03:07 -08:00
										 |  |  | 				textFormat: TextEdit.RichText | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 				focus: true | 
					
						
							|  |  |  | 				Layout.fillWidth: true | 
					
						
							|  |  |  | 				Layout.fillHeight: true | 
					
						
							| 
									
										
										
										
											2016-03-08 21:26:54 +01:00
										 |  |  | 				Layout.minimumHeight: Kirigami.Units.gridUnit * 6 | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 				selectByMouse: true | 
					
						
							|  |  |  | 				wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		Item { | 
					
						
							| 
									
										
										
										
											2016-03-08 21:26:54 +01:00
										 |  |  | 			height: Kirigami.Units.gridUnit * 3 | 
					
						
							| 
									
										
										
										
											2015-12-04 01:38:04 +01:00
										 |  |  | 			width: height // just to make sure the spacer doesn't produce scrollbars, but also isn't null
 | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2015-12-07 22:24:56 -08:00
										 |  |  | } |