Plasma
corona.cpp
173 setImmutability((Plasma::Types::ImmutabilityType)cg.readEntry("immutability", (int)Plasma::Types::Mutable));
195 Containment *Corona::containmentForScreen(int screen, const QString &defaultPluginIfNonExistent, const QVariantList &defaultArgs)
201 Containment *Corona::containmentForScreen(int screen, const QString &activity, const QString &defaultPluginIfNonExistent, const QVariantList &defaultArgs)
240 std::copy_if(d->containments.begin(), d->containments.end(), std::back_inserter(conts), [activity](Containment *cont) {
257 std::copy_if(d->containments.begin(), d->containments.end(), std::back_inserter(conts), [screen](Containment *cont) {
287 if (d->immutability == Types::Mutable || args.contains(QVariant::fromValue(QStringLiteral("org.kde.plasma:force-create")))) {
356 action->setIcon(QIcon::fromTheme(unlocked ? QStringLiteral("object-locked") : QStringLiteral("object-unlocked")));
472 desktopDefaultsConfig = KConfigGroup(KSharedConfig::openConfig(package.filePath("defaults")), "Desktop");
489 KActionCollection *containmentActions = AppletPrivate::defaultActions(q); // containment has to start with applet stuff
552 Containment *CoronaPrivate::addContainment(const QString &name, const QVariantList &args, uint id, int lastScreen, bool delayedInit)
589 applet = containment = new Containment(q, KPluginMetaData(), QVariantList{QVariant(), QVariant(), id});
609 auto position = std::lower_bound(containments.begin(), containments.end(), containment, [](Plasma::Containment *c1, Plasma::Containment *c2) {
614 QObject::connect(containment, SIGNAL(destroyed(QObject *)), q, SLOT(containmentDestroyed(QObject *)));
636 QList<Plasma::Containment *> CoronaPrivate::importLayout(const KConfigGroup &conf, bool mergeConfig)
678 // qCDebug(LOG_PLASMA) << "got a containment in the config, trying to make a" << containmentConfig.readEntry("plugin", QString()) << "from" << group;
680 // qCDebug(LOG_PLASMA) << "!!{} STARTUP TIME" << QTime().msecsTo(QTime::currentTime()) << "Adding Containment" << containmentConfig.readEntry("plugin",
683 Containment *c = addContainment(containmentConfig.readEntry("plugin", QString()), QVariantList(), cid, -1);
void append(const T &value)
void restore(KConfigGroup &group) override
Definition: containment.cpp:160
void setFormFactor(Plasma::Types::FormFactor formFactor)
Sets the form factor for this Containment.
Definition: containment.cpp:333
QString readEntry(const char *key, const char *aDefault=nullptr) const
void writeEntry(const char *key, const char *value, WriteConfigFlags pFlags=Normal)
QList< QAction * > actions() const
KConfigGroup config() const
Returns the KConfigGroup to access the applets configuration.
Definition: applet.cpp:270
void setShortcutContext(Qt::ShortcutContext context)
QString number(int n, int base)
void requestConfigSync()
Schedules a flush-to-disk synchronization of the configuration state at the next convenient moment.
Definition: corona.cpp:133
QVariant fromValue(const T &value)
int removeAll(const T &value)
@ CustomContainment
A containment that is neither a desktop nor a panel but something application specific.
Definition: plasma.h:119
Applet * loadApplet(const QString &name, uint appletId=0, const QVariantList &args=QVariantList())
Load an Applet plugin.
Definition: pluginloader.cpp:134
@ UserImmutable
The user has requested a lock down, and can undo the lock down at any time.
Definition: plasma.h:237
@ ControlAction
Generic control, similar to ConfigureAction TODO: better doc.
Definition: plasma.h:132
QIcon fromTheme(const QString &name)
bool isValid() const
void configNeedsSaving()
Emitted when an applet has changed values in its configuration and wishes for them to be saved at the...
void setShortcut(const QKeySequence &shortcut)
void setAutoRepeat(bool)
void deleteGroup(const char *group, WriteConfigFlags flags=Normal)
bool contains(const T &value) const const
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void save(KConfigGroup &group) const override
Definition: containment.cpp:222
void setIcon(const QIcon &icon)
void uiReadyChanged(bool uiReady)
Emitted when the ui has been fully loaded and is fully working.
QString i18n(const char *text, const TYPE &arg...)
This debugging class is meant to provide an overview of how the objects change over time and hopefull...
Definition: timetracker.h:44
virtual void init()
This method is called once the applet is loaded and added to a Corona.
Definition: applet.cpp:168
void screenOwnerChanged(int isScreen)
This signal indicates that a containment has been newly associated (or dissociated) with a physical s...
bool isEmpty() const const
QCoreApplication * instance()
void setText(const QString &text)
applicationName
bool contains(const T &value) const const
void setVisible(bool)
void setData(const QVariant &userData)
void triggered(bool checked)
void flushPendingConstraintsEvents()
Sends all pending constraints updates to the applet.
Definition: applet.cpp:602
void setEnabled(bool)
QString name(StandardShortcut id)
void setParent(QObject *parent)
ImmutabilityType
Defines the immutability of items like applets, corona and containments they can be free to modify,...
Definition: plasma.h:235
QSet::iterator insert(const T &value)
QList::iterator begin()
KConfig * config()
bool sync() override
void setActivity(const QString &activityId)
Sets the current activity by id.
Definition: containment.cpp:575
QList::iterator end()
The base class for plugins that provide backgrounds and applet grouping containers.
Definition: containment.h:45
SimpleConfig
void screenChanged(int newScreen)
This signal indicates that a containment has been associated (or dissociated) with a physical screen.
void updateConstraints(Plasma::Types::Constraints constraints=Plasma::Types::AllConstraints)
Called when any of the geometry constraints have been updated.
Definition: applet.cpp:350
ApplicationShortcut
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:15:01 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:15:01 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.