umbrello/umbrello
umlviewimageexportermodel.cpp
Go to the documentation of this file.
200 QStringList UMLViewImageExporterModel::exportAllViews(const QString &imageType, const KUrl &directory, bool useFolders) const
237 QString UMLViewImageExporterModel::exportView(UMLScene* scene, const QString &imageType, const KUrl &url) const
287 QString UMLViewImageExporterModel::getDiagramFileName(UMLScene* scene, const QString &imageType, bool useFolders /* = false */) const
343 bool UMLViewImageExporterModel::exportViewTo(UMLScene* scene, const QString &imageType, const QString &fileName) const
407 bool UMLViewImageExporterModel::exportViewToEps(UMLScene* scene, const QString &fileName, bool isEPS) const
521 bool UMLViewImageExporterModel::exportViewToPixmap(UMLScene* scene, const QString &imageType, const QString &fileName) const
561 QRegExp rx(QLatin1String("%%BoundingBox:\\s*(-?[\\d\\.:]+)\\s*(-?[\\d\\.:]+)\\s*(-?[\\d\\.:]+)\\s*(-?[\\d\\.:]+)"));
bool createDotFile(UMLScene *scene, const QString &fileName, const QString &variant=QLatin1String("default"))
Create dot file using displayed widgets and associations of the provided scene.
Definition: dotgenerator.cpp:294
void setViewBox(const QRect &viewBox)
QSize size() const
QString toUpper() const
The class DotGenerator provides export of diagrams as dot files.
Definition: dotgenerator.h:23
QRect toRect() const
bool end()
void setSize(const QSize &size)
QString treeViewBuildDiagramName(Uml::ID::Type id)
Build the diagram name from the tree view.
Definition: model_utils.cpp:424
QByteArray toLower() const
qreal x() const
qreal y() const
void setOutputFileName(const QString &fileName)
QList< QByteArray > supportedImageFormats()
virtual ~UMLViewImageExporterModel()
Destructor for UMLViewImageExporterModel.
Definition: umlviewimageexportermodel.cpp:174
int resolution() const
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:910
static QStringList supportedImageTypes()
Returns a QStringList containing all the supported image types to use when exporting.
Definition: umlviewimageexportermodel.cpp:56
QChar separator()
int size() const
bool isNull() const
void setHeight(qreal height)
void append(const T &value)
static QStringList supportedMimeTypes()
Returns a QStringList containing all the supported mime types to use when exporting.
Definition: umlviewimageexportermodel.cpp:85
static QString imageTypeToMimeType(const QString &imageType)
Returns the mime type for an image type.
Definition: umlviewimageexportermodel.cpp:107
QString exportView(UMLScene *scene, const QString &imageType, const KUrl &url) const
Exports the view to the url using the 'imageType' for the image.
Definition: umlviewimageexportermodel.cpp:237
void getDiagram(QPixmap &diagram, const QRectF &rect)
Returns the PNG picture of the paste operation.
Definition: umlscene.cpp:1694
iterator end()
QString toLower() const
bool isEmpty() const
void setFileName(const QString &fileName)
QString & replace(int position, int n, QChar after)
void forceUpdateWidgetFontMetrics(QPainter *painter)
Force the widget font metrics to be updated next time the widgets are drawn.
Definition: umlscene.cpp:3523
qreal width() const
UMLViewImageExporterModel()
Constructor for UMLViewImageExporterModel.
Definition: umlviewimageexportermodel.cpp:167
Exports an UMLView in various image formats.
Definition: umlviewimageexportermodel.h:32
static QString mimeTypeToImageType(const QString &mimeType)
Returns the image type for a mime type.
Definition: umlviewimageexportermodel.cpp:140
void setWidth(qreal width)
float toFloat(bool *ok) const
QStringList exportAllViews(const QString &imageType, const KUrl &directory, bool useFolders) const
Exports all the views in the document to the directory specified in the url using the 'imageType' for...
Definition: umlviewimageexportermodel.cpp:200
typedef ConstIterator
QStringList split(const QString &sep, const QString &str, bool allowEmptyEntries)
void translate(const QPointF &offset)
QString fromLatin1(const char *str, int size)
qreal height() const
const_iterator constEnd() const
const_iterator constBegin() const
void setColorMode(ColorMode newColorMode)
void setOutputFormat(OutputFormat format)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
iterator begin()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.