|
|
|
@ -42,6 +42,7 @@ Item {
@@ -42,6 +42,7 @@ Item {
|
|
|
|
|
|
|
|
|
|
readonly property int __animationDuration: 100 |
|
|
|
|
readonly property real __closeButtonSize: ScreenTools.defaultFontPixelHeight * 2 |
|
|
|
|
readonly property real _margins: ScreenTools.defaultFontPixelHeight / 2 |
|
|
|
|
|
|
|
|
|
onVisibleChanged: { |
|
|
|
|
//-- Unselect any selected button |
|
|
|
@ -129,103 +130,113 @@ Item {
@@ -129,103 +130,113 @@ Item {
|
|
|
|
|
// This is the menu dialog panel which is anchored to the left edge |
|
|
|
|
Rectangle { |
|
|
|
|
id: __leftMenu |
|
|
|
|
width: (tbButtonWidth * 2) + (tbSpacing * 4) + 1 |
|
|
|
|
width: ScreenTools.defaultFontPixelWidth * 12 |
|
|
|
|
anchors.left: parent.left |
|
|
|
|
anchors.top: __topSeparator.bottom |
|
|
|
|
anchors.bottom: parent.bottom |
|
|
|
|
color: __qgcPal.windowShadeDark |
|
|
|
|
|
|
|
|
|
ExclusiveGroup { id: panelActionGroup } |
|
|
|
|
QGCFlickable { |
|
|
|
|
anchors.fill: parent |
|
|
|
|
contentHeight: buttonColumn.height + _margins |
|
|
|
|
flickableDirection: Flickable.VerticalFlick |
|
|
|
|
clip: true |
|
|
|
|
|
|
|
|
|
Column { |
|
|
|
|
width: parent.width |
|
|
|
|
spacing: ScreenTools.defaultFontPixelHeight |
|
|
|
|
Item { |
|
|
|
|
width: 1 |
|
|
|
|
height: ScreenTools.defaultFontPixelHeight * 0.5 |
|
|
|
|
} |
|
|
|
|
QGCLabel { |
|
|
|
|
text: "Preferences" |
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter |
|
|
|
|
} |
|
|
|
|
QGCButton { |
|
|
|
|
width: parent.width * 0.85 |
|
|
|
|
height: ScreenTools.defaultFontPixelHeight * 2.5 |
|
|
|
|
text: "General" |
|
|
|
|
exclusiveGroup: panelActionGroup |
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter |
|
|
|
|
onClicked: { |
|
|
|
|
if(__rightPanel.source != "GeneralSettings.qml") { |
|
|
|
|
__rightPanel.source = "GeneralSettings.qml" |
|
|
|
|
ExclusiveGroup { id: panelActionGroup } |
|
|
|
|
|
|
|
|
|
Column { |
|
|
|
|
id: buttonColumn |
|
|
|
|
anchors.leftMargin: _margins |
|
|
|
|
anchors.rightMargin: _margins |
|
|
|
|
anchors.left: parent.left |
|
|
|
|
anchors.right: parent.right |
|
|
|
|
anchors.topMargin: _margins |
|
|
|
|
anchors.top: parent.top |
|
|
|
|
spacing: ScreenTools.defaultFontPixelHeight |
|
|
|
|
|
|
|
|
|
QGCLabel { |
|
|
|
|
text: "Preferences" |
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCButton { |
|
|
|
|
anchors.left: parent.left |
|
|
|
|
anchors.right: parent.right |
|
|
|
|
text: "General" |
|
|
|
|
exclusiveGroup: panelActionGroup |
|
|
|
|
onClicked: { |
|
|
|
|
if(__rightPanel.source != "GeneralSettings.qml") { |
|
|
|
|
__rightPanel.source = "GeneralSettings.qml" |
|
|
|
|
} |
|
|
|
|
checked = true |
|
|
|
|
} |
|
|
|
|
checked = true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
QGCButton { |
|
|
|
|
width: parent.width * 0.85 |
|
|
|
|
height: ScreenTools.defaultFontPixelHeight * 2.5 |
|
|
|
|
text: "Comm Links" |
|
|
|
|
exclusiveGroup: panelActionGroup |
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter |
|
|
|
|
onClicked: { |
|
|
|
|
if(__rightPanel.source != "LinkSettings.qml") { |
|
|
|
|
__rightPanel.source = "LinkSettings.qml" |
|
|
|
|
|
|
|
|
|
QGCButton { |
|
|
|
|
anchors.left: parent.left |
|
|
|
|
anchors.right: parent.right |
|
|
|
|
text: "Comm Links" |
|
|
|
|
exclusiveGroup: panelActionGroup |
|
|
|
|
onClicked: { |
|
|
|
|
if(__rightPanel.source != "LinkSettings.qml") { |
|
|
|
|
__rightPanel.source = "LinkSettings.qml" |
|
|
|
|
} |
|
|
|
|
checked = true |
|
|
|
|
} |
|
|
|
|
checked = true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
QGCButton { |
|
|
|
|
width: parent.width * 0.85 |
|
|
|
|
height: ScreenTools.defaultFontPixelHeight * 2.5 |
|
|
|
|
text: "Offline Maps" |
|
|
|
|
exclusiveGroup: panelActionGroup |
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter |
|
|
|
|
onClicked: { |
|
|
|
|
if(__rightPanel.source != "OfflineMap.qml") { |
|
|
|
|
__rightPanel.source = "OfflineMap.qml" |
|
|
|
|
|
|
|
|
|
QGCButton { |
|
|
|
|
anchors.left: parent.left |
|
|
|
|
anchors.right: parent.right |
|
|
|
|
text: "Offline Maps" |
|
|
|
|
exclusiveGroup: panelActionGroup |
|
|
|
|
onClicked: { |
|
|
|
|
if(__rightPanel.source != "OfflineMap.qml") { |
|
|
|
|
__rightPanel.source = "OfflineMap.qml" |
|
|
|
|
} |
|
|
|
|
checked = true |
|
|
|
|
} |
|
|
|
|
checked = true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
QGCButton { |
|
|
|
|
width: parent.width * 0.85 |
|
|
|
|
height: ScreenTools.defaultFontPixelHeight * 2.5 |
|
|
|
|
text: "MavLink" |
|
|
|
|
exclusiveGroup: panelActionGroup |
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter |
|
|
|
|
onClicked: { |
|
|
|
|
if(__rightPanel.source != "MavlinkSettings.qml") { |
|
|
|
|
__rightPanel.source = "MavlinkSettings.qml" |
|
|
|
|
|
|
|
|
|
QGCButton { |
|
|
|
|
anchors.left: parent.left |
|
|
|
|
anchors.right: parent.right |
|
|
|
|
text: "MavLink" |
|
|
|
|
exclusiveGroup: panelActionGroup |
|
|
|
|
onClicked: { |
|
|
|
|
if(__rightPanel.source != "MavlinkSettings.qml") { |
|
|
|
|
__rightPanel.source = "MavlinkSettings.qml" |
|
|
|
|
} |
|
|
|
|
checked = true |
|
|
|
|
} |
|
|
|
|
checked = true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
QGCButton { |
|
|
|
|
width: parent.width * 0.85 |
|
|
|
|
height: ScreenTools.defaultFontPixelHeight * 2.5 |
|
|
|
|
text: "Mock Link" |
|
|
|
|
visible: ScreenTools.isDebug |
|
|
|
|
exclusiveGroup: panelActionGroup |
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter |
|
|
|
|
onClicked: { |
|
|
|
|
if(__rightPanel.source != "MockLink.qml") { |
|
|
|
|
__rightPanel.source = "MockLink.qml" |
|
|
|
|
|
|
|
|
|
QGCButton { |
|
|
|
|
anchors.left: parent.left |
|
|
|
|
anchors.right: parent.right |
|
|
|
|
text: "Mock Link" |
|
|
|
|
visible: ScreenTools.isDebug |
|
|
|
|
exclusiveGroup: panelActionGroup |
|
|
|
|
onClicked: { |
|
|
|
|
if(__rightPanel.source != "MockLink.qml") { |
|
|
|
|
__rightPanel.source = "MockLink.qml" |
|
|
|
|
} |
|
|
|
|
checked = true |
|
|
|
|
} |
|
|
|
|
checked = true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
QGCButton { |
|
|
|
|
width: parent.width * 0.85 |
|
|
|
|
height: ScreenTools.defaultFontPixelHeight * 2.5 |
|
|
|
|
text: "Debug" |
|
|
|
|
visible: ScreenTools.isDebug |
|
|
|
|
exclusiveGroup: panelActionGroup |
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter |
|
|
|
|
onClicked: { |
|
|
|
|
if(__rightPanel.source != "DebugWindow.qml") { |
|
|
|
|
__rightPanel.source = "DebugWindow.qml" |
|
|
|
|
|
|
|
|
|
QGCButton { |
|
|
|
|
anchors.left: parent.left |
|
|
|
|
anchors.right: parent.right |
|
|
|
|
text: "Debug" |
|
|
|
|
visible: ScreenTools.isDebug |
|
|
|
|
exclusiveGroup: panelActionGroup |
|
|
|
|
onClicked: { |
|
|
|
|
if(__rightPanel.source != "DebugWindow.qml") { |
|
|
|
|
__rightPanel.source = "DebugWindow.qml" |
|
|
|
|
} |
|
|
|
|
checked = true |
|
|
|
|
} |
|
|
|
|
checked = true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|