aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/uihelper.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-10-19 20:36:51 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-10-19 20:36:51 +0000
commit6baa843a2a0bdf143617df269129d81dae0a3a38 (patch)
tree9a650b4349c1129c8c20b4536228bb838eb9ee67 /src/qmmpui/uihelper.h
parentb0ab8e75df1bb8c5752ebf3ed60334f1134b04f3 (diff)
downloadqmmp-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/uihelper.h')
-rw-r--r--src/qmmpui/uihelper.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/qmmpui/uihelper.h b/src/qmmpui/uihelper.h
index 1b1f76f69..9d31443bf 100644
--- a/src/qmmpui/uihelper.h
+++ b/src/qmmpui/uihelper.h
@@ -98,6 +98,11 @@ public:
* @param before An action, after which the rest are added.
*/
void registerMenu(MenuType type, QMenu *menu, bool autoHide = false, QAction *before = nullptr);
+
+ void addWidget(const QString &id);
+ void removeWidget(const QString &id);
+ void updateWidget(const QString &id);
+
/*!
* Opens 'Add Files' dialog
* @param parent Parent widget
@@ -183,6 +188,10 @@ signals:
*/
void showMainWindowCalled();
+ void widgetAdded(const QString &id);
+ void widgetRemoved(const QString &id);
+ void widgetUpdated(const QString &id);
+
private slots:
void removeAction(QObject *action);
void addSelectedFiles(const QStringList &files, bool play);