aboutsummaryrefslogtreecommitdiff
path: root/src/action.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-04-24 15:43:35 +0000
committerMike Buland <eichlan@xagasoft.com>2007-04-24 15:43:35 +0000
commitf88e5c349ff0107ac4a13ae00180f767741f88d1 (patch)
tree26ecb2afe254f23ae9f57f701b67d41801c40c87 /src/action.cpp
parentff938b977db21378a1f016f65e7345c50e71ef8f (diff)
downloadbuild-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 'src/action.cpp')
-rw-r--r--src/action.cpp9
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
11void Action::addCommand( eAction act, const std::string &sWhat ) 11void 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
16void Action::begin() 16void Action::begin()
@@ -38,6 +38,11 @@ std::string Action::getWhat()
38 return (*i).sWhat; 38 return (*i).sWhat;
39} 39}
40 40
41bool Action::isGroup()
42{
43 return (*i).bIsGroup;
44}
45
41void Action::setMode( eAction nAct ) 46void 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++ )