GuiDiagramController Class Reference

#include <guidiagramcontroller.h>

Inheritance diagram for GuiDiagramController:

DiagramController ElementDocController AttributeDocController DocController AbstractController MvcBase FsaDiagramController List of all members.

Public Member Functions

 GuiDiagramController (JavaVM *jvm, QObject *parent=0)
 GuiDiagramController (AbstractModel *diagram, JavaVM *jvm, QObject *parent=0)

Protected Member Functions

virtual bool saveDocToFile (const QString &filename) const
virtual bool initDocFromFile (const QString &filename)

Detailed Description

Warning: This controller was designed to be placed in its own thread, such as by using ControllerThreadHost<GuiDiagramController>. This is because another Java environment will be created in it and the current thread will be attached to the JVM. This allows the lengthy processing of some controller events (especially when CIDER is used) to run without freezing the GUI. Having the controller run in another thread is natural anyway, as events are posted to it (but NOT waited for) and then the controller posts events to the model and the views if and when it chooses to do so.


Constructor & Destructor Documentation

GuiDiagramController::GuiDiagramController ( JavaVM *  jvm,
QObject *  parent = 0 
)

Constructs a diagram controller that contains GUI specific code.

GuiDiagramController::GuiDiagramController ( AbstractModel doc,
JavaVM *  jvm,
QObject *  parent = 0 
)

Constructs a diagram controller that contains GUI specific code.


Member Function Documentation

bool GuiDiagramController::saveDocToFile ( const QString &  filename  )  const [protected, virtual]

Re-implemented to add graphical error reporting with QMessageBox.

Reimplemented from DocController.

bool GuiDiagramController::initDocFromFile ( const QString &  filename  )  [protected, virtual]

Re-implemented to add graphical error reporting with QMessageBox.


The documentation for this class was generated from the following files:
Generated on Mon Jul 30 09:46:52 2007 for Digest by  doxygen 1.5.2