mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
e418f7d871
commit
5538fd4baa
2 changed files with 24 additions and 24 deletions
|
@ -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())
|
||||||
|
|
|
@ -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 &GPS data from Subsurface Service</string>
|
<string>Import &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>&Edit Device Names</string>
|
<string>&Edit device names</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionAddDive">
|
<action name="actionAddDive">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Add Dive</string>
|
<string>&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 &Group</string>
|
<string>Auto &group</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionYearlyStatistics">
|
<action name="actionYearlyStatistics">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Yearly Statistics</string>
|
<string>&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>&Dive List</string>
|
<string>&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&rev DC</string>
|
<string>P&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>&Select Events</string>
|
<string>&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 &Manual</string>
|
<string>User &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&lan Dive</string>
|
<string>P&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>&Import Log Files</string>
|
<string>&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 &from Divelogs.de</string>
|
<string>Import &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>&Full Screen</string>
|
<string>&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>&Check for Updates</string>
|
<string>&Check for updates</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionExport">
|
<action name="actionExport">
|
||||||
|
|
Loading…
Add table
Reference in a new issue