2
* Copyright 2007 Aaron Seigo <aseigo@kde.org>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as
6
* published by the Free Software Foundation; either version 2,
7
* or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details
14
* You should have received a copy of the GNU Library General Public
15
* License along with this program; if not, write to the
16
* Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23
#include <Plasma/Plasma>
24
#include <Plasma/View>
38
class DesktopView : public Plasma::View
43
DesktopView(Plasma::Containment *containment, int id, QWidget *parent);
47
* Sets things up for per-desktop views (or not)
49
void checkDesktopAffiliation();
52
* Returns whether or not the dashboard view is visible
54
bool isDashboardVisible() const;
57
* Returns whether the dashboard containment will always be the desktop's one
59
bool dashboardFollowsDesktop() const;
61
Plasma::Containment *dashboardContainment() const;
62
void setDashboardContainment(Plasma::Containment *containment);
65
void toggleDashboard();
66
void showDashboard(bool show);
68
void screenResized(Kephal::Screen *);
69
void screenMoved(Kephal::Screen *);
71
void toolBoxOpened(bool);
72
void showDesktopUntoggled(WId id);
73
void showWidgetExplorer();
75
void screenOwnerChanged(int wasScreen, int isScreen, Plasma::Containment* containment);
78
* Sets the containment for this view, which will also cause the view
79
* to track the geometry of the containment.
81
* @arg containment the containment to center the view on
83
void setContainment(Plasma::Containment *containment);
86
void dashboardClosed();
92
DashboardView *m_dashboard;
93
bool m_dashboardFollowsDesktop : 1;
97
//FIXME: duplicated from containment_p.h
98
//(but with a bigger margin to make room even for very big panels)
99
static const int TOOLBOX_MARGIN = 400;
102
#endif // multiple inclusion guard