Mercurial > MadButterfly
diff pyink/domview_ui.py @ 1246:42c4874c8d1e
Move _duplicate_group to domview_ui.
- domview_ui.copy_key_group() replaces MBScene._duplicate_group().
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 10 Jan 2011 19:44:15 +0800 |
parents | ccbf0c5d01d1 |
children | 45e9566ea5c0 |
line wrap: on
line diff
--- a/pyink/domview_ui.py Mon Jan 10 19:07:26 2011 +0800 +++ b/pyink/domview_ui.py Mon Jan 10 19:44:15 2011 +0800 @@ -348,6 +348,7 @@ pass pass + ## \brief Bridge of DOM-tree to syncrhonize data-model and UI. # # This class is a wrapper @@ -564,6 +565,17 @@ key_tweens = self._fl_stack.get_all_key_tween_of_layer(layer_idx) return key_tweens + ## \brief Copy content of a source key frame to a destinate. + # + # Copy content of the scene group of a source key frame to the + # scene group of a destinate key frame. + # + def copy_key_group(self, layer_idx, src_frame_idx, dst_frame_idx): + src_group = self.get_key_group(layer_idx, src_frame_idx) + dst_group = self.get_key_group(layer_idx, dst_frame_idx) + self._dom.copy_group_children(src_group, dst_group) + pass + ## \brief Return widget showing frames and layers. # def get_frame_ui_widget(self):