umbrello: umbrello/umlviewimageexporter.h Source File

umbrello 2.38.5 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

- Main Page
- Related Pages
- Topics
- Namespaces
- Classes
- Files

- File List
- File Members

umlviewimageexporter.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2006-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef UMLVIEWIMAGEEXPORTER_H
7#define UMLVIEWIMAGEEXPORTER_H
8
9#include "umlviewimageexportermodel.h"
10
11#include <QString>
12#include <QUrl>
13
14class UMLScene;
15class UMLFileDialog;
16
22 class UMLViewImageExporter
23{
24public:
25
26 explicit UMLViewImageExporter(UMLScene* scene);
27 virtual ~UMLViewImageExporter();
28
29 void exportView();
30 QUrl getImageURL() const { return m_imageURL; }
31 QString getImageMimeType() const { return m_imageMimeType; }
32
33private:
34
35 UMLScene* m_scene;
36 QUrl m_imageURL;
37 QString m_imageMimeType;
38
39 bool getParametersFromUser();
40
41 bool prepareExport();
42 void prepareFileDialog(UMLFileDialog *fileDialog);
43
44};
45
46#endif
UMLFileDialog
Definition umlfiledialog.h:23
UMLScene
Definition umlscene.h:65
UMLViewImageExporter
Definition umlviewimageexporter.h:23
UMLViewImageExporter::~UMLViewImageExporter
virtual ~UMLViewImageExporter()
Definition umlviewimageexporter.cpp:45
UMLViewImageExporter::getImageMimeType
QString getImageMimeType() const
Definition umlviewimageexporter.h:31
UMLViewImageExporter::getImageURL
QUrl getImageURL() const
Definition umlviewimageexporter.h:30
UMLViewImageExporter::prepareExport
bool prepareExport()
Definition umlviewimageexporter.cpp:92
UMLViewImageExporter::getParametersFromUser
bool getParametersFromUser()
Definition umlviewimageexporter.cpp:128
UMLViewImageExporter::prepareFileDialog
void prepareFileDialog(UMLFileDialog *fileDialog)
Definition umlviewimageexporter.cpp:162
UMLViewImageExporter::UMLViewImageExporter
UMLViewImageExporter(UMLScene *scene)
Definition umlviewimageexporter.cpp:36
UMLViewImageExporter::exportView
void exportView()
Definition umlviewimageexporter.cpp:63
UMLViewImageExporter::m_scene
UMLScene * m_scene
The scene to export.
Definition umlviewimageexporter.h:35
UMLViewImageExporter::m_imageMimeType
QString m_imageMimeType
The mime type used to save the image.
Definition umlviewimageexporter.h:37
UMLViewImageExporter::m_imageURL
QUrl m_imageURL
The URL used to save the image.
Definition umlviewimageexporter.h:36
umlviewimageexportermodel.h