aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop-unified/src-desktop/src-widgets/Panel.h
blob: 64b0e239bcd97dd73e5e6678fe623806445282b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//===========================================
//  Lumina-desktop source code
//  Copyright (c) 2018, Ken Moore
//  Available under the 3-clause BSD license
//  See the LICENSE file for full details
//===========================================
// This is the Widgets version of a floating, top-level panel
//===========================================
#ifndef _DESKTOP_WIDGETS_PANEL_H
#define _DESKTOP_WIDGETS_PANEL_H

#include <global-includes.h>
#include <QBoxLayout>
#include "Plugin.h"

class Panel : public QWidget {
	Q_OBJECT
private:
	PanelObject *obj;
	QBoxLayout *layout;
	QStringList lastplugins;
	//Stuff for managing the plugins
	QList<Plugin*> PLUGINS;
	Plugin* findPlugin(QString id);
	Plugin* createPlugin(QString id);

public:
	Panel(PanelObject *pobj);
	~Panel();

private slots:
	void objectDestroyed(QObject*);
	void updateGeom();
	void updateBackground();
	void updatePlugins();

};
#endif
bgstack15