Plasma
Plasma::ContainmentPrivate Class Reference
#include <containment_p.h>
Public Member Functions | |
| KActionCollection * | actions () |
| Applet * | addApplet (const QString &name, const QVariantList &args=QVariantList(), const QRectF &geometry=QRectF(-1,-1,-1,-1), uint id=0, bool delayedInit=false) |
| void | appletActions (KMenu &desktopMenu, Applet *applet, bool includeApplet) |
| void | appletAppearAnimationComplete () |
| void | appletAppeared (Applet *) |
| Applet * | appletAt (const QPointF &point) |
| void | appletDestroyed (Applet *) |
| void | checkContainmentFurniture () |
| void | checkRemoveAction () |
| void | checkStatus (Plasma::ItemStatus status) |
| void | clearDataForMimeJob (KIO::Job *job) |
| void | containmentActions (KMenu &desktopMenu) |
| void | containmentConstraintsEvent (Plasma::Constraints constraints) |
| ContainmentPrivate (Containment *c) | |
| Context * | context () |
| void | createToolBox () |
| void | dropData (QPointF scenePos, QPoint screenPos, QGraphicsSceneDragDropEvent *dropEvent=0) |
| void | dropJobResult (KJob *) |
| void | focusApplet (Plasma::Applet *applet) |
| void | handleDisappeared (AppletHandle *handle) |
| bool | isPanelContainment () const |
| void | mimeTypeRetrieved (KIO::Job *job, const QString &mimetype) |
| void | onContextChanged (Plasma::Context *con) |
| void | positionPanel (bool force=false) |
| void | positionToolBox () |
| QPointF | preferredPanelPos (Corona *corona) const |
| QPointF | preferredPos (Corona *corona) const |
| bool | prepareContainmentActions (const QString &trigger, const QPoint &screenPos) |
| bool | regionIsEmpty (const QRectF ®ion, Applet *ignoredApplet=0) const |
| void | remoteAppletReady (Plasma::AccessAppletJob *job) |
| void | requestConfiguration () |
| void | setLockToolText () |
| bool | showAppletContextMenu (Applet *applet, const QPoint &screenPos) |
| bool | showContextMenu (const QPointF &point, const QPoint &screenPos, bool includeApplet, bool isMouseEvent) |
| void | showDropZoneDelayed () |
| void | triggerShowAddWidgets () |
| void | updateToolBoxVisibility () |
| ~ContainmentPrivate () | |
Static Public Member Functions | |
| static void | addDefaultActions (KActionCollection *actions, Containment *c=0) |
Public Attributes | |
| QHash< QString, ContainmentActions * > | actionPlugins |
| Applet::List | applets |
| Context * | con |
| int | desktop |
| bool | drawWallpaper: 1 |
| QHash< KJob *, KMenu * > | dropMenus |
| QHash< KJob *, QPointF > | dropPoints |
| bool | dropZoneStarted: 1 |
| Applet * | focusedApplet |
| FormFactor | formFactor |
| QMap< Applet *, AppletHandle * > | handles |
| Location | location |
| Containment * | q |
| int | screen |
| QTimer * | showDropZoneDelayTimer |
| QWeakPointer< AbstractToolBox > | toolBox |
| Containment::Type | type |
| Plasma::Wallpaper * | wallpaper |
Static Public Attributes | |
| static bool | s_positioningPanels = false |
Detailed Description
Definition at line 41 of file containment_p.h.
Constructor & Destructor Documentation
| Plasma::ContainmentPrivate::ContainmentPrivate | ( | Containment * | c | ) | [inline] |
Definition at line 44 of file containment_p.h.
| Plasma::ContainmentPrivate::~ContainmentPrivate | ( | ) | [inline] |
Definition at line 60 of file containment_p.h.
Member Function Documentation
| KActionCollection * Plasma::ContainmentPrivate::actions | ( | ) |
Definition at line 2031 of file containment.cpp.
| Applet * Plasma::ContainmentPrivate::addApplet | ( | const QString & | name, | |
| const QVariantList & | args = QVariantList(), |
|||
| const QRectF & | geometry = QRectF(-1, -1, -1, -1), |
|||
| uint | id = 0, |
|||
| bool | delayedInit = false | |||
| ) |
Definition at line 2283 of file containment.cpp.
| void Plasma::ContainmentPrivate::addDefaultActions | ( | KActionCollection * | actions, | |
| Containment * | c = 0 | |||
| ) | [static] |
add the regular actions & keyboard shortcuts onto Applet's collection
Definition at line 268 of file containment.cpp.
| void Plasma::ContainmentPrivate::appletActions | ( | KMenu & | desktopMenu, | |
| Applet * | applet, | |||
| bool | includeApplet | |||
| ) |
Definition at line 673 of file containment.cpp.
| void Plasma::ContainmentPrivate::appletAppearAnimationComplete | ( | ) |
Definition at line 2346 of file containment.cpp.
| void Plasma::ContainmentPrivate::appletAppeared | ( | Applet * | applet | ) |
Definition at line 2357 of file containment.cpp.
| Applet * Plasma::ContainmentPrivate::appletAt | ( | const QPointF & | point | ) |
Definition at line 728 of file containment.cpp.
| void Plasma::ContainmentPrivate::appletDestroyed | ( | Plasma::Applet * | applet | ) |
Definition at line 2327 of file containment.cpp.
| void Plasma::ContainmentPrivate::checkContainmentFurniture | ( | ) |
Definition at line 501 of file containment.cpp.
| void Plasma::ContainmentPrivate::checkRemoveAction | ( | ) |
Definition at line 2210 of file containment.cpp.
| void Plasma::ContainmentPrivate::checkStatus | ( | Plasma::ItemStatus | status | ) |
Definition at line 2105 of file containment.cpp.
| void Plasma::ContainmentPrivate::clearDataForMimeJob | ( | KIO::Job * | job | ) |
Definition at line 1438 of file containment.cpp.
| void Plasma::ContainmentPrivate::containmentActions | ( | KMenu & | desktopMenu | ) |
Definition at line 633 of file containment.cpp.
| void Plasma::ContainmentPrivate::containmentConstraintsEvent | ( | Plasma::Constraints | constraints | ) |
Called when constraints have been updated on this containment to provide constraint services common to all containments.
Containments should still implement their own constraintsEvent method
Definition at line 2215 of file containment.cpp.
| Context * Plasma::ContainmentPrivate::context | ( | ) |
| void Plasma::ContainmentPrivate::createToolBox | ( | ) |
Definition at line 2148 of file containment.cpp.
| void Plasma::ContainmentPrivate::dropData | ( | QPointF | scenePos, | |
| QPoint | screenPos, | |||
| QGraphicsSceneDragDropEvent * | dropEvent = 0 | |||
| ) |
Handles dropped/pasted mimetype data.
- Parameters:
-
scenePos scene-relative position screenPos screen-relative position dropEvent the drop event (if null, the clipboard is used instead)
Definition at line 1253 of file containment.cpp.
| void Plasma::ContainmentPrivate::dropJobResult | ( | KJob * | job | ) |
Definition at line 1466 of file containment.cpp.
| void Plasma::ContainmentPrivate::focusApplet | ( | Plasma::Applet * | applet | ) |
give keyboard focus to applet within this containment
Definition at line 2036 of file containment.cpp.
| void Plasma::ContainmentPrivate::handleDisappeared | ( | AppletHandle * | handle | ) |
Definition at line 2197 of file containment.cpp.
| bool Plasma::ContainmentPrivate::isPanelContainment | ( | ) | const |
Definition at line 2403 of file containment.cpp.
| void Plasma::ContainmentPrivate::mimeTypeRetrieved | ( | KIO::Job * | job, | |
| const QString & | mimetype | |||
| ) |
Definition at line 1482 of file containment.cpp.
| void Plasma::ContainmentPrivate::onContextChanged | ( | Plasma::Context * | con | ) |
| void Plasma::ContainmentPrivate::positionPanel | ( | bool | force = false |
) |
Definition at line 2369 of file containment.cpp.
| void Plasma::ContainmentPrivate::positionToolBox | ( | ) |
Definition at line 2178 of file containment.cpp.
| QPointF Plasma::ContainmentPrivate::preferredPanelPos | ( | Corona * | corona | ) | const |
Definition at line 2427 of file containment.cpp.
| QPointF Plasma::ContainmentPrivate::preferredPos | ( | Corona * | corona | ) | const |
Definition at line 2408 of file containment.cpp.
| bool Plasma::ContainmentPrivate::prepareContainmentActions | ( | const QString & | trigger, | |
| const QPoint & | screenPos | |||
| ) |
inits the containmentactions if necessary if it needs configuring, this warns the user and returns false
- Returns:
- true if it's ok to run the action
Definition at line 2482 of file containment.cpp.
| bool Plasma::ContainmentPrivate::regionIsEmpty | ( | const QRectF & | region, | |
| Applet * | ignoredApplet = 0 | |||
| ) | const |
Definition at line 2317 of file containment.cpp.
| void Plasma::ContainmentPrivate::remoteAppletReady | ( | Plasma::AccessAppletJob * | job | ) |
Definition at line 1449 of file containment.cpp.
| void Plasma::ContainmentPrivate::requestConfiguration | ( | ) |
Definition at line 2100 of file containment.cpp.
| void Plasma::ContainmentPrivate::setLockToolText | ( | ) |
| bool Plasma::ContainmentPrivate::showAppletContextMenu | ( | Applet * | applet, | |
| const QPoint & | screenPos | |||
| ) |
force the contextmenu for applet to be shown at screenPos
- Since:
- 4.4
Definition at line 795 of file containment.cpp.
| bool Plasma::ContainmentPrivate::showContextMenu | ( | const QPointF & | point, | |
| const QPoint & | screenPos, | |||
| bool | includeApplet, | |||
| bool | isMouseEvent | |||
| ) |
Definition at line 758 of file containment.cpp.
| void Plasma::ContainmentPrivate::showDropZoneDelayed | ( | ) |
| void Plasma::ContainmentPrivate::triggerShowAddWidgets | ( | ) |
Definition at line 2192 of file containment.cpp.
| void Plasma::ContainmentPrivate::updateToolBoxVisibility | ( | ) |
Definition at line 2187 of file containment.cpp.
Member Data Documentation
| QHash<QString, ContainmentActions*> Plasma::ContainmentPrivate::actionPlugins |
Definition at line 165 of file containment_p.h.
Definition at line 161 of file containment_p.h.
Definition at line 169 of file containment_p.h.
Definition at line 167 of file containment_p.h.
Definition at line 174 of file containment_p.h.
| QHash<KJob*, KMenu*> Plasma::ContainmentPrivate::dropMenus |
Definition at line 172 of file containment_p.h.
| QHash<KJob*, QPointF> Plasma::ContainmentPrivate::dropPoints |
Definition at line 171 of file containment_p.h.
Definition at line 175 of file containment_p.h.
Definition at line 162 of file containment_p.h.
Definition at line 159 of file containment_p.h.
Definition at line 164 of file containment_p.h.
Definition at line 160 of file containment_p.h.
Definition at line 158 of file containment_p.h.
bool Plasma::ContainmentPrivate::s_positioningPanels = false [static] |
Definition at line 156 of file containment_p.h.
Definition at line 166 of file containment_p.h.
Definition at line 173 of file containment_p.h.
| QWeakPointer<AbstractToolBox> Plasma::ContainmentPrivate::toolBox |
Definition at line 168 of file containment_p.h.
Definition at line 170 of file containment_p.h.
Definition at line 163 of file containment_p.h.
The documentation for this class was generated from the following files:
KDE 4.5 API Reference