Mercurial > hg > easyhg
comparison src/mainwindow.cpp @ 609:c1451b356097
Wording and menu grouping adjustments to try to make the default push/pull location function look less like it will open a new remote for you (mitigates #461)
author | Chris Cannam |
---|---|
date | Tue, 03 Jul 2012 13:11:00 +0100 |
parents | 6f90bb52eee6 |
children | 864cf6bc6eff |
comparison
equal
deleted
inserted
replaced
608:6f90bb52eee6 | 609:c1451b356097 |
---|---|
1494 tr("<qt><big>Set the remote location</big></qt>"), | 1494 tr("<qt><big>Set the remote location</big></qt>"), |
1495 this); | 1495 this); |
1496 | 1496 |
1497 QString explanation; | 1497 QString explanation; |
1498 if (initial) { | 1498 if (initial) { |
1499 explanation = tr("Provide a URL to use for push and pull actions from the current local repository.<br>This will be the default for subsequent pushes and pulls.<br>You can change it using “Set Remote Location” on the File menu."); | 1499 explanation = tr("Provide a remote URL to use when pushing from, or pulling to, the local<br>repository <code>%1</code>.<br>This will be the default for subsequent pushes and pulls.<br>You can change it using “Set Remote Location” on the File menu.").arg(m_workFolderPath); |
1500 } else { | 1500 } else { |
1501 explanation = tr("Provide a new URL to use for push and pull actions from the current local repository."); | 1501 explanation = tr("Provide a new remote URL to use when pushing from, or pulling to, the local<br>repository <code>%1</code>.").arg(m_workFolderPath); |
1502 } | 1502 } |
1503 | 1503 |
1504 d->addChoice("remote", | 1504 d->addChoice("remote", |
1505 tr("<qt><center><img src=\":images/browser-64.png\"><br>Remote repository</center></qt>"), | 1505 tr("<qt><center><img src=\":images/browser-64.png\"><br>Remote repository</center></qt>"), |
1506 explanation, | 1506 explanation, |
2900 | 2900 |
2901 void MainWindow::createActions() | 2901 void MainWindow::createActions() |
2902 { | 2902 { |
2903 //File actions | 2903 //File actions |
2904 m_openAct = new QAction(QIcon(":/images/fileopen.png"), tr("&Open..."), this); | 2904 m_openAct = new QAction(QIcon(":/images/fileopen.png"), tr("&Open..."), this); |
2905 m_openAct->setStatusTip(tr("Open an existing repository or working folder")); | 2905 m_openAct->setStatusTip(tr("Open a remote repository or an existing local folder")); |
2906 m_openAct->setShortcut(tr("Ctrl+O")); | 2906 m_openAct->setShortcut(tr("Ctrl+O")); |
2907 | 2907 |
2908 m_changeRemoteRepoAct = new QAction(tr("Set Remote &Location..."), this); | 2908 m_changeRemoteRepoAct = new QAction(tr("Set Push and Pull &Location..."), this); |
2909 m_changeRemoteRepoAct->setStatusTip(tr("Set or change the default remote repository for pull and push actions")); | 2909 m_changeRemoteRepoAct->setStatusTip(tr("Set or change the default URL for pull and push actions from this repository")); |
2910 | 2910 |
2911 m_settingsAct = new QAction(QIcon(":/images/settings.png"), tr("&Settings..."), this); | 2911 m_settingsAct = new QAction(QIcon(":/images/settings.png"), tr("&Settings..."), this); |
2912 m_settingsAct->setStatusTip(tr("View and change application settings")); | 2912 m_settingsAct->setStatusTip(tr("View and change application settings")); |
2913 | 2913 |
2914 #ifdef Q_OS_WIN32 | 2914 #ifdef Q_OS_WIN32 |
3024 workMenu->addSeparator(); | 3024 workMenu->addSeparator(); |
3025 workMenu->addAction(m_hgRevertAct); | 3025 workMenu->addAction(m_hgRevertAct); |
3026 | 3026 |
3027 QMenu *remoteMenu; | 3027 QMenu *remoteMenu; |
3028 remoteMenu = menuBar()->addMenu(tr("&Remote")); | 3028 remoteMenu = menuBar()->addMenu(tr("&Remote")); |
3029 remoteMenu->addAction(m_changeRemoteRepoAct); | |
3030 remoteMenu->addSeparator(); | |
3031 remoteMenu->addAction(m_hgIncomingAct); | 3029 remoteMenu->addAction(m_hgIncomingAct); |
3032 remoteMenu->addSeparator(); | 3030 remoteMenu->addSeparator(); |
3031 remoteMenu->addAction(m_changeRemoteRepoAct); | |
3033 remoteMenu->addAction(m_hgPullAct); | 3032 remoteMenu->addAction(m_hgPullAct); |
3034 remoteMenu->addAction(m_hgPushAct); | 3033 remoteMenu->addAction(m_hgPushAct); |
3035 | 3034 |
3036 m_helpMenu = menuBar()->addMenu(tr("&Help")); | 3035 m_helpMenu = menuBar()->addMenu(tr("&Help")); |
3037 m_helpMenu->addAction(m_helpAct); | 3036 m_helpMenu->addAction(m_helpAct); |