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
2dbd131b
Commit
2dbd131b
authored
Feb 13, 2017
by
Don Gagne
Committed by
GitHub
Feb 13, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4540 from DonLakeFlyer/ParameterEditorDialogMobile
Parameter editor dialog mobile
parents
a0a79a77
5f20c3ac
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
135 additions
and
147 deletions
+135
-147
iOS-Info.plist
ios/iOS-Info.plist
+82
-80
FactTextField.qml
src/FactSystem/FactControls/FactTextField.qml
+1
-1
ParameterEditorDialog.qml
src/QmlControls/ParameterEditorDialog.qml
+47
-63
QGCFlickable.qml
src/QmlControls/QGCFlickable.qml
+1
-0
QGCTextField.qml
src/QmlControls/QGCTextField.qml
+4
-3
No files found.
ios/iOS-Info.plist
View file @
2dbd131b
...
...
@@ -2,85 +2,87 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
CFBundleDisplayName
</key>
<string>
QGroundControl
</string>
<key>
CFBundleExecutable
</key>
<string>
$(EXECUTABLE_NAME)
</string>
<key>
NSHumanReadableCopyright
</key>
<string>
Open Source Flight Systems GmbH - Internal Build
</string>
<key>
CFBundleIconFile
</key>
<string></string>
<key>
CFBundleIdentifier
</key>
<string>
org.QGroundControl.qgc
</string>
<key>
CFBundleName
</key>
<string>
$(PRODUCT_NAME)
</string>
<key>
CFBundlePackageType
</key>
<string>
APPL
</string>
<key>
CFBundleShortVersionString
</key>
<string>
0.0.0
</string>
<key>
CFBundleSignature
</key>
<string>
????
</string>
<key>
CFBundleVersion
</key>
<string>
1
</string>
<key>
LSRequiresIPhoneOS
</key>
<true/>
<key>
UILaunchStoryboardName
</key>
<string>
QGCLaunchScreen
</string>
<key>
UIRequiresFullScreen
</key>
<true/>
<key>
CFBundleInfoDictionaryVersion
</key>
<string>
6.0
</string>
<key>
ForAppStore
</key>
<string>
No
</string>
<key>
NSLocationUsageDescription
</key>
<string>
Ground Station Location
</string>
<key>
NSLocationWhenInUseUsageDescription
</key>
<string>
Ground Station Location
</string>
<key>
UISupportedInterfaceOrientations
</key>
<array>
<string>
UIInterfaceOrientationLandscapeLeft
</string>
<string>
UIInterfaceOrientationLandscapeRight
</string>
</array>
<key>
CFBundleIcons
</key>
<dict>
<key>
CFBundlePrimaryIcon
</key>
<dict>
<key>
CFBundleIconFiles
</key>
<array>
<string>
AppIcon29x29.png
</string>
<string>
AppIcon29x29@2x.png
</string>
<string>
AppIcon40x40@2x.png
</string>
<string>
AppIcon57x57.png
</string>
<string>
AppIcon57x57@2x.png
</string>
<string>
AppIcon60x60@2x.png
</string>
</array>
</dict>
</dict>
<key>
CFBundleIcons~ipad
</key>
<dict>
<key>
CFBundlePrimaryIcon
</key>
<dict>
<key>
CFBundleIconFiles
</key>
<array>
<string>
AppIcon29x29.png
</string>
<string>
AppIcon29x29@2x.png
</string>
<string>
AppIcon40x40@2x.png
</string>
<string>
AppIcon57x57.png
</string>
<string>
AppIcon57x57@2x.png
</string>
<string>
AppIcon60x60@2x.png
</string>
<string>
AppIcon29x29~ipad.png
</string>
<string>
AppIcon29x29@2x~ipad.png
</string>
<string>
AppIcon40x40~ipad.png
</string>
<string>
AppIcon40x40@2x~ipad.png
</string>
<string>
AppIcon50x50~ipad.png
</string>
<string>
AppIcon50x50@2x~ipad.png
</string>
<string>
AppIcon72x72~ipad.png
</string>
<string>
AppIcon72x72@2x~ipad.png
</string>
<string>
AppIcon76x76~ipad.png
</string>
<string>
AppIcon76x76@2x~ipad.png
</string>
<string>
AppIcon83.5x83.5@2x~ipad.png
</string>
</array>
</dict>
</dict>
<key>
NSCameraUsageDescription
</key>
<string>
QGC uses UVC devices for video streaming.
</string>
<key>
CFBundleDisplayName
</key>
<string>
QGroundControl
</string>
<key>
CFBundleExecutable
</key>
<string>
$(EXECUTABLE_NAME)
</string>
<key>
NSHumanReadableCopyright
</key>
<string>
Open Source Flight Systems GmbH - Internal Build
</string>
<key>
CFBundleIconFile
</key>
<string></string>
<key>
CFBundleIdentifier
</key>
<string>
org.QGroundControl.qgc
</string>
<key>
CFBundleName
</key>
<string>
$(PRODUCT_NAME)
</string>
<key>
CFBundlePackageType
</key>
<string>
APPL
</string>
<key>
CFBundleShortVersionString
</key>
<string>
0.0.0
</string>
<key>
CFBundleSignature
</key>
<string>
????
</string>
<key>
CFBundleVersion
</key>
<string>
1
</string>
<key>
LSRequiresIPhoneOS
</key>
<true/>
<key>
UILaunchStoryboardName
</key>
<string>
QGCLaunchScreen
</string>
<key>
UIRequiresFullScreen
</key>
<true/>
<key>
CFBundleInfoDictionaryVersion
</key>
<string>
6.0
</string>
<key>
ForAppStore
</key>
<string>
No
</string>
<key>
NSLocationUsageDescription
</key>
<string>
Ground Station Location
</string>
<key>
NSLocationWhenInUseUsageDescription
</key>
<string>
Ground Station Location
</string>
<key>
UISupportedInterfaceOrientations
</key>
<array>
<string>
UIInterfaceOrientationLandscapeLeft
</string>
<string>
UIInterfaceOrientationLandscapeRight
</string>
</array>
<key>
CFBundleIcons
</key>
<dict>
<key>
CFBundlePrimaryIcon
</key>
<dict>
<key>
CFBundleIconFiles
</key>
<array>
<string>
AppIcon29x29.png
</string>
<string>
AppIcon29x29@2x.png
</string>
<string>
AppIcon40x40@2x.png
</string>
<string>
AppIcon57x57.png
</string>
<string>
AppIcon57x57@2x.png
</string>
<string>
AppIcon60x60@2x.png
</string>
</array>
</dict>
</dict>
<key>
CFBundleIcons~ipad
</key>
<dict>
<key>
CFBundlePrimaryIcon
</key>
<dict>
<key>
CFBundleIconFiles
</key>
<array>
<string>
AppIcon29x29.png
</string>
<string>
AppIcon29x29@2x.png
</string>
<string>
AppIcon40x40@2x.png
</string>
<string>
AppIcon57x57.png
</string>
<string>
AppIcon57x57@2x.png
</string>
<string>
AppIcon60x60@2x.png
</string>
<string>
AppIcon29x29~ipad.png
</string>
<string>
AppIcon29x29@2x~ipad.png
</string>
<string>
AppIcon40x40~ipad.png
</string>
<string>
AppIcon40x40@2x~ipad.png
</string>
<string>
AppIcon50x50~ipad.png
</string>
<string>
AppIcon50x50@2x~ipad.png
</string>
<string>
AppIcon72x72~ipad.png
</string>
<string>
AppIcon72x72@2x~ipad.png
</string>
<string>
AppIcon76x76~ipad.png
</string>
<string>
AppIcon76x76@2x~ipad.png
</string>
<string>
AppIcon83.5x83.5@2x~ipad.png
</string>
</array>
</dict>
</dict>
</dict>
</plist>
src/FactSystem/FactControls/FactTextField.qml
View file @
2dbd131b
...
...
@@ -40,7 +40,7 @@ QGCTextField {
}
}
onHelpClicked
:
qgcView
.
showDialog
(
helpDialogComponent
,
qsTr
(
"
Value Details
"
),
qgcView
.
showDialogDefaultWidth
,
StandardButton
.
Save
)
onHelpClicked
:
qgcView
.
showDialog
(
helpDialogComponent
,
qsTr
(
"
Value Details
"
),
qgcView
.
showDialogDefaultWidth
,
StandardButton
.
Save
|
StandardButton
.
Cancel
)
Component
{
...
...
src/QmlControls/ParameterEditorDialog.qml
View file @
2dbd131b
...
...
@@ -7,12 +7,9 @@
*
****************************************************************************/
/// @file
/// @author Don Gagne <don@thegagnes.com>
import
QtQuick
2.5
import
QtQuick
.
Controls
1.3
import
QtQuick
.
Layouts
1.2
import
QGroundControl
.
Controls
1.0
import
QGroundControl
.
Palette
1.0
...
...
@@ -29,7 +26,8 @@ QGCViewDialog {
property
bool
validate
:
false
property
string
validateValue
property
real
_editFieldWidth
:
ScreenTools
.
defaultFontPixelWidth
*
20
property
real
_editFieldWidth
:
ScreenTools
.
defaultFontPixelWidth
*
20
property
bool
_longDescriptionAvailable
:
fact
.
longDescription
!=
""
ParameterEditorController
{
id
:
controller
;
factPanel
:
parent
}
...
...
@@ -68,7 +66,6 @@ QGCViewDialog {
validationError
.
text
=
fact
.
validate
(
validateValue
,
false
/* convertOnly */
)
forceSave
.
visible
=
true
}
//valueField.forceActiveFocus()
}
QGCFlickable
{
...
...
@@ -83,28 +80,24 @@ QGCViewDialog {
anchors.right
:
parent
.
right
QGCLabel
{
id
:
validationError
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
visible
:
fact
.
shortDescription
text
:
fact
.
shortDescription
}
QGCLabel
{
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
visible
:
fact
.
longDescription
text
:
fact
.
longDescription
color
:
qgcPal
.
warningText
}
Row
{
spacing
:
defaultTextWidth
RowLayout
{
spacing
:
defaultTextWidth
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
QGCTextField
{
id
:
valueField
text
:
validate
?
validateValue
:
fact
.
valueString
visible
:
fact
.
enumStrings
.
length
==
0
||
validate
//focus: true
id
:
valueField
text
:
validate
?
validateValue
:
fact
.
valueString
visible
:
fact
.
enumStrings
.
length
==
0
||
validate
unitsLabel
:
fact
.
units
showUnits
:
fact
.
units
!=
""
Layout.fillWidth
:
true
inputMethodHints
:
ScreenTools
.
isiOS
?
Qt
.
ImhNone
:
// iOS numeric keyboard has not done button, we can't use it
Qt
.
ImhFormattedNumbersOnly
// Forces use of virtual numeric keyboard
...
...
@@ -113,7 +106,6 @@ QGCViewDialog {
QGCButton
{
anchors.baseline
:
valueField
.
baseline
visible
:
fact
.
defaultValueAvailable
width
:
_editFieldWidth
text
:
qsTr
(
"
Reset to default
"
)
onClicked
:
{
...
...
@@ -159,63 +151,55 @@ QGCViewDialog {
}
QGCLabel
{
text
:
fact
.
name
visible
:
fact
.
componentId
>
0
// > 0 means it's a parameter fact
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
visible
:
!
longDescriptionLabel
.
visible
text
:
fact
.
shortDescription
}
Column
{
spacing
:
defaultTextHeight
/
2
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
Row
{
spacing
:
defaultTextWidth
QGCLabel
{
text
:
qsTr
(
"
Units:
"
)
}
QGCLabel
{
text
:
fact
.
units
?
fact
.
units
:
qsTr
(
"
none
"
)
}
}
Row
{
spacing
:
defaultTextWidth
visible
:
!
fact
.
minIsDefaultForType
QGCLabel
{
text
:
qsTr
(
"
Minimum value:
"
)
}
QGCLabel
{
text
:
fact
.
minString
}
}
QGCLabel
{
id
:
longDescriptionLabel
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
visible
:
fact
.
longDescription
!=
""
text
:
fact
.
longDescription
}
Row
{
spacing
:
defaultTextWidth
visible
:
!
fact
.
maxIsDefaultForType
Row
{
spacing
:
defaultTextWidth
QGCLabel
{
text
:
qsTr
(
"
Maximum value:
"
)
}
QGCLabel
{
text
:
fact
.
maxString
}
QGCLabel
{
id
:
minValueDisplay
text
:
qsTr
(
"
Min:
"
)
+
fact
.
minString
visible
:
!
fact
.
minIsDefaultForType
}
Row
{
spacing
:
defaultTextWidth
QGCLabel
{
text
:
qsTr
(
"
Default value:
"
)
}
QGCLabel
{
text
:
fact
.
defaultValueAvailable
?
fact
.
defaultValueString
:
qsTr
(
"
none
"
)
}
QGCLabel
{
text
:
qsTr
(
"
Max:
"
)
+
fact
.
maxString
visible
:
!
fact
.
maxIsDefaultForType
}
QGCLabel
{
visible
:
fact
.
rebootRequired
text
:
"
Reboot required after change
"
text
:
qsTr
(
"
Default:
"
)
+
fact
.
defaultValueString
visible
:
fact
.
defaultValueAvailable
}
}
// Column
}
QGCLabel
{
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
text
:
qsTr
(
"
Warning: Modifying values while vehicle is in flight can lead to vehicle instability and possible vehicle loss.
"
)
+
qsTr
(
"
Make sure you know what you are doing and double-check your values before Save!
"
)
text
:
qsTr
(
"
Parameter name:
"
)
+
fact
.
name
visible
:
fact
.
componentId
>
0
// > 0 means it's a parameter fact
}
QGCLabel
{
visible
:
fact
.
rebootRequired
text
:
"
Reboot required after change
"
}
QGCLabel
{
id
:
validationError
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
color
:
qsTr
(
"
yellow
"
)
text
:
qsTr
(
"
Warning: Modifying values while vehicle is in flight can lead to vehicle instability and possible vehicle loss.
"
)
+
qsTr
(
"
Make sure you know what you are doing and double-check your values before Save!
"
)
}
QGCCheckBox
{
...
...
src/QmlControls/QGCFlickable.qml
View file @
2dbd131b
...
...
@@ -6,6 +6,7 @@ import QGroundControl.Palette 1.0
Flickable
{
id
:
root
boundsBehavior
:
Flickable
.
StopAtBounds
clip
:
true
property
color
indicatorColor
:
qgcPal
.
text
...
...
src/QmlControls/QGCTextField.qml
View file @
2dbd131b
...
...
@@ -97,9 +97,10 @@ TextField {
}
MouseArea
{
anchors.fill
:
unitsHelpLayout
enabled
:
control
.
activeFocus
onClicked
:
root
.
helpClicked
()
anchors.margins
:
ScreenTools
.
isMobile
?
-
(
ScreenTools
.
defaultFontPixelWidth
*
0.66
)
:
0
// Larger touch area for mobile
anchors.fill
:
unitsHelpLayout
enabled
:
control
.
activeFocus
onClicked
:
root
.
helpClicked
()
}
}
...
...
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