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

- Main Page
- Related Pages
- Modules
- 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
14 class UMLScene;
15 class UMLFileDialog;
16
22 class UMLViewImageExporter
23{
24 public:
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
33 private:
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:66
UMLViewImageExporter
Definition: umlviewimageexporter.h:23
UMLViewImageExporter::~UMLViewImageExporter
virtual ~UMLViewImageExporter()
Definition: umlviewimageexporter.cpp:46
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:93
UMLViewImageExporter::getParametersFromUser
bool getParametersFromUser()
Definition: umlviewimageexporter.cpp:129
UMLViewImageExporter::prepareFileDialog
void prepareFileDialog(UMLFileDialog *fileDialog)
Definition: umlviewimageexporter.cpp:163
UMLViewImageExporter::exportView
void exportView()
Definition: umlviewimageexporter.cpp:64
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