Added Sync Settings action
FossilOrigin-Name: dbb036dbd2c7e2a34fae27e2a39bddf2168ab83d
This commit is contained in:
parent
086502926d
commit
f8b1f9a0eb
@ -134,7 +134,7 @@ bool MainWindow::openWorkspace(const QString &dir)
|
||||
//------------------------------------------------------------------------------
|
||||
void MainWindow::on_actionOpen_triggered()
|
||||
{
|
||||
QString path = QFileDialog::getExistingDirectory(this, tr("Fossil Checkout"));
|
||||
QString path = QFileDialog::getExistingDirectory(this, tr("Fossil Checkout"), QDir::currentPath());
|
||||
if(!path.isNull())
|
||||
openWorkspace(path);
|
||||
}
|
||||
@ -998,7 +998,7 @@ void MainWindow::on_actionNew_triggered()
|
||||
QString path = QFileDialog::getSaveFileName(
|
||||
this,
|
||||
tr("New Fossil Repository"),
|
||||
QString(),
|
||||
QDir::currentPath(),
|
||||
filter,
|
||||
&filter);
|
||||
|
||||
@ -1119,3 +1119,27 @@ void MainWindow::on_actionSettings_triggered()
|
||||
SettingsDialog::run(this, settings);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
void MainWindow::on_actionSyncSettings_triggered()
|
||||
{
|
||||
QString current;
|
||||
// Retrieve existing url
|
||||
QStringList out;
|
||||
if(runFossil(QStringList() << "remote-url", &out, true) && out.length()==1)
|
||||
current = out[0].trimmed();
|
||||
|
||||
bool ok = false;
|
||||
current = QInputDialog::getText(this, tr("Remote URL"), tr("Enter new remote url"), QLineEdit::Normal, current, &ok );
|
||||
|
||||
if(!ok)
|
||||
return;
|
||||
|
||||
QUrl url(current);
|
||||
if(!url.isValid())
|
||||
{
|
||||
QMessageBox::critical(this, tr("Remote URL"), tr("This URL is not valid"), QMessageBox::Ok );
|
||||
return;
|
||||
}
|
||||
|
||||
runFossil(QStringList() << "remote-url" << QuotePath(url.toString()));
|
||||
}
|
||||
|
@ -156,6 +156,8 @@ private slots:
|
||||
void on_actionAbout_triggered();
|
||||
void on_actionUpdate_triggered();
|
||||
void on_actionSettings_triggered();
|
||||
void on_actionSyncSettings_triggered();
|
||||
|
||||
private:
|
||||
enum
|
||||
{
|
||||
|
@ -86,16 +86,18 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>865</width>
|
||||
<height>22</height>
|
||||
<height>27</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuFile">
|
||||
<property name="title">
|
||||
<string>Workspace</string>
|
||||
</property>
|
||||
<addaction name="actionNew"/>
|
||||
<addaction name="actionOpen"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionNew"/>
|
||||
<addaction name="actionSyncSettings"/>
|
||||
<addaction name="actionSettings"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionQuit"/>
|
||||
@ -438,10 +440,18 @@
|
||||
<normaloff>:/icons/icons/Gear-01.png</normaloff>:/icons/icons/Gear-01.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Settings</string>
|
||||
<string>Preferences...</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Settings</string>
|
||||
<string>Application Preferences</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSyncSettings">
|
||||
<property name="text">
|
||||
<string>Synchronization Settings...</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Set remote synchronization settings</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
|
16
manifest
16
manifest
@ -1,14 +1,14 @@
|
||||
C Upped\sversion\sto\s0.9.1
|
||||
D 2011-08-07T04:57:30.324
|
||||
C Added\sSync\sSettings\saction\n
|
||||
D 2011-08-07T05:46:53.925
|
||||
F CommitDialog.cpp a1fcdc94933f4e1a144224c7c70f1e067d3ee31e
|
||||
F CommitDialog.h 0550b1b652924ae54b6f6c9274cad2d4c491808a
|
||||
F CommitDialog.ui 5067623f6af6f5a42c87df903278e383e945e154
|
||||
F FileActionDialog.cpp fcaebf9986f789b3440d5390b3458ad5f86fe0c8
|
||||
F FileActionDialog.h 15db1650b3a13d70bc338371e4c033c66e3b79ce
|
||||
F FileActionDialog.ui c63644428579741aeb5fa052e237ba799ced9ad7
|
||||
F MainWindow.cpp 809b27413caa8192b135f6addf40fc2119d8f3b3
|
||||
F MainWindow.h 67778cc3e6e5a933d4b198e2a8284523f591ff44
|
||||
F MainWindow.ui 9f901c1f06b24df3cbd36d5349ffe0d82896c05b
|
||||
F MainWindow.cpp c3c91806c454a15888a89b8a137b57e4b02a7de4
|
||||
F MainWindow.h f458f469ab1b680268000553ffb917374dd3e67b
|
||||
F MainWindow.ui 67ab0e7b52f0023c02406c851cdf4c267e12cedd
|
||||
F RepoDialog.cpp 8f20e1511526973555c774350ec413dcecf51c9e
|
||||
F RepoDialog.h a958c5f98f1e6882bf41dbdd2e4df3cb89700802
|
||||
F RepoDialog.ui 8fe9b7f7528332ca9a45e919cf116aaf144a3286
|
||||
@ -173,7 +173,7 @@ F icons/fuel.icns 81e535004b62db801a02f3e15d0a33afc9d4070b
|
||||
F icons/fuel.ico eb529ab3332a17b9302ef3e851db5b9ebce2a038
|
||||
F main.cpp 261837e5ffc52bca29935907e62468018a3b6a38
|
||||
F resources.qrc e98383ed205f4e37100c60057e0129c3b86dea53
|
||||
P 97aefbc7825732e8fc2e711187c32c49e1149c11
|
||||
R b146bf7a3540c990cbfbbd0f8c9783c5
|
||||
P d0b361eba56da87b7a0345d3a47e14987fbe287c
|
||||
R 6330d9662105044dfc581509c4825727
|
||||
U kostas
|
||||
Z bad442c90ba07d486fc509973999b417
|
||||
Z f8e6616d287dfd95305111e8845337a0
|
||||
|
@ -1 +1 @@
|
||||
d0b361eba56da87b7a0345d3a47e14987fbe287c
|
||||
dbb036dbd2c7e2a34fae27e2a39bddf2168ab83d
|
Loading…
x
Reference in New Issue
Block a user