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
7f1d60e3
Commit
7f1d60e3
authored
May 25, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove X to close since it conflicts with QGCViewDialogs
parent
b8d25964
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
146 additions
and
95 deletions
+146
-95
AppMessages.qml
src/QmlControls/AppMessages.qml
+146
-95
No files found.
src/QmlControls/AppMessages.qml
View file @
7f1d60e3
...
@@ -26,21 +26,60 @@ import QtQuick.Controls 1.2
...
@@ -26,21 +26,60 @@ import QtQuick.Controls 1.2
import
QtQuick
.
Controls
.
Styles
1.2
import
QtQuick
.
Controls
.
Styles
1.2
import
QtQuick
.
Dialogs
1.2
import
QtQuick
.
Dialogs
1.2
import
QGroundControl
1.0
import
QGroundControl
.
Palette
1.0
import
QGroundControl
.
Palette
1.0
import
QGroundControl
.
Controls
1.0
import
QGroundControl
.
Controls
1.0
import
QGroundControl
.
Controllers
1.0
import
QGroundControl
.
Controllers
1.0
import
QGroundControl
.
ScreenTools
1.0
import
QGroundControl
.
ScreenTools
1.0
Rectangle
{
QGCView
{
id
:
qgcView
viewPanel
:
panel
property
bool
loaded
:
false
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
panel
.
enabled
}
Component
{
id
:
filtersDialogComponent
QGCViewDialog
{
QGCFlickable
{
anchors.fill
:
parent
contentHeight
:
categoryColumn
.
height
clip
:
true
Column
{
id
:
categoryColumn
spacing
:
ScreenTools
.
defaultFontPixelHeight
/
2
Repeater
{
model
:
QGroundControl
.
loggingCategories
()
QGCCheckBox
{
text
:
modelData
checked
:
QGroundControl
.
categoryLoggingOn
(
modelData
)
onClicked
:
{
QGroundControl
.
setCategoryLoggingOn
(
modelData
,
checked
)
QGroundControl
.
updateLoggingFilterRules
()
}
}
}
}
}
}
// QGCViewDialog
}
// Component - filtersDialogComponent
QGCViewPanel
{
id
:
panel
anchors.fill
:
parent
Rectangle
{
id
:
logwindow
id
:
logwindow
anchors.fill
:
parent
anchors.fill
:
parent
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
color
:
qgcPal
.
window
color
:
qgcPal
.
window
property
bool
loaded
:
false
QGCPalette
{
id
:
qgcPal
}
Connections
{
Connections
{
target
:
debugMessageModel
target
:
debugMessageModel
...
@@ -91,9 +130,9 @@ Rectangle {
...
@@ -91,9 +130,9 @@ Rectangle {
FileDialog
{
FileDialog
{
id
:
writeDialog
id
:
writeDialog
folder
:
shortcuts
.
home
folder
:
shortcuts
.
home
nameFilters
:
[
"
Log files (*.txt)
"
,
"
All Files (*)
"
]
nameFilters
:
[
qsTr
(
"
Log files (*.txt)
"
),
qsTr
(
"
All Files (*)
"
)
]
selectExisting
:
false
selectExisting
:
false
title
:
"
Select log save file
"
title
:
qsTr
(
"
Select log save file
"
)
onAccepted
:
{
onAccepted
:
{
debugMessageModel
.
writeMessages
(
fileUrl
);
debugMessageModel
.
writeMessages
(
fileUrl
);
visible
=
false
;
visible
=
false
;
...
@@ -112,7 +151,7 @@ Rectangle {
...
@@ -112,7 +151,7 @@ Rectangle {
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
onClicked
:
writeDialog
.
visible
=
true
onClicked
:
writeDialog
.
visible
=
true
text
:
"
Save App Log
"
text
:
qsTr
(
"
Save App Log
"
)
}
}
BusyIndicator
{
BusyIndicator
{
...
@@ -125,9 +164,10 @@ Rectangle {
...
@@ -125,9 +164,10 @@ Rectangle {
QGCButton
{
QGCButton
{
id
:
followTail
id
:
followTail
anchors.right
:
filterButton
.
left
anchors.rightMargin
:
ScreenTools
.
defaultFontPixelWidth
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
anchors.right
:
parent
.
right
text
:
qsTr
(
"
Show Latest
"
)
text
:
"
Show Latest
"
checkable
:
true
checkable
:
true
checked
:
true
checked
:
true
...
@@ -137,4 +177,15 @@ Rectangle {
...
@@ -137,4 +177,15 @@ Rectangle {
}
}
}
}
}
}
}
QGCButton
{
id
:
filterButton
anchors.bottom
:
parent
.
bottom
anchors.right
:
parent
.
right
text
:
qsTr
(
"
Set logging
"
)
onClicked
:
showDialog
(
filtersDialogComponent
,
qsTr
(
"
Turn on logging categories
"
),
qgcView
.
showDialogDefaultWidth
,
StandardButton
.
Close
)
}
}
}
// QGCViewPanel
}
// QGCView
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