![]() |
VR-Forces 4.3.1 Class Documentation
|
The DtAskUserQuestionManager will manage dialogs that will ask user questions based upon messages sent from the back-end. More...

Classes | |
| struct | QuestionStruct |
Public Member Functions | |
| DtAskUserQuestionManager (makVrv::DtDe &) | |
| CTOR. | |
| virtual | ~DtAskUserQuestionManager () |
| DTOR. | |
| virtual void | askUserQuestion (makVrv::DtElementID, int questionId) |
| Asks a question of the user based on the entity and question id. | |
| virtual DtAskUserQuestionDialog * | createQuestionDialog (const DtRwUserQuestion &, const QString &entityName) |
| Creates a dialog based on the question supplied. | |
| virtual void | askQuestionsFor (const makVrv::DtSelectionManager::IdSet &) |
| Given the selection set, find all questions that are pertaining to those entities and add them to the list of questions to iterate over to ask for those entities. | |
| virtual void | stopAskingQuestions () |
| Call to stop iterating over questions in the ask questions queue, canceling any current question. | |
| virtual void | askNextQuestion () |
| If there is a question to be asked, asks the next question. | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtAskUserQuestionManager & | instance (makVrv::DtDe &de) |
| Returns instance of the manager. | |
| static void | registerInstance (makVrv::DtDe &de, DtAskUserQuestionManager *) |
| Registers a new instance of this manager. | |
Protected Types | |
| typedef std::map< int, QuestionStruct > | QuestionDialogs |
| typedef std::map < makVrv::DtElementID, QuestionDialogs > | EntityQuestionDialogs |
| typedef std::map < makVrv::DtElementID, std::vector< int > > | PendingQuestionsToAsk |
Protected Member Functions | |
| virtual DtAskUserQuestionDialog * | createDialog (QWidget *parent, const DtRwUserQuestion &question) const |
| Creates the base dialog. Override to provide your own dialog subclass. | |
| virtual void | slot_accepted (DtAskUserQuestionDialog *, int choice) |
| virtual void | slot_rejected (DtAskUserQuestionDialog *) |
| virtual void | cleanupDialogReference (DtAskUserQuestionDialog *) |
| virtual DtString | scriptIdFor (makVrv::DtElementID id, int questionId) const |
| virtual void | slot_onObjectAboutToBeRemoved (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *s) |
| virtual void | processUserQuestionOperation (DtSimMessage *msg) |
| virtual void | cleanupDialogReference (makVrv::DtUniqueID, int questionId, bool deleteDialog=true) |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| EntityQuestionDialogs | myEntityQuestionDialogs |
| makVrv::DtSignalConnectionManager | myConnectionManager |
| PendingQuestionsToAsk | myPendingQuestionsToAsk |
| PendingQuestionsToAsk::iterator | myEntityAnsweringIterator |
The DtAskUserQuestionManager will manage dialogs that will ask user questions based upon messages sent from the back-end.
Answers received by the back-end from users will be on a first come basis, so if multiple users send a response at the sane time, whoever gets there first will be used
|
protected |
|
protected |
|
protected |
| makVrf::DtAskUserQuestionManager::DtAskUserQuestionManager | ( | makVrv::DtDe & | ) |
CTOR.
|
virtual |
DTOR.
|
static |
Returns instance of the manager.
|
static |
Registers a new instance of this manager.
|
virtual |
Asks a question of the user based on the entity and question id.
If the combination does not exist in the object console manager then no question is asked
|
virtual |
Creates a dialog based on the question supplied.
|
virtual |
Given the selection set, find all questions that are pertaining to those entities and add them to the list of questions to iterate over to ask for those entities.
If there is a current list then the current list will be appended to. To stop the current questions in progress call stopAskingQuestions. If other questions for an entity come in after this method is called those questions will not be added to the list
|
virtual |
Call to stop iterating over questions in the ask questions queue, canceling any current question.
|
virtual |
If there is a question to be asked, asks the next question.
Does not stop any questions that are currently being asked
|
protectedvirtual |
Creates the base dialog. Override to provide your own dialog subclass.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |