-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplet.h
49 lines (36 loc) · 952 Bytes
/
applet.h
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
39
40
41
42
43
44
45
46
47
48
49
#ifndef APPLET_H
#define APPLET_H
#include <QObject>
#include <QWidget>
#include <QScreen>
#include <QGraphicsEffect>
#include <QGraphicsScene>
#include <QGraphicsPixmapItem>
#include <QPainter>
#include "configman.h"
#include "panel.h"
enum AppletType {
Static,
Dynamic
};
class Applet : public QObject {
Q_OBJECT
public:
QString mAppletID;
AppletType mAppletType;
Applet(QString appletID,
ConfigManager* cfgMan,
Panel* parentPanel);
virtual void externalWidgetSetup();
virtual void internalWidgetSetup();
void preliminaryInternalWidgetSetup(int width,
int height,
bool canBeTransparent);
void setBlurredBackground();
QPair<int,int> getButtonCoordinates();
ConfigManager* mCfgMan;
Panel* mParentPanel;
QWidget* mExternalWidget;
QWidget* mInternalWidget;
};
#endif // APPLET_H