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.h"
00024 #include "plasma/view.h"
00025
00026 namespace Plasma
00027 {
00028 class Containment;
00029 }
00030
00031 class DashboardView;
00032
00033 class DesktopView : public Plasma::View
00034 {
00035 Q_OBJECT
00036
00037 public:
00038 DesktopView(Plasma::Containment *containment, int id, QWidget *parent);
00039 ~DesktopView();
00040
00044 void connectContainment(Plasma::Containment *containment);
00045
00053 void setIsDesktop(bool isDesktop);
00054
00059 bool isDesktop() const;
00060
00061 public slots:
00067 void zoom(Plasma::Containment *containment, Plasma::ZoomDirection direction);
00068 void zoomIn(Plasma::Containment *toContainment);
00069 void zoomOut(Plasma::Containment *fromContainment);
00070 void showAppletBrowser();
00071 void toggleDashboard();
00072 void adjustSize();
00073
00077 void addContainment(Plasma::Containment *fromContainment = 0);
00078
00079 void screenOwnerChanged(int wasScreen, int isScreen, Plasma::Containment* containment);
00080
00084 void nextContainment();
00085
00089 void previousContainment();
00090
00097 void setContainment(Plasma::Containment *containment);
00098
00099 protected:
00100 void wheelEvent(QWheelEvent *event);
00101 void drawBackground(QPainter *painter, const QRectF &rect);
00102
00103 private:
00104 Plasma::ZoomLevel m_zoomLevel;
00105 DashboardView *m_dashboard;
00106 bool m_dashboardFollowsDesktop;
00107 };
00108
00109 #endif // multiple inclusion guard