コード例 #1
0
    def __init__(self, parent, editable_grp, new_sig_cb, sigs_list_cb, operation_stack_cb):
        CList.__init__(self, parent)
        self._edit_grp = editable_grp

        self._new_sig_cb = new_sig_cb
        self._sigs_list_cb = sigs_list_cb
        self._operation_stack_cb = operation_stack_cb

        self._options_load()
        self.options = True

        self._edit_grp.callback_add("signals.changed", self._signals_update)
        self._edit_grp.callback_add("signal.added", self._signal_added)
        self._edit_grp.callback_add("signal.removed", self._signal_removed)

        self._edit_grp.signal.callback_add("program.changed", self._signal_changed)
        self._edit_grp.signal.callback_add("program.unselected", self._signal_changed)
        self._edit_grp.signal.callback_add("program.name.changed", self._name_changed_cb)
コード例 #2
0
ファイル: signals.py プロジェクト: yihan5523/e17
    def __init__(self, parent, editable_grp, new_sig_cb, sigs_list_cb,
                 operation_stack_cb):
        CList.__init__(self, parent)
        self._edit_grp = editable_grp

        self._new_sig_cb = new_sig_cb
        self._sigs_list_cb = sigs_list_cb
        self._operation_stack_cb = operation_stack_cb

        self._options_load()
        self.options = True

        self._edit_grp.callback_add("signals.changed", self._signals_update)
        self._edit_grp.callback_add("signal.added", self._signal_added)
        self._edit_grp.callback_add("signal.removed", self._signal_removed)

        self._edit_grp.signal.callback_add("program.changed",
                                           self._signal_changed)
        self._edit_grp.signal.callback_add("program.unselected",
                                           self._signal_changed)
        self._edit_grp.signal.callback_add("program.name.changed",
                                           self._name_changed_cb)
コード例 #3
0
ファイル: parts.py プロジェクト: yihan5523/e17
    def __init__(self, parent, editable_grp, operation_stack_cb,
            img_new_img_cb=None, img_list_get_cb=None,
            img_id_get_cb=None, workfile_name_get_cb=None):

        CList.__init__(self, parent)

        self._edit_grp = editable_grp
        self._operation_stack_cb = operation_stack_cb
        self._new_img_cb = img_new_img_cb
        self._img_list_get_cb = img_list_get_cb
        self._img_id_get_cb = img_id_get_cb
        self._workfile_name_get_cb = workfile_name_get_cb

        self._options_load()

        self._edit_grp.callback_add("parts.changed", self._parts_update_cb)
        self._edit_grp.callback_add("part.added", self._part_added_cb)
        self._edit_grp.callback_add("part.removed", self._part_removed_cb)

        self._edit_grp.part.callback_add("part.changed", self._part_changed_cb)
        self._edit_grp.part.callback_add(
            "part.unselected", self._part_changed_cb)
        self._edit_grp.part.callback_add("name.changed", self._name_changed_cb)
コード例 #4
0
ファイル: animations.py プロジェクト: yihan5523/e17
    def __init__(self, parent, new_anim_cb, anims_list_cb, parts_list_cb,
                 op_stack_cb):
        CList.__init__(self, parent)
        self._edit_grp = parent.e

        self._new_anim_cb = new_anim_cb
        self._anims_list_cb = anims_list_cb
        self._parts_list_cb = parts_list_cb
        self._operation_stack_cb = op_stack_cb

        self._options_load()
        self.options = True

        self._edit_grp.callback_add("animations.changed",
                                    self._animations_update)
        self._edit_grp.callback_add("animation.added", self._animation_added)
        self._edit_grp.callback_add("animation.removed",
                                    self._animation_removed)

        self._edit_grp.animation.callback_add("animation.changed",
                                              self._animation_changed)
        self._edit_grp.animation.callback_add("animation.unselected",
                                              self._animation_changed)
コード例 #5
0
ファイル: animations.py プロジェクト: Limsik/e17
    def __init__(self, parent, new_anim_cb, anims_list_cb, parts_list_cb,
                 op_stack_cb):
        CList.__init__(self, parent)
        self._edit_grp = parent.e

        self._new_anim_cb = new_anim_cb
        self._anims_list_cb = anims_list_cb
        self._parts_list_cb = parts_list_cb
        self._operation_stack_cb = op_stack_cb

        self._options_load()
        self.options = True

        self._edit_grp.callback_add(
            "animations.changed", self._animations_update)
        self._edit_grp.callback_add(
            "animation.added", self._animation_added)
        self._edit_grp.callback_add(
            "animation.removed", self._animation_removed)

        self._edit_grp.animation.callback_add(
            "animation.changed", self._animation_changed)
        self._edit_grp.animation.callback_add(
            "animation.unselected", self._animation_changed)