VR-Forces 4.0.4 Class Documentation
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtTMEventController Class Reference
Inheritance diagram for DtTMEventController:
Inheritance graph
[legend]

List of all members.

Public Slots

virtual void processShowHelp ()
 Shows help system.
virtual void processWebLink ()
 Launches web page in browser to show product version information.
virtual void processLink (const QString &)
virtual void processAboutBox ()
 About box handling.
virtual void processPluginDialog ()
 Plugin dialog handling.
virtual void processResetToGlobalView ()
virtual void processNavigationAction (int)
virtual void startCreation (const DtEntityMapperKey &obj, int frc, DtShowDialogType type=WhenStartCreate)
virtual bool stopCreate ()
 Stops the current creation process. Returns true if was currently in the creations process, false if not.
virtual void editSelection ()
 Calls editObject() with the model data to edit.
virtual void processDeleteAction ()
virtual void processEditToolbars ()
 Calls down to the DtEditToolbarsHandler to edit user defined toolbars.
virtual void processEditObject (const DtModelKey &key)
 Starts to edit the object with the given key.
virtual void editObject (DtModelData *data)
virtual void editObject (const QString &name, const DtEntityMapperKey &key, const QVector< DtPoint > &points, int force)

Signals

void creationComplete (bool finalPointSelected)
 Sent when createComplete() method is called.

Public Member Functions

 DtTMEventController ()
 Constructor.
virtual ~DtTMEventController ()
 Destructor.
virtual bool addDefaultHandlers ()
 Override this routine to install default handlers.
virtual void createComplete (bool finalPointSelected)
 Received when a creation controller is complete with its creation.
virtual void addHandlerMapping (int kind, int handler)
 Adds a new mapping to the handler kinds.
virtual DtEventHandlerType handlerForKind (int kind) const
virtual void infoDialogCreated (const DtModelKey &key, QWidget *dialog)
 Routines that are called when an info dialog is created or destroyed.
virtual void infoDialogDestroyed (const DtModelKey &key, QWidget *dialog)

Static Public Member Functions

static DtTMAppEventControllerappController ()
static DtEventControllercreate ()
 Static creator function.

Protected Member Functions

virtual DtCreationHandlerstartCreate (DtEventHandlerType type, const DtEntityMapperKey &obj, int frc, DtShowDialogType dialogType=WhenStartCreate)
 Object creation routines.
virtual bool passKeyEventToMapArea (QKeyEvent *) const
 Returns true if the current event handler is a creation handler and the key press event is the escape key.

Protected Attributes

DtIntDictionary myHandlersForKind
 Array that keeps track of objects kinds and handlers that are used to create them.

Constructor & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

Override this routine to install default handlers.

Called after initialize handlers. Default handlers installed in this class are: DtDragDropHandler DtNavigationHandler DtDeleteHandler DtEchelonViewHandler If you want to install your owner version of the these handlers, make sure to override the creation of that type in your constructor of your subclass as follows:

myEventHandlerFactory.addHandlerCreate(DtEchelonViewHandlerType, MyEchelonViewHandler::create);

Reimplemented from DtEventController.

Reimplemented in DtTerrainEventController.

virtual void DtTMEventController::createComplete ( bool  finalPointSelected) [virtual]

Received when a creation controller is complete with its creation.

This is currently only received when overlay objects are created. Will emit creationComplete() signal. finalPointSelected will be true if the user ended the creation with a right click

virtual void DtTMEventController::addHandlerMapping ( int  kind,
int  handler 
) [virtual]

Adds a new mapping to the handler kinds.

Replaces existing handler if exists

virtual DtEventHandlerType DtTMEventController::handlerForKind ( int  kind) const [virtual]
virtual void DtTMEventController::infoDialogCreated ( const DtModelKey key,
QWidget dialog 
) [virtual]

Routines that are called when an info dialog is created or destroyed.

The model key of the data that is responsible for showing the dialog is supplied. By default these routines do nothing

virtual void DtTMEventController::infoDialogDestroyed ( const DtModelKey key,
QWidget dialog 
) [virtual]

Static creator function.

Reimplemented from DtEventController.

Reimplemented in DtTerrainEventController.

virtual void DtTMEventController::processShowHelp ( ) [virtual, slot]

Shows help system.

virtual void DtTMEventController::processWebLink ( ) [virtual, slot]

Launches web page in browser to show product version information.

virtual void DtTMEventController::processLink ( const QString &  ) [virtual, slot]
virtual void DtTMEventController::processAboutBox ( ) [virtual, slot]

About box handling.

virtual void DtTMEventController::processPluginDialog ( ) [virtual, slot]

Plugin dialog handling.

virtual void DtTMEventController::processResetToGlobalView ( ) [virtual, slot]
virtual void DtTMEventController::processNavigationAction ( int  ) [virtual, slot]
virtual void DtTMEventController::startCreation ( const DtEntityMapperKey obj,
int  frc,
DtShowDialogType  type = WhenStartCreate 
) [virtual, slot]
virtual bool DtTMEventController::stopCreate ( ) [virtual, slot]

Stops the current creation process. Returns true if was currently in the creations process, false if not.

virtual void DtTMEventController::editSelection ( ) [virtual, slot]

Calls editObject() with the model data to edit.

virtual void DtTMEventController::processDeleteAction ( ) [virtual, slot]
virtual void DtTMEventController::processEditToolbars ( ) [virtual, slot]

Calls down to the DtEditToolbarsHandler to edit user defined toolbars.

virtual void DtTMEventController::processEditObject ( const DtModelKey key) [virtual, slot]

Starts to edit the object with the given key.

virtual void DtTMEventController::editObject ( DtModelData data) [virtual, slot]
virtual void DtTMEventController::editObject ( const QString &  name,
const DtEntityMapperKey key,
const QVector< DtPoint > &  points,
int  force 
) [virtual, slot]
void DtTMEventController::creationComplete ( bool  finalPointSelected) [signal]

Sent when createComplete() method is called.

virtual DtCreationHandler* DtTMEventController::startCreate ( DtEventHandlerType  type,
const DtEntityMapperKey obj,
int  frc,
DtShowDialogType  dialogType = WhenStartCreate 
) [protected, virtual]

Object creation routines.

virtual bool DtTMEventController::passKeyEventToMapArea ( QKeyEvent *  ) const [protected, virtual]

Returns true if the current event handler is a creation handler and the key press event is the escape key.

Reimplemented from DtEventController.


Member Data Documentation

Array that keeps track of objects kinds and handlers that are used to create them.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)