Mercurial > hg > easyhg
diff src/mainwindow.h @ 540:fc2df97920e8 fswatcher
Introduce FsWatcher into main window (though it isn't fully rigged up yet)
author | Chris Cannam |
---|---|
date | Mon, 13 Feb 2012 17:29:06 +0000 |
parents | a4e699d32a9a |
children | 0a16db274f2c |
line wrap: on
line diff
--- a/src/mainwindow.h Fri Feb 10 21:49:27 2012 +0000 +++ b/src/mainwindow.h Mon Feb 13 17:29:06 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 fsWatcherChanged(); void checkFilesystem(); - void actuallyRestoreFileSystemWatcher(); void newerVersionAvailable(QString); @@ -176,10 +174,6 @@ void clearState(); - void updateFileSystemWatcher(); - void suspendFileSystemWatcher(); - void restoreFileSystemWatcher(); - void updateClosedHeads(); void updateWorkFolderAndRepoNames(); @@ -257,10 +251,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;