Mercurial > MadButterfly
changeset 1274:a4d3838264dd
Make public APIs being public for domview
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 12 Jan 2011 21:20:06 +0800 |
parents | 1d0474f2f6fa |
children | 776b024ae8f9 |
files | pyink/domview.py pyink/domview_ui.py |
diffstat | 2 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/pyink/domview.py Wed Jan 12 21:18:23 2011 +0800 +++ b/pyink/domview.py Wed Jan 12 21:20:06 2011 +0800 @@ -187,7 +187,7 @@ pass pass - def _parse_one_scene(self, scene_node): + def parse_one_scene(self, scene_node): assert scene_node.name() == 'ns0:scene' start = int(scene_node.getAttribute("start")) @@ -221,7 +221,7 @@ continue try: - start, end, scene_type = self._parse_one_scene(scene_node) + start, end, scene_type = self.parse_one_scene(scene_node) except: continue @@ -659,7 +659,7 @@ def insert_frames(self, layer_idx, frame_idx, num): layer = self._layers[layer_idx] for scene_node in layer.scenes: - start, end, tween_type = self._parse_one_scene(scene_node) + start, end, tween_type = self.parse_one_scene(scene_node) if start >= frame_idx: self.chg_scene_node(scene_node, start=(start + num)) pass @@ -686,7 +686,7 @@ last_rm = frame_idx + num - 1 # last removed frame for scene_node in layer.scenes: start, end, tween_type = \ - self._parse_one_scene(scene_node) + self.parse_one_scene(scene_node) if end < frame_idx: continue
--- a/pyink/domview_ui.py Wed Jan 12 21:18:23 2011 +0800 +++ b/pyink/domview_ui.py Wed Jan 12 21:20:06 2011 +0800 @@ -386,7 +386,7 @@ fl_stack = self._fl_stack scene_nodes = self._dom.get_all_scene_node_of_layer(layer_idx) for scene_node in scene_nodes: - start, end, tween_name = self._dom._parse_one_scene(scene_node) + start, end, tween_name = self._dom.parse_one_scene(scene_node) fl_stack.mark_keyframe(layer_idx, start) fl_stack.set_keyframe_data(layer_idx, start, scene_node) @@ -568,7 +568,7 @@ if layer_idx == -1: raise ValueError, \ 'can not find the key for group %s' % (scene_group_id) - start, end, tween_name = self._dom._parse_one_scene(scene_node) + start, end, tween_name = self._dom.parse_one_scene(scene_node) tween_type = self._tween_type_names.index(tween_name) return layer_idx, (start, end, tween_type) @@ -722,7 +722,7 @@ self._dom.manage_scene_node(layer_idx, scene_node) start, end, tween_name = \ - self._dom._parse_one_scene(scene_node) + self._dom.parse_one_scene(scene_node) tween_type = self._tween_type_names.index(tween_name) tween_len = end - start + 1