aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/desktop-plugins/NewDP.h
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-04-25 13:08:12 -0400
committerKen Moore <moorekou@gmail.com>2016-04-25 13:08:12 -0400
commited5ecf7ea7a482b4649e66ecb35fbc60af680684 (patch)
treeacc0fa17d228259e847f55c678db9fb0a9b50f0c /lumina-desktop/desktop-plugins/NewDP.h
parentMerge branch 'master' of github.com:pcbsd/lumina (diff)
downloadlumina-ed5ecf7ea7a482b4649e66ecb35fbc60af680684.tar.gz
lumina-ed5ecf7ea7a482b4649e66ecb35fbc60af680684.tar.bz2
lumina-ed5ecf7ea7a482b4649e66ecb35fbc60af680684.zip
Rearrange the Lumina source tree quite a bit:
Now the utilites are arranged by category (core, core-utils, desktop-utils), so all the -utils may be excluded by a package system (or turned into separate packages) as needed.
Diffstat (limited to 'lumina-desktop/desktop-plugins/NewDP.h')
-rw-r--r--lumina-desktop/desktop-plugins/NewDP.h60
1 files changed, 0 insertions, 60 deletions
diff --git a/lumina-desktop/desktop-plugins/NewDP.h b/lumina-desktop/desktop-plugins/NewDP.h
deleted file mode 100644
index a12341bb..00000000
--- a/lumina-desktop/desktop-plugins/NewDP.h
+++ /dev/null
@@ -1,60 +0,0 @@
-//===========================================
-// Lumina-DE source code
-// Copyright (c) 2014, Ken Moore
-// Available under the 3-clause BSD license
-// See the LICENSE file for full details
-//===========================================
-// This class is the interface to load all the different desktop plugins
-//===========================================
-#ifndef _LUMINA_DESKTOP_NEW_DESKTOP_PLUGIN_H
-#define _LUMINA_DESKTOP_NEW_DESKTOP_PLUGIN_H
-
-#include <QDebug>
-
-//List all the individual plugin includes here
-#include "LDPlugin.h"
-//#include "SamplePlugin.h"
-#include "calendar/CalendarPlugin.h"
-#include "applauncher/AppLauncherPlugin.h"
-#include "desktopview/DesktopViewPlugin.h"
-#include "notepad/NotepadPlugin.h"
-#include "audioplayer/PlayerWidget.h"
-#include "systemmonitor/MonitorWidget.h"
-//#include "quickcontainer/QuickDPlugin.h"
-//#include "messagecenter/MessageCenter.h"
-
-class NewDP{
-public:
- static LDPlugin* createPlugin(QString plugin, QWidget* parent=0){
- //qDebug() << "Create Plugin:" << plugin;
- LDPlugin *plug = 0;
- /*if(plugin.section("---",0,0)=="sample"){
- plug = new SamplePlugin(parent, plugin);
- }else */
- if(plugin.section("---",0,0)=="calendar"){
- plug = new CalendarPlugin(parent, plugin);
- }else if(plugin.section("---",0,0).section("::",0,0)=="applauncher"){
- //This plugin can be pre-initialized to a file path after the "::" delimiter
- plug = new AppLauncherPlugin(parent, plugin);
- }else if(plugin.section("---",0,0)=="desktopview"){
- plug = new DesktopViewPlugin(parent, plugin);
- }else if(plugin.section("---",0,0)=="notepad"){
- plug = new NotePadPlugin(parent, plugin);
- }else if(plugin.section("---",0,0)=="audioplayer"){
- plug = new AudioPlayerPlugin(parent, plugin);
- }else if(plugin.section("---",0,0)=="systemmonitor"){
- plug = new SysMonitorPlugin(parent, plugin);
- //}else if(plugin.section("---",0,0)=="messagecenter"){
- //plug = new MessageCenterPlugin(parent, plugin);
- //}else if(plugin.section("---",0,0).startsWith("quick-") && LUtils::validQuickPlugin(plugin.section("---",0,0)) ){
- //plug = new QuickDPlugin(parent, plugin);
- }else{
- qWarning() << "Invalid Desktop Plugin:"<<plugin << " -- Ignored";
- }
- //qDebug() << " -- done";
- return plug;
- }
-
-};
-
-#endif
bgstack15