Example #1
0
    def add_filter_gui(self, pid, plugin):
        app = get_app()
        name = plugin.plugin_name
        info = [i[3] for i in engine.list_plugins() if i[1] == name][0]

        # Create the widget
        ui = FilterUI(pid, name, info["Title"], get_app().user_options["filter_group"])
        layout = self.filter_rack_contents.layout()
        layout.insertWidget(layout.count() - 2, ui)

        self.update_filter_uis()
Example #2
0
 def select_type(plugin_type = engine.PLUGIN_TYPE_ANY):
     app = get_app()
     plugins = engine.list_plugins(plugin_type)
     dialog = PluginDialog()
     dialog.list_plugins.populate(plugins)
     return (dialog.exec_() == 1, dialog.selected)