Example #1
0
    def _show(self):
        state = self.part_edje.state_selected_get()
        self._header_table["name"].value = self.part_edje.name
        self._header_table["name"].show_value()
        self._header_table["type"].value = \
            part_type_to_text(self.part_edje.type)
        self._header_table["type"].show_value()

        if self.e.part.type == edje.EDJE_PART_TYPE_EXTERNAL:
            source = self.e.part.source
            if source.startswith("elm/"):
                source = source[4:]
                module = "Elementary"
            else:
                module = "Emotion"

            self.edje_get().signal_emit("cl,extra,activate", "")
            if "source widget" not in self._header_table:
                self._header_table.property_add(self._source_prop)
            if "module" not in self._header_table:
                self._header_table.property_add(self._module_prop)

            self._header_table["source widget"].value = source
            self._header_table["source widget"].show_value()
            self._header_table["module"].value = module
            self._header_table["module"].show_value()
        else:
            self._header_extra_hide()

        self.edje_get().signal_emit("cl,option,enable", "editje")
        self.state = self.part_edje.state_get(*state)
        self._update()
        self.show()
Example #2
0
    def _show(self):
        state = self.part_edje.state_selected_get()
        self._header_table["name"].value = self.part_edje.name
        self._header_table["name"].show_value()
        self._header_table["type"].value = \
            part_type_to_text(self.part_edje.type)
        self._header_table["type"].show_value()

        if self.e.part.type == edje.EDJE_PART_TYPE_EXTERNAL:
            source = self.e.part.source
            if source.startswith("elm/"):
                source = source[4:]
                module = "Elementary"
            else:
                module = "Emotion"

            self.edje_get().signal_emit("cl,extra,activate", "")
            if "source widget" not in self._header_table:
                self._header_table.property_add(self._source_prop)
            if "module" not in self._header_table:
                self._header_table.property_add(self._module_prop)

            self._header_table["source widget"].value = source
            self._header_table["source widget"].show_value()
            self._header_table["module"].value = module
            self._header_table["module"].show_value()
        else:
            self._header_extra_hide()

        self.edje_get().signal_emit("cl,option,enable", "editje")
        self.state = self.part_edje.state_get(*state)
        self._update()
        self.show()
Example #3
0
        if not self._edit_grp.group:
            return {}

        if self._edit_grp.group != group:
            try:
                editable = self._create_dummy_edje(group)
            except Exception, e:
                return {}
        else:
            editable = self._edit_grp

        ret = {}
        for p in editable.parts:
            pinfo = {}
            part = editable.part_get(p)
            pinfo["type"] = part_type_to_text(part.type)
            pinfo["mouse_events"] = bool(part.mouse_events)

            ret[p] = pinfo

        self._edje_check_free(editable)

        return ret

    def export_get_api_objects(self, group):
        try:
            ret = self.export_get_parts(group)
        except Exception, e:
            return {}

        if self._edit_grp.group != group:
Example #4
0
        if not self._edit_grp.group:
            return {}

        if self._edit_grp.group != group:
            try:
                editable = self._create_dummy_edje(group)
            except Exception, e:
                return {}
        else:
            editable = self._edit_grp

        ret = {}
        for p in editable.parts:
            pinfo = {}
            part = editable.part_get(p)
            pinfo["type"] = part_type_to_text(part.type)
            pinfo["mouse_events"] = bool(part.mouse_events)

            ret[p] = pinfo

        self._edje_check_free(editable)

        return ret

    def export_get_api_objects(self, group):
        try:
            ret = self.export_get_parts(group)
        except Exception, e:
            return {}

        if self._edit_grp.group != group: