Mercurial > MadButterfly
changeset 1244:b241f9768833
Remove MBScene_ from the prefix of class names.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 10 Jan 2011 16:48:11 +0800 |
parents | d5f70928e9f1 |
children | ccbf0c5d01d1 |
files | pyink/MBScene.py pyink/domview.py pyink/domview_ui.py |
diffstat | 3 files changed, 15 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/pyink/MBScene.py Mon Jan 10 16:32:16 2011 +0800 +++ b/pyink/MBScene.py Mon Jan 10 16:48:11 2011 +0800 @@ -7,7 +7,7 @@ import traceback import pybInkscape from tween import TweenObject -from domview_ui import MBScene_domview_ui +from domview_ui import domview_ui # Please refer to # http://www.assembla.com/wiki/show/MadButterfly/Inkscape_extention @@ -55,7 +55,7 @@ ## \brief MBScene connect GUI and DOM-tree # -# This method accepts user actions and involves MBScene_domview_ui to update +# This method accepts user actions and involves domview_ui to update # data on the document. # class MBScene(object): @@ -82,7 +82,7 @@ self._disable_tween_type_selector = False self.current = 0 - self._domview = MBScene_domview_ui() + self._domview = domview_ui() pass def change_active_frame(self, node):
--- a/pyink/domview.py Mon Jan 10 16:32:16 2011 +0800 +++ b/pyink/domview.py Mon Jan 10 16:48:11 2011 +0800 @@ -41,9 +41,9 @@ # # This class monitors DOM-tree to maintain _maxframe and maps for node ID to # node and scene group ID to scene node. -class MBScene_domview_monitor(object): +class domview_monitor(object): def __init__(self, *args, **kws): - super(MBScene_domview_monitor, self).__init__() + super(domview_monitor, self).__init__() self._maxframe = 0 self._id2node = {} # map ID to the node in the DOM tree. @@ -299,13 +299,13 @@ # change and destroy scene node and scene group. A scene node is a 'ns0:scene' # in 'ns0:scenes' tag. A scene group is respective 'svg:g' for a scene. # -class MBScene_domview(MBScene_domview_monitor): +class domview(domview_monitor): # Declare variables, here, for keeping tracking _doc = None _root = None def __init__(self, *args, **kws): - super(MBScene_domview, self).__init__() + super(domview, self).__init__() pass ## \brief Create a scenes node if not existed. @@ -354,7 +354,7 @@ self._root = root self._layers = [] - self._start_monitor() # start MBScene_domview_monitor + self._start_monitor() # start domview_monitor self._init_metadata() self._parse_all_layers() pass
--- a/pyink/domview_ui.py Mon Jan 10 16:32:16 2011 +0800 +++ b/pyink/domview_ui.py Mon Jan 10 16:48:11 2011 +0800 @@ -1,7 +1,7 @@ import gtk from tween import TweenObject from frameline import frameline, frameruler -from domview import MBScene_domview +from domview import domview ## \brief Maintain a stack of frameline UI component. @@ -12,7 +12,7 @@ # frame index number. You access/set content of frameline by specifing layer # index and frame index. # -class MBScene_frameline_stack(object): +class frameline_stack(object): _frameline_tween_types = (frameline.TWEEN_TYPE_NONE, frameline.TWEEN_TYPE_SHAPE) _num_frames_of_line = 100 @@ -20,7 +20,7 @@ _framelines = None def __init__(self, *args, **kws): - super(MBScene_frameline_stack, self).__init__(*args, **kws) + super(frameline_stack, self).__init__(*args, **kws) self._last_mouse_over_frameline = None self._last_active_frameline = None @@ -351,13 +351,13 @@ ## \brief Bridge of DOM-tree to syncrhonize data-model and UI. # # This class is a wrapper -class MBScene_domview_ui(object): +class domview_ui(object): _tween_type_names = ('normal', 'scale') def __init__(self): - super(MBScene_domview_ui, self).__init__() - self._fl_stack = MBScene_frameline_stack() - self._dom = MBScene_domview() + super(domview_ui, self).__init__() + self._fl_stack = frameline_stack() + self._dom = domview() pass ## \brief Update content of a frameline from scenes of respective layer.