aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop/panel-plugins')
-rw-r--r--lumina-desktop/panel-plugins/LPPlugin.h2
-rw-r--r--lumina-desktop/panel-plugins/NewPP.h5
-rw-r--r--lumina-desktop/panel-plugins/line/LLine.h40
-rw-r--r--lumina-desktop/panel-plugins/panel-plugins.pri49
4 files changed, 94 insertions, 2 deletions
diff --git a/lumina-desktop/panel-plugins/LPPlugin.h b/lumina-desktop/panel-plugins/LPPlugin.h
index beff3bf6..995c8742 100644
--- a/lumina-desktop/panel-plugins/LPPlugin.h
+++ b/lumina-desktop/panel-plugins/LPPlugin.h
@@ -1,6 +1,6 @@
//===========================================
// Lumina-DE source code
-// Copyright (c) 2014, Ken Moore
+// Copyright (c) 2014-2015, Ken Moore
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
diff --git a/lumina-desktop/panel-plugins/NewPP.h b/lumina-desktop/panel-plugins/NewPP.h
index f43f8803..50bf2232 100644
--- a/lumina-desktop/panel-plugins/NewPP.h
+++ b/lumina-desktop/panel-plugins/NewPP.h
@@ -1,6 +1,6 @@
//===========================================
// Lumina-DE source code
-// Copyright (c) 2014, Ken Moore
+// Copyright (c) 2014-2015, Ken Moore
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
@@ -16,6 +16,7 @@
#include "userbutton/LUserButton.h"
#include "desktopbar/LDeskBar.h"
#include "spacer/LSpacer.h"
+#include "line/LLine.h"
#include "clock/LClock.h"
#include "battery/LBattery.h"
#include "desktopswitcher/LDesktopSwitcher.h"
@@ -40,6 +41,8 @@ public:
plug = new LDeskBarPlugin(parent, plugin, horizontal);
}else if(plugin.startsWith("spacer---")){
plug = new LSpacerPlugin(parent, plugin, horizontal);
+ }else if(plugin.startsWith("line---")){
+ plug = new LLinePlugin(parent, plugin, horizontal);
}else if(plugin.startsWith("taskmanager")){
//This one can be "taskmanager[-nogroups]---"
plug = new LTaskManagerPlugin(parent, plugin, horizontal);
diff --git a/lumina-desktop/panel-plugins/line/LLine.h b/lumina-desktop/panel-plugins/line/LLine.h
new file mode 100644
index 00000000..94de486e
--- /dev/null
+++ b/lumina-desktop/panel-plugins/line/LLine.h
@@ -0,0 +1,40 @@
+//===========================================
+// Lumina-DE source code
+// Copyright (c) 2015, Ken Moore
+// Available under the 3-clause BSD license
+// See the LICENSE file for full details
+//===========================================
+// This class is a generic line separator for the panel
+//===========================================
+#ifndef _LUMINA_DESKTOP_PANEL_PLUGIN_LINE_H
+#define _LUMINA_DESKTOP_PANEL_PLUGIN_LINE_H
+
+#include "../LPPlugin.h"
+#include <QFrame>
+
+class LLinePlugin : public LPPlugin{
+ Q_OBJECT
+private:
+ QFrame *line;
+
+public:
+ LLinePlugin(QWidget *parent=0, QString id="spacer", bool horizontal=true) : LPPlugin(parent, id, horizontal){
+ line = new QFrame(this);
+ line->setObjectName("LuminaPanelLine");
+ this->layout()->addWidget(line);
+ OrientationChange();
+ }
+ ~LLinePlugin(){}
+
+public slots:
+ void OrientationChange(){
+ if(this->layout()->direction()==QBoxLayout::LeftToRight){ //horizontal
+ line->setFrameShape(QFrame::VLine);
+ }else{ //vertical
+ line->setFrameShape(QFrame::HLine);
+ }
+ }
+};
+
+
+#endif \ No newline at end of file
diff --git a/lumina-desktop/panel-plugins/panel-plugins.pri b/lumina-desktop/panel-plugins/panel-plugins.pri
new file mode 100644
index 00000000..afa7dbe2
--- /dev/null
+++ b/lumina-desktop/panel-plugins/panel-plugins.pri
@@ -0,0 +1,49 @@
+#Lumina Desktop Panel Plugin files
+
+SOURCES += $$PWD/userbutton/LUserButton.cpp \
+ $$PWD/userbutton/UserWidget.cpp \
+ $$PWD/userbutton/UserItemWidget.cpp \
+ $$PWD/desktopbar/LDeskBar.cpp \
+ $$PWD/taskmanager/LTaskManagerPlugin.cpp \
+ $$PWD/taskmanager/LTaskButton.cpp \
+ $$PWD/systemtray/LSysTray.cpp \
+ $$PWD/systemtray/TrayIcon.cpp \
+ $$PWD/clock/LClock.cpp \
+ $$PWD/battery/LBattery.cpp \
+ $$PWD/desktopswitcher/LDesktopSwitcher.cpp \
+ $$PWD/systemdashboard/LSysDashboard.cpp \
+ $$PWD/systemdashboard/SysMenuQuick.cpp \
+ $$PWD/showdesktop/LHomeButton.cpp \
+ $$PWD/appmenu/LAppMenuPlugin.cpp \
+ $$PWD/applauncher/AppLaunchButton.cpp \
+ $$PWD/systemstart/LStartButton.cpp \
+ $$PWD/systemstart/StartMenu.cpp \
+ $$PWD/systemstart/ItemWidget.cpp
+
+HEADERS += $$PWD/userbutton/LUserButton.h \
+ $$PWD/userbutton/UserWidget.h \
+ $$PWD/userbutton/UserItemWidget.h \
+ $$PWD/desktopbar/LDeskBar.h \
+ $$PWD/systemtray/LSysTray.h \
+ $$PWD/systemtray/TrayIcon.h \
+ $$PWD/spacer/LSpacer.h \
+ $$PWD/line/LLine.h \
+ $$PWD/clock/LClock.h \
+ $$PWD/battery/LBattery.h \
+ $$PWD/desktopswitcher/LDesktopSwitcher.h \
+ $$PWD/taskmanager/LTaskManagerPlugin.h \
+ $$PWD/taskmanager/LTaskButton.h \
+ $$PWD/systemdashboard/LSysDashboard.h \
+ $$PWD/systemdashboard/SysMenuQuick.h \
+ $$PWD/showdesktop/LHomeButton.h \
+ $$PWD/appmenu/LAppMenuPlugin.h \
+ $$PWD/applauncher/AppLaunchButton.h \
+ $$PWD/systemstart/LStartButton.h \
+ $$PWD/systemstart/StartMenu.h \
+ $$PWD/systemstart/ItemWidget.h
+# $$PWD/quickcontainer/QuickPPlugin.h
+
+FORMS += $$PWD/userbutton/UserWidget.ui \
+ $$PWD/systemdashboard/SysMenuQuick.ui \
+ $$PWD/systemstart/StartMenu.ui
+ \ No newline at end of file
bgstack15