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

Plasma

panel.h

Go to the documentation of this file.
00001 /*
00002 *   Copyright 2007 by Alex Merry <alex.merry@kdemail.net>
00003 *   Copyright 2008 by Alexis Ménard <darktears31@gmail.com>
00004 *
00005 *
00006 *   This program is free software; you can redistribute it and/or modify
00007 *   it under the terms of the GNU Library General Public License version 2,
00008 *   or (at your option) any later version.
00009 *
00010 *   This program is distributed in the hope that it will be useful,
00011 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 *   GNU General Public License for more details
00014 *
00015 *   You should have received a copy of the GNU Library General Public
00016 *   License along with this program; if not, write to the
00017 *   Free Software Foundation, Inc.,
00018 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00019 */
00020 
00021 #ifndef PLASMA_PANEL_H
00022 #define PLASMA_PANEL_H
00023 
00024 #include <Plasma/Containment>
00025 
00026 class QAction;
00027 class KDialog;
00028 class KIntNumInput;
00029 
00030 namespace Plasma
00031 {
00032     class FrameSvg;
00033 }
00034 
00035 class Panel : public Plasma::Containment
00036 {
00037     Q_OBJECT
00038 public:
00039     Panel(QObject *parent, const QVariantList &args);
00040     ~Panel();
00041     void init();
00042     QList<QAction*> contextualActions();
00043 
00044     void constraintsEvent(Plasma::Constraints constraints);
00045 
00046     void paintInterface(QPainter *painter,
00047                         const QStyleOptionGraphicsItem *option,
00048                         const QRect &contentsRect);
00049     void paintBackground(QPainter *painter, const QRect &contentsRect);
00050 
00051 protected:
00052     void saveState(KConfigGroup &config) const;
00053 
00054 private slots:
00055     void themeUpdated();
00056     void backgroundChanged();
00057     void layoutApplet(Plasma::Applet* applet, const QPointF &pos);
00058     void appletRemoved(Plasma::Applet* applet);
00059     void updateSize();
00060 
00061 private:
00065     void setFormFactorFromLocation(Plasma::Location loc);
00066 
00070     void updateBorders();
00071 
00072     Plasma::FrameSvg *m_background;
00073     QAction* m_configureAction;
00074 };
00075 
00076 
00077 #endif // PLASMA_PANEL_H

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