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
36c30bff
Commit
36c30bff
authored
Apr 06, 2016
by
Nate Weibley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up AppMessages QML
parent
a552bc72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
69 deletions
+60
-69
AppMessages.qml
src/QmlControls/AppMessages.qml
+60
-69
No files found.
src/QmlControls/AppMessages.qml
View file @
36c30bff
...
...
@@ -31,14 +31,16 @@ import QGroundControl.Controls 1.0
import
QGroundControl
.
Controllers
1.0
import
QGroundControl
.
ScreenTools
1.0
QGCView
{
viewPanel
:
panel
id
:
logwindow
Rectangle
{
id
:
logwindow
anchors.fill
:
parent
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
color
:
qgcPal
.
window
property
bool
loaded
:
false
QGCPalette
{
id
:
qgcPal
}
Connections
{
target
:
debugMessageModel
...
...
@@ -70,78 +72,67 @@ QGCView {
}
}
QGCViewPanel
{
id
:
panel
anchors.fill
:
parent
Rectangle
{
anchors.fill
:
parent
color
:
qgcPal
.
window
}
ListView
{
Component.onCompleted
:
{
loaded
=
true
}
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
anchors.top
:
parent
.
top
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.bottom
:
followTail
.
top
id
:
listview
model
:
debugMessageModel
delegate
:
delegateItem
ListView
{
Component.onCompleted
:
{
loaded
=
true
}
anchors.top
:
parent
.
top
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.bottom
:
followTail
.
top
anchors.bottomMargin
:
ScreenTools
.
defaultFontPixelWidth
clip
:
true
id
:
listview
model
:
debugMessageModel
delegate
:
delegateItem
}
FileDialog
{
id
:
writeDialog
folder
:
shortcuts
.
home
nameFilters
:
[
"
Log files (*.txt)
"
,
"
All Files (*)
"
]
selectExisting
:
false
title
:
"
Select log save file
"
onAccepted
:
{
debugMessageModel
.
writeMessages
(
fileUrl
);
visible
=
false
;
}
onRejected
:
visible
=
false
FileDialog
{
id
:
writeDialog
folder
:
shortcuts
.
home
nameFilters
:
[
"
Log files (*.txt)
"
,
"
All Files (*)
"
]
selectExisting
:
false
title
:
"
Select log save file
"
onAccepted
:
{
debugMessageModel
.
writeMessages
(
fileUrl
);
visible
=
false
;
}
onRejected
:
visible
=
false
}
Connections
{
target
:
debugMessageModel
onWriteStarted
:
writeButton
.
enabled
=
false
;
onWriteFinished
:
writeButton
.
enabled
=
true
;
}
Connections
{
target
:
debugMessageModel
onWriteStarted
:
writeButton
.
enabled
=
false
;
onWriteFinished
:
writeButton
.
enabled
=
true
;
}
QGCButton
{
id
:
writeButton
anchors.bottom
:
parent
.
bottom
anchors.left
:
parent
.
left
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
onClicked
:
writeDialog
.
visible
=
true
text
:
"
Save App Log
"
}
QGCButton
{
id
:
writeButton
anchors.bottom
:
parent
.
bottom
anchors.left
:
parent
.
left
onClicked
:
writeDialog
.
visible
=
true
text
:
"
Save App Log
"
}
BusyIndicator
{
id
:
writeBusy
anchors.bottom
:
writeButton
.
bottom
anchors.left
:
writeButton
.
right
height
:
writeButton
.
height
visible
:
!
writeButton
.
enabled
}
BusyIndicator
{
id
:
writeBusy
anchors.bottom
:
writeButton
.
bottom
anchors.left
:
writeButton
.
right
height
:
writeButton
.
height
visible
:
!
writeButton
.
enabled
}
QGCButton
{
id
:
followTail
anchors.bottom
:
parent
.
bottom
anchors.right
:
parent
.
right
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
text
:
"
Show Latest
"
checkable
:
true
checked
:
true
onCheckedChanged
:
{
if
(
checked
&&
loaded
)
{
listview
.
positionViewAtEnd
();
}
QGCButton
{
id
:
followTail
anchors.bottom
:
parent
.
bottom
anchors.right
:
parent
.
right
text
:
"
Show Latest
"
checkable
:
true
checked
:
true
onCheckedChanged
:
{
if
(
checked
&&
loaded
)
{
listview
.
positionViewAtEnd
();
}
}
}
...
...
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