|
Krita Source Code Documentation
|
#include <KisWindowLayoutResource.h>
Inheritance diagram for KisWindowLayoutResource:Classes | |
| struct | Private |
Public Member Functions | |
| void | applyLayout () |
| KoResourceSP | clone () const override |
| QString | defaultFileExtension () const override |
| KisWindowLayoutResource (const KisWindowLayoutResource &rhs) | |
| KisWindowLayoutResource (const QString &filename) | |
| bool | loadFromDevice (QIODevice *dev, KisResourcesInterfaceSP resourcesInterface) override |
| KisWindowLayoutResource & | operator= (const KisWindowLayoutResource &rhs)=delete |
| QPair< QString, QString > | resourceType () const override |
| bool | saveToDevice (QIODevice *dev) const override |
| ~KisWindowLayoutResource () override | |
Public Member Functions inherited from KoResource | |
| bool | active () const |
| void | addMetaData (QString key, QVariant value) |
| store the given key, value pair in the resource | |
| virtual void | clearSideLoadedResources () |
| virtual QList< KoResourceLoadResult > | embeddedResources (KisResourcesInterfaceSP globalResourcesInterface) const |
| QString | filename () const |
| QImage | image () const |
| bool | isDirty () const |
| virtual bool | isEphemeral () const |
| virtual bool | isSerializable () const |
| KoResource () | |
| KoResource (const KoResource &rhs) | |
| KoResource (const QString &filename) | |
| virtual QList< KoResourceLoadResult > | linkedResources (KisResourcesInterfaceSP globalResourcesInterface) const |
| bool | load (KisResourcesInterfaceSP resourcesInterface) |
| QString | md5Sum (bool generateIfEmpty=true) const |
| QMap< QString, QVariant > | metadata () const |
| get a map with all the metadata | |
| virtual QString | name () const |
| KoResource & | operator= (const KoResource &rhs)=delete |
| bool | permanent () const |
| virtual QList< int > | requiredCanvasResources () const |
| QList< KoResourceLoadResult > | requiredResources (KisResourcesInterfaceSP globalResourcesInterface) const |
| int | resourceId () const |
| bool | save () |
| void | setActive (bool active) |
| void | setDirty (bool value) |
| Mark the preset as modified but not saved. | |
| void | setFilename (const QString &filename) |
| void | setImage (const QImage &image) |
| void | setMD5Sum (const QString &md5sum) |
| Set the md5sum of this resource. It must be in hex-encoded string format. | |
| void | setName (const QString &name) |
| void | setPermanent (bool permanent) |
| void | setResourceId (int id) |
| void | setStorageLocation (const QString &location) |
| void | setValid (bool valid) |
| void | setVersion (int version) |
| virtual QList< KoResourceLoadResult > | sideLoadedResources (KisResourcesInterfaceSP globalResourcesInterface) const |
| KoResourceSignature | signature () const |
| QString | storageLocation () const |
| QList< KoResourceLoadResult > | takeSideLoadedResources (KisResourcesInterfaceSP globalResourcesInterface) |
| virtual QImage | thumbnail () const |
| thumbnail the thumbnail image to use in resource selectors | |
| virtual QString | thumbnailPath () const |
| thumbnailPath returns the path to a separate thumbnail image, outside the actual resource file itself. If the path is relative, it is supposed start in the same location as the resource itself. If it's absolute, that is, it starts with "/", it is from the root of the storage. | |
| virtual void | updateThumbnail () |
| updateThumbnail updates the thumbnail for this resource. Reimplement if your thumbnail is something else than the image set with setImage. | |
| bool | valid () const |
| int | version () const |
| Get the version of the resource. | |
| virtual | ~KoResource () |
Public Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Static Public Member Functions | |
| static KisWindowLayoutResourceSP | fromCurrentWindows (const QString &filename, const QList< QPointer< KisMainWindow > > &mainWindows, bool showImageInAllWindows, bool primaryWorkspaceFollowsFocus, KisMainWindow *primaryWindow) |
Protected Member Functions | |
| virtual void | loadXml (const QDomElement &root) const |
| virtual void | saveXml (QDomDocument &doc, QDomElement &root) const |
| void | setWindows (const QList< QPointer< KisMainWindow > > &mainWindows) |
Private Attributes | |
| QScopedPointer< Private > | d |
Additional Inherited Members | |
Public Attributes inherited from KoResource | |
| bool | active {true} |
| QString | filename |
| QImage | image |
| QString | md5sum |
| QMap< QString, QVariant > | metadata |
| bool | modified {false} |
| QString | name |
| bool | permanent {false} |
| int | resourceId {-1} |
| QString | storageLocation |
| bool | valid {false} |
| int | version {-1} |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Definition at line 18 of file KisWindowLayoutResource.h.
|
explicit |
Definition at line 211 of file KisWindowLayoutResource.cpp.
|
override |
Definition at line 216 of file KisWindowLayoutResource.cpp.
| KisWindowLayoutResource::KisWindowLayoutResource | ( | const KisWindowLayoutResource & | rhs | ) |
Definition at line 219 of file KisWindowLayoutResource.cpp.
| void KisWindowLayoutResource::applyLayout | ( | ) |
Definition at line 243 of file KisWindowLayoutResource.cpp.
References d, KisWindowLayoutResource::Private::WindowGeometry::forceOntoCorrectScreen(), KisPart::instance(), KisWindowLayoutManager::instance(), KIS_SAFE_ASSERT_RECOVER_BREAK, and KisWindowLayoutResource::Private::WindowGeometry::screen.
|
overridevirtual |
Implements KoResource.
Definition at line 225 of file KisWindowLayoutResource.cpp.
References KisWindowLayoutResource().
|
overridevirtual |
Reimplemented from KoResource.
Definition at line 407 of file KisWindowLayoutResource.cpp.
|
static |
Definition at line 230 of file KisWindowLayoutResource.cpp.
References KoResource::filename, KisMainWindow::id, and KisWindowLayoutResource().
|
overridevirtual |
Implements KoResource.
Definition at line 322 of file KisWindowLayoutResource.cpp.
References d, loadXml(), KoResource::setName(), and KoResource::setValid().
|
protectedvirtual |
Reimplemented in KisSessionResource.
Definition at line 367 of file KisWindowLayoutResource.cpp.
References KisWindowLayoutResource::Private::Window::canvasDetached, KisWindowLayoutResource::Private::Window::canvasWindowGeometry, d, KisWindowLayoutResource::Private::Window::geometry, KisWindowLayoutResource::Private::WindowGeometry::load(), KisDomUtils::toInt(), KisWindowLayoutResource::Private::Window::windowId, and KisWindowLayoutResource::Private::Window::windowState.
|
delete |
|
inlineoverridevirtual |
Implements KoResource.
Definition at line 40 of file KisWindowLayoutResource.h.
References ResourceType::WindowLayouts.
|
overridevirtual |
Reimplemented from KoResource.
Definition at line 305 of file KisWindowLayoutResource.cpp.
References KoResource::name, saveXml(), KisPortingUtils::setUtf8OnStream(), and WINDOW_LAYOUT_VERSION.
|
protectedvirtual |
Reimplemented in KisSessionResource.
Definition at line 342 of file KisWindowLayoutResource.cpp.
References d.
|
protected |
Definition at line 412 of file KisWindowLayoutResource.cpp.
References KisWindowLayoutResource::Private::Window::canvasDetached, KisWindowLayoutResource::Private::Window::canvasWindowGeometry, d, KisWindowLayoutResource::Private::WindowGeometry::fromWindow(), KisWindowLayoutResource::Private::Window::geometry, KisWindowLayoutResource::Private::Window::windowId, and KisWindowLayoutResource::Private::Window::windowState.
|
private |
Definition at line 57 of file KisWindowLayoutResource.h.