Ported uiRunning

FossilOrigin-Name: bc822e7b940bf0e3eceaf99d6a47921af1a361f0
This commit is contained in:
kostas
2015-04-26 10:41:44 +00:00
parent de78beb1b5
commit f261fbaa66
4 changed files with 22 additions and 9 deletions

View File

@ -1769,6 +1769,13 @@ void MainWindow::stopUI()
ui->actionFossilUI->setChecked(false);
}
//------------------------------------------------------------------------------
bool MainWindow::uiRunning() const
{
return fossilUI.state() == QProcess::Running;
}
#else
bool MainWindow::startUI()
{
@ -1784,6 +1791,12 @@ void MainWindow::stopUI()
ui->actionFossilUI->setChecked(false);
}
//------------------------------------------------------------------------------
bool MainWindow::uiRunning() const
{
return bridge.uiRunning();
}
#endif

View File

@ -145,7 +145,7 @@ private:
void setCurrentWorkspace(const QString &workspace);
void log(const QString &text, bool isHTML=false);
void setStatus(const QString &text);
bool uiRunning() const { return fossilUI.state() == QProcess::Running; }
bool uiRunning() const;
void getSelectionFilenames(QStringList &filenames, int includeMask=RepoFile::TYPE_ALL, bool allIfEmpty=false);
void getFileViewSelection(QStringList &filenames, int includeMask=RepoFile::TYPE_ALL, bool allIfEmpty=false);
void getDirViewSelection(QStringList &filenames, int includeMask=RepoFile::TYPE_ALL, bool allIfEmpty=false);