diff options
Diffstat (limited to 'lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h')
-rw-r--r-- | lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h | 46 |
1 files changed, 17 insertions, 29 deletions
diff --git a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h index 9702e6e4..9dd97423 100644 --- a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h +++ b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h @@ -4,40 +4,28 @@ // 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 +// This class is a quick sample desktop plugin //=========================================== -#ifndef _LUMINA_DESKTOP_VIEW_PLUGIN_H -#define _LUMINA_DESKTOP_VIEW_PLUGIN_H - -#include <QDir> -#include <QFile> -#include <QFileSystemWatcher> -#include <QGridLayout> -#include <QStringList> -#include <QList> -#include <QTimer> - -#include <LuminaXDG.h> +#ifndef _LUMINA_DESKTOP_DESKTOP_VIEW_PLUGIN_CALENDAR_H +#define _LUMINA_DESKTOP_DESKTOP_VIEW_PLUGIN_CALENDAR_H +#include <QListWidget> +#include <QVBoxLayout> #include "../LDPlugin.h" -#include "DeskItem.h" - -class DesktopViewPlugin : public LDPlugin{ +class CalendarPlugin : public LDPlugin{ Q_OBJECT public: - DesktopViewPlugin(QWidget *parent = 0); - ~DesktopViewPlugin(); - + DesktopViewPlugin(QWidget* parent, QString ID) : LDPlugin(parent, ID){ + this->setLayout( new QVBoxLayout()); + this->layout()->setContentsMargins(0,0,0,0); + list = new QListWidget(this); + this->layout()->addWidget(list); + } + + ~DesktopViewPlugin(){} + private: - QString deskDir; - QFileSystemWatcher *watcher; - QGridLayout *layout; - int icoSize, spacing; - QList<DeskItem*> ITEMS; - -private slots: - void UpdateDesktop(); - + QListWidget *list; }; -#endif
\ No newline at end of file +#endif |