#include <cmdlineexportallviewsevent.h>
|
QString | m_imageType |
| The type of the images the views will be exported to. More...
|
|
QUrl | m_directory |
| The url of the directory where the images will be saved. More...
|
|
bool | m_useFolders |
| If tree structure of the views in the document must be created in the target directory. More...
|
|
|
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.
- See also
- UMLViewImageExporterModel
◆ CmdLineExportAllViewsEvent()
CmdLineExportAllViewsEvent::CmdLineExportAllViewsEvent |
( |
const QString & |
imageType, |
|
|
const QUrl & |
directory, |
|
|
const bool |
useFolders |
|
) |
| |
Constructor.
- Parameters
-
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. |
◆ ~CmdLineExportAllViewsEvent()
CmdLineExportAllViewsEvent::~CmdLineExportAllViewsEvent |
( |
| ) |
|
|
virtual |
◆ eventType()
QEvent::Type CmdLineExportAllViewsEvent::eventType |
( |
| ) |
|
|
static |
Returns the type of the event.
- Returns
- event type
◆ exportAllViews()
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.
◆ m_directory
QUrl CmdLineExportAllViewsEvent::m_directory |
|
private |
The url of the directory where the images will be saved.
◆ m_imageType
QString CmdLineExportAllViewsEvent::m_imageType |
|
private |
The type of the images the views will be exported to.
◆ m_useFolders
bool CmdLineExportAllViewsEvent::m_useFolders |
|
private |
If tree structure of the views in the document must be created in the target directory.
◆ type_
const QEvent::Type CmdLineExportAllViewsEvent::type_ |
|
staticprivate |
Initial value:=
std::string Type
Definition: basictypes.h:371
The documentation for this class was generated from the following files: