Krita Source Code Documentation
Loading...
Searching...
No Matches
ColorSelectorNgPlugin Class Reference

#include <colorselectorng.h>

+ Inheritance diagram for ColorSelectorNgPlugin:

Public Member Functions

 ColorSelectorNgPlugin (QObject *parent, const QVariantList &)
 
 ~ColorSelectorNgPlugin () override
 

Detailed Description

Template of view plugin

Definition at line 18 of file colorselectorng.h.

Constructor & Destructor Documentation

◆ ColorSelectorNgPlugin()

ColorSelectorNgPlugin::ColorSelectorNgPlugin ( QObject * parent,
const QVariantList &  )

Definition at line 49 of file colorselectorng.cpp.

50 : QObject(parent)
51{
53
55
57
58 //load and save preferences
59 //if something in kritarc is missing, then the default from this load function will be used and saved back to kconfig.
60 //this way, cfg.readEntry() in any part won't be able to set its own default
61 KisPreferenceSet* settings = settingsFactory->createPreferenceSet();
62 Q_ASSERT(settings);
63 settings->loadPreferences();
64 settings->savePreferences();
65 delete settings;
66
67 preferenceSetRegistry->add("KisColorSelectorSettingsFactory", settingsFactory);
68}
KisPreferenceSet * createPreferenceSet() override
static KisPreferenceSetRegistry * instance()
virtual void loadPreferences()=0
virtual void savePreferences() const =0
static KoDockRegistry * instance()

References KoGenericRegistry< T >::add(), KisColorSelectorSettingsFactory::createPreferenceSet(), KoDockRegistry::instance(), KisPreferenceSetRegistry::instance(), KisPreferenceSet::loadPreferences(), and KisPreferenceSet::savePreferences().

◆ ~ColorSelectorNgPlugin()

ColorSelectorNgPlugin::~ColorSelectorNgPlugin ( )
override

Definition at line 70 of file colorselectorng.cpp.

71{
72
73}

The documentation for this class was generated from the following files: