umbrello API Documentation

CmdLineExportAllViewsEvent Class Reference

This class provides an event that is posted to the UMLApp when the "export all views" option was set in the command line. More...

#include <cmdlineexportallviewsevent.h>

List of all members.

Public Member Functions

 CmdLineExportAllViewsEvent (const QString &imageType, const KURL &directory, const bool useFolders)
 Constructor for CmdLineExportAllViewsEvent.
virtual ~CmdLineExportAllViewsEvent ()
 Destructor for CmdLineExportAllViewsEvent.
void exportAllViews ()
 Exports all the views using UMLViewImageExporterModel, prints the errors occurred in the error output and sends a close event to the application to finish it.

Static Public Member Functions

static int getType ()
 Returns the type of the event.


Detailed Description

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

Definition at line 28 of file cmdlineexportallviewsevent.h.


Constructor & Destructor Documentation

CmdLineExportAllViewsEvent::CmdLineExportAllViewsEvent const QString &  imageType,
const KURL &  directory,
const bool  useFolders
 

Constructor for CmdLineExportAllViewsEvent.

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.

Definition at line 31 of file cmdlineexportallviewsevent.cpp.

virtual CmdLineExportAllViewsEvent::~CmdLineExportAllViewsEvent  )  [inline, virtual]
 

Destructor for CmdLineExportAllViewsEvent.

Definition at line 49 of file cmdlineexportallviewsevent.h.


Member Function Documentation

int CmdLineExportAllViewsEvent::getType  )  [static]
 

Returns the type of the event.

Definition at line 27 of file cmdlineexportallviewsevent.cpp.

Referenced by UMLApp::customEvent().

void CmdLineExportAllViewsEvent::exportAllViews  ) 
 

Exports all the views using UMLViewImageExporterModel, prints the errors occurred in the error output and sends a close event to the application to finish it.

To export the views, it uses the attributes set when the event was created.

Definition at line 38 of file cmdlineexportallviewsevent.cpp.

Referenced by UMLApp::customEvent().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:04 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003