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
0c7e970a
Commit
0c7e970a
authored
Feb 29, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for small screens
parent
5a508286
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
156 additions
and
134 deletions
+156
-134
QGCLabel.qml
src/QmlControls/QGCLabel.qml
+1
-0
OfflineMap.qml
src/QtLocationPlugin/QMLControl/OfflineMap.qml
+21
-15
MainWindowLeftPanel.qml
src/ui/MainWindowLeftPanel.qml
+91
-80
GeneralSettings.qml
src/ui/preferences/GeneralSettings.qml
+2
-3
LinkSettings.qml
src/ui/preferences/LinkSettings.qml
+0
-4
MavlinkSettings.qml
src/ui/preferences/MavlinkSettings.qml
+3
-3
MockLink.qml
src/ui/preferences/MockLink.qml
+38
-29
No files found.
src/QmlControls/QGCLabel.qml
View file @
0c7e970a
...
...
@@ -11,6 +11,7 @@ Text {
property
bool
enabled
:
true
font.pixelSize
:
ScreenTools
.
defaultFontPixelSize
fontSizeMode
:
Text
.
HorizontalFit
color
:
__qgcPal
.
text
antialiasing
:
true
}
src/QtLocationPlugin/QMLControl/OfflineMap.qml
View file @
0c7e970a
...
...
@@ -156,6 +156,7 @@ Rectangle {
errorDialog
.
visible
=
false
}
}
Rectangle
{
id
:
_offlineMapTopRect
width
:
parent
.
width
...
...
@@ -180,25 +181,29 @@ Rectangle {
}
}
}
QGCFlickable
{
id
:
_tileSetList
clip
:
true
anchors.top
:
_offlineMapTopRect
.
bottom
width
:
parent
.
width
height
:
parent
.
height
-
_offlineMapTopRect
.
height
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.bottom
:
_optionsButton
.
top
contentHeight
:
_cacheList
.
height
contentWidth
:
parent
.
width
flickableDirection
:
Flickable
.
VerticalFlick
Column
{
id
:
_cacheList
width
:
_offlineMapRoot
.
width
width
:
Math
.
min
(
parent
.
width
,
(
ScreenTools
.
defaultFontPixelWidth
*
50
).
toFixed
(
0
))
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
spacing
:
(
ScreenTools
.
defaultFontPixelHeight
*
0.5
).
toFixed
(
0
)
anchors.horizontalCenter
:
parent
.
horizontalCenter
OfflineMapButton
{
text
:
"
Add new set
"
width
:
(
ScreenTools
.
defaultFontPixelWidth
*
50
).
toFixed
(
0
)
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
height
:
(
ScreenTools
.
defaultFontPixelHeight
*
2
).
toFixed
(
0
)
anchors.horizontalCenter
:
parent
.
horizontalCenter
onClicked
:
{
_offlineMapRoot
.
_currentSelection
=
null
showMap
()
...
...
@@ -210,9 +215,9 @@ Rectangle {
text
:
object
.
name
size
:
object
.
downloadStatus
complete
:
object
.
complete
width
:
(
ScreenTools
.
defaultFontPixelWidth
*
50
).
toFixed
(
0
)
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
height
:
(
ScreenTools
.
defaultFontPixelHeight
*
2
).
toFixed
(
0
)
anchors.horizontalCenter
:
parent
.
horizontalCenter
onClicked
:
{
_offlineMapRoot
.
_currentSelection
=
object
showInfo
()
...
...
@@ -221,16 +226,17 @@ Rectangle {
}
}
}
QGCButton
{
id
:
_optionsButton
text
:
"
Options
"
width
:
ScreenTools
.
defaultFontPixelWidth
*
10
visible
:
_tileSetList
.
visible
anchors.bottom
:
parent
.
bottom
anchors.right
:
parent
.
right
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
onClicked
:
showOptions
()
}
//-- Offline Map Definition
Rectangle
{
id
:
_mapView
...
...
src/ui/MainWindowLeftPanel.qml
View file @
0c7e970a
...
...
@@ -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,31 +130,40 @@ 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
QGCFlickable
{
anchors.fill
:
parent
contentHeight
:
buttonColumn
.
height
+
_margins
flickableDirection
:
Flickable
.
VerticalFlick
clip
:
true
ExclusiveGroup
{
id
:
panelActionGroup
}
Column
{
width
:
parent
.
width
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
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
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
text
:
"
General
"
exclusiveGroup
:
panelActionGroup
anchors.horizontalCenter
:
parent
.
horizontalCenter
onClicked
:
{
if
(
__rightPanel
.
source
!=
"
GeneralSettings.qml
"
)
{
__rightPanel
.
source
=
"
GeneralSettings.qml
"
...
...
@@ -161,12 +171,12 @@ Item {
checked
=
true
}
}
QGCButton
{
width
:
parent
.
width
*
0.85
height
:
ScreenTools
.
defaultFontPixelHeight
*
2.5
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
text
:
"
Comm Links
"
exclusiveGroup
:
panelActionGroup
anchors.horizontalCenter
:
parent
.
horizontalCenter
onClicked
:
{
if
(
__rightPanel
.
source
!=
"
LinkSettings.qml
"
)
{
__rightPanel
.
source
=
"
LinkSettings.qml
"
...
...
@@ -174,12 +184,12 @@ Item {
checked
=
true
}
}
QGCButton
{
width
:
parent
.
width
*
0.85
height
:
ScreenTools
.
defaultFontPixelHeight
*
2.5
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
text
:
"
Offline Maps
"
exclusiveGroup
:
panelActionGroup
anchors.horizontalCenter
:
parent
.
horizontalCenter
onClicked
:
{
if
(
__rightPanel
.
source
!=
"
OfflineMap.qml
"
)
{
__rightPanel
.
source
=
"
OfflineMap.qml
"
...
...
@@ -187,12 +197,12 @@ Item {
checked
=
true
}
}
QGCButton
{
width
:
parent
.
width
*
0.85
height
:
ScreenTools
.
defaultFontPixelHeight
*
2.5
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
text
:
"
MavLink
"
exclusiveGroup
:
panelActionGroup
anchors.horizontalCenter
:
parent
.
horizontalCenter
onClicked
:
{
if
(
__rightPanel
.
source
!=
"
MavlinkSettings.qml
"
)
{
__rightPanel
.
source
=
"
MavlinkSettings.qml
"
...
...
@@ -200,13 +210,13 @@ Item {
checked
=
true
}
}
QGCButton
{
width
:
parent
.
width
*
0.85
height
:
ScreenTools
.
defaultFontPixelHeight
*
2.5
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
text
:
"
Mock Link
"
visible
:
ScreenTools
.
isDebug
exclusiveGroup
:
panelActionGroup
anchors.horizontalCenter
:
parent
.
horizontalCenter
onClicked
:
{
if
(
__rightPanel
.
source
!=
"
MockLink.qml
"
)
{
__rightPanel
.
source
=
"
MockLink.qml
"
...
...
@@ -214,13 +224,13 @@ Item {
checked
=
true
}
}
QGCButton
{
width
:
parent
.
width
*
0.85
height
:
ScreenTools
.
defaultFontPixelHeight
*
2.5
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
text
:
"
Debug
"
visible
:
ScreenTools
.
isDebug
exclusiveGroup
:
panelActionGroup
anchors.horizontalCenter
:
parent
.
horizontalCenter
onClicked
:
{
if
(
__rightPanel
.
source
!=
"
DebugWindow.qml
"
)
{
__rightPanel
.
source
=
"
DebugWindow.qml
"
...
...
@@ -230,6 +240,7 @@ Item {
}
}
}
}
//-- Clicking in tool bar area dismiss it all
MouseArea
{
...
...
src/ui/preferences/GeneralSettings.qml
View file @
0c7e970a
...
...
@@ -49,14 +49,13 @@ Rectangle {
clip
:
true
anchors.fill
:
parent
contentHeight
:
settingsColumn
.
height
contentWidth
:
_generalRoot
.
width
flickableDirection
:
Flickable
.
VerticalFlick
contentWidth
:
settingsColumn
.
width
Column
{
id
:
settingsColumn
width
:
_generalRoot
.
width
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
spacing
:
ScreenTools
.
defaultFontPixelHeight
/
2
QGCLabel
{
text
:
"
General Settings
"
font.pixelSize
:
ScreenTools
.
mediumFontPixelSize
...
...
src/ui/preferences/LinkSettings.qml
View file @
0c7e970a
...
...
@@ -134,7 +134,6 @@ Rectangle {
}
}
QGCButton
{
width
:
ScreenTools
.
defaultFontPixelWidth
*
10
text
:
"
Edit
"
enabled
:
_currentSelection
&&
!
_currentSelection
.
link
onClicked
:
{
...
...
@@ -142,14 +141,12 @@ Rectangle {
}
}
QGCButton
{
width
:
ScreenTools
.
defaultFontPixelWidth
*
10
text
:
"
Add
"
onClicked
:
{
_linkRoot
.
openCommSettings
(
null
)
}
}
QGCButton
{
width
:
ScreenTools
.
defaultFontPixelWidth
*
10
text
:
"
Connect
"
enabled
:
_currentSelection
&&
!
_currentSelection
.
link
onClicked
:
{
...
...
@@ -158,7 +155,6 @@ Rectangle {
}
}
QGCButton
{
width
:
ScreenTools
.
defaultFontPixelWidth
*
10
text
:
"
Disconnect
"
enabled
:
_currentSelection
&&
_currentSelection
.
link
onClicked
:
{
...
...
src/ui/preferences/MavlinkSettings.qml
View file @
0c7e970a
...
...
@@ -48,14 +48,14 @@ Rectangle {
anchors.fill
:
parent
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
contentHeight
:
settingsColumn
.
height
contentWidth
:
__mavlinkRoot
.
width
flickableDirection
:
Flickable
.
VerticalFlick
contentWidth
:
settingsColumn
.
width
Column
{
id
:
settingsColumn
width
:
__mavlinkRoot
.
width
spacing
:
ScreenTools
.
defaultFontPixelHeight
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.left
:
parent
.
left
anchors.top
:
parent
.
top
QGCLabel
{
text
:
"
MavLink Settings
"
font.pixelSize
:
ScreenTools
.
mediumFontPixelSize
...
...
src/ui/preferences/MockLink.qml
View file @
0c7e970a
...
...
@@ -30,10 +30,18 @@ import QGroundControl.ScreenTools 1.0
Rectangle
{
color
:
qgcPal
.
window
anchors.fill
:
parent
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
true
}
QGCFlickable
{
anchors.fill
:
parent
contentWidth
:
column
.
width
contentHeight
:
column
.
height
clip
:
true
Column
{
id
:
column
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
anchors.left
:
parent
.
left
anchors.top
:
parent
.
top
...
...
@@ -64,4 +72,5 @@ Rectangle {
onClicked
:
QGroundControl
.
stopAllMockLinks
()
}
}
}
}
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