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() ...@@ -106,7 +106,7 @@ void QGCBaseParamWidget::saveParametersToFile()
if (!mav) if (!mav)
return; return;
QString fileName = QGCFileDialog::getSaveFileName( 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()) { if (!fileName.isEmpty()) {
QFile file(fileName); QFile file(fileName);
// TODO Display error message to the user if the file can't be created // TODO Display error message to the user if the file can't be created
...@@ -126,7 +126,7 @@ void QGCBaseParamWidget::loadParametersFromFile() ...@@ -126,7 +126,7 @@ void QGCBaseParamWidget::loadParametersFromFile()
return; return;
QString fileName = QGCFileDialog::getOpenFileName( QString fileName = QGCFileDialog::getOpenFileName(
this, tr("Load Parameters"), qgcApp()->savedParameterFilesLocation(), this, tr("Load Parameters"), qgcApp()->savedParameterFilesLocation(),
tr("Parameter file (*.params);;All Files (*)")); tr("Parameter files (*.params);;All Files (*)"));
QFile file(fileName); QFile file(fileName);
// TODO Display error message to the user if the file can't be opened // TODO Display error message to the user if the file can't be opened
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
......
...@@ -699,7 +699,7 @@ void QGCDataPlot2D::saveCsvLog() ...@@ -699,7 +699,7 @@ void QGCDataPlot2D::saveCsvLog()
{ {
QString fileName = QGCFileDialog::getSaveFileName( QString fileName = QGCFileDialog::getSaveFileName(
this, "Save CSV Log File", QStandardPaths::writableLocation(QStandardPaths::DesktopLocation), this, "Save CSV Log File", QStandardPaths::writableLocation(QStandardPaths::DesktopLocation),
"CSV file (*.csv)", "CSV files (*.csv)",
"csv", "csv",
true); true);
......
...@@ -266,7 +266,7 @@ void QGCMAVLinkLogPlayer::_selectLogFileForPlayback(void) ...@@ -266,7 +266,7 @@ void QGCMAVLinkLogPlayer::_selectLogFileForPlayback(void)
this, this,
tr("Load MAVLink Log File"), tr("Load MAVLink Log File"),
qgcApp()->mavlinkLogFilesLocation(), 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()) { if (!logFile.isEmpty()) {
loadLogFile(logFile); loadLogFile(logFile);
......
...@@ -218,14 +218,14 @@ void WaypointList::setUAS(UASInterface* uas) ...@@ -218,14 +218,14 @@ void WaypointList::setUAS(UASInterface* uas)
void WaypointList::saveWaypoints() void WaypointList::saveWaypoints()
{ {
// TODO Need better default directory // 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); WPM->saveWaypoints(fileName);
} }
void WaypointList::loadWaypoints() void WaypointList::loadWaypoints()
{ {
// TODO Need better default directory // 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); WPM->loadWaypoints(fileName);
} }
......
...@@ -575,7 +575,7 @@ void QGCToolWidget::exportWidget() ...@@ -575,7 +575,7 @@ void QGCToolWidget::exportWidget()
QString fileName = QGCFileDialog::getSaveFileName( QString fileName = QGCFileDialog::getSaveFileName(
this, tr("Save Widget File"), this, tr("Save Widget File"),
QStandardPaths::writableLocation(QStandardPaths::DesktopLocation), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation),
tr("QGroundControl Widget (*.qgw)"), tr("QGroundControl Widget Files (*.qgw)"),
"qgw", "qgw",
true); true);
//-- Save it if we have it //-- Save it if we have it
...@@ -589,7 +589,7 @@ void QGCToolWidget::importWidget() ...@@ -589,7 +589,7 @@ void QGCToolWidget::importWidget()
{ {
QString fileName = QGCFileDialog::getOpenFileName( QString fileName = QGCFileDialog::getOpenFileName(
this, tr("Load Widget File"), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation), 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()) { if (!fileName.isEmpty()) {
// TODO There is no error checking. If the load fails, there is nothing telling the user what happened. // TODO There is no error checking. If the load fails, there is nothing telling the user what happened.
loadSettings(fileName); loadSettings(fileName);
......
...@@ -447,7 +447,7 @@ void LinechartWidget::startLogging() ...@@ -447,7 +447,7 @@ void LinechartWidget::startLogging()
QString fileName = QGCFileDialog::getSaveFileName(this, QString fileName = QGCFileDialog::getSaveFileName(this,
tr("Save Log File"), tr("Save Log File"),
QStandardPaths::writableLocation(QStandardPaths::DesktopLocation), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation),
tr("Log file (*.log)"), tr("Log files (*.log)"),
"log", // Default type "log", // Default type
true); // Enforce default type true); // Enforce default type
......
...@@ -590,7 +590,7 @@ Pixhawk3DWidget::loadTerrainModel(void) ...@@ -590,7 +590,7 @@ Pixhawk3DWidget::loadTerrainModel(void)
QString filename = QGCFileDialog::getOpenFileName( QString filename = QGCFileDialog::getOpenFileName(
this, "Load Terrain Model", this, "Load Terrain Model",
QStandardPaths::writableLocation(QStandardPaths::DesktopLocation), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation),
tr("Collada (*.dae)")); tr("Collada Files (*.dae)"));
if (filename.isEmpty()) 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