VR-Forces 4.0.4 Class Documentation
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes
DtInfoHandler Class Reference

This class was created as a simple way to organize information dialogs. More...

Inheritance diagram for DtInfoHandler:
Inheritance graph
[legend]

List of all members.

Public Slots

virtual void removeInfoDialog (QObject *d)
 Called when an info dialog is closed, this routine will remove the dialog from the internal dialogs (myInfoDialogs) list.

Public Member Functions

 DtInfoHandler ()
 Default Constructor.
virtual ~DtInfoHandler ()
 Destructor.
virtual void showInfo (const DtModelData &)
 Shows an info panel for the specified model data.
virtual QWidgetinformationDialogFor (const DtModelData &d, QWidget *parent=NULL)

Protected Member Functions

virtual bool userDefinedAction (DtUserDefinedType iAction, void *usr)
virtual QWidgetcreateDialog (QWidget *parent, const DtModelData &d)=0
 Pure overrides to implement class.
virtual void initDialog (QWidget *info, const DtModelData &)=0
virtual void initConnections (QWidget *info)=0
virtual void disconnectConnections (QWidget *info)=0
virtual QString keyFor (const DtModelData &d) const
virtual const char * eventSignalName ()=0

Protected Attributes

QHash< QString, QWidget * > myInfoDialogs

Detailed Description

This class was created as a simple way to organize information dialogs.

In an of itself it does nothing, but, subclasses can implement pure methods to create and manage info dialogs. To properly be removed from the internal list this class creates, the info dialog must emit a closing(this) signal when it wants to be removed


Constructor & Destructor Documentation

Default Constructor.

virtual DtInfoHandler::~DtInfoHandler ( ) [virtual]

Destructor.


Member Function Documentation

virtual void DtInfoHandler::showInfo ( const DtModelData ) [virtual]

Shows an info panel for the specified model data.

This routine will create a new info dialog, make some Qt connections to make sure it updates when items change on the screen and show it. To extend the functionality of the default entity info dialog create a subclass of this dialog and set the creator function in the pvdFactory instance. Due to the nature of the connections made to update this dialog it is not recommended that this method be overridden and not called by the subclass.

virtual QWidget* DtInfoHandler::informationDialogFor ( const DtModelData d,
QWidget parent = NULL 
) [virtual]
virtual void DtInfoHandler::removeInfoDialog ( QObject d) [virtual, slot]

Called when an info dialog is closed, this routine will remove the dialog from the internal dialogs (myInfoDialogs) list.

virtual bool DtInfoHandler::userDefinedAction ( DtUserDefinedType  iAction,
void *  usr 
) [protected, virtual]

Reimplemented from DtEventHandler.

virtual QWidget* DtInfoHandler::createDialog ( QWidget parent,
const DtModelData d 
) [protected, pure virtual]

Pure overrides to implement class.

Implemented in DtTerrainInfoHandler.

virtual void DtInfoHandler::initDialog ( QWidget info,
const DtModelData  
) [protected, pure virtual]

Implemented in DtTerrainInfoHandler.

virtual void DtInfoHandler::initConnections ( QWidget info) [protected, pure virtual]

Implemented in DtTerrainInfoHandler.

virtual void DtInfoHandler::disconnectConnections ( QWidget info) [protected, pure virtual]

Implemented in DtTerrainInfoHandler.

virtual QString DtInfoHandler::keyFor ( const DtModelData d) const [protected, virtual]

Reimplemented in DtTerrainInfoHandler.

virtual const char* DtInfoHandler::eventSignalName ( ) [protected, pure virtual]

Implemented in DtTerrainInfoHandler.


Member Data Documentation

QHash<QString, QWidget*> DtInfoHandler::myInfoDialogs [protected]

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)