Mercurial > hg > easyhg
comparison filestatuswidget.h @ 92:06f4fffd5287
* Rename StatParser to FileStates; start thinking about selections
author | Chris Cannam |
---|---|
date | Wed, 24 Nov 2010 13:23:30 +0000 |
parents | b43355c2473a |
children | dfb7a274b90f |
comparison
equal
deleted
inserted
replaced
91:879af4608c5e | 92:06f4fffd5287 |
---|---|
16 */ | 16 */ |
17 | 17 |
18 #ifndef FILESTATUSWIDGET_H | 18 #ifndef FILESTATUSWIDGET_H |
19 #define FILESTATUSWIDGET_H | 19 #define FILESTATUSWIDGET_H |
20 | 20 |
21 #include "statparser.h" | 21 #include "filestates.h" |
22 | 22 |
23 #include <QWidget> | 23 #include <QWidget> |
24 | 24 |
25 class QLabel; | 25 class QLabel; |
26 class QListWidget; | 26 class QListWidget; |
36 void setLocalPath(QString p); | 36 void setLocalPath(QString p); |
37 | 37 |
38 QString remoteURL() const { return m_remoteURL; } | 38 QString remoteURL() const { return m_remoteURL; } |
39 void setRemoteURL(QString u); | 39 void setRemoteURL(QString u); |
40 | 40 |
41 StatParser statParser() const { return m_statParser; } | 41 FileStates fileStates() const { return m_fileStates; } |
42 void setStatParser(StatParser sp); | 42 void setFileStates(FileStates sp); |
43 | 43 |
44 bool haveChangesToCommit() const { | 44 bool haveChangesToCommit() const { |
45 return !m_statParser.added.empty() || | 45 return !m_fileStates.added.empty() || |
46 !m_statParser.removed.empty() || | 46 !m_fileStates.removed.empty() || |
47 !m_statParser.modified.empty(); | 47 !m_fileStates.modified.empty(); |
48 } | 48 } |
49 | 49 |
50 private: | 50 private: |
51 QString m_localPath; | 51 QString m_localPath; |
52 QLabel *m_localPathLabel; | 52 QLabel *m_localPathLabel; |
53 | 53 |
54 QString m_remoteURL; | 54 QString m_remoteURL; |
55 QLabel *m_remoteURLLabel; | 55 QLabel *m_remoteURLLabel; |
56 | 56 |
57 StatParser m_statParser; | 57 FileStates m_fileStates; |
58 | 58 |
59 QListWidget *m_modifiedList; | 59 QListWidget *m_modifiedList; |
60 QListWidget *m_addedList; | 60 QListWidget *m_addedList; |
61 QListWidget *m_unknownList; | 61 QListWidget *m_unknownList; |
62 QListWidget *m_removedList; | 62 QListWidget *m_removedList; |