Mercurial > hg > easyhg
comparison mainwindow.cpp @ 339:8b244f3b3111
Change open repo dialog button ordering from remote-local-file to local-file-remote, because file is the most usual first-user choice (put local at left instead of right so as to make it second most obvious)
author | Chris Cannam |
---|---|
date | Tue, 15 Mar 2011 11:45:53 +0000 |
parents | 697d7d75eae5 |
children | bb189827f6d1 5bf78b23eb10 |
comparison
equal
deleted
inserted
replaced
338:05099d942a15 | 339:8b244f3b3111 |
---|---|
1053 MultiChoiceDialog *d = new MultiChoiceDialog | 1053 MultiChoiceDialog *d = new MultiChoiceDialog |
1054 (tr("Open Repository"), | 1054 (tr("Open Repository"), |
1055 tr("<qt><big>What would you like to open?</big></qt>"), | 1055 tr("<qt><big>What would you like to open?</big></qt>"), |
1056 this); | 1056 this); |
1057 | 1057 |
1058 d->addChoice("local", | |
1059 tr("<qt><center><img src=\":images/hglogo-64.png\"><br>Local repository</center></qt>"), | |
1060 tr("Open an existing local Mercurial repository."), | |
1061 MultiChoiceDialog::DirectoryArg); | |
1062 | |
1063 d->addChoice("init", | |
1064 tr("<qt><center><img src=\":images/hdd_unmount-64.png\"><br>File folder</center></qt>"), | |
1065 tr("Open a local folder, by creating a Mercurial repository in it."), | |
1066 MultiChoiceDialog::DirectoryArg); | |
1067 | |
1058 d->addChoice("remote", | 1068 d->addChoice("remote", |
1059 tr("<qt><center><img src=\":images/browser-64.png\"><br>Remote repository</center></qt>"), | 1069 tr("<qt><center><img src=\":images/browser-64.png\"><br>Remote repository</center></qt>"), |
1060 tr("Open a remote Mercurial repository, by cloning from its URL into a local folder."), | 1070 tr("Open a remote Mercurial repository, by cloning from its URL into a local folder."), |
1061 MultiChoiceDialog::UrlToDirectoryArg); | 1071 MultiChoiceDialog::UrlToDirectoryArg); |
1062 | |
1063 d->addChoice("local", | |
1064 tr("<qt><center><img src=\":images/hglogo-64.png\"><br>Local repository</center></qt>"), | |
1065 tr("Open an existing local Mercurial repository."), | |
1066 MultiChoiceDialog::DirectoryArg); | |
1067 | |
1068 d->addChoice("init", | |
1069 tr("<qt><center><img src=\":images/hdd_unmount-64.png\"><br>File folder</center></qt>"), | |
1070 tr("Open a local folder, by creating a Mercurial repository in it."), | |
1071 MultiChoiceDialog::DirectoryArg); | |
1072 | 1072 |
1073 QSettings settings; | 1073 QSettings settings; |
1074 settings.beginGroup("General"); | 1074 settings.beginGroup("General"); |
1075 QString lastChoice = settings.value("lastopentype", "local").toString(); | 1075 QString lastChoice = settings.value("lastopentype", "local").toString(); |
1076 if (lastChoice != "local" && | 1076 if (lastChoice != "local" && |