Plasma
containmentactions.cpp
Go to the documentation of this file.
77 KService::List offers = KServiceTypeTrader::self()->query("Plasma/ContainmentActions", constraint);
81 ContainmentActions *ContainmentActions::load(Containment *parent, const QString &containmentActionsName, const QVariantList &args)
88 KService::List offers = KServiceTypeTrader::self()->query("Plasma/ContainmentActions", constraint);
105 ContainmentActions *containmentActions = offer->createInstance<Plasma::ContainmentActions>(parent, allArgs, &error);
108 kDebug() << "Couldn't load containmentActions \"" << containmentActionsName << "\"! reason given: " << error;
114 ContainmentActions *ContainmentActions::load(Containment *parent, const KPluginInfo &info, const QVariantList &args)
365 static_cast<QGraphicsSceneContextMenuEvent *>(event)->reason() == QGraphicsSceneContextMenuEvent::Mouse) {
The applet is constrained horizontally, but can expand vertically.
Definition: plasma.h:77
QString pluginName() const
Returns the plugin name for the containmentactions.
static PackageStructure::Ptr packageStructure()
Returns the Package specialization for containmentactions.
Definition: containmentactions.cpp:122
virtual QWidget * createConfigurationInterface(QWidget *parent)
Returns the widget used in the configuration dialog.
Definition: containmentactions.cpp:187
QPointF scenePosFromEvent(QEvent *event)
Definition: containmentactions.cpp:322
virtual void contextEvent(QEvent *event)
Implement this to respond to events.
Definition: containmentactions.cpp:198
static KPluginInfo::List listContainmentActionsInfo()
Returns a list of all known containmentactions plugins.
Definition: containmentactions.cpp:73
virtual FormFactor formFactor() const
Returns the current form factor the applet is being displayed in.
Definition: applet.cpp:1479
friend class ContainmentActionsPackage
Definition: containmentactions.h:263
virtual QList< QAction * > contextualActions()
Implement this to provide a list of actions that can be added to another menu for example...
Definition: containmentactions.cpp:203
bool configurationRequired() const
Definition: containmentactions.cpp:214
~ContainmentActions()
Definition: containmentactions.cpp:68
Containment * containment()
Definition: containmentactions.cpp:131
static ContainmentActions * load(Containment *parent, const QString &name, const QVariantList &args=QVariantList())
Attempts to load a containmentactions.
Definition: containmentactions.cpp:81
The applet is constrained vertically, but can expand horizontally.
Definition: plasma.h:75
bool isPluginVersionCompatible(unsigned int version)
Verifies that a plugin is compatible with plasma.
Definition: version.cpp:51
QString name() const
Returns the user-visible name for the containmentactions, as specified in the .desktop file...
Q_INVOKABLE DataEngine * dataEngine(const QString &name) const
Loads the given DataEngine.
Definition: containmentactions.cpp:209
virtual void configurationAccepted()
This method is called when the user's configuration changes are accepted.
Definition: containmentactions.cpp:193
virtual void init(const KConfigGroup &config)
This method is called once the containmentactions is loaded or settings are changed.
Definition: containmentactions.cpp:177
virtual void save(KConfigGroup &config)
This method is called when settings need to be saved.
Definition: containmentactions.cpp:182
bool isInitialized() const
Definition: containmentactions.cpp:166
static QString eventToString(QEvent *event)
Turns a mouse or wheel event into a string suitable for a ContainmentActions.
Definition: containmentactions.cpp:225
static QScriptValue toString(QScriptContext *ctx, QScriptEngine *eng)
Definition: easingcurve.cpp:57
QPoint popupPosition(const QSize &s, QEvent *event)
Returns a popup position appropriate to the event and the size.
Definition: containmentactions.cpp:348
void restore(const KConfigGroup &config)
This method should be called once the plugin is loaded or settings are changed.
Definition: containmentactions.cpp:171
void paste(QPointF scenePos, QPoint screenPos)
pastes the clipboard at a given location
Definition: containmentactions.cpp:293
QPoint popupPosition(const QSize &s) const
Reccomended position for a popup window like a menu or a tooltip given its size.
Definition: applet.cpp:737
void setContainment(Containment *newContainment)
newContainment the containment the plugin should be associated with.
Definition: containmentactions.cpp:389
QString icon() const
Returns the icon related to this containmentactions.
ContainmentActions(QObject *parent=0)
Default constructor for an empty or null containmentactions.
Definition: containmentactions.cpp:47
void setConfigurationRequired(bool needsConfiguring=true)
When the containmentactions needs to be configured before being usable, this method can be called to ...
Definition: containmentactions.cpp:219
The base class for plugins that provide backgrounds and applet grouping containers.
Definition: containment.h:72
QPoint screenPosFromEvent(QEvent *event)
Definition: containmentactions.cpp:301
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.