comparison hgexpwidget.h @ 92:06f4fffd5287

* Rename StatParser to FileStates; start thinking about selections
author Chris Cannam
date Wed, 24 Nov 2010 13:23:30 +0000
parents 879af4608c5e
children 44ed7766d55a
comparison
equal deleted inserted replaced
91:879af4608c5e 92:06f4fffd5287
18 #ifndef HGEXPWIDGET_H 18 #ifndef HGEXPWIDGET_H
19 #define HGEXPWIDGET_H 19 #define HGEXPWIDGET_H
20 20
21 #include "changeset.h" 21 #include "changeset.h"
22 #include "common.h" 22 #include "common.h"
23 #include "statparser.h" 23 #include "filestates.h"
24 24
25 #include <QMenu> 25 #include <QMenu>
26 #include <QListWidget> 26 #include <QListWidget>
27 #include <QGroupBox> 27 #include <QGroupBox>
28 #include <QVBoxLayout> 28 #include <QVBoxLayout>
45 45
46 void updateWorkFolderFileList(QString fileList); 46 void updateWorkFolderFileList(QString fileList);
47 void updateLocalRepoHgLogList(QString hgLogList); 47 void updateLocalRepoHgLogList(QString hgLogList);
48 void setWorkFolderAndRepoNames(QString workFolderPath, QString remoteRepoPath); 48 void setWorkFolderAndRepoNames(QString workFolderPath, QString remoteRepoPath);
49 49
50 //!!! StatParser really should be renamed to express "status state" rather than activity 50 FileStates getFileStates() { return fileStates; }
51 StatParser getStatParser() { return statParser; }
52 51
53 bool canCommit() const; 52 bool canCommit() const;
53 bool canAdd() const;
54 bool canRemove() const;
55 bool canDoFolderDiff() const;
54 56
55 private: 57 private:
56 FileStatusWidget *fileStatusWidget; 58 FileStatusWidget *fileStatusWidget;
57 59
58 QWidget *historyGraphPageWidget; 60 QWidget *historyGraphPageWidget;
59 QWidget *historyGraphWidget; 61 QWidget *historyGraphWidget;
60 QWidget *historyGraphPanner; 62 QWidget *historyGraphPanner;
61 QWidget *historyPageWidget; 63 QWidget *historyPageWidget;
62 64
63 StatParser statParser; 65 FileStates fileStates;
64 66
65 Changesets parseChangeSets(QString changeSetsStr); 67 Changesets parseChangeSets(QString changeSetsStr);
66 }; 68 };
67 69
68 #endif // HGEXPWIDGET_H 70 #endif // HGEXPWIDGET_H