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

Plasma

controllerwindow.h

Go to the documentation of this file.
00001 /*
00002  *   Copyright 2009 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 Library General Public License as
00006  *   published by the Free Software Foundation; either version 2, or
00007  *   (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 CONTROLLERWINDOW_H
00021 #define CONTROLLERWINDOW_H
00022 
00023 #include <QWidget>
00024 
00025 #include <Plasma/Plasma>
00026 
00027 class QBoxLayout;
00028 
00029 namespace Plasma
00030 {
00031     class Containment;
00032     class FrameSvg;
00033     class WidgetExplorer;
00034     class View;
00035 } // namespace Plasma
00036 
00037 class ControllerWindow : public QWidget
00038 {
00039     Q_OBJECT
00040 
00041 public:
00042     ControllerWindow(QWidget* parent);
00043     ~ControllerWindow();
00044 
00045     virtual void setContainment(Plasma::Containment *containment);
00046     Plasma::Containment *containment() const;
00047 
00048     QSize sizeHint() const;
00049 
00050     virtual void setLocation(const Plasma::Location &loc);
00051     Plasma::Location location() const;
00052     Qt::Orientation orientation() const;
00053 
00054     void showWidgetExplorer();
00055     bool isWidgetExplorerVisible() const;
00056 
00057     Plasma::FrameSvg *background() const;
00058 
00059     bool eventFilter(QObject *watched, QEvent *event);
00060 
00061 protected:
00062     void resizeEvent(QResizeEvent *event);
00063     void paintEvent(QPaintEvent *event);
00064     void keyPressEvent(QKeyEvent *event);
00065 
00066 private Q_SLOTS:
00067     void onActiveWindowChanged(WId id);
00068     void backgroundChanged();
00069 
00070 private:
00071     Plasma::Location m_location;
00072     QBoxLayout *m_layout;
00073     Plasma::FrameSvg *m_background;
00074     Plasma::Containment *m_containment;
00075     Plasma::View *m_widgetExplorerView;
00076     Plasma::WidgetExplorer *m_widgetExplorer;
00077 };
00078 
00079 #endif
00080 

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
  • System Settings
  •   SystemSettingsView
Generated for API Reference by doxygen 1.5.9-20090814
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