![]() |
VR-Forces 4.0.4 Class Documentation
|

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 QWidget * | createDialog (QWidget *w) |
| Creates the dialog associated with this handler (if there is one) | |
| virtual QWidget * | dialog (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 DtBaseWindow * | baseWindow () 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. | |
Protected Attributes | |
| QWidget * | myEventDlg |
| DtEventController * | myEventController |
| bool | mySuspended |
Default Constructor.
| virtual DtEventHandler::~DtEventHandler | ( | ) | [virtual] |
Destructor.
| virtual void DtEventHandler::setEventController | ( | DtEventController * | ) | [virtual] |
| virtual void DtEventHandler::setInitialSelection | ( | const QVector< DtModelKey > & | d | ) | [virtual] |
| virtual void DtEventHandler::showDialog | ( | bool | b | ) | [virtual] |
Reimplemented in DtCreationHandler, DtTerrainViewOptionsHandler, DtFileDialogHandler, DtEntityEditorCategoriesHandler, DtEntityEditorCreateHandler, DtEntityEditorForcesHandler, DtEntityEditorEditMenuHandler, DtPrintHandler, DtSaveMapAreaHandler, DtEntityEditorCheckSMSHandler, and DtEntityEditorNewHandler.
| virtual QWidget* DtEventHandler::createDialog | ( | QWidget * | w | ) | [virtual] |
Creates the dialog associated with this handler (if there is one)
Reimplemented in DtFileDialogHandler, DtCreateControlObjectHandler, DtAboutBoxHandler, DtPluginDisplayHandler, DtEntityEditorCategoriesHandler, DtEntityEditorCreateHandler, DtEntityEditorForcesHandler, DtEntityEditorEditMenuHandler, DtPrintHandler, DtTerrainFeaturesHandler, DtDisplayOptionsHandler, DtSaveMapAreaHandler, DtTerrainPaperMapOptionsHandler, DtEditToolbarsHandler, DtEntityEditorCheckSMSHandler, DtTerrainDatabaseInformationHandler, DtTerrainViewOptionsHandler, and DtEntityEditorNewHandler.
| 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 | ||
| ) | [virtual, slot] |
| virtual bool DtEventHandler::keyboardEvent | ( | DtTMMapArea * | , |
| QKeyEvent * | evnt | ||
| ) | [virtual, slot] |
Reimplemented in DtCreationHandler, DtVertexEditorHandler, DtCircleResizingHandler, DtNavigationHandler, DtFullScreenHandler, and DtMapAreaSelectionHandler.
| virtual bool DtEventHandler::symbolsSelected | ( | DtTMMapArea * | area, |
| DtSymbolList * | sl | ||
| ) | [virtual, slot] |
| virtual bool DtEventHandler::selectionUpdated | ( | DtTMMapArea * | area, |
| const QVector< DtModelKey > & | d | ||
| ) | [virtual, slot] |
| virtual bool DtEventHandler::selectionInProgress | ( | DtTMMapArea * | area, |
| DtSymbolSelector & | d | ||
| ) | [virtual, slot] |
| virtual bool DtEventHandler::focusEvent | ( | DtTMMapArea * | , |
| QEvent * | evnt | ||
| ) | [virtual, slot] |
| virtual bool DtEventHandler::enterEvent | ( | DtTMMapArea * | area, |
| QEvent * | evnt | ||
| ) | [virtual, slot] |
Reimplemented in DtCreationHandler.
| virtual bool DtEventHandler::leaveEvent | ( | DtTMMapArea * | area, |
| QEvent * | evnt | ||
| ) | [virtual, slot] |
| virtual bool DtEventHandler::dropEvent | ( | DtTMMapArea * | area, |
| QDropEvent * | evnt | ||
| ) | [virtual, slot] |
Reimplemented in DtDragDropHandler.
| virtual bool DtEventHandler::dragEnterEvent | ( | DtTMMapArea * | area, |
| QDragEnterEvent * | evnt | ||
| ) | [virtual, slot] |
Reimplemented in DtDragDropHandler.
| virtual bool DtEventHandler::dragMoveEvent | ( | DtTMMapArea * | area, |
| QDragMoveEvent * | evnt | ||
| ) | [virtual, slot] |
Reimplemented in DtDragDropHandler.
| virtual bool DtEventHandler::dragLeaveEvent | ( | DtTMMapArea * | area, |
| QDragLeaveEvent * | evnt | ||
| ) | [virtual, slot] |
Reimplemented in DtDragDropHandler.
| virtual bool DtEventHandler::userDefinedAction | ( | DtUserDefinedType | iAction, |
| void * | usr | ||
| ) | [virtual, slot] |
| virtual bool DtEventHandler::aboutToDraw | ( | DtTMMapArea * | area, |
| QPainter * | |||
| ) | [virtual, slot] |
Reimplemented in DtNavigationHandler.
| virtual bool DtEventHandler::mapActivated | ( | DtTMMapArea * | area | ) | [virtual, slot] |
| virtual bool DtEventHandler::selectedModelDataUpdated | ( | DtTMMapArea * | area | ) | [virtual, slot] |
| virtual bool DtEventHandler::symbolAdded | ( | DtTMMapArea * | area, |
| const DtModelKey & | |||
| ) | [virtual, slot] |
| virtual bool DtEventHandler::symbolRemoved | ( | DtTMMapArea * | area, |
| const DtModelKey & | |||
| ) | [virtual, slot] |
| virtual bool DtEventHandler::disconnecting | ( | DtTMMapArea * | area | ) | [virtual, slot] |
Called when a map is being disconnect from an event handler.
Reimplemented in DtCompassHandler, and DtMapAreaSelectionHandler.
| virtual bool DtEventHandler::connecting | ( | DtTMMapArea * | area | ) | [virtual, slot] |
Called when a map is being connected to an event handler.
Reimplemented in DtCompassHandler, and DtMapAreaSelectionHandler.
| virtual void DtEventHandler::tick | ( | ) | [virtual, slot] |
Reimplemented in DtDragDropHandler, and DtTerrainNavigationHandler.
| virtual void DtEventHandler::clearDialog | ( | ) | [virtual, slot] |
QWidget* DtEventHandler::myEventDlg [protected] |
DtEventController* DtEventHandler::myEventController [protected] |
bool DtEventHandler::mySuspended [protected] |
Referenced by setSuspended(), and suspended().