|
Krita Source Code Documentation
|
The PresetChooser widget wraps the KisPresetChooser widget. The widget provides for selecting brush presets. It has a tagging bar and a filter field. It is not automatically synchronized with the currently selected preset in the current Windows. More...
#include <PresetChooser.h>
Inheritance diagram for PresetChooser:Public Slots | |
| Resource * | currentPreset () const |
| void | setCurrentPreset (Resource *resource) |
Public Slots inherited from KisPresetChooser | |
| void | saveIconSize () |
| saves the icon size for the presets. called by the horizontal slider release event. | |
| void | setIconSize (int newSize) |
| sets the icon size. Used by slider in view menu | |
| void | showHideBrushNames (ListViewMode newViewMode) |
| void | updateViewSettings () |
Signals | |
| void | presetClicked (Resource resource) |
| void | presetSelected (Resource resource) |
Signals inherited from KisPresetChooser | |
| void | resourceClicked (KoResourceSP resource) |
| void | resourceSelected (KoResourceSP resource) |
Public Member Functions | |
| PresetChooser (QWidget *parent=0) | |
| ~PresetChooser () override | |
Public Member Functions inherited from KisPresetChooser | |
| KoResourceSP | currentResource () const |
| int | iconSize () |
| get the base size for the icons. Used by the slider in the view options | |
| KisResourceItemChooser * | itemChooser () |
| KisPresetChooser (QWidget *parent=0) | |
| void | setCurrentResource (KoResourceSP resource) |
| void | setPresetFilter (const QString &paintOpId) |
| void | setViewMode (ViewMode mode) |
| Sets a list of resources in the paintop list, when ever user press enter in the lineedit of paintop_presets_popup Class. | |
| void | setViewModeToDetail () |
| void | setViewModeToThumbnail () |
| void | showTaggingBar (bool show) |
| Sets the visibility of tagging klineEdits. | |
| ~KisPresetChooser () override | |
Private Slots | |
| void | slotResourceClicked (KoResourceSP resource) |
| void | slotResourceSelected (KoResourceSP resource) |
Additional Inherited Members | |
Public Types inherited from KisPresetChooser | |
| enum | ViewMode { THUMBNAIL , DETAIL } |
The PresetChooser widget wraps the KisPresetChooser widget. The widget provides for selecting brush presets. It has a tagging bar and a filter field. It is not automatically synchronized with the currently selected preset in the current Windows.
Definition at line 25 of file PresetChooser.h.
| PresetChooser::PresetChooser | ( | QWidget * | parent = 0 | ) |
Definition at line 12 of file PresetChooser.cpp.
References connect(), KisPresetChooser::resourceClicked(), KisPresetChooser::resourceSelected(), KisPresetChooser::showTaggingBar(), slotResourceClicked(), and slotResourceSelected().
|
inlineoverride |
Definition at line 30 of file PresetChooser.h.
|
slot |
Definition at line 27 of file PresetChooser.cpp.
References KisPresetChooser::currentResource().
Emitted whenever a user clicks on the given preset.
Emitted whenever a user selects the given preset.
Make the given preset active.
Definition at line 21 of file PresetChooser.cpp.
References Resource::resource(), and KisPresetChooser::setCurrentResource().
|
privateslot |
Definition at line 41 of file PresetChooser.cpp.
References presetClicked().
|
privateslot |
Definition at line 36 of file PresetChooser.cpp.
References presetSelected().