diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2020-10-19 20:36:51 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2020-10-19 20:36:51 +0000 |
| commit | 6baa843a2a0bdf143617df269129d81dae0a3a38 (patch) | |
| tree | 9a650b4349c1129c8c20b4536228bb838eb9ee67 /src/qmmpui/general.h | |
| parent | b0ab8e75df1bb8c5752ebf3ed60334f1134b04f3 (diff) | |
| download | qmmp-6baa843a2a0bdf143617df269129d81dae0a3a38.tar.gz qmmp-6baa843a2a0bdf143617df269129d81dae0a3a38.tar.bz2 qmmp-6baa843a2a0bdf143617df269129d81dae0a3a38.zip | |
qsui: added feature to add dock widgets from plugins
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9509 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/general.h')
| -rw-r--r-- | src/qmmpui/general.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/qmmpui/general.h b/src/qmmpui/general.h index 14b1af26a..9e4bc0d01 100644 --- a/src/qmmpui/general.h +++ b/src/qmmpui/general.h @@ -47,6 +47,9 @@ public: * Returns a list of the enabled general plugin factories. */ static QList<GeneralFactory *> enabledFactories(); + static QStringList enabledWidgets(); + static WidgetDescription widgetDescription(const QString &id); + static QWidget *createWidget(const QString &id, QWidget *parent); /*! * Returns plugin file path. * @param factory General plugin factory. @@ -57,13 +60,13 @@ public: * @param factory General plugin factory. * @param enable Plugin enable state (\b true - enable, \b false - disable) */ - static void setEnabled(GeneralFactory* factory, bool enable = true); + static void setEnabled(GeneralFactory *factory, bool enable = true); /*! * Shows configuration dialog and updates settings automatically. * @param factory General plugin factory. * @param parentWidget Parent widget. */ - static void showSettings(GeneralFactory* factory, QWidget* parentWidget); + static void showSettings(GeneralFactory *factory, QWidget *parentWidget); /*! * Returns \b true if general plugin is enabled, otherwise returns \b false * @param factory General plugin factory. @@ -71,6 +74,8 @@ public: static bool isEnabled(const GeneralFactory* factory); private: + General() {} + ~General() {} static void loadPlugins(); static QHash <GeneralFactory*, QObject*> *m_generals; static QObject *m_parent; |
