diff options
author | John Van Ostrand <john@vanostrand.com> | 2014-11-07 12:56:23 -0500 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-11-07 13:15:54 -0800 |
commit | 3fe310e5291f6ceab3f76a865dd9d2851ba0dedc (patch) | |
tree | 199280ef61fc2cb2e7f279d17589242d698ac74b /qt-ui/mainwindow.cpp | |
parent | d4121fb42afc2ed89d4109fee948e8f0fec12531 (diff) | |
download | subsurface-3fe310e5291f6ceab3f76a865dd9d2851ba0dedc.tar.gz |
Cleaned up file list in open and import dialogs
Lists were getting a little jumbled. I sorted the extensions and added
suitable human readable names.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 43 |
1 files changed, 27 insertions, 16 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 3b74c86ad..e9822db10 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -725,23 +725,27 @@ void MainWindow::on_actionUserManual_triggered() QString MainWindow::filter() { QString f; - f += "ALL ( *.ssrf *.xml *.XML *.uddf *.udcf *.UDFC *.jlb *.JLB "; - f += "*.sde *.SDE *.dld *.DLD "; - f += "*.db *.can "; - f += "*.lvd "; + f += "Dive log files ( *.ssrf "; + f += "*.can *.CAN "; + f += "*.db *.DB " ; + f += "*.dld *.DLD "; + f += "*.jlb *.JLB "; + f += "*.lvd *.LVD "; + f += "*.sde *.SDE "; + f += "*.udcf *.UDCF "; + f += "*.uddf *.UDDF "; + f += "*.xml *.XML "; f += ");;"; f += "Subsurface (*.ssrf);;"; - f += "XML (*.xml *.XML);;"; - f += "UDDF (*.uddf);;"; + f += "Cochran (*.can *.CAN);;"; + f += "DiveLogs.de (*.dld *.DLD);;"; + f += "JDiveLog (*.jlb *.JLB);;"; + f += "LiquiVision (*.lvd *.LVD);;"; + f += "Suunto (*.sde *.SDE *.db *.DB);;"; f += "UDCF (*.udcf *.UDCF);;"; - f += "JLB (*.jlb *.JLB);;"; - - f += "SDE (*.sde *.SDE);;"; - f += "DLD (*.dld *.DLD);;"; - f += "DB (*.db);;"; - f += "CAN (*.can);;"; - f += "LVD (*.lvd)"; + f += "UDDF (*.uddf *.UDDF);;"; + f += "XML (*.xml *.XML)"; return f; } @@ -1251,9 +1255,16 @@ void MainWindow::loadFiles(const QStringList fileNames) void MainWindow::on_actionImportDiveLog_triggered() { QStringList fileNames = QFileDialog::getOpenFileNames(this, tr("Open dive log file"), lastUsedDir(), - tr("Dive log files (*.xml *.uddf *.udcf *.csv *.jlb *.dld *.sde *.db *.can *.lvd);;" - "XML files (*.xml);;UDDF/UDCF files(*.uddf *.udcf);;JDiveLog files(*.jlb);;" - "Suunto files(*.sde *.db);;CSV files(*.csv);;MkVI files(*.txt);;All files(*)")); + tr("Dive log files (*.can *.csv *.db *.dld *.jlb *.lvd *.sde *.udcf *.uddf *.xml);;" + "Cochran files (*.can);;" + "CSV files (*.csv);;" + "DiveLog.de files (*.dld);;" + "JDiveLog files (*.jlb);;" + "MkVI files (*.txt);;" + "Suunto files(*.sde *.db);;" + "UDDF/UDCF files (*.uddf *.udcf);;" + "XML files (*.xml);;" + "All files(*)")); if (fileNames.isEmpty()) return; |