2
* Copyright 2007 by Aaron Seigo <aseigo@kde.org>
3
* Copyright 2008 by Alexis Ménard <darktears31@gmail.com>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU Library General Public License version 2,
8
* or (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details
15
* You should have received a copy of the GNU Library General Public
16
* License along with this program; if not, write to the
17
* Free Software Foundation, Inc.,
18
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
#ifndef PLASMA_DESKTOP_H
22
#define PLASMA_DESKTOP_H
24
#include <QGraphicsItem>
26
#include <QStyleOptionGraphicsItem>
29
#include <Plasma/Containment>
30
#include <Plasma/Animator>
32
#include "desktoplayout.h"
40
/*class Tool : public QObject, public QGraphicsItem
45
explicit Tool(QGraphicsItem *parent = 0);
46
QRectF boundingRect() const;
47
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
51
class DefaultDesktop : public Plasma::Containment
56
DefaultDesktop(QObject *parent, const QVariantList &args);
58
void constraintsEvent(Plasma::Constraints constraints);
61
void dropEvent(QGraphicsSceneDragDropEvent *event);
62
void keyPressEvent(QKeyEvent *event);
65
void onAppletAdded(Plasma::Applet *, const QPointF &);
66
void onAppletRemoved(Plasma::Applet *);
67
void onAppletTransformedByUser();
68
void onAppletTransformedItself();
69
void refreshWorkingArea();
72
DesktopLayout *m_layout;
73
QTimer *m_delayedRefreshTimer;
76
bool m_startupCompleted;
78
static const int DELAYED_REFRESH_WAIT = 100;
79
static const int MAX_REFRESH_FAILS = 20;
82
#endif // PLASMA_PANEL_H