![]() |
VR-Forces 4.0.4 Class Documentation
|
This class was created as a simple way to organize information dialogs. More...

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 QWidget * | informationDialogFor (const DtModelData &d, QWidget *parent=NULL) |
Protected Member Functions | |
| virtual bool | userDefinedAction (DtUserDefinedType iAction, void *usr) |
| virtual QWidget * | createDialog (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 |
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
Default Constructor.
| virtual DtInfoHandler::~DtInfoHandler | ( | ) | [virtual] |
Destructor.
| 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.
QHash<QString, QWidget*> DtInfoHandler::myInfoDialogs [protected] |