aboutsummaryrefslogtreecommitdiff
path: root/src/action.cpp
diff options
context:
space:
mode:
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++ )