krita
KisDoc Class Reference
Inheritance diagram for KisDoc:

Detailed Description
Definition at line 49 of file kis_doc.h.
Public Slots | |
virtual void | initEmpty () |
void | slotImageUpdated () |
void | slotImageUpdated (const QRect &rect) |
void | slotDocumentRestored () |
void | slotCommandExecuted (KCommand *command) |
Signals | |
void | docUpdated () |
void | docUpdated (QRect rect) |
void | loadingFinished () |
void | sigCommandExecuted () |
Public Member Functions | |
KisDoc (QWidget *parentWidget=0, const char *widgetName=0, QObject *parent=0, const char *name=0, bool singleViewMode=false) | |
virtual | ~KisDoc () |
virtual bool | wantExportConfirmation () const |
virtual bool | completeLoading (KoStore *store) |
virtual bool | completeSaving (KoStore *) |
virtual DCOPObject * | dcopObject () |
virtual bool | initDoc (InitDocFlags flags, QWidget *parentWidget=0) |
virtual bool | loadOasis (const QDomDocument &, KoOasisStyles &, const QDomDocument &, KoStore *) |
virtual bool | saveOasis (KoStore *, KoXmlWriter *) |
virtual bool | loadChildren (KoStore *store) |
virtual bool | loadXML (QIODevice *, const QDomDocument &doc) |
virtual QCString | mimeType () const |
virtual QWidget * | createCustomDocumentWidget (QWidget *parent) |
virtual KoDocument * | hitTest (const QPoint &pos, const QWMatrix &matrix=QWMatrix()) |
virtual void | paintContent (QPainter &painter, const QRect &rect, bool, double, double) |
virtual QDomDocument | saveXML () |
Q_INT32 | undoLimit () const |
void | setUndoLimit (Q_INT32 limit) |
Q_INT32 | redoLimit () const |
void | setRedoLimit (Q_INT32 limit) |
bool | newImage (const QString &name, Q_INT32 width, Q_INT32 height, KisColorSpace *cs, const KisColor &bgColor, const QString &imgDescription, const double imgResolution) |
KisImageSP | newImage (const QString &name, Q_INT32 width, Q_INT32 height, KisColorSpace *colorstrategy) |
void | renameImage (const QString &oldName, const QString &newName) |
KisChildDoc * | createChildDoc (const QRect &rect, KoDocument *childDoc) |
void | prepareForImport () |
KisImageSP | currentImage () |
void | setCurrentImage (KisImageSP image) |
KisUndoAdapter * | undoAdapter () |
Protected Slots | |
virtual void | openExistingFile (const QString &file) |
virtual void | openTemplate (const QString &file) |
Protected Member Functions | |
virtual KoView * | createViewInstance (QWidget *parent, const char *name) |
Member Function Documentation
KisChildDoc * KisDoc::createChildDoc | ( | const QRect & | rect, | |
KoDocument * | childDoc | |||
) |
Adds the specified child document to this document; this is not done with KoDocument::insertChild() because that is protected and cannot be called from KisView.
Definition at line 1126 of file kis_doc.cc.
void KisDoc::initEmpty | ( | ) | [virtual, slot] |
Initialize an empty document using default values.
- Since:
- 1.5
Definition at line 1154 of file kis_doc.cc.
KisImageSP KisDoc::newImage | ( | const QString & | name, | |
Q_INT32 | width, | |||
Q_INT32 | height, | |||
KisColorSpace * | colorstrategy | |||
) |
Create a new image that has this document as a parent and replace the current image with this image.
Definition at line 844 of file kis_doc.cc.
bool KisDoc::newImage | ( | const QString & | name, | |
Q_INT32 | width, | |||
Q_INT32 | height, | |||
KisColorSpace * | cs, | |||
const KisColor & | bgColor, | |||
const QString & | imgDescription, | |||
const double | imgResolution | |||
) |
Create a new image that has this document as a parent and replace the current image with this image.
Definition at line 875 of file kis_doc.cc.
void KisDoc::paintContent | ( | QPainter & | painter, | |
const QRect & | rect, | |||
bool | , | |||
double | , | |||
double | ||||
) | [virtual] |
Draw the image embedded in another KOffice document.
XXX: Use of transparent, zoomX and zoomY is not supported by Krita because we appear to be doing our zooming elsewhere. This may affect KOffice compatibility.
Definition at line 933 of file kis_doc.cc.
void KisDoc::prepareForImport | ( | ) |
Makes an otherwise empty document ready for import/export.
Definition at line 1134 of file kis_doc.cc.
void KisDoc::setCurrentImage | ( | KisImageSP | image | ) |
Set the current image to the specified image and turn undo on.
Definition at line 1146 of file kis_doc.cc.
The documentation for this class was generated from the following files: