• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Plasma

desktopview.h

Go to the documentation of this file.
00001 /*
00002  *   Copyright 2007 Aaron Seigo <aseigo@kde.org>
00003  *
00004  *   This program is free software; you can redistribute it and/or modify
00005  *   it under the terms of the GNU General Public License as
00006  *   published by the Free Software Foundation; either version 2,
00007  *   or (at your option) any later version.
00008  *
00009  *   This program is distributed in the hope that it will be useful,
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *   GNU General Public License for more details
00013  *
00014  *   You should have received a copy of the GNU Library General Public
00015  *   License along with this program; if not, write to the
00016  *   Free Software Foundation, Inc.,
00017  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
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 } // namespace Plasma
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

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal