Mercurial > hg > easyhg
comparison filestates.h @ 199:f16fe0db11f3
* Add "Show All Files" toggle to show ignored and clean files
* Clear selection when Esc is pressed
* Don't delete and recreate the filesystem watcher on stat, just update it
author | Chris Cannam |
---|---|
date | Mon, 03 Jan 2011 22:02:08 +0000 |
parents | 5c262ac73948 |
children | 3d4291d4226c |
comparison
equal
deleted
inserted
replaced
198:4adbd5c9c15d | 199:f16fe0db11f3 |
---|---|
37 Removed, | 37 Removed, |
38 InConflict, | 38 InConflict, |
39 Missing, | 39 Missing, |
40 Clean, | 40 Clean, |
41 Unknown, | 41 Unknown, |
42 Ignored, | |
42 | 43 |
43 FirstState = Modified, | 44 FirstState = Modified, |
44 LastState = Unknown | 45 LastState = Ignored |
45 }; | 46 }; |
46 | 47 |
47 void parseStates(QString text); | 48 void parseStates(QString text); |
48 | 49 |
49 void clearBuckets(); | 50 void clearBuckets(); |
54 QStringList added() const { return m_added; } | 55 QStringList added() const { return m_added; } |
55 QStringList unknown() const { return m_unknown; } | 56 QStringList unknown() const { return m_unknown; } |
56 QStringList removed() const { return m_removed; } | 57 QStringList removed() const { return m_removed; } |
57 QStringList missing() const { return m_missing; } | 58 QStringList missing() const { return m_missing; } |
58 QStringList inConflict() const { return m_inConflict; } | 59 QStringList inConflict() const { return m_inConflict; } |
60 QStringList clean() const { return m_clean; } | |
61 QStringList ignored() const { return m_ignored; } | |
59 | 62 |
60 State getStateOfFile(QString file) const; | 63 State getStateOfFile(QString file) const; |
61 | 64 |
62 private: | 65 private: |
63 QStringList m_modified; | 66 QStringList m_modified; |
64 QStringList m_added; | 67 QStringList m_added; |
65 QStringList m_unknown; | 68 QStringList m_unknown; |
66 QStringList m_removed; | 69 QStringList m_removed; |
67 QStringList m_missing; | 70 QStringList m_missing; |
68 QStringList m_inConflict; | 71 QStringList m_inConflict; |
72 QStringList m_clean; | |
73 QStringList m_ignored; | |
69 QMap<QString, State> m_stateMap; | 74 QMap<QString, State> m_stateMap; |
70 | 75 |
71 State charToState(QChar, bool * = 0); | 76 State charToState(QChar, bool * = 0); |
72 QStringList *stateToBucket(State); | 77 QStringList *stateToBucket(State); |
73 }; | 78 }; |