comparison hgaction.h @ 175:6def8bf3be44

* Start implementing Settings dialog; add Test function to run on startup to make sure hg works
author Chris Cannam
date Thu, 16 Dec 2010 17:32:25 +0000
parents 4bad3c5c053a
children 8c8c04bdf0fa
comparison
equal deleted inserted replaced
174:4dc802a4d5ae 175:6def8bf3be44
22 #include <QStringList> 22 #include <QStringList>
23 23
24 enum HGACTIONS 24 enum HGACTIONS
25 { 25 {
26 ACT_NONE, 26 ACT_NONE,
27 ACT_TEST_HG,
27 ACT_QUERY_PATHS, 28 ACT_QUERY_PATHS,
28 ACT_QUERY_BRANCH, 29 ACT_QUERY_BRANCH,
29 ACT_STAT, 30 ACT_STAT,
30 ACT_RESOLVE_LIST, 31 ACT_RESOLVE_LIST,
31 ACT_QUERY_HEADS, 32 ACT_QUERY_HEADS,
75 switch (action) { 76 switch (action) {
76 case ACT_NONE: 77 case ACT_NONE:
77 case ACT_QUERY_PATHS: 78 case ACT_QUERY_PATHS:
78 case ACT_QUERY_BRANCH: 79 case ACT_QUERY_BRANCH:
79 case ACT_STAT: 80 case ACT_STAT:
81 case ACT_RESOLVE_LIST:
80 case ACT_QUERY_HEADS: 82 case ACT_QUERY_HEADS:
81 case ACT_QUERY_PARENTS: 83 case ACT_QUERY_PARENTS:
82 case ACT_LOG_INCREMENTAL: 84 case ACT_LOG_INCREMENTAL:
83 return true; 85 return true;
84 default: 86 default:
86 } 88 }
87 } 89 }
88 90
89 bool mayBeInteractive() const { 91 bool mayBeInteractive() const {
90 switch (action) { 92 switch (action) {
93 case ACT_TEST_HG: // so we force the module load to be tested
91 case ACT_INCOMING: 94 case ACT_INCOMING:
92 case ACT_PUSH: 95 case ACT_PUSH:
93 case ACT_PULL: 96 case ACT_PULL:
94 case ACT_CLONEFROMREMOTE: 97 case ACT_CLONEFROMREMOTE:
95 case ACT_FOLDERDIFF: 98 case ACT_FOLDERDIFF: