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

Public Slots

virtual void processDisplayOptions ()
virtual void processFrameRateMonitor ()
virtual void processEmitterBeamOptions ()
virtual void processPuffOptions ()
virtual void processTacticalSmokeOptions ()
virtual void processTransmitterOptions ()
virtual void processToggleFullScreen (bool b)
 Toggles between full screen and normal mode.
virtual void processToggleAnim (bool b)
 Toggle between interaction animations on and off.
virtual void aboutToQuit ()
 This method will be called right before the application quits.
virtual void setDefaultPointHeightOffset (double h)
 Set the default point height offset and emit a signal if different.
virtual void setDefaultLineHeightOffset (double h)
 Set the default route height offset and emit a signal if different.
virtual void processSaveOverlays ()
virtual void processLoadOverlays ()
virtual void processSaveSelectionGroups ()
virtual void processLoadSelectionGroups ()
virtual void processFilePrint ()
 Asks the print handler to print the current area to a single page of paper.
virtual void processFilePrintObjects ()
 Asks the print handler to print the current objects to a single page of paper.
virtual void processFileSaveMapArea ()
 Asks the save map area handler to save the current area to a file.
virtual void processLoadOverlayFile (const QString &file)
 Call down to overlay handler to load specified overlay file.
virtual void processLoadSelectionGroupsFile (const QString &file)
 Call down to selection group save handler to load specified overlay file.
virtual void processToggleFreehandPointEdit (bool b)
- Public Slots inherited from DtEventController
virtual void clearCurrentEvent ()
 Clear all events....
virtual void mouseEvent (QMouseEvent *evnt, const DtPoint &pnt)
virtual void keyboardEvent (QKeyEvent *evnt)
virtual void focusEvent (QEvent *evnt)
virtual void enterEvent (QEvent *evnt)
virtual void leaveEvent (QEvent *evnt)
virtual void dropEvent (QDropEvent *evnt)
virtual void dragEnterEvent (QDragEnterEvent *evnt)
virtual void dragLeaveEvent (QDragLeaveEvent *evnt)
virtual void dragMoveEvent (QDragMoveEvent *evnt)
virtual void symbolsSelected (DtSymbolList *sl)
virtual void selectionUpdated (const QVector< DtModelKey > &)
virtual void selectionInProgress (DtSymbolSelector &)
virtual void selectedModelDataUpdated ()
virtual void symbolRemoved (const DtModelKey &)
virtual void aboutToDraw (QPainter *)
 Called when a map area is about to draw.
virtual void userDefinedAction (DtUserDefinedType iAction, void *usr)
 Generic catchall action.
virtual void mapActivated (DtTMMapArea *)
virtual void initializeEventDlg ()
 Once an event dialog is created, initialize it.
virtual DtEventHandlerhandlerFor (DtEventHandlerType type)
 This routine will create a handler of a specific type if it does not exist or return the existing type if it does.
virtual void tick ()
 Tick routine that will allow handlers (or current handler) to do something on a tick.
virtual void processNotifyCleanup ()
 Sends the DtNotifyCleanup action to the userDefinedAction of the current event handler (if there is one)

Signals

void filenameInUseChanged (const QString &s)
 Signals.
void fullScreenModeChanged (bool)
void defaultPointHeightOffsetChanged (double)
 Sent when the default waypoint height offset has changed.
void defaultLineHeightOffsetChanged (double)
 Sent when the default route height offset has changed.
- Signals inherited from DtEventController
void activated (DtEventHandler *handler)
 Emitted when handlers are activated/deactived.
void deactivated (DtEventHandler *handler)

Public Member Functions

 DtTMAppEventController ()
 Constructor.
virtual ~DtTMAppEventController ()
 Destructor.
virtual void setFullScreenMode (bool b)
 Emits fullScreenModeChange signal if full screen mode has changed as well as sets internal flag.
virtual double defaultPointHeightOffset ()
virtual double defaultLineHeightOffset ()
virtual bool openDatabase (QString db)
 Current no-op, but, could be used to open and close files.
virtual void closeDatabase ()
- Public Member Functions inherited from DtEventController
 DtEventController ()
 Constructor.
virtual ~DtEventController ()
 Destructor.
virtual void connectToMapArea (DtTMMapArea *area)
 Connect this event handler to a map area.
virtual void disconnectFromMapArea (DtTMMapArea *area)
 Disconnect this event handler from a map area.
virtual QList< DtEventHandler * > & defaultHandlers ()
 The default handler list is a list of events that will be executed in the default state NOTE: ordering of handlers count - they execute.
DtEventHandlerinsertDefaultHandler (DtEventHandlerType iType, int iPos)
 Inserts a default handler at the specified position.
virtual DtEventHandleraddDefaultHandler (DtEventHandlerType iType)
 Adds a new handler of the specified type and returns the newly created handler.
virtual DtEventHandleraddDefaultHandler (DtEventHandler *)
 Adds a new handler by handler pointer and returns that pointer.
virtual void removeDefaultHandler (DtEventHandlerType iType)
 Remove default handler by type or by the handler pointer itself.
virtual void removeDefaultHandler (DtEventHandler *)
virtual void setEventHandler (DtEventHandler *)
 Sets the event handler that will be used instead of default handlers Call clearCurrentEvent() to go back to using default handlers to handle events.
virtual bool init ()
 Initialize the controller with default handlers.
virtual bool addDefaultHandlers ()
 Override this routine to install default handlers.
virtual DtEventHandlerFactoryeventHandlerFactory ()
 Returns the event handler factory so handler creators can be added without having to subclass the factory.
virtual void setBaseWindow (DtBaseWindow *win)
 Accessors the owner window of this factory.
virtual DtBaseWindowbaseWindow () const
virtual DtEchelonViewechelonView ()
 Accessor for echelon view (if exists)
virtual const DtTerrainDatabaseterrainDatabase () const
 Stub routine to allow users to return a terrain database more easily from application subclasses.
virtual DtTerrainDatabaseterrainDatabase ()
virtual const DtPaperMapDatabasepaperMapDatabase () const
virtual DtPaperMapDatabasepaperMapDatabase ()
virtual void removeHandlerFor (DtEventHandlerType iType)
 This routine will remove a handler that has already been created, so the next time it is referenced, it will be created anew.
virtual DtEventHandlerType typeFromHandler (DtEventHandler *)
 Returns the handler type based on the handler.
DtEventHandlercurrentEvent ()
 Returns the current active event.
virtual bool passKeyEventToMapArea (QKeyEvent *) const
 By default returns false.
virtual bool canExitApplication ()
 Return true if application can be safely closed.
- 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.

Static Public Member Functions

static DtEventControllercreate ()
 Static creator function.
- Static Public Member Functions inherited from DtEventController
static void globalAddHandler (DtEventHandlerType type, DtHandlerCreate fcn, void *usr=NULL, bool appLevel=false)
 If appLevel is true, will only add or replace an existing handle if it is an app level controller.
static void globalRemoveHandler (DtEventHandlerType type)

Protected Member Functions

virtual bool appLevelController ()
 Returns true.

Protected Attributes

bool myFullScreenMode
double myDefaultPointHeightOffset
double myDefaultLineHeightOffset
- Protected Attributes inherited from DtEventController
bool myUsingEvent
QList< DtTMMapArea * > myMapAreaList
QList< DtEventHandler * > myDefaultHandlerList
QHash< int, DtEventHandler * > myTypedDefaultHandlerList
DtEventHandlermyCurrentHandler
DtEventHandlerFactory myEventHandlerFactory
DtBaseWindowmyBaseWindow
QHash< int, DtEventHandler * > myHandlers
- Protected Attributes inherited from DtArchivableObject
DtArchivermyArchiver

Additional Inherited Members

- Static Protected Attributes inherited from DtEventController
static QHash< int,
DtHandlerCreateInfo
myGlobalHandlers

Constructor & Destructor Documentation

DtTMAppEventController::DtTMAppEventController ( )

Constructor.

virtual DtTMAppEventController::~DtTMAppEventController ( )
virtual

Destructor.

Member Function Documentation

virtual void DtTMAppEventController::setFullScreenMode ( bool  b)
virtual

Emits fullScreenModeChange signal if full screen mode has changed as well as sets internal flag.

NOTE: To change the mode, call processToggleFullScreen not setFullScreenMode.

virtual double DtTMAppEventController::defaultPointHeightOffset ( )
virtual
virtual double DtTMAppEventController::defaultLineHeightOffset ( )
virtual
virtual bool DtTMAppEventController::openDatabase ( QString  db)
virtual

Current no-op, but, could be used to open and close files.

virtual void DtTMAppEventController::closeDatabase ( )
virtual

Reimplemented in DtTerrainAppEventController.

virtual void DtTMAppEventController::processDisplayOptions ( )
virtualslot
virtual void DtTMAppEventController::processFrameRateMonitor ( )
virtualslot
virtual void DtTMAppEventController::processEmitterBeamOptions ( )
virtualslot
virtual void DtTMAppEventController::processPuffOptions ( )
virtualslot
virtual void DtTMAppEventController::processTacticalSmokeOptions ( )
virtualslot
virtual void DtTMAppEventController::processTransmitterOptions ( )
virtualslot
virtual void DtTMAppEventController::processToggleFullScreen ( bool  b)
virtualslot

Toggles between full screen and normal mode.

If switching to full screen mode, will make the currently active window the full screen window, and calls down to that window to setup full screen mode. All other windows will be hidden. If already in full screen mode, does nothing. Note that if we are in full screen mode all view items will be disabled

virtual void DtTMAppEventController::processToggleAnim ( bool  b)
virtualslot

Toggle between interaction animations on and off.

virtual void DtTMAppEventController::aboutToQuit ( )
virtualslot

This method will be called right before the application quits.

Connected to the Qt aboutToQuit() signal

Reimplemented in DtTerrainAppEventController.

virtual void DtTMAppEventController::setDefaultPointHeightOffset ( double  h)
virtualslot

Set the default point height offset and emit a signal if different.

virtual void DtTMAppEventController::setDefaultLineHeightOffset ( double  h)
virtualslot

Set the default route height offset and emit a signal if different.

virtual void DtTMAppEventController::processSaveOverlays ( )
virtualslot
virtual void DtTMAppEventController::processLoadOverlays ( )
virtualslot
virtual void DtTMAppEventController::processSaveSelectionGroups ( )
virtualslot
virtual void DtTMAppEventController::processLoadSelectionGroups ( )
virtualslot
virtual void DtTMAppEventController::processFilePrint ( )
virtualslot

Asks the print handler to print the current area to a single page of paper.

virtual void DtTMAppEventController::processFilePrintObjects ( )
virtualslot

Asks the print handler to print the current objects to a single page of paper.

virtual void DtTMAppEventController::processFileSaveMapArea ( )
virtualslot

Asks the save map area handler to save the current area to a file.

virtual void DtTMAppEventController::processLoadOverlayFile ( const QString &  file)
virtualslot

Call down to overlay handler to load specified overlay file.

virtual void DtTMAppEventController::processLoadSelectionGroupsFile ( const QString &  file)
virtualslot

Call down to selection group save handler to load specified overlay file.

virtual void DtTMAppEventController::processToggleFreehandPointEdit ( bool  b)
virtualslot
void DtTMAppEventController::filenameInUseChanged ( const QString &  s)
signal

Signals.

void DtTMAppEventController::fullScreenModeChanged ( bool  )
signal
void DtTMAppEventController::defaultPointHeightOffsetChanged ( double  )
signal

Sent when the default waypoint height offset has changed.

void DtTMAppEventController::defaultLineHeightOffsetChanged ( double  )
signal

Sent when the default route height offset has changed.

static DtEventController* DtTMAppEventController::create ( )
static

Static creator function.

Reimplemented from DtEventController.

Reimplemented in DtTerrainAppEventController, and DtEntityEditorAppController.

virtual bool DtTMAppEventController::appLevelController ( )
protectedvirtual

Returns true.

Reimplemented from DtEventController.

Member Data Documentation

bool DtTMAppEventController::myFullScreenMode
protected
double DtTMAppEventController::myDefaultPointHeightOffset
protected
double DtTMAppEventController::myDefaultLineHeightOffset
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)