Exemplo n.º 1
0
    def __init__(self, parent=None):
        ManagerExplorer.__init__(self, parent)
        self._explorer.search_item_request.connect(self.add_path_to_search_item)
        self._explorer.set_default_item_icon(DEFAULT_PROJECT_ICON)
        self.set_items(projects())
        self.set_criteria(self.criteria)

        self.groupby(filter_name="path")
Exemplo n.º 2
0
    def __init__(self, parent=None):
        ManagerExplorer.__init__(self, parent)
        self._explorer.search_item_request.connect(
            self.add_path_to_search_item)
        self._explorer.set_default_item_icon(DEFAULT_PROJECT_ICON)
        self.set_items(projects())
        self.set_criteria(self.criteria)

        self.groupby(filter_name="path")
Exemplo n.º 3
0
    def __init__(self, parent=None):
        ManagerExplorer.__init__(self, parent)

        self._explorer.set_default_item_icon(DEFAULT_ICON)
        self.set_criteria(self.criteria)

        self._cb_group = QtGui.QComboBox()
        prefixes = ['openalea', 'oalab', 'vpltk']
        for group in sorted(iter_groups()):
            match = False
            for prefix in prefixes:
                if group.startswith(prefix):
                    match = True
                    break
            if match:
                self._cb_group.addItem(group)
        self._cb_group.currentIndexChanged.connect(self._on_group_changed)
        self._layout.addWidget(self._cb_group, 0, 2)

        self._on_group_changed(0)
Exemplo n.º 4
0
    def __init__(self, parent=None):
        ManagerExplorer.__init__(self, parent)

        self._explorer.set_default_item_icon(DEFAULT_ICON)
        self.set_criteria(self.criteria)

        self._cb_group = QtGui.QComboBox()
        prefixes = ['openalea', 'oalab', 'vpltk']
        for group in sorted(iter_groups()):
            match = False
            for prefix in prefixes:
                if group.startswith(prefix):
                    match = True
                    break
            if match:
                self._cb_group.addItem(group)
        self._cb_group.currentIndexChanged.connect(self._on_group_changed)
        self._layout.addWidget(self._cb_group, 0, 2)

        self._on_group_changed(0)