GroupingDesktop
groupingcontainment.cpp
Go to the documentation of this file.
92 AbstractGroup *GroupingContainmentPrivate::createGroup(const QString &plugin, const QPointF &pos,
180 QList<AbstractGroup *> GroupingContainmentPrivate::groupsAt(const QPointF &pos, QGraphicsWidget *uppermostItem)
217 AbstractGroup *GroupingContainmentPrivate::groupAt(const QPointF &pos, QGraphicsWidget *uppermostItem)
251 q->connect(applet, SIGNAL(appletDestroyed(Plasma::Applet*)), q, SLOT(onAppletRemoved(Plasma::Applet*)));
301 KWindowSystem::setState(w->winId(), NET::SkipTaskbar | NET::SkipPager | NET::Sticky | NET::KeepAbove);
331 void GroupingContainmentPrivate::onAppletRemovedFromGroup(Plasma::Applet *applet, AbstractGroup *group)
340 void GroupingContainmentPrivate::onSubGroupRemovedFromGroup(AbstractGroup *subGroup, AbstractGroup *group)
702 if (event->type() == QEvent::GraphicsSceneHoverEnter || event->type() == QEvent::GraphicsSceneHoverMove) {
906 //don't call destroy() because it will wait for the anim to finish before actually destroying it
911 kWarning()<<"You have not set a Main Group! This will really cause troubles! You *must* set a Main Group!";
937 if (group && (immutability() == Plasma::Mutable) && (group->immutability() == Plasma::Mutable) && !group->isMainGroup()) {
AbstractGroup * mainGroup() const
Returns the Main Group of this Containment.
const QMimeData * mimeData() const
GroupingContainment(QObject *parent, const QVariantList &args)
Default constructor.
Definition: groupingcontainment.cpp:559
Type type() const
QByteArray data(const QString &mimeType) const
bool isHidden() const
Definition: explorerwindow.h:40
AbstractGroup * addGroup(const QString &plugin, const QPointF &pos=QPointF(0, 0), int id=0)
Creates a new Group and it adds it to this Containment.
Definition: groupingcontainment.cpp:592
void setImmutability(Plasma::ImmutabilityType immutability)
Sets the immutability type for this Group (not immutable, user immutable or system immutable) ...
Definition: abstractgroup.cpp:285
QPointF scenePos() const
void raise(QGraphicsWidget *widget)
Raises a widget above all the other Applets or Groups.
Definition: groupingcontainment.cpp:996
virtual void saveContents(KConfigGroup &group) const
Reimplemented from Plasma::Containment.
Definition: groupingcontainment.cpp:858
virtual void showConfigurationInterface()
Lets the user interact with the Group options.
Definition: abstractgroup.cpp:775
void setParentItem(QGraphicsItem *newParent)
virtual bool hasFormat(const QString &mimeType) const
void removeFirst()
void addApplet(Plasma::Applet *applet, bool layoutApplet=true)
Adds an Applet to this Group.
Definition: abstractgroup.cpp:317
const T & at(int i) const
void translate(int dx, int dy)
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
int x() const
Definition: handle.h:41
Plasma::ImmutabilityType immutability() const
Returns the type of immutability of this Group.
Definition: abstractgroup.cpp:302
void setMovingWidget(QGraphicsWidget *widget)
Call this function when an Applet or a Group is being moved by the user.
Definition: groupingcontainment.cpp:969
static AbstractGroup * load(const QString &name, QGraphicsItem *parent=0)
Creates a new Group.
Definition: abstractgroup.cpp:839
int size() const
geometry
void groupAdded(AbstractGroup *group, const QPointF &pos)
Emitted when a new Group is added to this Containment.
static GroupInfo groupInfo(const QString &name)
Definition: abstractgroup.cpp:855
void resize(int w, int h)
QPointF pos() const
virtual void constraintsEvent(Plasma::Constraints constraints)
Reimplemented from Plasma::Applet.
Definition: groupingcontainment.cpp:585
qreal zValue() const
QString number(int n, int base)
virtual QString pluginName() const =0
Returns the plugin name for the Group.
qreal x() const
qreal y() const
virtual bool eventFilter(QObject *obj, QEvent *event)
Reimplemented from QObject.
Definition: groupingcontainment.cpp:740
void ignore()
QVariant property(const char *name) const
virtual bool sceneEventFilter(QGraphicsItem *watched, QEvent *event)
Reimplemented from QGraphicsItem.
Definition: groupingcontainment.cpp:686
void installEventFilter(QObject *filterObj)
void setPos(const QPointF &pos)
qreal m11() const
qreal m12() const
qreal m21() const
qreal m22() const
int toInt(bool *ok, int base) const
bool isEmpty() const
bool isEmpty() const
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
void move(int x, int y)
void removeSceneEventFilter(QGraphicsItem *filterItem)
QGraphicsWidget * movingWidget() const
Returns the widget that is currently being moved by the user, or 0 if there is not any...
Definition: groupingcontainment.cpp:991
WId winId() const
void deleteLater()
T & first()
QList< QAction * > contextualActions()
Reimplemented from Plasma::Applet.
Definition: groupingcontainment.cpp:643
virtual void releaseChild(QGraphicsWidget *child)
Called when an Applet or a Group starts to be moved by the user.
Definition: abstractgroup.cpp:829
QPointF scenePos() const
QPointF pos() const
QList< AbstractGroup * > groups() const
Returns a list of all the Groups contained in this Containment.
Definition: groupingcontainment.cpp:638
void clear()
void setMainGroup(AbstractGroup *group)
Sets a Main Group for this Containment.
Definition: groupingcontainment.cpp:657
virtual void setLocation(const Plasma::Location &loc)
Definition: explorerwindow.cpp:254
bool contains(const T &value) const
void useMainGroup(const QString &type)
Tells the Containment to use a Main Group of the given type.
Definition: groupingcontainment.cpp:650
sizeHint
bool contains(const T &value) const
QVariant data(int key) const
virtual void saveChildren() const
Calls saveChildGroupInfo for every child.
Definition: abstractgroup.cpp:572
virtual void restoreContents(KConfigGroup &group)
Reimplemented from Plasma::Containment.
Definition: groupingcontainment.cpp:869
int width() const
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
QPointF mapFromItem(const QGraphicsItem *item, const QPointF &point) const
bool hasConfigurationInterface() const
Returns true if this Group provides a GUI configuration.
Definition: abstractgroup.cpp:805
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
Reimplemented from QGraphicsItem.
Definition: groupingcontainment.cpp:922
virtual void dropEvent(QGraphicsSceneDragDropEvent *event)
Reimplemented from QGraphicsItem.
Definition: groupingcontainment.cpp:955
virtual void restore(KConfigGroup &group)
Restore the state information about this Group.
Definition: abstractgroup.cpp:588
QTransform transform() const
void setX(qreal x)
void setY(qreal y)
void setTransform(const QTransform &matrix, bool combine)
void addSubGroup(AbstractGroup *group, bool layoutGroup=true)
Adds a Group to this Group.
Definition: abstractgroup.cpp:359
int bottom() const
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.
void installSceneEventFilter(QGraphicsItem *filterItem)
QGraphicsItem * parentItem() const
bool contains(const QPointF &point) const
void show()
QRectF contentsRect() const
void destroy()
Destroy this Groups and its children, deleting the configurations too.
Definition: abstractgroup.cpp:476
Definition: groupinfo.h:30
virtual void setContainment(Plasma::Containment *containment)
Definition: explorerwindow.cpp:123
void setZValue(qreal z)
geometry
virtual QRectF boundingRect() const
QPoint positionForPanelGeometry(const QRect &panelGeom) const
Definition: explorerwindow.cpp:298
void removeEventFilter(QObject *obj)
height
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
bool isNull() const
singleShot
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.