comparison pyink/domview_ui.py @ 1245:ccbf0c5d01d1

Move code of setCurrentScene to tween.py. - setCurrentScene() is removed from MBScene. - Add a new class scenes_director in tween.py. - scenes_director.show_scene() replaces setCurrentScene(). - MBScene instantiates a scenes_director, and calls scenes_director.show_scene() to switch scenes.
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 10 Jan 2011 19:07:26 +0800
parents b241f9768833
children 42c4874c8d1e
comparison
equal deleted inserted replaced
1244:b241f9768833 1245:ccbf0c5d01d1
356 356
357 def __init__(self): 357 def __init__(self):
358 super(domview_ui, self).__init__() 358 super(domview_ui, self).__init__()
359 self._fl_stack = frameline_stack() 359 self._fl_stack = frameline_stack()
360 self._dom = domview() 360 self._dom = domview()
361 self._doc = None
362 self._root = None
361 pass 363 pass
362 364
363 ## \brief Update content of a frameline from scenes of respective layer. 365 ## \brief Update content of a frameline from scenes of respective layer.
364 # 366 #
365 def _update_frameline_content(self, layer_idx): 367 def _update_frameline_content(self, layer_idx):
400 def handle_doc_root(self, doc, root): 402 def handle_doc_root(self, doc, root):
401 self._dom.handle_doc_root(doc, root) 403 self._dom.handle_doc_root(doc, root)
402 self._fl_stack._init_framelines() 404 self._fl_stack._init_framelines()
403 self._add_frameline_for_every_layer() 405 self._add_frameline_for_every_layer()
404 self._fl_stack._show_framelines() 406 self._fl_stack._show_framelines()
407
408 self._doc = doc
409 self._root = root
405 pass 410 pass
406 411
407 ## \brief Mark given frame as a key frame. 412 ## \brief Mark given frame as a key frame.
408 # 413 #
409 def mark_key(self, layer_idx, key_idx): 414 def mark_key(self, layer_idx, key_idx):
612 return dup_group 617 return dup_group
613 618
614 def get_max_frame(self): 619 def get_max_frame(self):
615 max_frame = self._dom.get_max_frame() 620 max_frame = self._dom.get_max_frame()
616 return max_frame 621 return max_frame
622
623 @property
624 def doc(self):
625 return self._doc
626
627 @property
628 def root(self):
629 return self._root
617 pass 630 pass
618 631