Commit e3136fc4 authored by dogmaphobic's avatar dogmaphobic

Fixing grammar in file filters (and making them consistent).

parent 53751dfe
......@@ -106,7 +106,7 @@ void QGCBaseParamWidget::saveParametersToFile()
if (!mav)
return;
QString fileName = QGCFileDialog::getSaveFileName(
this, tr("Save Parameters"), qgcApp()->savedParameterFilesLocation(), tr("Parameter File (*.params)"), "params", true);
this, tr("Save Parameters"), qgcApp()->savedParameterFilesLocation(), tr("Parameter Files (*.params)"), "params", true);
if (!fileName.isEmpty()) {
QFile file(fileName);
// TODO Display error message to the user if the file can't be created
......@@ -126,7 +126,7 @@ void QGCBaseParamWidget::loadParametersFromFile()
return;
QString fileName = QGCFileDialog::getOpenFileName(
this, tr("Load Parameters"), qgcApp()->savedParameterFilesLocation(),
tr("Parameter file (*.params);;All Files (*)"));
tr("Parameter files (*.params);;All Files (*)"));
QFile file(fileName);
// TODO Display error message to the user if the file can't be opened
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
......
......@@ -699,7 +699,7 @@ void QGCDataPlot2D::saveCsvLog()
{
QString fileName = QGCFileDialog::getSaveFileName(
this, "Save CSV Log File", QStandardPaths::writableLocation(QStandardPaths::DesktopLocation),
"CSV file (*.csv)",
"CSV files (*.csv)",
"csv",
true);
......
......@@ -266,7 +266,7 @@ void QGCMAVLinkLogPlayer::_selectLogFileForPlayback(void)
this,
tr("Load MAVLink Log File"),
qgcApp()->mavlinkLogFilesLocation(),
tr("MAVLink or Binary Logfile (*.mavlink *.bin *.log);;All Files (*)"));
tr("MAVLink or Binary Log Files (*.mavlink *.bin *.log);;All Files (*)"));
if (!logFile.isEmpty()) {
loadLogFile(logFile);
......
......@@ -218,14 +218,14 @@ void WaypointList::setUAS(UASInterface* uas)
void WaypointList::saveWaypoints()
{
// TODO Need better default directory
QString fileName = QGCFileDialog::getSaveFileName(this, tr("Save Waypoint File"), "./untitled.waypoints", tr("Waypoint File (*.waypoints)"), "waypoints", true);
QString fileName = QGCFileDialog::getSaveFileName(this, tr("Save Waypoint File"), "./untitled.waypoints", tr("Waypoint Files (*.waypoints)"), "waypoints", true);
WPM->saveWaypoints(fileName);
}
void WaypointList::loadWaypoints()
{
// TODO Need better default directory
QString fileName = QGCFileDialog::getOpenFileName(this, tr("Load Waypoint File"), ".", tr("Waypoint File (*.waypoints);;All Files (*)"));
QString fileName = QGCFileDialog::getOpenFileName(this, tr("Load Waypoint File"), ".", tr("Waypoint Files (*.waypoints);;All Files (*)"));
WPM->loadWaypoints(fileName);
}
......
......@@ -575,7 +575,7 @@ void QGCToolWidget::exportWidget()
QString fileName = QGCFileDialog::getSaveFileName(
this, tr("Save Widget File"),
QStandardPaths::writableLocation(QStandardPaths::DesktopLocation),
tr("QGroundControl Widget (*.qgw)"),
tr("QGroundControl Widget Files (*.qgw)"),
"qgw",
true);
//-- Save it if we have it
......@@ -589,7 +589,7 @@ void QGCToolWidget::importWidget()
{
QString fileName = QGCFileDialog::getOpenFileName(
this, tr("Load Widget File"), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation),
tr("QGroundControl Widget (*.qgw);;All Files (*)"));
tr("QGroundControl Widget Files (*.qgw);;All Files (*)"));
if (!fileName.isEmpty()) {
// TODO There is no error checking. If the load fails, there is nothing telling the user what happened.
loadSettings(fileName);
......
......@@ -447,7 +447,7 @@ void LinechartWidget::startLogging()
QString fileName = QGCFileDialog::getSaveFileName(this,
tr("Save Log File"),
QStandardPaths::writableLocation(QStandardPaths::DesktopLocation),
tr("Log file (*.log)"),
tr("Log files (*.log)"),
"log", // Default type
true); // Enforce default type
......
......@@ -590,7 +590,7 @@ Pixhawk3DWidget::loadTerrainModel(void)
QString filename = QGCFileDialog::getOpenFileName(
this, "Load Terrain Model",
QStandardPaths::writableLocation(QStandardPaths::DesktopLocation),
tr("Collada (*.dae)"));
tr("Collada Files (*.dae)"));
if (filename.isEmpty())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment