GroupingDesktop
#include <abstractgroup.h>
Public Types | |
enum | { Type = UserType + 2 } |
enum | BackgroundHint { NoBackground = 0, StandardBackground = 1, PlainBackground = 2 } |
enum | GroupType { ConstrainedGroup = 0, FreeGroup = 1 } |
Public Slots | |
void | setImmutability (Plasma::ImmutabilityType immutability) |
virtual void | showConfigurationInterface () |
Signals | |
void | appletAddedInGroup (Plasma::Applet *applet, AbstractGroup *group) |
void | appletRemovedFromGroup (Plasma::Applet *applet, AbstractGroup *group) |
void | configNeedsSaving () |
void | geometryChanged () |
void | groupDestroyed (AbstractGroup *group) |
void | groupTransformedByUser () |
void | immutabilityChanged (Plasma::ImmutabilityType immutability) |
void | subGroupAddedInGroup (AbstractGroup *subGroup, AbstractGroup *group) |
void | subGroupRemovedFromGroup (AbstractGroup *subGroup, AbstractGroup *group) |
Public Member Functions | |
AbstractGroup (QGraphicsItem *parent=0, Qt::WindowFlags wFlags=0) | |
virtual | ~AbstractGroup () |
void | addApplet (Plasma::Applet *applet, bool layoutApplet=true) |
void | addSubGroup (AbstractGroup *group, bool layoutGroup=true) |
Plasma::Applet::List | applets () const |
BackgroundHints | backgroundHints () const |
QList< QGraphicsWidget * > | children () const |
KConfigGroup | config () const |
GroupingContainment * | containment () const |
virtual void | createConfigurationInterface (KConfigDialog *parent) |
virtual Handle * | createHandleForChild (QGraphicsWidget *child) |
void | destroy () |
GroupType | groupType () const |
bool | hasConfigurationInterface () const |
uint | id () const |
Plasma::ImmutabilityType | immutability () const |
virtual void | init () |
bool | isMainGroup () const |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
AbstractGroup * | parentGroup () const |
virtual QString | pluginName () const =0 |
void | raise () |
virtual void | releaseChild (QGraphicsWidget *child) |
void | removeApplet (Plasma::Applet *applet, AbstractGroup *newGroup=0) |
void | removeSubGroup (AbstractGroup *group, AbstractGroup *newGroup=0) |
virtual void | restore (KConfigGroup &group) |
virtual void | restoreChildGroupInfo (QGraphicsWidget *child, const KConfigGroup &group)=0 |
virtual void | restoreChildren () |
virtual void | save (KConfigGroup &group) const |
virtual void | saveChildGroupInfo (QGraphicsWidget *child, KConfigGroup config) const =0 |
virtual void | saveChildren () const |
void | setBackgroundHints (BackgroundHints hint) |
void | setIsMainGroup () |
virtual bool | showDropZone (const QPointF &pos) |
QList< AbstractGroup * > | subGroups () const |
virtual int | type () const |
void | updateConstraints (Plasma::Constraints constraints=Plasma::AllConstraints) |
bool | useSimplerBackgroundForChildren () const |
QGraphicsView * | view () const |
Public Member Functions inherited from QGraphicsWidget | |
QGraphicsWidget (QGraphicsItem *parent, QFlags< Qt::WindowType > wFlags) | |
~QGraphicsWidget () | |
QList< QAction * > | actions () const |
void | addAction (QAction *action) |
void | addActions (QList< QAction * > actions) |
void | adjustSize () |
bool | autoFillBackground () const |
virtual QRectF | boundingRect () const |
bool | close () |
Qt::FocusPolicy | focusPolicy () const |
QGraphicsWidget * | focusWidget () const |
QFont | font () const |
void | geometryChanged () |
virtual void | getContentsMargins (qreal *left, qreal *top, qreal *right, qreal *bottom) const |
void | getWindowFrameMargins (qreal *left, qreal *top, qreal *right, qreal *bottom) const |
int | grabShortcut (const QKeySequence &sequence, Qt::ShortcutContext context) |
void | insertAction (QAction *before, QAction *action) |
void | insertActions (QAction *before, QList< QAction * > actions) |
bool | isActiveWindow () const |
QGraphicsLayout * | layout () const |
Qt::LayoutDirection | layoutDirection () const |
virtual void | paintWindowFrame (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
QPalette | palette () const |
QRectF | rect () const |
void | releaseShortcut (int id) |
void | removeAction (QAction *action) |
void | resize (const QSizeF &size) |
void | resize (qreal w, qreal h) |
void | setAttribute (Qt::WidgetAttribute attribute, bool on) |
void | setAutoFillBackground (bool enabled) |
void | setContentsMargins (qreal left, qreal top, qreal right, qreal bottom) |
void | setFocusPolicy (Qt::FocusPolicy policy) |
void | setFont (const QFont &font) |
virtual void | setGeometry (const QRectF &rect) |
void | setGeometry (qreal x, qreal y, qreal w, qreal h) |
void | setLayout (QGraphicsLayout *layout) |
void | setLayoutDirection (Qt::LayoutDirection direction) |
void | setPalette (const QPalette &palette) |
void | setShortcutAutoRepeat (int id, bool enabled) |
void | setShortcutEnabled (int id, bool enabled) |
void | setStyle (QStyle *style) |
void | setWindowFlags (QFlags< Qt::WindowType > wFlags) |
void | setWindowFrameMargins (qreal left, qreal top, qreal right, qreal bottom) |
void | setWindowTitle (const QString &title) |
virtual QPainterPath | shape () const |
QSizeF | size () const |
QStyle * | style () const |
bool | testAttribute (Qt::WidgetAttribute attribute) const |
void | unsetLayoutDirection () |
void | unsetWindowFrameMargins () |
Qt::WindowFlags | windowFlags () const |
QRectF | windowFrameGeometry () const |
QRectF | windowFrameRect () const |
QString | windowTitle () const |
Qt::WindowType | windowType () const |
Public Member Functions inherited from QGraphicsObject | |
QGraphicsObject (QGraphicsItem *parent) | |
void | enabledChanged () |
void | grabGesture (Qt::GestureType gesture, QFlags< Qt::GestureFlag > flags) |
void | opacityChanged () |
void | parentChanged () |
void | rotationChanged () |
void | scaleChanged () |
void | ungrabGesture (Qt::GestureType gesture) |
void | visibleChanged () |
void | xChanged () |
void | yChanged () |
void | zChanged () |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Public Member Functions inherited from QGraphicsItem | |
QGraphicsItem (QGraphicsItem *parent) | |
virtual | ~QGraphicsItem () |
bool | acceptDrops () const |
Qt::MouseButtons | acceptedMouseButtons () const |
bool | acceptHoverEvents () const |
bool | acceptsHoverEvents () const |
bool | acceptTouchEvents () const |
virtual void | advance (int phase) |
virtual QRectF | boundingRect () const =0 |
QRegion | boundingRegion (const QTransform &itemToDeviceTransform) const |
qreal | boundingRegionGranularity () const |
CacheMode | cacheMode () const |
QList< QGraphicsItem * > | childItems () const |
QList< QGraphicsItem * > | children () const |
QRectF | childrenBoundingRect () const |
void | clearFocus () |
QPainterPath | clipPath () const |
virtual bool | collidesWithItem (const QGraphicsItem *other, Qt::ItemSelectionMode mode) const |
virtual bool | collidesWithPath (const QPainterPath &path, Qt::ItemSelectionMode mode) const |
QList< QGraphicsItem * > | collidingItems (Qt::ItemSelectionMode mode) const |
QGraphicsItem * | commonAncestorItem (const QGraphicsItem *other) const |
virtual bool | contains (const QPointF &point) const |
QCursor | cursor () const |
QVariant | data (int key) const |
QTransform | deviceTransform (const QTransform &viewportTransform) const |
qreal | effectiveOpacity () const |
void | ensureVisible (const QRectF &rect, int xmargin, int ymargin) |
void | ensureVisible (qreal x, qreal y, qreal w, qreal h, int xmargin, int ymargin) |
bool | filtersChildEvents () const |
GraphicsItemFlags | flags () const |
QGraphicsItem * | focusItem () const |
QGraphicsItem * | focusProxy () const |
void | grabKeyboard () |
void | grabMouse () |
QGraphicsEffect * | graphicsEffect () const |
QGraphicsItemGroup * | group () const |
bool | handlesChildEvents () const |
bool | hasCursor () const |
bool | hasFocus () const |
void | hide () |
Qt::InputMethodHints | inputMethodHints () const |
void | installSceneEventFilter (QGraphicsItem *filterItem) |
bool | isActive () const |
bool | isAncestorOf (const QGraphicsItem *child) const |
bool | isBlockedByModalPanel (QGraphicsItem **blockingPanel) const |
bool | isClipped () const |
bool | isEnabled () const |
bool | isObscured () const |
bool | isObscured (const QRectF &rect) const |
bool | isObscured (qreal x, qreal y, qreal w, qreal h) const |
virtual bool | isObscuredBy (const QGraphicsItem *item) const |
bool | isPanel () const |
bool | isSelected () const |
bool | isUnderMouse () const |
bool | isVisible () const |
bool | isVisibleTo (const QGraphicsItem *parent) const |
bool | isWidget () const |
bool | isWindow () const |
QTransform | itemTransform (const QGraphicsItem *other, bool *ok) const |
QPointF | mapFromItem (const QGraphicsItem *item, const QPointF &point) const |
QPolygonF | mapFromItem (const QGraphicsItem *item, const QRectF &rect) const |
QPolygonF | mapFromItem (const QGraphicsItem *item, const QPolygonF &polygon) const |
QPainterPath | mapFromItem (const QGraphicsItem *item, const QPainterPath &path) const |
QPointF | mapFromItem (const QGraphicsItem *item, qreal x, qreal y) const |
QPolygonF | mapFromItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const |
QPointF | mapFromParent (const QPointF &point) const |
QPolygonF | mapFromParent (const QRectF &rect) const |
QPolygonF | mapFromParent (const QPolygonF &polygon) const |
QPainterPath | mapFromParent (const QPainterPath &path) const |
QPointF | mapFromParent (qreal x, qreal y) const |
QPolygonF | mapFromParent (qreal x, qreal y, qreal w, qreal h) const |
QPolygonF | mapFromScene (const QPolygonF &polygon) const |
QPointF | mapFromScene (const QPointF &point) const |
QPolygonF | mapFromScene (const QRectF &rect) const |
QPainterPath | mapFromScene (const QPainterPath &path) const |
QPointF | mapFromScene (qreal x, qreal y) const |
QPolygonF | mapFromScene (qreal x, qreal y, qreal w, qreal h) const |
QRectF | mapRectFromItem (const QGraphicsItem *item, const QRectF &rect) const |
QRectF | mapRectFromItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const |
QRectF | mapRectFromParent (const QRectF &rect) const |
QRectF | mapRectFromParent (qreal x, qreal y, qreal w, qreal h) const |
QRectF | mapRectFromScene (qreal x, qreal y, qreal w, qreal h) const |
QRectF | mapRectFromScene (const QRectF &rect) const |
QRectF | mapRectToItem (const QGraphicsItem *item, const QRectF &rect) const |
QRectF | mapRectToItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const |
QRectF | mapRectToParent (const QRectF &rect) const |
QRectF | mapRectToParent (qreal x, qreal y, qreal w, qreal h) const |
QRectF | mapRectToScene (const QRectF &rect) const |
QRectF | mapRectToScene (qreal x, qreal y, qreal w, qreal h) const |
QPointF | mapToItem (const QGraphicsItem *item, const QPointF &point) const |
QPolygonF | mapToItem (const QGraphicsItem *item, const QRectF &rect) const |
QPolygonF | mapToItem (const QGraphicsItem *item, const QPolygonF &polygon) const |
QPainterPath | mapToItem (const QGraphicsItem *item, const QPainterPath &path) const |
QPointF | mapToItem (const QGraphicsItem *item, qreal x, qreal y) const |
QPolygonF | mapToItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const |
QPointF | mapToParent (const QPointF &point) const |
QPolygonF | mapToParent (const QRectF &rect) const |
QPainterPath | mapToParent (const QPainterPath &path) const |
QPointF | mapToParent (qreal x, qreal y) const |
QPolygonF | mapToParent (qreal x, qreal y, qreal w, qreal h) const |
QPolygonF | mapToParent (const QPolygonF &polygon) const |
QPolygonF | mapToScene (const QRectF &rect) const |
QPainterPath | mapToScene (const QPainterPath &path) const |
QPointF | mapToScene (qreal x, qreal y) const |
QPolygonF | mapToScene (qreal x, qreal y, qreal w, qreal h) const |
QPolygonF | mapToScene (const QPolygonF &polygon) const |
QPointF | mapToScene (const QPointF &point) const |
QMatrix | matrix () const |
void | moveBy (qreal dx, qreal dy) |
qreal | opacity () const |
virtual QPainterPath | opaqueArea () const |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)=0 |
QGraphicsItem * | panel () const |
PanelModality | panelModality () const |
QGraphicsItem * | parentItem () const |
QGraphicsObject * | parentObject () const |
QGraphicsWidget * | parentWidget () const |
QPointF | pos () const |
void | removeSceneEventFilter (QGraphicsItem *filterItem) |
void | resetMatrix () |
void | resetTransform () |
void | rotate (qreal angle) |
qreal | rotation () const |
void | scale (qreal sx, qreal sy) |
qreal | scale () const |
QGraphicsScene * | scene () const |
QRectF | sceneBoundingRect () const |
QMatrix | sceneMatrix () const |
QPointF | scenePos () const |
QTransform | sceneTransform () const |
void | scroll (qreal dx, qreal dy, const QRectF &rect) |
void | setAcceptDrops (bool on) |
void | setAcceptedMouseButtons (QFlags< Qt::MouseButton > buttons) |
void | setAcceptHoverEvents (bool enabled) |
void | setAcceptsHoverEvents (bool enabled) |
void | setAcceptTouchEvents (bool enabled) |
void | setActive (bool active) |
void | setBoundingRegionGranularity (qreal granularity) |
void | setCacheMode (CacheMode mode, const QSize &logicalCacheSize) |
void | setCursor (const QCursor &cursor) |
void | setData (int key, const QVariant &value) |
void | setEnabled (bool enabled) |
void | setFiltersChildEvents (bool enabled) |
void | setFlag (GraphicsItemFlag flag, bool enabled) |
void | setFlags (QFlags< QGraphicsItem::GraphicsItemFlag > flags) |
void | setFocus (Qt::FocusReason focusReason) |
void | setFocusProxy (QGraphicsItem *item) |
void | setGraphicsEffect (QGraphicsEffect *effect) |
void | setGroup (QGraphicsItemGroup *group) |
void | setHandlesChildEvents (bool enabled) |
void | setInputMethodHints (QFlags< Qt::InputMethodHint > hints) |
void | setMatrix (const QMatrix &matrix, bool combine) |
void | setOpacity (qreal opacity) |
void | setPanelModality (PanelModality panelModality) |
void | setParentItem (QGraphicsItem *newParent) |
void | setPos (const QPointF &pos) |
void | setPos (qreal x, qreal y) |
void | setRotation (qreal angle) |
void | setScale (qreal factor) |
void | setSelected (bool selected) |
void | setToolTip (const QString &toolTip) |
void | setTransform (const QTransform &matrix, bool combine) |
void | setTransformations (const QList< QGraphicsTransform * > &transformations) |
void | setTransformOriginPoint (qreal x, qreal y) |
void | setTransformOriginPoint (const QPointF &origin) |
void | setVisible (bool visible) |
void | setX (qreal x) |
void | setY (qreal y) |
void | setZValue (qreal z) |
void | shear (qreal sh, qreal sv) |
void | show () |
void | stackBefore (const QGraphicsItem *sibling) |
QGraphicsObject * | toGraphicsObject () |
const QGraphicsObject * | toGraphicsObject () const |
QString | toolTip () const |
QGraphicsItem * | topLevelItem () const |
QGraphicsWidget * | topLevelWidget () const |
QTransform | transform () const |
QList< QGraphicsTransform * > | transformations () const |
QPointF | transformOriginPoint () const |
void | translate (qreal dx, qreal dy) |
void | ungrabKeyboard () |
void | ungrabMouse () |
void | unsetCursor () |
void | update (qreal x, qreal y, qreal width, qreal height) |
void | update (const QRectF &rect) |
QGraphicsWidget * | window () const |
qreal | x () const |
qreal | y () const |
qreal | zValue () const |
Public Member Functions inherited from QGraphicsLayoutItem | |
QGraphicsLayoutItem (QGraphicsLayoutItem *parent, bool isLayout) | |
virtual | ~QGraphicsLayoutItem () |
QRectF | contentsRect () const |
QSizeF | effectiveSizeHint (Qt::SizeHint which, const QSizeF &constraint) const |
QRectF | geometry () const |
QGraphicsItem * | graphicsItem () const |
bool | isLayout () const |
qreal | maximumHeight () const |
QSizeF | maximumSize () const |
qreal | maximumWidth () const |
qreal | minimumHeight () const |
QSizeF | minimumSize () const |
qreal | minimumWidth () const |
bool | ownedByLayout () const |
QGraphicsLayoutItem * | parentLayoutItem () const |
qreal | preferredHeight () const |
QSizeF | preferredSize () const |
qreal | preferredWidth () const |
void | setMaximumHeight (qreal height) |
void | setMaximumSize (const QSizeF &size) |
void | setMaximumSize (qreal w, qreal h) |
void | setMaximumWidth (qreal width) |
void | setMinimumHeight (qreal height) |
void | setMinimumSize (const QSizeF &size) |
void | setMinimumSize (qreal w, qreal h) |
void | setMinimumWidth (qreal width) |
void | setParentLayoutItem (QGraphicsLayoutItem *parent) |
void | setPreferredHeight (qreal height) |
void | setPreferredSize (const QSizeF &size) |
void | setPreferredSize (qreal w, qreal h) |
void | setPreferredWidth (qreal width) |
void | setSizePolicy (const QSizePolicy &policy) |
void | setSizePolicy (QSizePolicy::Policy hPolicy, QSizePolicy::Policy vPolicy, QSizePolicy::ControlType controlType) |
QSizePolicy | sizePolicy () const |
Static Public Member Functions | |
static QStringList | availableGroups () |
static GroupInfo | groupInfo (const QString &name) |
static AbstractGroup * | load (const QString &name, QGraphicsItem *parent=0) |
static QString | mimeType () |
Static Public Member Functions inherited from QGraphicsWidget | |
void | setTabOrder (QGraphicsWidget *first, QGraphicsWidget *second) |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions | |
virtual void | constraintsEvent (Plasma::Constraints constraints) |
virtual void | dragLeaveEvent (QGraphicsSceneDragDropEvent *event) |
virtual QVariant | itemChange (GraphicsItemChange change, const QVariant &value) |
virtual void | layoutChild (QGraphicsWidget *child, const QPointF &pos)=0 |
virtual void | resizeEvent (QGraphicsSceneResizeEvent *event) |
void | setGroupType (GroupType type) |
void | setHasConfigurationInterface (bool hasInterface) |
void | setUseSimplerBackgroundForChildren (bool use) |
Protected Member Functions inherited from QGraphicsWidget | |
virtual void | changeEvent (QEvent *event) |
virtual void | closeEvent (QCloseEvent *event) |
virtual bool | event (QEvent *event) |
virtual void | focusInEvent (QFocusEvent *event) |
virtual bool | focusNextPrevChild (bool next) |
virtual void | focusOutEvent (QFocusEvent *event) |
virtual void | grabKeyboardEvent (QEvent *event) |
virtual void | grabMouseEvent (QEvent *event) |
virtual void | hideEvent (QHideEvent *event) |
virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
virtual void | hoverMoveEvent (QGraphicsSceneHoverEvent *event) |
virtual void | initStyleOption (QStyleOption *option) const |
virtual void | moveEvent (QGraphicsSceneMoveEvent *event) |
virtual void | polishEvent () |
virtual bool | sceneEvent (QEvent *event) |
virtual void | showEvent (QShowEvent *event) |
virtual QSizeF | sizeHint (Qt::SizeHint which, const QSizeF &constraint) const |
virtual void | ungrabKeyboardEvent (QEvent *event) |
virtual void | ungrabMouseEvent (QEvent *event) |
virtual void | updateGeometry () |
virtual bool | windowFrameEvent (QEvent *event) |
virtual Qt::WindowFrameSection | windowFrameSectionAt (const QPointF &pos) const |
Protected Member Functions inherited from QGraphicsObject | |
void | updateMicroFocus () |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Protected Member Functions inherited from QGraphicsItem | |
virtual void | contextMenuEvent (QGraphicsSceneContextMenuEvent *event) |
virtual void | dragEnterEvent (QGraphicsSceneDragDropEvent *event) |
virtual void | dragMoveEvent (QGraphicsSceneDragDropEvent *event) |
virtual void | dropEvent (QGraphicsSceneDragDropEvent *event) |
virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
virtual void | inputMethodEvent (QInputMethodEvent *event) |
virtual QVariant | inputMethodQuery (Qt::InputMethodQuery query) const |
virtual void | keyPressEvent (QKeyEvent *event) |
virtual void | keyReleaseEvent (QKeyEvent *event) |
virtual void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
void | prepareGeometryChange () |
virtual bool | sceneEventFilter (QGraphicsItem *watched, QEvent *event) |
void | updateMicroFocus () |
virtual void | wheelEvent (QGraphicsSceneWheelEvent *event) |
Protected Member Functions inherited from QGraphicsLayoutItem | |
void | setGraphicsItem (QGraphicsItem *item) |
void | setOwnedByLayout (bool ownership) |
virtual QSizeF | sizeHint (Qt::SizeHint which, const QSizeF &constraint) const =0 |
Properties | |
GroupType | groupType |
bool | hasInterface |
uint | id |
bool | isMainGroup |
Properties inherited from QGraphicsWidget | |
autoFillBackground | |
focusPolicy | |
font | |
geometry | |
layout | |
layoutDirection | |
maximumSize | |
minimumSize | |
palette | |
preferredSize | |
size | |
sizePolicy | |
windowFlags | |
windowTitle | |
Properties inherited from QGraphicsObject | |
effect | |
enabled | |
opacity | |
parent | |
pos | |
rotation | |
scale | |
transformOriginPoint | |
visible | |
x | |
y | |
z | |
Properties inherited from QObject | |
objectName | |
Additional Inherited Members | |
Public Attributes inherited from QGraphicsItem | |
typedef | GraphicsItemFlags |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Detailed Description
The base Group class.
AbstractGroup is a base class for special widgets thoughts to contain Plasma::Applet
Definition at line 43 of file abstractgroup.h.
Member Enumeration Documentation
anonymous enum |
Description on how draw a background for the group.
Enumerator | |
---|---|
NoBackground |
Don't draw anything. |
StandardBackground |
Draw the translucent background from the theme. |
PlainBackground |
Draw a plain, simpler background. |
Definition at line 65 of file abstractgroup.h.
Defines if the applets inside the group can be freely transformed or not by the user.
Enumerator | |
---|---|
ConstrainedGroup |
The transformations of the applet are constrained by, e.g. a layout |
FreeGroup |
The applets can be freely transformed. |
Definition at line 55 of file abstractgroup.h.
Constructor & Destructor Documentation
|
explicit |
Constructor of the abstract class.
Definition at line 259 of file abstractgroup.cpp.
|
virtual |
Default destructor.
Definition at line 272 of file abstractgroup.cpp.
Member Function Documentation
void AbstractGroup::addApplet | ( | Plasma::Applet * | applet, |
bool | layoutApplet = true |
||
) |
Adds an Applet to this Group.
- Parameters
-
applet the Applet to be managed by this layoutApplet the parameter that defines if layoutChild(applet) will be called
- See also
- applets
- removeApplet
Definition at line 317 of file abstractgroup.cpp.
void AbstractGroup::addSubGroup | ( | AbstractGroup * | group, |
bool | layoutGroup = true |
||
) |
Adds a Group to this Group.
- Parameters
-
group,the Group to be managed by this layoutGroup the parameter that defines if layoutChild(applet) will be called
- See also
- subGroups
- removeSubGroup
Definition at line 359 of file abstractgroup.cpp.
|
signal |
Emitted when an Applet is assigned to this Group.
- Parameters
-
applet a pointer to the Applet added group a pointer to this Group
- See also
- subGroupAddedInGroup
|
signal |
Emitted when an Applet is removed from this Group.
- Parameters
-
applet a pointer to the Applet removed group a pointer to this Group
- See also
- subGroupRemovedFromGroup
Plasma::Applet::List AbstractGroup::applets | ( | ) | const |
Returns a list of the applets managed by this Group.
- See also
- addApplet
- removeApplet
Definition at line 402 of file abstractgroup.cpp.
|
static |
Returns a list of all identifiers of the available Groups.
Definition at line 844 of file abstractgroup.cpp.
AbstractGroup::BackgroundHints AbstractGroup::backgroundHints | ( | ) | const |
Returns the BackgroundHints set for this Group.
- See also
- setBackgroundHints
- BackGroundHint
Definition at line 684 of file abstractgroup.cpp.
QList< QGraphicsWidget * > AbstractGroup::children | ( | ) | const |
Returns a list of all the children managed by this Group.
Definition at line 412 of file abstractgroup.cpp.
KConfigGroup AbstractGroup::config | ( | ) | const |
Returns the KConfigGroup to access the Group configuration.
Definition at line 541 of file abstractgroup.cpp.
|
signal |
Emitted when a Group has changed values in its configuration and wishes for them to be saved at the next save point.
As this implies disk activity, this signal should be used with care.
|
protectedvirtual |
Called when any of the geometry constraints have been updated.
- Parameters
-
constraints the type of constraints that were updated
Definition at line 727 of file abstractgroup.cpp.
GroupingContainment * AbstractGroup::containment | ( | ) | const |
Returns a pointer to the containment this Group is displayed in.
Definition at line 524 of file abstractgroup.cpp.
|
virtual |
Reimplement this method to provide a configuration interface, parented to the supplied widget.
Ownership of the widgets is passed to the parent widget.
- Parameters
-
parent the dialog which is the parent of the configuration widgets
Definition at line 800 of file abstractgroup.cpp.
|
virtual |
Returns an handle for a child of this Group.
Reimplement this if you want to provide a different handle than the default one.
- Parameters
-
child the child for which it must be created an handle
- Returns
- the handle just created
Definition at line 633 of file abstractgroup.cpp.
void AbstractGroup::destroy | ( | ) |
Destroy this Groups and its children, deleting the configurations too.
Definition at line 476 of file abstractgroup.cpp.
|
protectedvirtual |
Reimplemented from QGraphicsItem.
Reimplemented from QGraphicsItem.
Definition at line 708 of file abstractgroup.cpp.
|
signal |
This signal is emitted when the Group's geometry changes.
|
signal |
This signal is emitted when the Group's destructor is called.
- Parameters
-
group a pointer to this Group
Definition at line 855 of file abstractgroup.cpp.
|
signal |
This signal is emitted when the Group is transformed by the user.
GroupType AbstractGroup::groupType | ( | ) | const |
Returns the type of this Group.
- See also
- setGroupType
- GroupType
bool AbstractGroup::hasConfigurationInterface | ( | ) | const |
Returns true if this Group provides a GUI configuration.
- See also
- setHasConfigurationInterface
Definition at line 805 of file abstractgroup.cpp.
uint AbstractGroup::id | ( | ) | const |
Returns the id of this Group.
Plasma::ImmutabilityType AbstractGroup::immutability | ( | ) | const |
Returns the type of immutability of this Group.
- See also
- setImmutability
Definition at line 302 of file abstractgroup.cpp.
|
signal |
Emitted when the immutability changes.
- Parameters
-
immutability the new immutability
|
virtual |
Method called a little after the constructor.
If you need methods like config() or containment() use them here, not in the constructor.
Definition at line 280 of file abstractgroup.cpp.
bool AbstractGroup::isMainGroup | ( | ) | const |
Returns true if this Group is a MainGroup.
|
protectedvirtual |
Reimplemented from QGraphicsItem.
Reimplemented from QGraphicsWidget.
Definition at line 737 of file abstractgroup.cpp.
|
protectedpure virtual |
Lays out a child inside the Group A sub class probably wants to reimplement this function.
- Parameters
-
child the child to be laid out pos the position of the child mapped to the Group's coordinates
|
static |
Creates a new Group.
- Parameters
-
name the identifier for the type of Group to be created parent the parent of the new Group
Definition at line 839 of file abstractgroup.cpp.
|
static |
Definition at line 834 of file abstractgroup.cpp.
|
virtual |
Reimplemented from QGraphicsItem.
Reimplemented from QGraphicsWidget.
Definition at line 758 of file abstractgroup.cpp.
AbstractGroup * AbstractGroup::parentGroup | ( | ) | const |
Returns the Group that contains this one, 0 if there is no one.
Definition at line 312 of file abstractgroup.cpp.
|
pure virtual |
Returns the plugin name for the Group.
void AbstractGroup::raise | ( | ) |
Brings this Group on top of the other Groups and Applet.
Definition at line 628 of file abstractgroup.cpp.
|
virtual |
Called when an Applet or a Group starts to be moved by the user.
A Group might want to reimplement this to free the widget from a layout or whatever, so to allow it to be moved.
Definition at line 829 of file abstractgroup.cpp.
void AbstractGroup::removeApplet | ( | Plasma::Applet * | applet, |
AbstractGroup * | newGroup = 0 |
||
) |
Removes an Applet from this Group.
- Parameters
-
applet the applet to be removed newGroup the group in which the Applet must be added after it is removed from this
Definition at line 425 of file abstractgroup.cpp.
void AbstractGroup::removeSubGroup | ( | AbstractGroup * | group, |
AbstractGroup * | newGroup = 0 |
||
) |
Removes a Group from this Group.
- Parameters
-
group the Group to be removed newGroup the Group in which the Group must be added after it is removed from this
- See also
- addSubGroup
- subGroups
Definition at line 450 of file abstractgroup.cpp.
|
protectedvirtual |
Reimplemented from QGraphicsWidget.
Reimplemented from QGraphicsWidget.
Definition at line 713 of file abstractgroup.cpp.
|
virtual |
Restore the state information about this Group.
Normally you don't reimplement this to restore the configuration of the Group, but you restore it in init() using config().
- See also
- restoreChildren
- save
- config
Definition at line 588 of file abstractgroup.cpp.
|
pure virtual |
Restores the group's specific configurations for a chils.
This function must be reimplemented by a sub class.
- Parameters
-
child the child whose info will be restored group the config group for the configuration
- See also
- saveChildGroupInfo
|
virtual |
Calls restoreChildGroupInfo for every child.
When it is called applets(), subGroups() and children() are already available.
- See also
- restore
- restoreChildGroupInfo
Definition at line 605 of file abstractgroup.cpp.
|
virtual |
Saves state information about this Group.
Normally you don't reimplement this to save the configuration of the Group, but you save it using config().
- See also
- saveChildren
- restore
- config
Definition at line 548 of file abstractgroup.cpp.
|
pure virtual |
Saves the group's specific configurations for a child.
This function must be reimplemented by a sub class.
- Parameters
-
child the child whose info will be saved config the config group for the configuration
- See also
- restoreChildGroupInfo
|
virtual |
Calls saveChildGroupInfo for every child.
- See also
- save
- saveChildGroupInfo
Definition at line 572 of file abstractgroup.cpp.
void AbstractGroup::setBackgroundHints | ( | BackgroundHints | hint | ) |
Sets the BackgroundHints for this Group.
- See also
- backgroundHints
- BackgroundHint
Definition at line 671 of file abstractgroup.cpp.
|
protected |
Sets the type of this Group.
Definition at line 647 of file abstractgroup.cpp.
|
protected |
Sets whether or not this Group provides a user interface for configuring it.
It defaults to false, and if true is passed in you should also reimplement createConfigurationInterface()
- Parameters
-
hasInterface whether or not there is a user interface available
- See also
- createConfigurationInterface
Definition at line 810 of file abstractgroup.cpp.
|
slot |
Sets the immutability type for this Group (not immutable, user immutable or system immutable)
- Parameters
-
immutability the new immutability type of this Group
- See also
- immutability
- Plasma::ImmutabilityType
Definition at line 285 of file abstractgroup.cpp.
void AbstractGroup::setIsMainGroup | ( | ) |
Tells this Group it is a Main Group, causing it to: not paint a background; not be movable; not have contents margins.
Definition at line 657 of file abstractgroup.cpp.
|
protected |
Sets whether or not this Group should make its children have a simpler background instead of the default one.
Default is false.
- Parameters
-
use whether or not it should use a simpler background
- See also
- useSimplerBackgroundForChildren
Definition at line 689 of file abstractgroup.cpp.
|
virtualslot |
Lets the user interact with the Group options.
Called when the user selects the configure entry from the context menu.
Unless there is a good reason for overriding this method, AbstractGroup subclasses should actually override createConfigurationInterface instead.
Definition at line 775 of file abstractgroup.cpp.
|
virtual |
Shows a visual clue for drag and drop The default implementation does nothing, reimplement it in groups that need it.
- Parameters
-
pos point where to show the drop target; if an invalid point is passed in the drop zone should not be shown
- Returns
- true if it can accept a child at the passed position
Definition at line 619 of file abstractgroup.cpp.
|
signal |
Emitted when a Group is assigned to this Group.
- Parameters
-
subGroup a pointer to the Group added group a pointer to this Group
- See also
- appletAddedInGroup
|
signal |
Emitted when a Group is removed from this Group.
- Parameters
-
subGroup a pointer to the Group removed group a pointer to this Group
- See also
- appletRemovedFromGroup
QList< AbstractGroup * > AbstractGroup::subGroups | ( | ) | const |
Returns a list of the groups managed by this Group.
- See also
- addSubGroup
- removeSubGroup
Definition at line 407 of file abstractgroup.cpp.
|
virtual |
Reimplemented from QGraphicsWidget.
Definition at line 732 of file abstractgroup.cpp.
void AbstractGroup::updateConstraints | ( | Plasma::Constraints | constraints = Plasma::AllConstraints | ) |
Called when any of the geometry constraints have been updated.
This method calls constraintsEvent, which may be reimplemented, once the Group has been prepared for updating the constraints.
- Parameters
-
constraints the type of constraints that were updated
- See also
- constraintsEvent
Definition at line 815 of file abstractgroup.cpp.
bool AbstractGroup::useSimplerBackgroundForChildren | ( | ) | const |
Returns true if this Group uses a simpler background for its children.
Definition at line 703 of file abstractgroup.cpp.
QGraphicsView * AbstractGroup::view | ( | ) | const |
Returns the view this widget is visible on, or 0 if none can be found.
- Warning
- do NOT assume this will always return a view! a null view probably means that either plasma hasn't finished loading, or your group is on an activity that's not being shown anywhere.
Definition at line 495 of file abstractgroup.cpp.
Property Documentation
|
read |
Definition at line 48 of file abstractgroup.h.
|
read |
Definition at line 46 of file abstractgroup.h.
|
read |
Definition at line 47 of file abstractgroup.h.
|
read |
Definition at line 49 of file abstractgroup.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.