| 
									
										
										
										
											2017-04-27 20:30:36 +02:00
										 |  |  | // SPDX-License-Identifier: GPL-2.0
 | 
					
						
							| 
									
										
										
										
											2015-11-07 01:45:40 +01:00
										 |  |  | import QtQuick 2.5 | 
					
						
							|  |  |  | import QtQuick.Layouts 1.1 | 
					
						
							| 
									
										
										
										
											2017-03-31 16:15:14 +02:00
										 |  |  | import org.kde.kirigami 2.0 as Kirigami | 
					
						
							| 
									
										
										
										
											2016-01-19 22:32:37 -08:00
										 |  |  | import org.subsurfacedivelog.mobile 1.0 | 
					
						
							| 
									
										
										
										
											2015-11-07 01:45:40 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-03 14:08:00 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | Kirigami.ScrollablePage { | 
					
						
							| 
									
										
										
										
											2016-02-11 06:59:10 -08:00
										 |  |  | 	id: startpage | 
					
						
							| 
									
										
										
										
											2015-11-07 01:45:40 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-13 21:09:33 -08:00
										 |  |  | 	function saveCredentials() { cloudCredentials.saveCredentials() } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-03 14:08:00 +02:00
										 |  |  | 	ColumnLayout { | 
					
						
							|  |  |  | 		Kirigami.Label { | 
					
						
							|  |  |  | 			id: explanationText | 
					
						
							|  |  |  | 			Layout.fillWidth: true | 
					
						
							|  |  |  | 			Layout.margins: Kirigami.Units.gridUnit | 
					
						
							|  |  |  | 			Layout.topMargin: Kirigami.Units.gridUnit * 3 | 
					
						
							|  |  |  | 			text: qsTr("To use Subsurface-mobile with Subsurface cloud storage, please enter your cloud credentials.\n") + | 
					
						
							|  |  |  | 				qsTr("If this is the first time you use Subsurface cloud storage, enter a valid email (all lower case) " + | 
					
						
							|  |  |  | 				"and a password of your choice (letters and numbers). " + | 
					
						
							|  |  |  | 				"The server will send a PIN to the email address provided that you will have to enter here.\n\n") + | 
					
						
							|  |  |  | 				qsTr("To use Subsurface-mobile only with local data on this device, tap " + | 
					
						
							|  |  |  | 				"on the no cloud icon below.") | 
					
						
							|  |  |  | 			wrapMode: Text.WordWrap | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		Kirigami.Label { | 
					
						
							|  |  |  | 			id: messageArea | 
					
						
							|  |  |  | 			Layout.fillWidth: true | 
					
						
							|  |  |  | 			Layout.margins: Kirigami.Units.gridUnit | 
					
						
							|  |  |  | 			Layout.topMargin: 0 | 
					
						
							|  |  |  | 			text: manager.startPageText | 
					
						
							|  |  |  | 			wrapMode: Text.WordWrap | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		CloudCredentials { | 
					
						
							|  |  |  | 			id: cloudCredentials | 
					
						
							|  |  |  | 			Layout.fillWidth: true | 
					
						
							|  |  |  | 			Layout.margins: Kirigami.Units.gridUnit | 
					
						
							|  |  |  | 			Layout.topMargin: 0 | 
					
						
							|  |  |  | 			property int headingLevel: 3 | 
					
						
							|  |  |  | 		} | 
					
						
							| 
									
										
										
										
											2015-11-07 01:45:40 +01:00
										 |  |  | 	} | 
					
						
							| 
									
										
										
										
											2015-12-03 14:06:52 -08:00
										 |  |  | } |