Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
2b8196b1
Commit
2b8196b1
authored
Feb 02, 2015
by
dogmaphobic
Browse files
Adding and/or fixing even more captions.
parent
81b4fd3a
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/ui/QGCDataPlot2D.cc
View file @
2b8196b1
...
...
@@ -100,13 +100,17 @@ void QGCDataPlot2D::loadFile()
void
QGCDataPlot2D
::
loadFile
(
QString
file
)
{
// TODO This "filename" is a private/protected member variable. It should be named in such way
// it indicates so. This same name is used in several places within this file in local scopes.
fileName
=
file
;
if
(
QFileInfo
(
fileName
).
isReadable
())
{
if
(
fileName
.
contains
(
".raw"
)
||
fileName
.
contains
(
".imu"
))
{
QFileInfo
fi
(
fileName
);
if
(
fi
.
isReadable
())
{
if
(
fi
.
suffix
()
==
QString
(
"raw"
)
||
fi
.
suffix
()
==
QString
(
"imu"
))
{
loadRawLog
(
fileName
);
}
else
if
(
fi
leName
.
conta
in
s
(
"
.
txt"
)
||
fi
leName
.
contains
(
".csv"
)
||
fileName
.
conta
in
s
(
"
.
csv"
))
{
}
else
if
(
fi
.
suffix
()
==
QStr
in
g
(
"txt"
)
||
fi
.
suffix
()
==
QStr
in
g
(
"csv"
))
{
loadCsvLog
(
fileName
);
}
// TODO Else, tell the user it doesn't know what to do with the file...
}
}
...
...
@@ -116,7 +120,7 @@ void QGCDataPlot2D::loadFile(QString file)
QString
QGCDataPlot2D
::
getSavePlotFilename
()
{
QString
fileName
=
QGCFileDialog
::
getSaveFileName
(
this
,
"
Export
Plot File"
,
QStandardPaths
::
writableLocation
(
QStandardPaths
::
DesktopLocation
),
this
,
"
Save
Plot File"
,
QStandardPaths
::
writableLocation
(
QStandardPaths
::
DesktopLocation
),
"PDF Documents (*.pdf);;SVG Images (*.svg)"
,
"pdf"
);
return
fileName
;
...
...
@@ -691,7 +695,7 @@ bool QGCDataPlot2D::linearRegression(double *x, double *y, int n, double *a, dou
void
QGCDataPlot2D
::
saveCsvLog
()
{
QString
fileName
=
QGCFileDialog
::
getSaveFileName
(
this
,
"
Export CSV File Nam
e"
,
QStandardPaths
::
writableLocation
(
QStandardPaths
::
DesktopLocation
),
this
,
"
Save CSV Log Fil
e"
,
QStandardPaths
::
writableLocation
(
QStandardPaths
::
DesktopLocation
),
"CSV file (*.csv);;Text file (*.txt)"
,
"csv"
);
...
...
src/ui/designer/QGCToolWidget.cc
View file @
2b8196b1
...
...
@@ -573,7 +573,7 @@ void QGCToolWidget::exportWidget()
{
const
QString
widgetFileExtension
(
".qgw"
);
QString
fileName
=
QGCFileDialog
::
getSaveFileName
(
this
,
tr
(
"S
pecify
Widget File
Name
"
),
this
,
tr
(
"S
ave
Widget File"
),
QStandardPaths
::
writableLocation
(
QStandardPaths
::
DesktopLocation
),
tr
(
"QGroundControl Widget (*%1)"
).
arg
(
widgetFileExtension
),
"qgw"
);
...
...
@@ -589,7 +589,7 @@ void QGCToolWidget::exportWidget()
void
QGCToolWidget
::
importWidget
()
{
const
QString
widgetFileExtension
(
".qgw"
);
QString
fileName
=
QGCFileDialog
::
getOpenFileName
(
this
,
tr
(
"
Specify File Nam
e"
),
QStandardPaths
::
writableLocation
(
QStandardPaths
::
DesktopLocation
),
tr
(
"QGroundControl Widget (*%1)"
).
arg
(
widgetFileExtension
));
QString
fileName
=
QGCFileDialog
::
getOpenFileName
(
this
,
tr
(
"
Load Widget Fil
e"
),
QStandardPaths
::
writableLocation
(
QStandardPaths
::
DesktopLocation
),
tr
(
"QGroundControl Widget (*%1)"
).
arg
(
widgetFileExtension
));
loadSettings
(
fileName
);
}
...
...
src/ui/linechart/LinechartWidget.cc
View file @
2b8196b1
...
...
@@ -434,7 +434,7 @@ void LinechartWidget::refresh()
QString
LinechartWidget
::
getLogSaveFilename
()
{
QString
fileName
=
QGCFileDialog
::
getSaveFileName
(
this
,
tr
(
"S
pecify
Log File
Name
"
),
tr
(
"S
ave
Log File"
),
QStandardPaths
::
writableLocation
(
QStandardPaths
::
DesktopLocation
),
tr
(
"Log file (*.log)"
),
"log"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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