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
2b8196b1
Commit
2b8196b1
authored
Feb 02, 2015
by
dogmaphobic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding and/or fixing even more captions.
parent
81b4fd3a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
QGCDataPlot2D.cc
src/ui/QGCDataPlot2D.cc
+9
-5
QGCToolWidget.cc
src/ui/designer/QGCToolWidget.cc
+2
-2
LinechartWidget.cc
src/ui/linechart/LinechartWidget.cc
+1
-1
No files found.
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
.
contains
(
".txt"
)
||
fileName
.
contains
(
".csv"
)
||
fileName
.
contains
(
".
csv"
))
{
}
else
if
(
fi
.
suffix
()
==
QString
(
"txt"
)
||
fi
.
suffix
()
==
QString
(
"
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 Nam
e"
),
this
,
tr
(
"S
ave Widget Fil
e"
),
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 Nam
e"
),
tr
(
"S
ave Log Fil
e"
),
QStandardPaths
::
writableLocation
(
QStandardPaths
::
DesktopLocation
),
tr
(
"Log file (*.log)"
),
"log"
);
...
...
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