|
Krita Source Code Documentation
|
#include <KoMarkerCollection.h>
Inheritance diagram for KoMarkerCollection:Public Member Functions | |
| KoMarker * | addMarker (KoMarker *marker) |
| KoMarkerCollection (QObject *parent=0) | |
| void | loadMarkersFromFile (const QString &svgFile) |
| QList< KoMarker * > | markers () const |
| ~KoMarkerCollection () override | |
| ~Private () | |
Public Attributes | |
| QList< QExplicitlySharedDataPointer< KoMarker > > | markers |
Private Member Functions | |
| void | loadDefaultMarkers () |
| load the markers that are available per default. | |
Private Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Private Attributes | |
| Private *const | d |
Private Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Definition at line 26 of file KoMarkerCollection.cpp.
|
inline |
Definition at line 29 of file KoMarkerCollection.cpp.
|
explicit |
Definition at line 36 of file KoMarkerCollection.cpp.
References d, and loadDefaultMarkers().
|
override |
Add marker to collection
The collection checks if a marker with the same content exists and if so deletes the passed marker and returns a pointer to an existing marker. If no such marker exists it adds the marker and return the same pointer as passed. Calling that function passes ownership of the marker to this class.
| marker | Marker to add |
Definition at line 110 of file KoMarkerCollection.cpp.
References d, and debugFlake.
|
private |
load the markers that are available per default.
Definition at line 95 of file KoMarkerCollection.cpp.
References KoResourcePaths::findAsset(), and loadMarkersFromFile().
| void KoMarkerCollection::loadMarkersFromFile | ( | const QString & | svgFile | ) |
Definition at line 51 of file KoMarkerCollection.cpp.
References addMarker(), SvgParser::createDocumentFromSvg(), errKrita, SvgParser::knownMarkers(), SvgParser::parseSvg(), SvgParser::setFileFetcher(), SvgParser::setResolution(), and SvgParser::setXmlBaseDir().
|
private |
Definition at line 49 of file KoMarkerCollection.h.
Definition at line 33 of file KoMarkerCollection.cpp.