aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/NewPP.h
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-06-11 20:51:19 -0400
committerKen Moore <ken@pcbsd.org>2015-06-11 20:51:19 -0400
commitac15e22fe559bbfc267d99237674fba5a879806f (patch)
treefdb4cce3eeb5ecefcd3f61c9f3cdd40c99723ca3 /lumina-desktop/panel-plugins/NewPP.h
parentOops, forgot to save/commit the new fields in the luminaDesktop.conf gile. (diff)
downloadlumina-ac15e22fe559bbfc267d99237674fba5a879806f.tar.gz
lumina-ac15e22fe559bbfc267d99237674fba5a879806f.tar.bz2
lumina-ac15e22fe559bbfc267d99237674fba5a879806f.zip
Add two new plugins for Lumina: QuickPPlugin, QuickDPlugin (panel/desktop respectively).
These are QtQuick "containers" which allow the loading of user/system supplied QML scripts for non-compiled plugin support. These plugins must be single *.qml files located in <Lumina Share>/quickplugins/*.qml or ~/.lumina/quickplugins/*.qml
Diffstat (limited to 'lumina-desktop/panel-plugins/NewPP.h')
-rw-r--r--lumina-desktop/panel-plugins/NewPP.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lumina-desktop/panel-plugins/NewPP.h b/lumina-desktop/panel-plugins/NewPP.h
index 3a593629..78b942d0 100644
--- a/lumina-desktop/panel-plugins/NewPP.h
+++ b/lumina-desktop/panel-plugins/NewPP.h
@@ -24,6 +24,7 @@
#include "showdesktop/LHomeButton.h"
#include "appmenu/LAppMenuPlugin.h"
#include "applauncher/AppLaunchButton.h"
+#include "quickcontainer/QuickPPlugin.h"
#include "systemtray/LSysTray.h" //must be last due to X11 compile issues
class NewPP{
@@ -55,6 +56,8 @@ public:
plug = new LAppMenuPlugin(parent, plugin, horizontal);
}else if(plugin.section("---",0,0).section("::",0,0)=="applauncher"){
plug = new AppLaunchButtonPlugin(parent, plugin, horizontal);
+ }else if( plugin.section("---",0,0).startsWith("quick-") && LUtils::validQuickPlugin(plugin.section("---",0,0)) ){
+ plug = new QuickPPlugin(parent, plugin, horizontal);
}else{
qWarning() << "Invalid Panel Plugin:"<<plugin << " -- Ignored";
}
bgstack15