Plasma
extendergroup.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 #ifndef PLASMA_EXTENDERGROUP_H
00021 #define PLASMA_EXTENDERGROUP_H
00022
00023 #include <QtGui/QGraphicsWidget>
00024 #include <QtCore/QList>
00025
00026 #include "extenderitem.h"
00027
00028 #include "plasma/plasma_export.h"
00029
00030 namespace Plasma
00031 {
00032
00033 class ExtenderGroupPrivate;
00034 class ExtenderItem;
00035 class Applet;
00036
00050 class PLASMA_EXPORT ExtenderGroup : public ExtenderItem
00051 {
00052 Q_OBJECT
00053 Q_PROPERTY(bool autoHide READ autoHide WRITE setAutoHide)
00054
00055 public:
00060 explicit ExtenderGroup(Extender *parent, uint groupId = 0);
00061
00062 ~ExtenderGroup();
00063
00067 QList<ExtenderItem*> items() const;
00068
00072 bool autoHide() const;
00073
00077 void setAutoHide(bool autoHide);
00078
00079 public Q_SLOTS:
00083 void expandGroup();
00084
00089 void collapseGroup();
00090
00091 private:
00092 ExtenderGroupPrivate * const d;
00093
00094 Q_PRIVATE_SLOT(d, void addItemToGroup(Plasma::ExtenderItem *item))
00095 Q_PRIVATE_SLOT(d, void removeItemFromGroup(Plasma::ExtenderItem *item))
00096 Q_PRIVATE_SLOT(d, void themeChanged())
00097
00098 friend class ExtenderItem;
00099 };
00100 }
00101
00102 #endif //PLASMA_EXTENDER_H
00103