• Skip to content
  • Skip to link menu
KDE 4.2 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>
00024 #include <Plasma/View>
00025 
00026 namespace Plasma
00027 {
00028     class Containment;
00029 } // namespace Plasma
00030 
00031 namespace Kephal
00032 {
00033     class Screen;
00034 } // namespace Kephal
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     //FIXME: duplicated from containment_p.h 
00093     //(but with a bigger margin to make room even for very big panels)
00094     static const int TOOLBOX_MARGIN = 400;
00095 };
00096 
00097 #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
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
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