Mercurial > hg > easyhg
comparison filestates.h @ 325:5fa5c908ca00 filelist_right_button_menu
Add right-button menus (not yet functional, but hopefully with the right things in them)
author | Chris Cannam |
---|---|
date | Thu, 10 Mar 2011 21:04:58 +0000 |
parents | 306ffd913071 |
children | 6e1fdda1dff2 |
comparison
equal
deleted
inserted
replaced
324:306ffd913071 | 325:5fa5c908ca00 |
---|---|
66 // These are in the order in which they want to be listed in | 66 // These are in the order in which they want to be listed in |
67 // the context menu | 67 // the context menu |
68 | 68 |
69 Annotate, | 69 Annotate, |
70 Diff, | 70 Diff, |
71 | |
71 Commit, | 72 Commit, |
72 Revert, | 73 Revert, |
74 | |
73 Add, | 75 Add, |
74 Remove, | 76 Remove, |
77 | |
75 RedoMerge, | 78 RedoMerge, |
76 MarkResolved, | 79 MarkResolved, |
80 | |
77 Ignore, | 81 Ignore, |
78 UnIgnore, | 82 UnIgnore, |
79 | 83 |
80 FirstActivity = Commit, | 84 FirstActivity = Commit, |
81 LastActivity = UnIgnore | 85 LastActivity = UnIgnore |
83 | 87 |
84 typedef QList<Activity> Activities; | 88 typedef QList<Activity> Activities; |
85 | 89 |
86 static bool supportsActivity(State s, Activity a); | 90 static bool supportsActivity(State s, Activity a); |
87 static Activities activitiesSupportedBy(State s); | 91 static Activities activitiesSupportedBy(State s); |
92 static int activityGroup(Activity a); | |
88 | 93 |
89 bool supportsActivity(QString file, Activity a) const; | 94 bool supportsActivity(QString file, Activity a) const; |
90 QStringList filesSupportingActivity(Activity) const; | 95 QStringList filesSupportingActivity(Activity) const; |
91 Activities activitiesSupportedBy(QString file) const; | 96 Activities activitiesSupportedBy(QString file) const; |
92 | 97 |