|
Krita Source Code Documentation
|
#include <KoDockRegistry.h>
Inheritance diagram for KoDockRegistry:Public Member Functions | |
| KoDockRegistry () | |
| QList< KoDockFactoryBase * > | sortedDockWidgetFactories () |
| ~KoDockRegistry () override | |
Public Member Functions inherited from KoGenericRegistry< KoDockFactoryBase * > | |
| void | add (const QString &id, KoDockFactoryBase * item) |
| void | add (KoDockFactoryBase * item) |
| void | addAlias (const QString &alias, const QString &id) |
| QHash< QString, KoDockFactoryBase * >::const_iterator | constBegin () const |
| QHash< QString, KoDockFactoryBase * >::const_iterator | constEnd () const |
| bool | contains (const QString &id) const |
| int | count () const |
| QList< KoDockFactoryBase * > | doubleEntries () const |
| KoDockFactoryBase * | get (const QString &id) const |
| QList< QString > | keys () const |
| KoGenericRegistry () | |
| void | remove (const QString &id) |
| void | removeAlias (const QString &alias) |
| const KoDockFactoryBase * | value (const QString &id) const |
| QList< KoDockFactoryBase * > | values () const |
| virtual | ~KoGenericRegistry () |
Static Public Member Functions | |
| static KoDockRegistry * | instance () |
Private Member Functions | |
| void | init () |
| KoDockRegistry (const KoDockRegistry &) | |
| KoDockRegistry | operator= (const KoDockRegistry &) |
Private Attributes | |
| Private *const | d |
This singleton class keeps a register of all available dockers, or rather, of the factories that can create the QDockWidget instances for the mainwindows. Note that adding your KoDockFactoryBase to this registry will mean it will automatically be added to an application, no extra code is required for that.
Definition at line 25 of file KoDockRegistry.h.
| KoDockRegistry::KoDockRegistry | ( | ) |
Definition at line 38 of file KoDockRegistry.cpp.
|
override |
Definition at line 52 of file KoDockRegistry.cpp.
References KoGenericRegistry< KoDockFactoryBase * >::values().
|
private |
|
private |
Definition at line 43 of file KoDockRegistry.cpp.
References KoPluginLoader::PluginsConfig::blacklist, KoPluginLoader::PluginsConfig::group, KoPluginLoader::instance(), and KoPluginLoader::load().
|
static |
Return an instance of the KoDockRegistry Create a new instance on first call and return the singleton.
Definition at line 77 of file KoDockRegistry.cpp.
References init().
|
private |
| QList< KoDockFactoryBase * > KoDockRegistry::sortedDockWidgetFactories | ( | ) |
Returns the registered docks in a predictable order: first sorted by priority, then sorted case-insensitively by their id.
Definition at line 59 of file KoDockRegistry.cpp.
References KoGenericRegistry< KoDockFactoryBase * >::count(), KoGenericRegistry< KoDockFactoryBase * >::keys(), KoDockFactoryBase::priority(), and KoGenericRegistry< KoDockFactoryBase * >::value().
|
private |
Definition at line 50 of file KoDockRegistry.h.