2
* Copyright 2007 Aaron Seigo <aseigo@kde.org>
3
* Copyright 2007 André Duffeck <duffeck@kde.org>
4
* Copyright 2008 Chani Armitage <chanika@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 as
8
* published by the Free Software Foundation; either version 2, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details
16
* You should have received a copy of the GNU Library General Public
17
* License along with this program; if not, write to the
18
* Free Software Foundation, Inc.,
19
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25
#include <QWeakPointer>
27
#include <Plasma/Plasma>
28
#include <Plasma/View>
36
class SaverView : public Plasma::View
41
SaverView(Plasma::Containment* containment, QWidget *parent);
44
bool eventFilter(QObject *watched, QEvent *event);
50
void drawBackground(QPainter * painter, const QRectF & rect);
51
void keyPressEvent(QKeyEvent *event);
52
void paintEvent(QPaintEvent *event);
57
void setOpacity(qreal opacity);
58
void adjustSize(int screen);
61
* Sets the containment for this view, which will also cause the view
62
* to track the geometry of the containment.
64
* @arg containment the containment to center the view on
66
void setContainment(Plasma::Containment *newContainment);
67
void hideWidgetExplorer();
69
void enableSetupMode();
70
void disableSetupMode();
73
void showWidgetExplorer(); //FIXME actually this is toggle
74
void suppressShowTimeout();
79
QWeakPointer<Plasma::WidgetExplorer> m_widgetExplorer;
80
QPoint m_appletBrowserDragStart;
81
bool m_suppressShow : 1;
86
#endif // multiple inclusion guard