def __init__(self, controller, parent_view, op_stack_cb): View.__init__(self, controller, parent_view) evas.ClippedSmartObject.__init__(self, parent_view.evas) self._operation_stack_cb = op_stack_cb self._group = None self._group_min = (0, 0) self._group_max = (0, 0) self._part = None self._objs = [] self._group_listeners = [] self._part_listeners = [] self.outside_area = self.evas.Rectangle(color=(0, 0, 0, 0)) self.member_push(self.outside_area) self.outside_area.on_mouse_down_add(self._outside_area_clicked) self.outside_area.show() # Border self.border = GroupBorder(self) self.listener_member_push(self.border) #Group Handler self.group_handler = GroupResizeHandler( self.controller.e, self.parent_view, self.theme, self.group_resize, self.padding_update, self._operation_stack_cb) self.listener_member_push(self.group_handler) # Highlight # self.highlight1x = PartHighlight( # self, group = "editje/desktop/rel1/highlight") # self.member_push(self.highlight1x) # self.highlight1y = PartHighlight( # self, group = "editje/desktop/rel1/highlight") # self.member_push(self.highlight1y) # self.highlight2x = PartHighlight( # self, group = "editje/desktop/rel2/highlight") # self.member_push(self.highlight2x) # self.highlight2y = PartHighlight( # self, group = "editje/desktop/rel2/highlight") # self.member_push(self.highlight2y) self.parts_manager = PartsManager(self.evas) self.parts_manager.select = self.parent_view.part_clicked self.member_push(self.parts_manager) self._handlers_init() self.parent_view.on_resize_add(self._padding_init)
def __init__(self, controller, parent_view, op_stack_cb): View.__init__(self, controller, parent_view) evas.ClippedSmartObject.__init__(self, parent_view.evas) self._operation_stack_cb = op_stack_cb self._group = None self._group_min = (0, 0) self._group_max = (0, 0) self._part = None self._objs = [] self._group_listeners = [] self._part_listeners = [] self.outside_area = self.evas.Rectangle(color=(0, 0, 0, 0)) self.member_push(self.outside_area) self.outside_area.on_mouse_down_add(self._outside_area_clicked) self.outside_area.show() # Border self.border = GroupBorder(self) self.listener_member_push(self.border) #Group Handler self.group_handler = GroupResizeHandler( self.controller.e, self.parent_view, self.themeext, self.group_resize, self.padding_update, self._operation_stack_cb) self.listener_member_push(self.group_handler) # Highlight # self.highlight1x = PartHighlight( # self, group = "editje/desktop/rel1/highlight") # self.member_push(self.highlight1x) # self.highlight1y = PartHighlight( # self, group = "editje/desktop/rel1/highlight") # self.member_push(self.highlight1y) # self.highlight2x = PartHighlight( # self, group = "editje/desktop/rel2/highlight") # self.member_push(self.highlight2x) # self.highlight2y = PartHighlight( # self, group = "editje/desktop/rel2/highlight") # self.member_push(self.highlight2y) self.parts_manager = PartsManager(self.evas) self.parts_manager.select = self.parent_view.part_clicked self.member_push(self.parts_manager) self._handlers_init() self.parent_view.on_resize_add(self._padding_init)
def __init__(self, controller, parent_view, op_stack_cb): View.__init__(self, controller, parent_view) self._layout_load(op_stack_cb)