Trigger_list* Gesture_triggers_tab::get_data( Action_data* data_P ) const { Trigger_list* ret = new Trigger_list( "Gesture_triggers" ); if( !gesture1.isEmpty()) ret->append( new Gesture_trigger( data_P, gesture1 )); if( !gesture2.isEmpty()) ret->append( new Gesture_trigger( data_P, gesture2 )); if( !gesture3.isEmpty()) ret->append( new Gesture_trigger( data_P, gesture3 )); return ret; }
Trigger_list *Trigger_list::copy(Action_data *data_P) const { Trigger_list *ret = new Trigger_list(comment()); for(Iterator it(*this); it; ++it) ret->append(it.current()->copy(data_P)); return ret; }
void SimpleActionData::set_trigger( Trigger* trigger_P ) { Trigger_list* tmp = new Trigger_list( "Simple_action" ); tmp->append( trigger_P ); set_triggers( tmp ); }