umbrello 2.34.70-5524f40e1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
#include <umlviewimageexporter.h>
Public Member Functions | |
UMLViewImageExporter (UMLScene *scene) | |
virtual | ~UMLViewImageExporter () |
void | exportView () |
KUrl | getImageURL () const |
QString | getImageMimeType () const |
Private Member Functions | |
bool | getParametersFromUser () |
bool | prepareExport () |
void | prepareFileDialog (UMLFileDialog *fileDialog) |
Private Attributes | |
UMLScene * | m_scene |
The scene to export. More... | |
KUrl | m_imageURL |
The URL used to save the image. More... | |
QString | m_imageMimeType |
The mime type used to save the image. More... | |
Exports the scene as an image. This class takes care of asking the user the needed parameters and then exports the scene.
|
explicit |
|
virtual |
Destructor for UMLViewImageExporter
void UMLViewImageExporter::exportView | ( | ) |
Shows a save dialog to the user to get the needed parameters and then exports the view. If the selected file already exists, an overwrite confirmation dialog is shown. If the user doesn't want to overwrite the file, the save dialog is shown again. The dialog remembers values between calls (in the same application instance, although it's not persistent between Umbrello executions).
The status bar shows an information message until the export finishes.
If something went wrong while exporting, an error dialog is shown to the user with the error message explaining the problem that happened.
|
inline |
|
inline |
|
private |
Shows a save file dialog to the user to get the parameters used to export the view and updates the attributes with the parameters got.
|
private |
Shows a save file dialog to the user to get the parameters used to export the scene. If the selected file already exists, an overwrite confirmation dialog is shown. If the user doesn't want to overwrite the file, the save dialog is shown again.
|
private |
Prepares the save file dialog. Sets the mime type filter, sensible default values...
fileDialog | The dialog to prepare. |
|
private |
The mime type used to save the image.
|
private |
The URL used to save the image.
|
private |
The scene to export.