From f88e5c349ff0107ac4a13ae00180f767741f88d1 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 24 Apr 2007 15:43:35 +0000 Subject: 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. --- src/action.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/action.cpp') 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() { } -void Action::addCommand( eAction act, const std::string &sWhat ) +void Action::addCommand( eAction act, const std::string &sWhat, bool bIsGroup ) { - lCmds.push_back( Cmd( act, sWhat ) ); + lCmds.push_back( Cmd( act, sWhat, bIsGroup ) ); } void Action::begin() @@ -38,6 +38,11 @@ std::string Action::getWhat() return (*i).sWhat; } +bool Action::isGroup() +{ + return (*i).bIsGroup; +} + void Action::setMode( eAction nAct ) { for( CmdList::iterator j = lCmds.begin(); j != lCmds.end(); j++ ) -- cgit v1.2.3