Mercurial > hg > easyhg
diff src/mainwindow.h @ 548:dca5bd5b2a06
Merge from branch "fswatcher"
author | Chris Cannam |
---|---|
date | Tue, 14 Feb 2012 17:55:39 +0000 |
parents | a220f99f1134 |
children | 930462068dcc |
line wrap: on
line diff
--- a/src/mainwindow.h Fri Feb 10 13:08:07 2012 +0000 +++ b/src/mainwindow.h Tue Feb 14 17:55:39 2012 +0000 @@ -27,7 +27,6 @@ #include <QMainWindow> #include <QListWidget> -#include <QFileSystemWatcher> QT_BEGIN_NAMESPACE class QAction; @@ -36,6 +35,7 @@ QT_END_NAMESPACE class WorkStatusWidget; +class FsWatcher; class MainWindow : public QMainWindow { @@ -113,10 +113,8 @@ void hgIgnoreFiles(QStringList); void hgUnIgnoreFiles(QStringList); - void fsDirectoryChanged(QString); - void fsFileChanged(QString); + void updateFsWatcher(); void checkFilesystem(); - void actuallyRestoreFileSystemWatcher(); void newerVersionAvailable(QString); @@ -176,10 +174,6 @@ void clearState(); - void updateFileSystemWatcher(); - void suspendFileSystemWatcher(); - void restoreFileSystemWatcher(); - void updateClosedHeads(); void updateWorkFolderAndRepoNames(); @@ -243,7 +237,6 @@ QAction *m_aboutAct; QAction *m_helpAct; - QToolBar *m_fileToolBar; QToolBar *m_repoToolBar; QToolBar *m_workFolderToolBar; @@ -257,10 +250,9 @@ QString getMergeBinaryName(); QString getEditorBinaryName(); - QFileSystemWatcher *m_fsWatcher; - QTimer *m_fsWatcherGeneralTimer; - QTimer *m_fsWatcherRestoreTimer; - bool m_fsWatcherSuspended; + FsWatcher *m_fsWatcher; + int m_fsWatcherToken; + bool m_commandSequenceInProgress; QString m_lastStatOutput; QStringList m_lastRevertedFiles;