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
8509f015
Commit
8509f015
authored
May 08, 2017
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some simple fixes
parent
22f6b1a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
QGCMAVLinkLogPlayer.cc
src/ui/QGCMAVLinkLogPlayer.cc
+10
-6
No files found.
src/ui/QGCMAVLinkLogPlayer.cc
View file @
8509f015
...
...
@@ -9,6 +9,8 @@
#include "QGC.h"
#include "ui_QGCMAVLinkLogPlayer.h"
#include "QGCApplication.h"
#include "SettingsManager.h"
#include "AppSettings.h"
#include "LinkManager.h"
#include "QGCQFileDialog.h"
#include "QGCMessageBox.h"
...
...
@@ -22,10 +24,10 @@ QGCMAVLinkLogPlayer::QGCMAVLinkLogPlayer(QWidget *parent) :
_ui
->
horizontalLayout
->
setAlignment
(
Qt
::
AlignTop
);
// Setup buttons
connect
(
_ui
->
selectFileButton
,
&
QPushButton
::
clicked
,
this
,
&
QGCMAVLinkLogPlayer
::
_selectLogFileForPlayback
);
connect
(
_ui
->
playButton
,
&
QPushButton
::
clicked
,
this
,
&
QGCMAVLinkLogPlayer
::
_playPauseToggle
);
connect
(
_ui
->
positionSlider
,
&
QSlider
::
valueChanged
,
this
,
&
QGCMAVLinkLogPlayer
::
_setPlayheadFromSlider
);
connect
(
_ui
->
positionSlider
,
&
QSlider
::
sliderPressed
,
this
,
&
QGCMAVLinkLogPlayer
::
_pause
);
connect
(
_ui
->
selectFileButton
,
&
QPushButton
::
clicked
,
this
,
&
QGCMAVLinkLogPlayer
::
_selectLogFileForPlayback
);
connect
(
_ui
->
playButton
,
&
QPushButton
::
clicked
,
this
,
&
QGCMAVLinkLogPlayer
::
_playPauseToggle
);
connect
(
_ui
->
positionSlider
,
&
QSlider
::
valueChanged
,
this
,
&
QGCMAVLinkLogPlayer
::
_setPlayheadFromSlider
);
connect
(
_ui
->
positionSlider
,
&
QSlider
::
sliderPressed
,
this
,
&
QGCMAVLinkLogPlayer
::
_pause
);
#if 0
// Speed slider is removed from 3.0 release. Too broken to fix.
...
...
@@ -71,8 +73,8 @@ void QGCMAVLinkLogPlayer::_selectLogFileForPlayback(void)
QString
logFilename
=
QGCQFileDialog
::
getOpenFileName
(
this
,
tr
(
"Load
MAVLink
Log File"
),
QStandardPaths
::
writableLocation
(
QStandardPaths
::
DocumentsLocation
),
tr
(
"Load
Telemetry
Log File"
),
qgcApp
()
->
toolbox
()
->
settingsManager
()
->
appSettings
()
->
telemetrySavePath
(
),
tr
(
"MAVLink Log Files (*.tlog);;All Files (*)"
));
if
(
logFilename
.
isEmpty
())
{
...
...
@@ -138,6 +140,7 @@ void QGCMAVLinkLogPlayer::_playbackStarted(void)
_enablePlaybackControls
(
true
);
_ui
->
playButton
->
setChecked
(
true
);
_ui
->
playButton
->
setIcon
(
QIcon
(
":/res/Pause"
));
_ui
->
positionSlider
->
setEnabled
(
false
);
}
/// Signalled from LogReplayLink when replay is paused
...
...
@@ -145,6 +148,7 @@ void QGCMAVLinkLogPlayer::_playbackPaused(void)
{
_ui
->
playButton
->
setIcon
(
QIcon
(
":/res/Play"
));
_ui
->
playButton
->
setChecked
(
false
);
_ui
->
positionSlider
->
setEnabled
(
true
);
}
void
QGCMAVLinkLogPlayer
::
_playbackPercentCompleteChanged
(
int
percentComplete
)
...
...
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