umbrello 2.39.1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
#include <cmdlineexportallviewsevent.h>
Public Member Functions | |
CmdLineExportAllViewsEvent (const QString &imageType, const QUrl &directory, const bool useFolders) | |
virtual | ~CmdLineExportAllViewsEvent () |
void | exportAllViews () |
Static Public Member Functions | |
static QEvent::Type | eventType () |
Private Attributes | |
QString | m_imageType |
The type of the images the views will be exported to. | |
QUrl | m_directory |
The url of the directory where the images will be saved. | |
bool | m_useFolders |
If tree structure of the views in the document must be created in the target directory. | |
Static Private Attributes | |
static const QEvent::Type | type_ |
This class provides an event that is posted to the UMLApp when the "export all views" option was set in the command line. Once the Qt main loop begins, the event is processed.
The processing made in UMLApp is execute the exportAllViews method in the event. This method exports all the views using UMLViewImageExporterModel and then finishes the application using a close event.
CmdLineExportAllViewsEvent::CmdLineExportAllViewsEvent | ( | const QString & | imageType, |
const QUrl & | directory, | ||
const bool | useFolders ) |
Constructor.
imageType | The type of the images the views will be exported to. |
directory | The url of the directory where the images will be saved. |
useFolders | If the tree structure of the views in the document must be created in the target directory. |
|
virtual |
Destructor for CmdLineExportAllViewsEvent
|
static |
Returns the type of the event.
void CmdLineExportAllViewsEvent::exportAllViews | ( | ) |
Exports all the views using UMLViewImageExporterModel, prints the errors occurred in the error output and quits the application. To export the views, it uses the attributes set when the event was created.
|
private |
The url of the directory where the images will be saved.
|
private |
The type of the images the views will be exported to.
|
private |
If tree structure of the views in the document must be created in the target directory.
|
staticprivate |