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)
QObject * child(const char *objName, const char *inheritsClass, bool recursiveSearch) const
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 setRenderHint(RenderHint hint, bool on)
void raise(QGraphicsWidget *widget)
Raises a widget above all the other Applets or Groups.
Definition: groupingcontainment.cpp:996
void setMinimumSize(const QSizeF &size)
void appletRemovedFromGroup(Plasma::Applet *applet, AbstractGroup *group)
Emitted when an Applet is removed from this Group.
qreal dx() const
qreal dy() const
void setFlag(GraphicsItemFlag flag, bool enabled)
virtual void showConfigurationInterface()
Lets the user interact with the Group options.
Definition: abstractgroup.cpp:775
void setParentItem(QGraphicsItem *newParent)
QRectF geometry() const
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.
QTransform sceneTransform() const
void addApplet(Plasma::Applet *applet, bool layoutApplet=true)
Adds an Applet to this Group.
Definition: abstractgroup.cpp:317
void setAcceptHoverEvents(bool enabled)
QRectF sceneBoundingRect() const
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
T value() const
sceneRect
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
QGraphicsScene * scene() const
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
Plasma::ImmutabilityType immutability() const
Returns the type of immutability of this Group.
Definition: abstractgroup.cpp:302
void setAcceptDrops(bool on)
AbstractGroup(QGraphicsItem *parent=0, Qt::WindowFlags wFlags=0)
Constructor of the abstract class.
Definition: abstractgroup.cpp:259
void update(const QRectF &rect)
static AbstractGroup * load(const QString &name, QGraphicsItem *parent=0)
Creates a new Group.
Definition: abstractgroup.cpp:839
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value)
void setContentsMargins(qreal left, qreal top, qreal right, qreal bottom)
static GroupInfo groupInfo(const QString &name)
Definition: abstractgroup.cpp:855
void geometryChanged()
This signal is emitted when the Group's geometry changes.
const char * name() const
qreal zValue() const
QTransform & translate(qreal dx, qreal dy)
QGraphicsItemGroup * group() const
QString number(int n, int base)
int count(const T &value) const
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...
QString & insert(int position, QChar ch)
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
void setPos(const QPointF &pos)
qreal m31() const
qreal m32() const
qreal m33() const
qreal m11() const
qreal m12() const
qreal m13() const
qreal m21() const
qreal m22() const
qreal m23() const
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
QPointF mapFromScene(const QPointF &point) const
QTransform itemTransform(const QGraphicsItem *other, bool *ok) const
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
QTransform & rotateRadians(qreal angle, Qt::Axis axis)
void setHasConfigurationInterface(bool hasInterface)
Sets whether or not this Group provides a user interface for configuring it.
Definition: abstractgroup.cpp:810
void deleteLater()
virtual void releaseChild(QGraphicsWidget *child)
Called when an Applet or a Group starts to be moved by the user.
Definition: abstractgroup.cpp:829
isActiveWindow
void setSizePolicy(const QSizePolicy &policy)
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
QVariant fromValue(const T &value)
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
QTransform transform() const
void setTransform(const QTransform &matrix, bool combine)
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
bool isValid() const
typedef WindowFlags
QGraphicsItem * parentItem() const
bool setProperty(const char *name, const QVariant &value)
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
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent *event)
Reimplemented from QGraphicsItem.
Definition: abstractgroup.cpp:708
virtual bool contains(const QPointF &point) const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
void setZValue(qreal z)
virtual void setGeometry(const QRectF &rect)
QSizeF newSize() const
virtual void saveChildGroupInfo(QGraphicsWidget *child, KConfigGroup config) const =0
Saves the group's specific configurations for a child.
QPointF scenePos() const
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-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
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.