VR-Forces 4.1 Class Documentation
List of all members | Public Slots | Signals | Public Member Functions | Protected Attributes
DtEventHandler Class Reference
Inheritance diagram for DtEventHandler:
Inheritance graph
[legend]

Public Slots

virtual bool mouseEvent (DtTMMapArea *, QMouseEvent *evnt, const DtPoint &pnt)
virtual bool keyboardEvent (DtTMMapArea *, QKeyEvent *evnt)
virtual bool symbolsSelected (DtTMMapArea *area, DtSymbolList *sl)
virtual bool selectionUpdated (DtTMMapArea *area, const QVector< DtModelKey > &d)
virtual bool selectionInProgress (DtTMMapArea *area, DtSymbolSelector &d)
virtual bool focusEvent (DtTMMapArea *, QEvent *evnt)
virtual bool enterEvent (DtTMMapArea *area, QEvent *evnt)
virtual bool leaveEvent (DtTMMapArea *area, QEvent *evnt)
virtual bool dropEvent (DtTMMapArea *area, QDropEvent *evnt)
virtual bool dragEnterEvent (DtTMMapArea *area, QDragEnterEvent *evnt)
virtual bool dragMoveEvent (DtTMMapArea *area, QDragMoveEvent *evnt)
virtual bool dragLeaveEvent (DtTMMapArea *area, QDragLeaveEvent *evnt)
virtual bool userDefinedAction (DtUserDefinedType iAction, void *usr)
virtual bool aboutToDraw (DtTMMapArea *area, QPainter *)
virtual bool mapActivated (DtTMMapArea *area)
virtual bool selectedModelDataUpdated (DtTMMapArea *area)
virtual bool symbolAdded (DtTMMapArea *area, const DtModelKey &)
virtual bool symbolRemoved (DtTMMapArea *area, const DtModelKey &)
virtual bool disconnecting (DtTMMapArea *area)
 Called when a map is being disconnect from an event handler.
virtual bool connecting (DtTMMapArea *area)
 Called when a map is being connected to an event handler.
virtual void tick ()
virtual void clearDialog ()

Signals

void closedDialog ()

Public Member Functions

 DtEventHandler ()
 Default Constructor.
virtual ~DtEventHandler ()
 Destructor.
virtual void setEventController (DtEventController *)
virtual void setInitialSelection (const QVector< DtModelKey > &d)
virtual void showDialog (bool b)
virtual QWidgetcreateDialog (QWidget *w)
 Creates the dialog associated with this handler (if there is one)
virtual QWidgetdialog (bool createIfMissing=true, QWidget *parent=NULL)
 If createIfMissing is true, will create the dialog based on the supplied parent window, else will simply return the dialog pointer.
virtual void reset ()
virtual DtBaseWindowbaseWindow () const
 Returns the base window of the event controller.
virtual void activate ()
 Called when this event handler first becomes active.
virtual void deactivate ()
 Called when this event handler is removed as the current event.
virtual void setBaseWindow (DtBaseWindow *w)
 Called when the base window is set for the event controller.
virtual void init ()
 Called when the handler is first created, initialize context.
void setSuspended (bool)
 Set when something wants to suspend some aspect of this handler without deactivating it.
bool suspended () const
virtual void dialogDestroyedEvent ()
 Called when dialog is destroyed.
- Public Member Functions inherited from DtArchivableObject
 DtArchivableObject (QString name, DtArchivableObjectCreator fcn)
 This constructor will add this object to the archivable object factory.
 DtArchivableObject (QString name)
 DtArchivableObject ()
virtual ~DtArchivableObject ()
virtual QString name () const
DtArchiverarchiver ()
 Returns the archiver of this object.
virtual void read (QTextStream &s)
 Reads/writes archiver.
virtual void write (QTextStream &s)
virtual void setLevel (int i)
virtual int level () const
virtual DtArchivableObjectclone ()
 Allows for cloning of this object.

Protected Attributes

QWidgetmyEventDlg
DtEventControllermyEventController
bool mySuspended
- Protected Attributes inherited from DtArchivableObject
DtArchivermyArchiver

Constructor & Destructor Documentation

DtEventHandler::DtEventHandler ( )

Default Constructor.

virtual DtEventHandler::~DtEventHandler ( )
virtual

Destructor.

Member Function Documentation

virtual void DtEventHandler::setEventController ( DtEventController )
virtual
virtual void DtEventHandler::setInitialSelection ( const QVector< DtModelKey > &  d)
virtual
virtual void DtEventHandler::showDialog ( bool  b)
virtual
virtual QWidget* DtEventHandler::createDialog ( QWidget w)
virtual
virtual QWidget* DtEventHandler::dialog ( bool  createIfMissing = true,
QWidget parent = NULL 
)
virtual

If createIfMissing is true, will create the dialog based on the supplied parent window, else will simply return the dialog pointer.

virtual void DtEventHandler::reset ( )
virtual
virtual DtBaseWindow* DtEventHandler::baseWindow ( ) const
virtual

Returns the base window of the event controller.

virtual void DtEventHandler::activate ( )
virtual

Called when this event handler first becomes active.

Reimplemented in DtCreateControlObjectHandler, DtCreationHandler, DtEntityEditorCheckSMSHandler, and DtTerrainCreatePointHandler.

virtual void DtEventHandler::deactivate ( )
virtual

Called when this event handler is removed as the current event.

Reimplemented in DtCreateControlObjectHandler, and DtCreationHandler.

virtual void DtEventHandler::setBaseWindow ( DtBaseWindow w)
virtual

Called when the base window is set for the event controller.

Reimplemented in DtTerrainViewOptionsHandler, DtTerrainFeaturesHandler, and DtTerrainPaperMapOptionsHandler.

virtual void DtEventHandler::init ( )
virtual

Called when the handler is first created, initialize context.

Reimplemented in DtPluginDisplayHandler.

void DtEventHandler::setSuspended ( bool  b)
inline

Set when something wants to suspend some aspect of this handler without deactivating it.

It is up to the handler as to how to deal with this information

References mySuspended.

bool DtEventHandler::suspended ( ) const
inline

References mySuspended.

virtual void DtEventHandler::dialogDestroyedEvent ( )
virtual

Called when dialog is destroyed.

Reimplemented in DtCreateControlObjectHandler.

void DtEventHandler::closedDialog ( )
signal
virtual bool DtEventHandler::mouseEvent ( DtTMMapArea ,
QMouseEvent *  evnt,
const DtPoint pnt 
)
virtualslot

Reimplemented in DtCreateLineHandler.

virtual bool DtEventHandler::keyboardEvent ( DtTMMapArea ,
QKeyEvent *  evnt 
)
virtualslot
virtual bool DtEventHandler::symbolsSelected ( DtTMMapArea area,
DtSymbolList sl 
)
virtualslot
virtual bool DtEventHandler::selectionUpdated ( DtTMMapArea area,
const QVector< DtModelKey > &  d 
)
virtualslot
virtual bool DtEventHandler::selectionInProgress ( DtTMMapArea area,
DtSymbolSelector d 
)
virtualslot
virtual bool DtEventHandler::focusEvent ( DtTMMapArea ,
QEvent *  evnt 
)
virtualslot
virtual bool DtEventHandler::enterEvent ( DtTMMapArea area,
QEvent *  evnt 
)
virtualslot

Reimplemented in DtCreationHandler.

virtual bool DtEventHandler::leaveEvent ( DtTMMapArea area,
QEvent *  evnt 
)
virtualslot
virtual bool DtEventHandler::dropEvent ( DtTMMapArea area,
QDropEvent *  evnt 
)
virtualslot

Reimplemented in DtDragDropHandler.

virtual bool DtEventHandler::dragEnterEvent ( DtTMMapArea area,
QDragEnterEvent *  evnt 
)
virtualslot

Reimplemented in DtDragDropHandler.

virtual bool DtEventHandler::dragMoveEvent ( DtTMMapArea area,
QDragMoveEvent *  evnt 
)
virtualslot

Reimplemented in DtDragDropHandler.

virtual bool DtEventHandler::dragLeaveEvent ( DtTMMapArea area,
QDragLeaveEvent *  evnt 
)
virtualslot

Reimplemented in DtDragDropHandler.

virtual bool DtEventHandler::userDefinedAction ( DtUserDefinedType  iAction,
void *  usr 
)
virtualslot
virtual bool DtEventHandler::aboutToDraw ( DtTMMapArea area,
QPainter *   
)
virtualslot

Reimplemented in DtNavigationHandler.

virtual bool DtEventHandler::mapActivated ( DtTMMapArea area)
virtualslot
virtual bool DtEventHandler::selectedModelDataUpdated ( DtTMMapArea area)
virtualslot
virtual bool DtEventHandler::symbolAdded ( DtTMMapArea area,
const DtModelKey  
)
virtualslot
virtual bool DtEventHandler::symbolRemoved ( DtTMMapArea area,
const DtModelKey  
)
virtualslot
virtual bool DtEventHandler::disconnecting ( DtTMMapArea area)
virtualslot

Called when a map is being disconnect from an event handler.

Reimplemented in DtCompassHandler, and DtMapAreaSelectionHandler.

virtual bool DtEventHandler::connecting ( DtTMMapArea area)
virtualslot

Called when a map is being connected to an event handler.

Reimplemented in DtCompassHandler, and DtMapAreaSelectionHandler.

virtual void DtEventHandler::tick ( )
virtualslot

Reimplemented in DtDragDropHandler.

virtual void DtEventHandler::clearDialog ( )
virtualslot

Member Data Documentation

QWidget* DtEventHandler::myEventDlg
protected
DtEventController* DtEventHandler::myEventController
protected
bool DtEventHandler::mySuspended
protected

Referenced by setSuspended(), and suspended().


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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)