Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
bc2c607b
Commit
bc2c607b
authored
Sep 15, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow buttons to be scrolled
parent
39a2500b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
53 deletions
+62
-53
SetupView.qml
src/VehicleSetup/SetupView.qml
+62
-53
No files found.
src/VehicleSetup/SetupView.qml
View file @
bc2c607b
...
...
@@ -153,76 +153,85 @@ Rectangle {
}
}
Column
{
id
:
buttonColumn
width
:
buttonWidth
SubMenuButton
{
id
:
summaryButton
width
:
buttonWidth
imageResource
:
"
/qmlimages/VehicleSummaryIcon.png
"
setupIndicator
:
false
exclusiveGroup
:
setupButtonGroup
text
:
"
SUMMARY
"
onClicked
:
showSummaryPanel
()
}
SubMenuButton
{
id
:
firmwareButton
width
:
buttonWidth
imageResource
:
"
/qmlimages/FirmwareUpgradeIcon.png
"
setupIndicator
:
false
exclusiveGroup
:
setupButtonGroup
visible
:
!
ScreenTools
.
isMobile
text
:
"
FIRMWARE
"
Flickable
{
id
:
buttonFlickable
width
:
buttonWidth
height
:
parent
.
height
contentWidth
:
buttonWidth
contentHeight
:
buttonColumn
.
height
flickableDirection
:
Flickable
.
VerticalFlick
Column
{
id
:
buttonColumn
width
:
buttonWidth
onClicked
:
showFirmwarePanel
()
}
SubMenuButton
{
id
:
summaryButton
width
:
buttonWidth
imageResource
:
"
/qmlimages/VehicleSummaryIcon.png
"
setupIndicator
:
false
exclusiveGroup
:
setupButtonGroup
text
:
"
SUMMARY
"
SubMenuButton
{
id
:
joystickButton
width
:
buttonWidth
setupIndicator
:
true
setupComplete
:
joystickManager
.
activeJoystick
?
joystickManager
.
activeJoystick
.
calibrated
:
false
exclusiveGroup
:
setupButtonGroup
visible
:
multiVehicleManager
.
parameterReadyVehicleAvailable
&&
joystickManager
.
joysticks
.
length
!=
0
text
:
"
JOYSTICK
"
onClicked
:
showSummaryPanel
()
}
onClicked
:
showJoystickPanel
()
}
SubMenuButton
{
id
:
firmwareButton
width
:
buttonWidth
imageResource
:
"
/qmlimages/FirmwareUpgradeIcon.png
"
setupIndicator
:
false
exclusiveGroup
:
setupButtonGroup
visible
:
!
ScreenTools
.
isMobile
text
:
"
FIRMWARE
"
Repeater
{
model
:
multiVehicleManager
.
parameterReadyVehicleAvailable
?
multiVehicleManager
.
activeVehicle
.
autopilot
.
vehicleComponents
:
0
onClicked
:
showFirmwarePanel
()
}
SubMenuButton
{
id
:
joystickButton
width
:
buttonWidth
imageResource
:
modelData
.
iconResource
setupIndicator
:
modelData
.
requiresSetup
setupComplete
:
modelData
.
setupComplete
setupIndicator
:
true
setupComplete
:
joystickManager
.
activeJoystick
?
joystickManager
.
activeJoystick
.
calibrated
:
false
exclusiveGroup
:
setupButtonGroup
text
:
modelData
.
name
.
toUpperCase
()
visible
:
multiVehicleManager
.
parameterReadyVehicleAvailable
&&
joystickManager
.
joysticks
.
length
!=
0
text
:
"
JOYSTICK
"
onClicked
:
show
VehicleComponentPanel
(
modelData
)
onClicked
:
show
JoystickPanel
(
)
}
}
SubMenuButton
{
width
:
buttonWidth
setupIndicator
:
false
exclusiveGroup
:
setupButtonGroup
visible
:
multiVehicleManager
.
parameterReadyVehicleAvailable
text
:
"
PARAMETERS
"
Repeater
{
model
:
multiVehicleManager
.
parameterReadyVehicleAvailable
?
multiVehicleManager
.
activeVehicle
.
autopilot
.
vehicleComponents
:
0
onClicked
:
showParametersPanel
()
}
}
// Column
SubMenuButton
{
width
:
buttonWidth
imageResource
:
modelData
.
iconResource
setupIndicator
:
modelData
.
requiresSetup
setupComplete
:
modelData
.
setupComplete
exclusiveGroup
:
setupButtonGroup
text
:
modelData
.
name
.
toUpperCase
()
onClicked
:
showVehicleComponentPanel
(
modelData
)
}
}
SubMenuButton
{
width
:
buttonWidth
setupIndicator
:
false
exclusiveGroup
:
setupButtonGroup
visible
:
multiVehicleManager
.
parameterReadyVehicleAvailable
text
:
"
PARAMETERS
"
onClicked
:
showParametersPanel
()
}
}
// Column
}
// Flickable
Loader
{
id
:
panelLoader
anchors.leftMargin
:
defaultTextWidth
anchors.rightMargin
:
defaultTextWidth
anchors.left
:
button
Column
.
right
anchors.left
:
button
Flickable
.
right
anchors.right
:
parent
.
right
anchors.top
:
parent
.
top
anchors.bottom
:
parent
.
bottom
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment