From 4b1a89648fffea98b447e4289dbc559d717d0b52 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Tue, 29 Sep 2020 22:47:38 +0200 Subject: Display plugins in a tree instead of a list in the settings dialog. --- src/plugincontainer.h | 43 ++++++++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 17 deletions(-) (limited to 'src/plugincontainer.h') diff --git a/src/plugincontainer.h b/src/plugincontainer.h index 8672606b..07363ee7 100644 --- a/src/plugincontainer.h +++ b/src/plugincontainer.h @@ -72,26 +72,13 @@ private: public: /** - * @brief Retrieved the (localized) names of interfaces implemented by the given - * plugin. + * @brief Retrieved the (localized) names of the various plugin interfaces. * - * @param plugin The plugin to retrieve interface for. - * - * @return the (localized) names of interfaces implemented by this plugin. + * @return the (localized) names of the various plugin interfaces. */ - QStringList implementedInterfaces(MOBase::IPlugin *plugin) const; + static QStringList pluginInterfaces(); - /** - * @brief Return the (localized) name of the most important interface implemented by - * the given plugin. - * - * The order of interfaces is defined in X. - * - * @param plugin The plugin to retrieve the interface for. - * - * @return the (localized) name of the most important interface implemented by this plugin. - */ - QString topImplementedInterface(MOBase::IPlugin* plugin) const; +public: PluginContainer(OrganizerCore *organizer); virtual ~PluginContainer(); @@ -125,6 +112,28 @@ public: return temp; } + /** + * @brief Retrieved the (localized) names of interfaces implemented by the given + * plugin. + * + * @param plugin The plugin to retrieve interface for. + * + * @return the (localized) names of interfaces implemented by this plugin. + */ + QStringList implementedInterfaces(MOBase::IPlugin* plugin) const; + + /** + * @brief Return the (localized) name of the most important interface implemented by + * the given plugin. + * + * The order of interfaces is defined in X. + * + * @param plugin The plugin to retrieve the interface for. + * + * @return the (localized) name of the most important interface implemented by this plugin. + */ + QString topImplementedInterface(MOBase::IPlugin* plugin) const; + /** * @return the preview generator. */ -- cgit v1.3.1