diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-04-24 15:43:35 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-04-24 15:43:35 +0000 |
commit | f88e5c349ff0107ac4a13ae00180f767741f88d1 (patch) | |
tree | 26ecb2afe254f23ae9f57f701b67d41801c40c87 /src/action.cpp | |
parent | ff938b977db21378a1f016f65e7345c50e71ef8f (diff) | |
download | build-f88e5c349ff0107ac4a13ae00180f767741f88d1.tar.gz build-f88e5c349ff0107ac4a13ae00180f767741f88d1.tar.bz2 build-f88e5c349ff0107ac4a13ae00180f767741f88d1.tar.xz build-f88e5c349ff0107ac4a13ae00180f767741f88d1.zip |
Build groups are finished, there may be more we could do with them, but they
work just fine for what I want. They're cute though, you can put each target
in as many groups as you'd like.
Diffstat (limited to '')
-rw-r--r-- | src/action.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/action.cpp b/src/action.cpp index cae4f01..2588caa 100644 --- a/src/action.cpp +++ b/src/action.cpp | |||
@@ -8,9 +8,9 @@ Action::~Action() | |||
8 | { | 8 | { |
9 | } | 9 | } |
10 | 10 | ||
11 | void Action::addCommand( eAction act, const std::string &sWhat ) | 11 | void Action::addCommand( eAction act, const std::string &sWhat, bool bIsGroup ) |
12 | { | 12 | { |
13 | lCmds.push_back( Cmd( act, sWhat ) ); | 13 | lCmds.push_back( Cmd( act, sWhat, bIsGroup ) ); |
14 | } | 14 | } |
15 | 15 | ||
16 | void Action::begin() | 16 | void Action::begin() |
@@ -38,6 +38,11 @@ std::string Action::getWhat() | |||
38 | return (*i).sWhat; | 38 | return (*i).sWhat; |
39 | } | 39 | } |
40 | 40 | ||
41 | bool Action::isGroup() | ||
42 | { | ||
43 | return (*i).bIsGroup; | ||
44 | } | ||
45 | |||
41 | void Action::setMode( eAction nAct ) | 46 | void Action::setMode( eAction nAct ) |
42 | { | 47 | { |
43 | for( CmdList::iterator j = lCmds.begin(); j != lCmds.end(); j++ ) | 48 | for( CmdList::iterator j = lCmds.begin(); j != lCmds.end(); j++ ) |