5import QGroundControl.FactControls
6import QGroundControl.Controls
9 title: qsTr("Vehicle Information")
10 promptId: QGroundControl.corePlugin.offlineVehicleFirstRunPromptId
12 property real _margins: ScreenTools.defaultFontPixelWidth
13 property var _appSettings: QGroundControl.settingsManager.appSettings
14 property bool _multipleFirmware: !QGroundControl.singleFirmwareSupport
15 property bool _multipleVehicleTypes: !QGroundControl.singleVehicleSupport
16 property real _fieldWidth: ScreenTools.defaultFontPixelWidth * 16
19 spacing: ScreenTools.defaultFontPixelHeight
23 Layout.preferredWidth: valueRect.width
24 text: qsTr("Specify information about the vehicle you plan to fly. If you are unsure of the correct values leave them as is.")
25 wrapMode: Text.WordWrap
30 Layout.preferredHeight: valueGrid.height + (_margins * 2)
31 Layout.preferredWidth: valueGrid.width + (_margins * 2)
32 color: qgcPal.windowShade
33 Layout.fillWidth: true
37 anchors.margins: _margins
38 anchors.top: parent.top
39 anchors.left: parent.left
43 Layout.fillWidth: true
44 text: qsTr("Firmware")
45 visible: _multipleFirmware
48 Layout.preferredWidth: _fieldWidth
49 fact: QGroundControl.settingsManager.appSettings.offlineEditingFirmwareClass
51 visible: _multipleFirmware
55 Layout.fillWidth: true
57 visible: _multipleVehicleTypes
60 Layout.preferredWidth: _fieldWidth
61 fact: QGroundControl.settingsManager.appSettings.offlineEditingVehicleClass
63 visible: _multipleVehicleTypes