ruphy / raptor

menu for KDE 4

This URL has Read+Write access

raptor / raptor.h
100644 53 lines (40 sloc) 1.301 kb
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
50
51
52
53
/* This file is part of the KDE project
 
Copyright (C) 2008 - 2009 Lukas Appelhans <l.appelhans@gmx.de>
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
*/
// Here we avoid loading the header multiple times
#ifndef RAPTOR_HEADER
#define RAPTOR_HEADER
// We need the Plasma Applet headers
#include <KIcon>
 
#include <Plasma/Applet>
#include <Plasma/IconWidget>
#include <Plasma/Dialog>
 
class RaptorGraphicsWidget;
class RaptorDialog;
 
class QSizeF;
 
// Define our plasma Applet
class Raptor : public Plasma::Applet
{
    Q_OBJECT
    public:
        // Basic Create/Destroy
        Raptor(QObject *parent, const QVariantList &args);
        ~Raptor();
 
        void init();
        void constraintsEvent(Plasma::Constraints constraints);
 
        QGraphicsWidget *graphicsWidget();
 
    private slots:
        void popup();
 
    private:
        Plasma::IconWidget *m_icon;
        RaptorDialog *m_dialog;
        RaptorGraphicsWidget *m_gwidget;
 
        void updateDialog();
};
 
// This is the command that links your applet to the .desktop file
K_EXPORT_PLASMA_APPLET(raptor, Raptor)
#endif