Plasma
corona.h
Go to the documentation of this file.
215 QPoint popupPosition(const QGraphicsItem *item, const QSize &size, Qt::AlignmentFlag alignment);
277 void setContainmentActionsDefaults(Containment::Type containmentType, const ContainmentActionsPluginsConfig &config);
The AbstractDialogManager class shows the dialogs shown by applets and the rest of the shell.
Definition abstractdialogmanager.h:44
A class that holds a map of triggers to plugin names.
Definition containmentactionspluginsconfig.h:42
The base class for plugins that provide backgrounds and applet grouping containers.
Definition containment.h:73
void setDialogManager(AbstractDialogManager *manager)
Definition corona.cpp:786
virtual int numScreens() const
Returns the number of screens available to plasma.
Definition corona.cpp:440
void setContainmentActionsDefaults(Containment::Type containmentType, const ContainmentActionsPluginsConfig &config)
Definition corona.cpp:776
QAction * action(QString name) const
Returns the QAction with the given name from our collection.
Definition corona.cpp:720
void releaseVisualFocus()
This signal indicates that an application launch, window creation or window focus event was triggered...
QList< QGraphicsWidget * > offscreenWidgets() const
Definition corona.cpp:426
void immutabilityChanged(Plasma::ImmutabilityType immutability)
emitted when immutability changes.
virtual void loadDefaultLayout()
Loads the default (system wide) layout for this user.
Definition corona.cpp:632
void containmentAdded(Plasma::Containment *containment)
This signal indicates a new containment has been added to the Corona.
void configSynced()
This signal indicates that the configuration file was flushed to disc.
void requestConfigSync()
Schedules a flush-to-disk synchronization of the configuration state at the next convenient moment.
Definition corona.cpp:156
void setAppletMimeType(const QString &mimetype)
Sets the mimetype of Drag/Drop items.
Definition corona.cpp:86
QString preferredToolBoxPlugin(const Containment::Type type) const
Returns the name of the preferred plugin to be used as containment toolboxes.
Definition corona.cpp:642
void setImmutability(const ImmutabilityType immutable)
Sets the immutability type for this Corona (not immutable, user immutable or system immutable)
Definition corona.cpp:667
void initializeLayout(const QString &config=QString())
Initializes the layout from a config file.
Definition corona.cpp:179
void dragMoveEvent(QGraphicsSceneDragDropEvent *event)
Definition corona.cpp:657
Containment * addContainment(const QString &name, const QVariantList &args=QVariantList())
Adds a Containment to the Corona.
Definition corona.cpp:349
void exportLayout(KConfigGroup &config, QList< Containment * > containments)
Exports a set of containments to a config file.
Definition corona.cpp:123
void removeOffscreenWidget(QGraphicsWidget *widget)
Removes a widget from the topleft quadrant in the scene.
Definition corona.cpp:414
void loadLayout(const QString &config=QString())
Load applet layout from a config file.
Definition corona.cpp:272
void setPreferredToolBoxPlugin(const Containment::Type type, const QString &plugin)
Definition corona.cpp:636
void dragLeaveEvent(QGraphicsSceneDragDropEvent *event)
Definition corona.cpp:652
QPoint popupPosition(const QGraphicsItem *item, const QSize &size)
Recommended position for a popup window like a menu or a tooltip given its size.
Definition corona.cpp:463
void screenOwnerChanged(int wasScreen, int isScreen, Plasma::Containment *containment)
This signal indicates that a containment has been newly associated (or dissociated) with a physical s...
virtual QRegion availableScreenRegion(int id) const
Returns the available region for a given screen.
Definition corona.cpp:458
Containment * addContainmentDelayed(const QString &name, const QVariantList &args=QVariantList())
Loads a containment with delayed initialization, primarily useful for implementations of loadDefaultL...
Definition corona.cpp:358
void addAction(QString name, QAction *action)
Adds the action to our collection under the given name.
Definition corona.cpp:725
void mapAnimation(Animator::Animation from, Animator::Animation to)
Maps a stock animation to one of the semantic animations.
Definition corona.cpp:367
QList< QAction * > actions() const
Returns all the actions in our collection.
Definition corona.cpp:735
QList< Plasma::Containment * > importLayout(const KConfigBase &config)
Imports an applet layout from a config file.
Definition corona.cpp:290
KSharedConfig::Ptr config() const
Returns the config file used to store the configuration for this Corona.
Definition corona.cpp:340
void setDefaultContainmentPlugin(const QString &name)
Sets the default containment plugin to try and load.
Definition corona.cpp:96
void shortcutsChanged()
void requireConfigSync()
Schedules a time sensitive flush-to-disk synchronization of the configuration state.
Definition corona.cpp:174
virtual QRect screenGeometry(int id) const
Returns the geometry of a given screen.
Definition corona.cpp:445
void addShortcuts(KActionCollection *newShortcuts)
Definition corona.cpp:768
QString defaultContainmentPlugin() const
Definition corona.cpp:105
ContainmentActionsPluginsConfig containmentActionsDefaults(Containment::Type containmentType)
Definition corona.cpp:781
void enableAction(const QString &name, bool enable)
convenience function - enables or disables an action by name
Definition corona.cpp:740
void availableScreenRegionChanged()
This signal inicates that a change in available screen goemetry occurred.
QList< Plasma::Location > freeEdges(int screen) const
This method is useful in order to retrieve the list of available screen edges for panel type containm...
Definition corona.cpp:704
Containment * containmentForScreen(int screen, int desktop=-1) const
Returns the Containment, if any, for a given physical screen and desktop.
Definition corona.cpp:296
void addOffscreenWidget(QGraphicsWidget *widget)
Adds a widget in the topleft quadrant in the scene.
Definition corona.cpp:377
void dragEnterEvent(QGraphicsSceneDragDropEvent *event)
Definition corona.cpp:647
void saveLayout(const QString &config=QString()) const
Save applets layout to file.
Definition corona.cpp:110
ImmutabilityType
Defines the immutability of items like applets, corona and containments they can be free to modify,...
Definition plasma.h:197
static QScriptValue type(QScriptContext *ctx, QScriptEngine *eng)
Definition easingcurve.cpp:63
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.