krita/ui
KisRecordedActionEditorFactoryRegistry Class Reference
This class allow to create an editor for a specific recorded action. More...
#include <kis_recorded_action_editor_factory_registry.h>
Public Member Functions | |
| void | add (KisRecordedActionEditorFactory *factory) |
| QWidget * | createEditor (QWidget *parent, KisRecordedAction *action) const |
| bool | hasEditor (KisRecordedAction *action) const |
Static Public Member Functions | |
| static KisRecordedActionEditorFactoryRegistry * | instance () |
Detailed Description
This class allow to create an editor for a specific recorded action.
If two editors can edit the same type of action, then the editor that was added last is used in priority.
Definition at line 34 of file kis_recorded_action_editor_factory_registry.h.
Member Function Documentation
| void KisRecordedActionEditorFactoryRegistry::add | ( | KisRecordedActionEditorFactory * | factory | ) |
Add a factory of action editor.
Definition at line 54 of file kis_recorded_action_editor_factory_registry.cc.
| QWidget * KisRecordedActionEditorFactoryRegistry::createEditor | ( | QWidget * | parent, | |
| KisRecordedAction * | action | |||
| ) | const |
- Returns:
- an editor for the given action, or a null pointer if there is no factory for that action.
Definition at line 60 of file kis_recorded_action_editor_factory_registry.cc.
| bool KisRecordedActionEditorFactoryRegistry::hasEditor | ( | KisRecordedAction * | action | ) | const |
- Returns:
- true if there is an editor for this action.
Definition at line 73 of file kis_recorded_action_editor_factory_registry.cc.
| KisRecordedActionEditorFactoryRegistry * KisRecordedActionEditorFactoryRegistry::instance | ( | ) | [static] |
Definition at line 48 of file kis_recorded_action_editor_factory_registry.cc.
The documentation for this class was generated from the following files:
