comparison pyink/comp_dock.py @ 1462:c3e0af5d2487

Rename functions
author Thinker K.F. Li <thinker@codemud.net>
date Sun, 17 Apr 2011 01:09:38 +0800
parents 31189b5d832a
children fa4d0480d6cb
comparison
equal deleted inserted replaced
1461:31189b5d832a 1462:c3e0af5d2487
237 237
238 ## \brief Hint user that given component is selected. 238 ## \brief Hint user that given component is selected.
239 # 239 #
240 # Show an icon before the component name. 240 # Show an icon before the component name.
241 # 241 #
242 def _sel_component(self, comp_name): 242 def _hint_sel_component(self, comp_name):
243 all_comp_names = self._domview_ui.all_comp_names() 243 all_comp_names = self._domview_ui.all_comp_names()
244 sel_idx = all_comp_names.index(comp_name) 244 sel_idx = all_comp_names.index(comp_name)
245 assert sel_idx >= 0 245 assert sel_idx >= 0
246 246
247 for idx in range(len(all_comp_names)): 247 for idx in range(len(all_comp_names)):
263 263
264 group = domview_ui.get_layer_group(0) 264 group = domview_ui.get_layer_group(0)
265 desktop = self._desktop # from comp_dock_base 265 desktop = self._desktop # from comp_dock_base
266 desktop.setCurrentLayer(group.spitem) 266 desktop.setCurrentLayer(group.spitem)
267 267
268 self._sel_component(comp_name) 268 self._hint_sel_component(comp_name)
269 tl_name = self._current_timeline() 269 tl_name = self._current_timeline()
270 self._sel_timeline(tl_name) 270 self._hint_sel_timeline(tl_name)
271 pass 271 pass
272 272
273 def _add_timeline(self): 273 def _add_timeline(self):
274 def _make_timeline_name(): 274 def _make_timeline_name():
275 tl_name = 'New Timeline' 275 tl_name = 'New Timeline'
305 305
306 ## \brief Hint user that given timeline is selected. 306 ## \brief Hint user that given timeline is selected.
307 # 307 #
308 # Show an icon before the timeline name. 308 # Show an icon before the timeline name.
309 # 309 #
310 def _sel_timeline(self, tl_name): 310 def _hint_sel_timeline(self, tl_name):
311 all_tl_names = self._domview_ui.all_timeline_names() 311 all_tl_names = self._domview_ui.all_timeline_names()
312 sel_idx = all_tl_names.index(tl_name) 312 sel_idx = all_tl_names.index(tl_name)
313 assert sel_idx >= 0 313 assert sel_idx >= 0
314 314
315 for idx in range(len(all_tl_names)): 315 for idx in range(len(all_tl_names)):
327 domview_ui = self._domview_ui 327 domview_ui = self._domview_ui
328 328
329 timeline_name = self._current_timeline() 329 timeline_name = self._current_timeline()
330 domview_ui.switch_timeline(timeline_name) 330 domview_ui.switch_timeline(timeline_name)
331 331
332 self._sel_timeline(timeline_name) 332 self._hint_sel_timeline(timeline_name)
333 pass 333 pass
334 334
335 def _prepare_FSM_editor(self): 335 def _prepare_FSM_editor(self):
336 def FSM_editor_close(): 336 def FSM_editor_close():
337 self._fsm_editor_win.hide() 337 self._fsm_editor_win.hide()