Plasma
panel.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
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