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
df70c98b
Commit
df70c98b
authored
Sep 08, 2011
by
LM
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-lin' of github.com:pixhawk/qgroundcontrol into dev-mac
parents
fc90eecd
758258fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
configuration.h
src/configuration.h
+2
-2
LinechartWidget.cc
src/ui/linechart/LinechartWidget.cc
+5
-8
No files found.
src/configuration.h
View file @
df70c98b
...
...
@@ -12,14 +12,14 @@
#define WITH_TEXT_TO_SPEECH 1
#define QGC_APPLICATION_NAME "QGroundControl"
#define QGC_APPLICATION_VERSION "v. 0.9.
0
(Alpha RC1)"
#define QGC_APPLICATION_VERSION "v. 0.9.
1
(Alpha RC1)"
namespace
QGC
{
const
QString
APPNAME
=
"QGROUNDCONTROL"
;
const
QString
COMPANYNAME
=
"QGROUNDCONTROL"
;
const
int
APPLICATIONVERSION
=
9
0
;
// 0.9.0
const
int
APPLICATIONVERSION
=
9
1
;
// 0.9.0
}
#endif // QGC_CONFIGURATION_H
src/ui/linechart/LinechartWidget.cc
View file @
df70c98b
...
...
@@ -453,11 +453,6 @@ void LinechartWidget::startLogging()
// QString("./pixhawk-log-" + date.toString("yyyy-MM-dd") + "-" + QString::number(logindex) + ".log")
QString
fileName
=
QFileDialog
::
getSaveFileName
(
this
,
tr
(
"Specify log file name"
),
QDesktopServices
::
storageLocation
(
QDesktopServices
::
DesktopLocation
),
tr
(
"Logfile (*.csv *.txt);;"
));
if
(
!
fileName
.
contains
(
"."
))
{
// .csv is default extension
fileName
.
append
(
".csv"
);
}
while
(
!
(
fileName
.
endsWith
(
".txt"
)
||
fileName
.
endsWith
(
".csv"
))
&&
!
abort
&&
fileName
!=
""
)
{
QMessageBox
msgBox
;
msgBox
.
setIcon
(
QMessageBox
::
Critical
);
...
...
@@ -465,14 +460,16 @@ void LinechartWidget::startLogging()
msgBox
.
setInformativeText
(
"Please choose .txt or .csv as file extension. Click OK to change the file extension, cancel to not start logging."
);
msgBox
.
setStandardButtons
(
QMessageBox
::
Ok
|
QMessageBox
::
Cancel
);
msgBox
.
setDefaultButton
(
QMessageBox
::
Ok
);
if
(
msgBox
.
exec
()
==
QMessageBox
::
Cancel
)
{
if
(
msgBox
.
exec
()
!=
QMessageBox
::
Ok
)
{
abort
=
true
;
break
;
}
fileName
=
QFileDialog
::
getSaveFileName
(
this
,
tr
(
"Specify log file name"
),
QDesktopServices
::
storageLocation
(
QDesktopServices
::
DesktopLocation
),
tr
(
"Logfile (*.txt, *.csv);;"
));
fileName
=
QFileDialog
::
getSaveFileName
(
this
,
tr
(
"Specify log file name"
),
QDesktopServices
::
storageLocation
(
QDesktopServices
::
DesktopLocation
),
tr
(
"Logfile (*.txt *.csv);;"
));
}
qDebug
()
<<
"SAVE FILE"
<<
fileName
;
// Check if the user did not abort the file save dialog
if
(
!
abort
&&
fileName
!=
""
)
{
logFile
=
new
QFile
(
fileName
);
...
...
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