40 #ifndef _uiactionhandler_cpp
41 #define _uiactionhandler_cpp
43 #include "UI/actionhandler.h"
44 #include "UI/action.h"
65 ActionIterator ActIt = Actions.find(Name);
66 if( ActIt == Actions.end() )
69 Actions.insert( std::pair<String,Action*>(Name,NewAction) );
78 ActionIterator ActIt = Actions.find(Name);
79 if( ActIt != Actions.end() )
return (*ActIt).second;
86 ActionIterator ActIt = Actions.find( ToBeDestroyed->
GetName() );
87 if( ActIt != Actions.end() )
97 for( ActionIterator ActIt = Actions.begin() ; ActIt != Actions.end() ; ++ActIt )
99 delete (*ActIt).second;
106 return Actions.begin();
111 return Actions.end();
116 return Actions.begin();
121 return Actions.end();
137 BindingRange Range = Bindings.equal_range(Temp);
138 if( Range.first != Range.second )
140 Bindings.erase(Range.first,Range.second);
143 Bindings.insert( BindingPair(Temp,ToBind) );
149 for( BindingIterator BindIt = Range.first ; BindIt != Range.second ; ++BindIt )
150 (*BindIt).second = NULL;
155 for( BindingIterator BindIt = Bindings.begin() ; BindIt != Bindings.end() ; ++BindIt )
157 if( ToUnbind == (*BindIt).second )
158 (*BindIt).second = NULL;
164 for( BindingIterator BindIt = Bindings.begin() ; BindIt != Bindings.end() ; ++BindIt )
166 (*BindIt).second = NULL;
177 return Bindings.begin();
182 return Bindings.end();
187 return Bindings.begin();
192 return Bindings.end();
200 for( ActivatedIterator ActIt = ActivatedActions.begin() ; ActIt != ActivatedActions.end() ; ++ActIt )
202 if( BeingActivated == (*ActIt) )
205 ActivatedActions.push_back(BeingActivated);
211 BindingRange CodeRange = Bindings.equal_range( Temp );
212 if( CodeRange.first != CodeRange.second )