9#include <QGlobalStatic>
11#include <QApplication>
13#include <ksharedconfig.h>
14#include <kconfiggroup.h>
22struct SortableDockFactoryBase {
27 bool operator<(
const SortableDockFactoryBase &other)
const
29 if (priority == other.priority) {
30 return id.compare(other.id, Qt::CaseInsensitive) < 0;
32 return priority < other.priority;
46 config.
blacklist =
"DockerPluginsDisabled";
47 config.
group =
"krita";
62 sortables.reserve(
count());
63 for (
const QString &
id :
keys()) {
65 sortables.append({id, factory, factory->
priority()});
67 std::sort(sortables.begin(), sortables.end());
70 factories.reserve(sortables.size());
71 for (
const SortableDockFactoryBase &s : sortables) {
72 factories.append(s.factory);
80 if (!s_instance.exists()) {
Q_GLOBAL_STATIC(KisStoragePluginRegistry, s_instance)
bool operator<(KoSnapStrategy::SnapType lhs, KoSnapStrategy::SnapType rhs)
virtual int priority() const
~KoDockRegistry() override
static KoDockRegistry * instance()
QList< KoDockFactoryBase * > sortedDockWidgetFactories()
const KoDockFactoryBase * value(const QString &id) const
QList< KoDockFactoryBase * > values() const
QList< QString > keys() const
void load(const QString &serviceType, const PluginsConfig &config=PluginsConfig(), QObject *owner=0, bool cache=true)
static KoPluginLoader * instance()
const char * blacklist
This contains the variable name for the list of plugins (by library name) that will not be loaded.