Mercurial > hg > easyhg
diff src/hgrunner.h @ 561:1ff2a1bf0a40
Add a cancel button to the progress bar
author | Chris Cannam |
---|---|
date | Mon, 27 Feb 2012 17:25:50 +0000 |
parents | 533519ebc0cb |
children | 39cac58b4f92 |
line wrap: on
line diff
--- a/src/hgrunner.h Mon Feb 27 17:14:03 2012 +0000 +++ b/src/hgrunner.h Mon Feb 27 17:25:50 2012 +0000 @@ -20,22 +20,24 @@ #include "hgaction.h" -#include <QProgressBar> +#include <QWidget> #include <QProcess> -#include <QByteArray> -#include <QRect> -#include <QFile> + +class QProgressBar; +class QToolButton; +class QFile; #include <deque> -class HgRunner : public QProgressBar +class HgRunner : public QWidget { Q_OBJECT public: - HgRunner(QString myDirPath, QWidget * parent = 0); + HgRunner(QString myDirPath, QWidget *parent = 0); ~HgRunner(); +public slots: void requestAction(HgAction action); void killCurrentActions(); // kill anything running; clear the queue @@ -78,6 +80,9 @@ QString getUnbundledFileName(); QString unbundleExtension(); + QProgressBar *m_progress; + QToolButton *m_cancel; + QStringList addExtensionOptions(QStringList); int m_ptyMasterFd;