#include <KoPictureShared.h>
Graphe de collaboration de KoPictureShared:
Fonctions membres publiques | |
KoPictureShared (void) | |
~KoPictureShared (void) | |
KoPictureShared (const KoPictureShared &other) | |
Copy constructor. | |
KoPictureShared & | operator= (const KoPictureShared &other) |
Assignment operator. | |
KoPictureType::Type | getType (void) const |
bool | isNull (void) const |
void | draw (QPainter &painter, int x, int y, int width, int height, int sx=0, int sy=0, int sw=-1, int sh=-1, bool fastMode=false) |
Draw the image in a painter. | |
Q3DragObject * | dragObject (QWidget *dragSource=0L, const char *name=0L) |
bool | load (QIODevice *io, const QString &extension) |
bool | loadFromBase64 (const QByteArray &str) |
bool | save (QIODevice *io) const |
bool | saveAsBase64 (KoXmlWriter &writer) const |
void | setExtension (const QString &extension) |
QString | getExtension (void) const |
QSize | getOriginalSize (void) const |
void | clearAndSetMode (const QString &newMode) |
void | clear (void) |
bool | loadFromFile (const QString &fileName) |
bool | loadXpm (QIODevice *io) |
QPixmap | generatePixmap (const QSize &size, bool smoothScale=false) |
QString | getMimeType (void) const |
QImage | generateImage (const QSize &size) |
bool | hasAlphaBuffer () const |
void | setAlphaBuffer (bool enable) |
QImage | createAlphaMask (Qt::ImageConversionFlags flags=Qt::AutoColor) const |
void | clearCache (void) |
QString | uniquePictureId () const |
void | assignPictureId (uint _id) |
Fonctions membres protégées | |
bool | loadWmf (QIODevice *io) |
bool | loadTmp (QIODevice *io) |
bool | identifyAndLoad (QByteArray data) |
Find type of image, create base accordingly, and load data. | |
bool | loadCompressed (QIODevice *io, const QString &mimeType, const QString &extension) |
Attributs protégés | |
KoPictureBase * | m_base |
QString | m_extension |
uint | m_pictureId |
Définition à la ligne 44 du fichier KoPictureShared.h.
KoPictureShared::KoPictureShared | ( | void | ) |
Default constructor.
Définition à la ligne 43 du fichier KoPictureShared.cpp.
KoPictureShared::~KoPictureShared | ( | void | ) |
KoPictureShared::KoPictureShared | ( | const KoPictureShared & | other | ) |
Copy constructor.
This makes a deep copy. Do not use if you want to share!
Définition à la ligne 62 du fichier KoPictureShared.cpp.
Références m_base, et KoPictureBase::newCopy().
Voici le graphe d'appel pour cette fonction :
KoPictureShared & KoPictureShared::operator= | ( | const KoPictureShared & | other | ) |
Assignment operator.
This makes a deep copy. Do not use if you want to share!
Définition à la ligne 72 du fichier KoPictureShared.cpp.
Références clear(), m_base, et KoPictureBase::newCopy().
Voici le graphe d'appel pour cette fonction :
KoPictureType::Type KoPictureShared::getType | ( | void | ) | const |
Définition à la ligne 82 du fichier KoPictureShared.cpp.
Références KoPictureBase::getType(), m_base, et KoPictureType::TypeUnknown.
Référencé par KoPicture::getType().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoPictureShared::isNull | ( | void | ) | const |
Returns true if the picture is null.
Définition à la ligne 89 du fichier KoPictureShared.cpp.
Références KoPictureBase::isNull(), et m_base.
Référencé par KoPicture::isNull().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoPictureShared::draw | ( | QPainter & | painter, | |
int | x, | |||
int | y, | |||
int | width, | |||
int | height, | |||
int | sx = 0 , |
|||
int | sy = 0 , |
|||
int | sw = -1 , |
|||
int | sh = -1 , |
|||
bool | fastMode = false | |||
) |
Draw the image in a painter.
The parameter fastMode
allows the picture to be re-sized and drawn quicker if possible
The parameters width
, height
define the desired size for the picture
The other parameters are very similar to QPainter::drawPixmap : (x
, y
) define the position in the painter, (sx
, sy
) specify the top-left point in pixmap that is to be drawn. The default is (0, 0). (sw
, sh
) specify the size of the pixmap that is to be drawn. The default, (-1, -1), means all the way to the bottom right of the pixmap.
Définition à la ligne 96 du fichier KoPictureShared.cpp.
Références KoPictureBase::draw(), et m_base.
Référencé par KoPicture::draw().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
Q3DragObject * KoPictureShared::dragObject | ( | QWidget * | dragSource = 0L , |
|
const char * | name = 0L | |||
) |
Create a dragobject containing this picture.
dragSource | must be 0 when copying to the clipboard |
Définition à la ligne 472 du fichier KoPictureShared.cpp.
Références KoPictureBase::dragObject(), et m_base.
Référencé par KoPicture::dragObject().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoPictureShared::load | ( | QIODevice * | io, | |
const QString & | extension | |||
) |
Définition à la ligne 393 du fichier KoPictureShared.cpp.
Références clearAndSetMode(), KoPictureBase::load(), loadCompressed(), loadTmp(), loadWmf(), m_base, et setExtension().
Référencé par KoPicture::load(), loadCompressed(), et loadFromFile().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoPictureShared::loadFromBase64 | ( | const QByteArray & | str | ) |
Définition à la ligne 385 du fichier KoPictureShared.cpp.
Références clear(), et identifyAndLoad().
Référencé par KoPicture::loadFromBase64().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoPictureShared::save | ( | QIODevice * | io | ) | const |
Save picture into a QIODevice
io | QIODevice used for saving |
Définition à la ligne 319 du fichier KoPictureShared.cpp.
Références m_base, et KoPictureBase::save().
Référencé par KoPicture::save().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoPictureShared::saveAsBase64 | ( | KoXmlWriter & | writer | ) | const |
OASIS FlatXML support: Save picture as base64-encoded data into an XML writer.
Définition à la ligne 328 du fichier KoPictureShared.cpp.
Références m_base, et KoPictureBase::saveAsBase64().
Référencé par KoPicture::saveAsBase64().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoPictureShared::setExtension | ( | const QString & | extension | ) |
Définition à la ligne 372 du fichier KoPictureShared.cpp.
Références m_extension.
Référencé par identifyAndLoad(), load(), loadWmf(), et loadXpm().
Voici le graphe d'appel pour cette fonction :
QString KoPictureShared::getExtension | ( | void | ) | const |
Définition à la ligne 367 du fichier KoPictureShared.cpp.
Références m_extension.
Référencé par KoPicture::getExtension().
Voici le graphe d'appel pour cette fonction :
QSize KoPictureShared::getOriginalSize | ( | void | ) | const |
Définition à la ligne 458 du fichier KoPictureShared.cpp.
Références KoPictureBase::getOriginalSize(), et m_base.
Référencé par KoPicture::getOriginalSize().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoPictureShared::clearAndSetMode | ( | const QString & | newMode | ) |
Clear and set the mode of this KoPictureShared
newMode | file extension (like "png") giving the wanted mode |
Définition à la ligne 342 du fichier KoPictureShared.cpp.
Références m_base.
Référencé par KoPicture::clearAndSetMode(), identifyAndLoad(), et load().
Voici le graphe d'appel pour cette fonction :
void KoPictureShared::clear | ( | void | ) |
Reset the KoPictureShared (but not the key!)
Définition à la ligne 335 du fichier KoPictureShared.cpp.
Références m_base.
Référencé par loadFromBase64(), loadWmf(), loadXpm(), et operator=().
Voici le graphe d'appel pour cette fonction :
bool KoPictureShared::loadFromFile | ( | const QString & | fileName | ) |
Load a file
fileName | the name of the file to load |
Définition à la ligne 428 du fichier KoPictureShared.cpp.
Références load(), loadTmp(), et gensymbolfontmap::pos.
Référencé par KoPicture::loadFromFile().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoPictureShared::loadXpm | ( | QIODevice * | io | ) |
Load a potentially broken XPM file (for KPresenter)
Définition à la ligne 284 du fichier KoPictureShared.cpp.
Références check(), clear(), KoPictureBase::load(), m_base, gensymbolfontmap::pos, et setExtension().
Référencé par KoPicture::loadXpm().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
QPixmap KoPictureShared::generatePixmap | ( | const QSize & | size, | |
bool | smoothScale = false | |||
) |
size | the wanted size for the QPixmap |
Définition à la ligne 465 du fichier KoPictureShared.cpp.
Références KoPictureBase::generatePixmap(), et m_base.
Référencé par KoPicture::generatePixmap().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
QString KoPictureShared::getMimeType | ( | void | ) | const |
Définition à la ligne 377 du fichier KoPictureShared.cpp.
Références KoPictureBase::getMimeType(), m_base, m_extension, et NULL_MIME_TYPE.
Référencé par KoPicture::getMimeType().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
QImage KoPictureShared::generateImage | ( | const QSize & | size | ) |
Generate a QImage
(always in slow mode)
size | the wanted size for the QImage |
Définition à la ligne 479 du fichier KoPictureShared.cpp.
Références KoPictureBase::generateImage(), et m_base.
Référencé par KoPicture::generateImage().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoPictureShared::hasAlphaBuffer | ( | ) | const |
Définition à la ligne 486 du fichier KoPictureShared.cpp.
Références KoPictureBase::hasAlphaBuffer(), et m_base.
Référencé par KoPicture::hasAlphaBuffer().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoPictureShared::setAlphaBuffer | ( | bool | enable | ) |
Définition à la ligne 493 du fichier KoPictureShared.cpp.
Références m_base, et KoPictureBase::setAlphaBuffer().
Référencé par KoPicture::setAlphaBuffer().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
QImage KoPictureShared::createAlphaMask | ( | Qt::ImageConversionFlags | flags = Qt::AutoColor |
) | const |
Définition à la ligne 499 du fichier KoPictureShared.cpp.
Références KoPictureBase::createAlphaMask(), et m_base.
Référencé par KoPicture::createAlphaMask().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoPictureShared::clearCache | ( | void | ) |
Clear any cache
It is used to avoid using too much memory especially if the application somehow caches the KoPicture too.
Définition à la ligne 506 du fichier KoPictureShared.cpp.
Références KoPictureBase::clearCache(), et m_base.
Référencé par KoPicture::clearCache().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
QString KoPictureShared::uniquePictureId | ( | ) | const |
Définition à la ligne 52 du fichier KoPictureShared.cpp.
Références m_pictureId.
Référencé par KoPicture::uniquePictureId().
Voici le graphe d'appel pour cette fonction :
void KoPictureShared::assignPictureId | ( | uint | _id | ) |
Définition à la ligne 47 du fichier KoPictureShared.cpp.
Références m_pictureId.
Référencé par KoPicture::assignPictureId().
Voici le graphe d'appel pour cette fonction :
bool KoPictureShared::loadWmf | ( | QIODevice * | io | ) | [protected] |
Définition à la ligne 111 du fichier KoPictureShared.cpp.
Références clear(), KoPictureBase::loadData(), m_base, m_extension, et setExtension().
Référencé par load().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoPictureShared::loadTmp | ( | QIODevice * | io | ) | [protected] |
Définition à la ligne 140 du fichier KoPictureShared.cpp.
Références identifyAndLoad().
Référencé par load(), et loadFromFile().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoPictureShared::identifyAndLoad | ( | QByteArray | data | ) | [protected] |
Find type of image, create base accordingly, and load data.
Définition à la ligne 158 du fichier KoPictureShared.cpp.
Références clearAndSetMode(), loadCompressed(), KoPictureBase::loadData(), m_base, et setExtension().
Référencé par loadFromBase64(), et loadTmp().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoPictureShared::loadCompressed | ( | QIODevice * | io, | |
const QString & | mimeType, | |||
const QString & | extension | |||
) | [protected] |
Définition à la ligne 512 du fichier KoPictureShared.cpp.
Références load().
Référencé par identifyAndLoad(), et load().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
KoPictureBase* KoPictureShared::m_base [protected] |
Définition à la ligne 209 du fichier KoPictureShared.h.
Référencé par clear(), clearAndSetMode(), clearCache(), createAlphaMask(), dragObject(), draw(), generateImage(), generatePixmap(), getMimeType(), getOriginalSize(), getType(), hasAlphaBuffer(), identifyAndLoad(), isNull(), KoPictureShared(), load(), loadWmf(), loadXpm(), operator=(), save(), saveAsBase64(), setAlphaBuffer(), et ~KoPictureShared().
QString KoPictureShared::m_extension [protected] |
Définition à la ligne 210 du fichier KoPictureShared.h.
Référencé par getExtension(), getMimeType(), loadWmf(), et setExtension().
uint KoPictureShared::m_pictureId [protected] |
Définition à la ligne 211 du fichier KoPictureShared.h.
Référencé par assignPictureId(), et uniquePictureId().