Plasma
desktopview.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef DESKTOPVIEW_H
00021 #define DESKTOPVIEW_H
00022
00023 #include <Plasma/Plasma>
00024 #include <Plasma/View>
00025
00026 namespace Plasma
00027 {
00028 class Containment;
00029 }
00030
00031 namespace Kephal
00032 {
00033 class Screen;
00034 }
00035
00036 class DashboardView;
00037
00038 class DesktopView : public Plasma::View
00039 {
00040 Q_OBJECT
00041
00042 public:
00043 DesktopView(Plasma::Containment *containment, int id, QWidget *parent);
00044 ~DesktopView();
00045
00049 bool isDashboardVisible() const;
00050
00051 public slots:
00057 void zoomIn(Plasma::ZoomLevel zoomLevel);
00058 void zoomOut(Plasma::ZoomLevel zoomLevel);
00059 void toggleDashboard();
00060 void screenResized(Kephal::Screen *);
00061 void screenMoved(Kephal::Screen *);
00062 void adjustSize();
00063
00064 void screenOwnerChanged(int wasScreen, int isScreen, Plasma::Containment* containment);
00065
00069 void nextContainment();
00070
00074 void previousContainment();
00075
00082 void setContainment(Plasma::Containment *containment);
00083
00084 protected:
00085 void wheelEvent(QWheelEvent *event);
00086 void drawBackground(QPainter *painter, const QRectF &rect);
00087
00088 private:
00089 DashboardView *m_dashboard;
00090 bool m_dashboardFollowsDesktop;
00091
00092
00093
00094 static const int TOOLBOX_MARGIN = 400;
00095 };
00096
00097 #endif // multiple inclusion guard