mainwindow capitalisation consistency

Signed-off-by: Tim Wootton <tim@tee-jay.demon.co.uk>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tim Wootton 2014-07-11 00:06:48 +01:00 committed by Dirk Hohndel
parent e418f7d871
commit 5538fd4baa
2 changed files with 24 additions and 24 deletions

View file

@ -188,7 +188,7 @@ void MainWindow::on_actionOpen_triggered()
if (!okToClose(tr("Please save or cancel the current dive edit before opening a new file."))) if (!okToClose(tr("Please save or cancel the current dive edit before opening a new file.")))
return; return;
QString filename = QFileDialog::getOpenFileName(this, tr("Open File"), lastUsedDir(), filter()); QString filename = QFileDialog::getOpenFileName(this, tr("Open file"), lastUsedDir(), filter());
if (filename.isEmpty()) if (filename.isEmpty())
return; return;
updateLastUsedDir(QFileInfo(filename).dir().path()); updateLastUsedDir(QFileInfo(filename).dir().path());
@ -511,7 +511,7 @@ void MainWindow::on_actionYearlyStatistics_triggered()
yearlyStats = new QTreeView(); yearlyStats = new QTreeView();
yearlyStats->setWindowModality(Qt::NonModal); yearlyStats->setWindowModality(Qt::NonModal);
yearlyStats->setMinimumWidth(600); yearlyStats->setMinimumWidth(600);
yearlyStats->setWindowTitle(tr("Yearly Statistics")); yearlyStats->setWindowTitle(tr("Yearly statistics"));
yearlyStats->setWindowIcon(QIcon(":subsurface-icon")); yearlyStats->setWindowIcon(QIcon(":subsurface-icon"));
QShortcut *closeKey = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_W), yearlyStats, 0, 0, Qt::WidgetShortcut); QShortcut *closeKey = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_W), yearlyStats, 0, 0, Qt::WidgetShortcut);
connect(closeKey, SIGNAL(activated()), yearlyStats, SLOT(close())); connect(closeKey, SIGNAL(activated()), yearlyStats, SLOT(close()));
@ -707,14 +707,14 @@ bool MainWindow::askSaveChanges()
QMessageBox response(MainWindow::instance()); QMessageBox response(MainWindow::instance());
if (existing_filename) if (existing_filename)
message = tr("Do you want to save the changes you made in the file %1?").arg(existing_filename); message = tr("Do you want to save the changes that you made in the file %1?").arg(existing_filename);
else else
message = tr("Do you want to save the changes you made in the datafile?"); message = tr("Do you want to save the changes that you made in the datafile?");
response.setStandardButtons(QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel); response.setStandardButtons(QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel);
response.setDefaultButton(QMessageBox::Save); response.setDefaultButton(QMessageBox::Save);
response.setText(message); response.setText(message);
response.setWindowTitle(tr("Save Changes?")); // Not displayed on MacOSX as described in Qt API response.setWindowTitle(tr("Save changes?")); // Not displayed on MacOSX as described in Qt API
response.setInformativeText(tr("Changes will be lost if you don't save them.")); response.setInformativeText(tr("Changes will be lost if you don't save them."));
response.setIcon(QMessageBox::Warning); response.setIcon(QMessageBox::Warning);
response.setWindowModality(Qt::WindowModal); response.setWindowModality(Qt::WindowModal);
@ -1072,7 +1072,7 @@ int MainWindow::file_save_as(void)
{ {
QString filename; QString filename;
const char *default_filename = existing_filename; const char *default_filename = existing_filename;
filename = QFileDialog::getSaveFileName(this, tr("Save File as"), default_filename, filename = QFileDialog::getSaveFileName(this, tr("Save file as"), default_filename,
tr("Subsurface XML files (*.ssrf *.xml *.XML)")); tr("Subsurface XML files (*.ssrf *.xml *.XML)"));
if (filename.isNull() || filename.isEmpty()) if (filename.isNull() || filename.isEmpty())
return report_error("No filename to save into"); return report_error("No filename to save into");
@ -1196,9 +1196,9 @@ void MainWindow::loadFiles(const QStringList fileNames)
void MainWindow::on_actionImportDiveLog_triggered() void MainWindow::on_actionImportDiveLog_triggered()
{ {
QStringList fileNames = QFileDialog::getOpenFileNames(this, tr("Open Dive Log File"), lastUsedDir(), QStringList fileNames = QFileDialog::getOpenFileNames(this, tr("Open dive log file"), lastUsedDir(),
tr("Dive Log Files (*.xml *.uddf *.udcf *.csv *.jlb *.dld *.sde *.db);;" tr("Dive log files (*.xml *.uddf *.udcf *.csv *.jlb *.dld *.sde *.db);;"
"XML Files (*.xml);;UDDF/UDCF Files(*.uddf *.udcf);;JDiveLog Files(*.jlb);;" "XML files (*.xml);;UDDF/UDCF files(*.uddf *.udcf);;JDiveLog files(*.jlb);;"
"Suunto Files(*.sde *.db);;CSV Files(*.csv);;All Files(*)")); "Suunto Files(*.sde *.db);;CSV Files(*.csv);;All Files(*)"));
if (fileNames.isEmpty()) if (fileNames.isEmpty())

View file

@ -815,7 +815,7 @@ p, li { white-space: pre-wrap; }
</action> </action>
<action name="actionDownloadWeb"> <action name="actionDownloadWeb">
<property name="text"> <property name="text">
<string>Import &amp;GPS data from Subsurface Service</string> <string>Import &amp;GPS data from Subsurface web-service</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+G</string> <string>Ctrl+G</string>
@ -823,12 +823,12 @@ p, li { white-space: pre-wrap; }
</action> </action>
<action name="actionEditDeviceNames"> <action name="actionEditDeviceNames">
<property name="text"> <property name="text">
<string>&amp;Edit Device Names</string> <string>&amp;Edit device names</string>
</property> </property>
</action> </action>
<action name="actionAddDive"> <action name="actionAddDive">
<property name="text"> <property name="text">
<string>&amp;Add Dive</string> <string>&amp;Add dive</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl++</string> <string>Ctrl++</string>
@ -847,12 +847,12 @@ p, li { white-space: pre-wrap; }
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="text"> <property name="text">
<string>Auto &amp;Group</string> <string>Auto &amp;group</string>
</property> </property>
</action> </action>
<action name="actionYearlyStatistics"> <action name="actionYearlyStatistics">
<property name="text"> <property name="text">
<string>&amp;Yearly Statistics</string> <string>&amp;Yearly statistics</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+Y</string> <string>Ctrl+Y</string>
@ -860,7 +860,7 @@ p, li { white-space: pre-wrap; }
</action> </action>
<action name="actionViewList"> <action name="actionViewList">
<property name="text"> <property name="text">
<string>&amp;Dive List</string> <string>&amp;Dive list</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+2</string> <string>Ctrl+2</string>
@ -892,7 +892,7 @@ p, li { white-space: pre-wrap; }
</action> </action>
<action name="actionPreviousDC"> <action name="actionPreviousDC">
<property name="text"> <property name="text">
<string>P&amp;rev DC</string> <string>P&amp;revious DC</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Left</string> <string>Left</string>
@ -908,7 +908,7 @@ p, li { white-space: pre-wrap; }
</action> </action>
<action name="actionSelectEvents"> <action name="actionSelectEvents">
<property name="text"> <property name="text">
<string>&amp;Select Events</string> <string>&amp;Select events</string>
</property> </property>
</action> </action>
<action name="actionInputPlan"> <action name="actionInputPlan">
@ -926,7 +926,7 @@ p, li { white-space: pre-wrap; }
</action> </action>
<action name="actionUserManual"> <action name="actionUserManual">
<property name="text"> <property name="text">
<string>User &amp;Manual</string> <string>User &amp;manual</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>F1</string> <string>F1</string>
@ -942,7 +942,7 @@ p, li { white-space: pre-wrap; }
</action> </action>
<action name="actionDivePlanner"> <action name="actionDivePlanner">
<property name="text"> <property name="text">
<string>P&amp;lan Dive</string> <string>P&amp;lan dive</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+L</string> <string>Ctrl+L</string>
@ -950,7 +950,7 @@ p, li { white-space: pre-wrap; }
</action> </action>
<action name="actionImportDiveLog"> <action name="actionImportDiveLog">
<property name="text"> <property name="text">
<string>&amp;Import Log Files</string> <string>&amp;Import log files</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Import divelog files from other applications</string> <string>Import divelog files from other applications</string>
@ -961,7 +961,7 @@ p, li { white-space: pre-wrap; }
</action> </action>
<action name="actionDivelogs_de"> <action name="actionDivelogs_de">
<property name="text"> <property name="text">
<string>Import &amp;from Divelogs.de</string> <string>Import &amp;from divelogs.de</string>
</property> </property>
</action> </action>
<action name="actionFullScreen"> <action name="actionFullScreen">
@ -969,10 +969,10 @@ p, li { white-space: pre-wrap; }
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Full Screen</string> <string>&amp;Full screen</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Toggle Full Screen</string> <string>Toggle full screen</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>F11</string> <string>F11</string>
@ -1000,7 +1000,7 @@ p, li { white-space: pre-wrap; }
</action> </action>
<action name="action_Check_for_Updates"> <action name="action_Check_for_Updates">
<property name="text"> <property name="text">
<string>&amp;Check for Updates</string> <string>&amp;Check for updates</string>
</property> </property>
</action> </action>
<action name="actionExport"> <action name="actionExport">