krita

KisDoc Class Reference

Inheritance diagram for KisDoc:

KisUndoAdapter List of all members.

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)
KisChildDoccreateChildDoc (const QRect &rect, KoDocument *childDoc)
void prepareForImport ()
KisImageSP currentImage ()
void setCurrentImage (KisImageSP image)
KisUndoAdapterundoAdapter ()

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

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 942 of file kis_doc.cc.

void KisDoc::initEmpty (  )  [virtual, slot]

Initialize an empty document using default values.

Since:
1.5

Definition at line 1163 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 884 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 853 of file kis_doc.cc.

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 1135 of file kis_doc.cc.

void KisDoc::prepareForImport (  ) 

Makes an otherwise empty document ready for import/export.

Definition at line 1143 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 1155 of file kis_doc.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys