GroupingDesktop
abstractgroup.cpp
Go to the documentation of this file.
567 m << t.m11() << t.m12() << t.m13() << t.m21() << t.m22() << t.m23() << t.m31() << t.m32() << t.m33();
758 void AbstractGroup::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Plasma::Applet::List applets() const
Returns a list of the applets managed by this Group.
Definition: abstractgroup.cpp:402
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value)
Reimplemented from QGraphicsItem.
Definition: abstractgroup.cpp:737
void setImmutability(Plasma::ImmutabilityType immutability)
Sets the immutability type for this Group (not immutable, user immutable or system immutable) ...
Definition: abstractgroup.cpp:285
void raise(QGraphicsWidget *widget)
Raises a widget above all the other Applets or Groups.
Definition: groupingcontainment.cpp:996
void appletRemovedFromGroup(Plasma::Applet *applet, AbstractGroup *group)
Emitted when an Applet is removed from this Group.
virtual void showConfigurationInterface()
Lets the user interact with the Group options.
Definition: abstractgroup.cpp:775
virtual void resizeEvent(QGraphicsSceneResizeEvent *event)
Reimplemented from QGraphicsWidget.
Definition: abstractgroup.cpp:713
void subGroupAddedInGroup(AbstractGroup *subGroup, AbstractGroup *group)
Emitted when a Group is assigned to this Group.
void addApplet(Plasma::Applet *applet, bool layoutApplet=true)
Adds an Applet to this Group.
Definition: abstractgroup.cpp:317
void setIsMainGroup()
Tells this Group it is a Main Group, causing it to: not paint a background; not be movable; not have ...
Definition: abstractgroup.cpp:657
Definition: handle.h:41
virtual void restoreChildren()
Calls restoreChildGroupInfo for every child.
Definition: abstractgroup.cpp:605
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Reimplemented from QGraphicsItem.
Definition: abstractgroup.cpp:758
Plasma::ImmutabilityType immutability() const
Returns the type of immutability of this Group.
Definition: abstractgroup.cpp:302
AbstractGroup(QGraphicsItem *parent=0, Qt::WindowFlags wFlags=0)
Constructor of the abstract class.
Definition: abstractgroup.cpp:259
static AbstractGroup * load(const QString &name, QGraphicsItem *parent=0)
Creates a new Group.
Definition: abstractgroup.cpp:839
static GroupInfo groupInfo(const QString &name)
Definition: abstractgroup.cpp:855
void geometryChanged()
This signal is emitted when the Group's geometry changes.
virtual QString pluginName() const =0
Returns the plugin name for the Group.
void configNeedsSaving()
Emitted when a Group has changed values in its configuration and wishes for them to be saved at the n...
void setBackgroundHints(BackgroundHints hint)
Sets the BackgroundHints for this Group.
Definition: abstractgroup.cpp:671
GroupingContainment * containment() const
Returns a pointer to the containment this Group is displayed in.
Definition: abstractgroup.cpp:524
static QStringList availableGroups()
Returns a list of all identifiers of the available Groups.
Definition: abstractgroup.cpp:844
GroupType
Defines if the applets inside the group can be freely transformed or not by the user.
Definition: abstractgroup.h:55
virtual void constraintsEvent(Plasma::Constraints constraints)
Called when any of the geometry constraints have been updated.
Definition: abstractgroup.cpp:727
void appletAddedInGroup(Plasma::Applet *applet, AbstractGroup *group)
Emitted when an Applet is assigned to this Group.
BackgroundHints backgroundHints() const
Returns the BackgroundHints set for this Group.
Definition: abstractgroup.cpp:684
virtual Handle * createHandleForChild(QGraphicsWidget *child)
Returns an handle for a child of this Group.
Definition: abstractgroup.cpp:633
AbstractGroup * parentGroup() const
Returns the Group that contains this one, 0 if there is no one.
Definition: abstractgroup.cpp:312
void setHasConfigurationInterface(bool hasInterface)
Sets whether or not this Group provides a user interface for configuring it.
Definition: abstractgroup.cpp:810
virtual void releaseChild(QGraphicsWidget *child)
Called when an Applet or a Group starts to be moved by the user.
Definition: abstractgroup.cpp:829
QList< AbstractGroup * > subGroups() const
Returns a list of the groups managed by this Group.
Definition: abstractgroup.cpp:407
Definition: abstractgroup.h:327
Draw the translucent background from the theme.
Definition: abstractgroup.h:67
QGraphicsView * view() const
Returns the view this widget is visible on, or 0 if none can be found.
Definition: abstractgroup.cpp:495
The transformations of the applet are constrained by, e.g.
Definition: abstractgroup.h:56
void raise()
Brings this Group on top of the other Groups and Applet.
Definition: abstractgroup.cpp:628
void setUseSimplerBackgroundForChildren(bool use)
Sets whether or not this Group should make its children have a simpler background instead of the defa...
Definition: abstractgroup.cpp:689
virtual void saveChildren() const
Calls saveChildGroupInfo for every child.
Definition: abstractgroup.cpp:572
virtual bool showDropZone(const QPointF &pos)
Shows a visual clue for drag and drop The default implementation does nothing, reimplement it in grou...
Definition: abstractgroup.cpp:619
KConfigGroup config() const
Returns the KConfigGroup to access the Group configuration.
Definition: abstractgroup.cpp:541
bool hasConfigurationInterface() const
Returns true if this Group provides a GUI configuration.
Definition: abstractgroup.cpp:805
void immutabilityChanged(Plasma::ImmutabilityType immutability)
Emitted when the immutability changes.
void removeApplet(Plasma::Applet *applet, AbstractGroup *newGroup=0)
Removes an Applet from this Group.
Definition: abstractgroup.cpp:425
virtual void restore(KConfigGroup &group)
Restore the state information about this Group.
Definition: abstractgroup.cpp:588
void subGroupRemovedFromGroup(AbstractGroup *subGroup, AbstractGroup *group)
Emitted when a Group is removed from this Group.
void addSubGroup(AbstractGroup *group, bool layoutGroup=true)
Adds a Group to this Group.
Definition: abstractgroup.cpp:359
bool useSimplerBackgroundForChildren() const
Returns true if this Group uses a simpler background for its children.
Definition: abstractgroup.cpp:703
virtual void layoutChild(QGraphicsWidget *child, const QPointF &pos)=0
Lays out a child inside the Group A sub class probably wants to reimplement this function.
QList< QGraphicsWidget * > children() const
Returns a list of all the children managed by this Group.
Definition: abstractgroup.cpp:412
void groupDestroyed(AbstractGroup *group)
This signal is emitted when the Group's destructor is called.
void destroy()
Destroy this Groups and its children, deleting the configurations too.
Definition: abstractgroup.cpp:476
Definition: groupinfo.h:30
Definition: freehandle.h:44
virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent *event)
Reimplemented from QGraphicsItem.
Definition: abstractgroup.cpp:708
virtual void saveChildGroupInfo(QGraphicsWidget *child, KConfigGroup config) const =0
Saves the group's specific configurations for a child.
virtual void save(KConfigGroup &group) const
Saves state information about this Group.
Definition: abstractgroup.cpp:548
void updateConstraints(Plasma::Constraints constraints=Plasma::AllConstraints)
Called when any of the geometry constraints have been updated.
Definition: abstractgroup.cpp:815
virtual void restoreChildGroupInfo(QGraphicsWidget *child, const KConfigGroup &group)=0
Restores the group's specific configurations for a chils.
virtual void createConfigurationInterface(KConfigDialog *parent)
Reimplement this method to provide a configuration interface, parented to the supplied widget...
Definition: abstractgroup.cpp:800
void removeSubGroup(AbstractGroup *group, AbstractGroup *newGroup=0)
Removes a Group from this Group.
Definition: abstractgroup.cpp:450
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Oct 13 2014 22:55:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Oct 13 2014 22:55:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.