![]() |
VR-Forces 4.5 Class Documentation
|
This class will created a dialog from scripted task meta data and send that information to the back-end for the scripted task. More...

Classes | |
| struct | WidgetInfo |
Public Slots | |
| virtual void | updateValidity () |
| Enables or disables the OK button based on the validity of the user's current selections. | |
Public Member Functions | |
| DtScriptedTaskDialog (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtScriptedTaskDialog () |
| virtual bool | editStatement (const std::vector< makVrv::DtSimEntry * > &data, const DtSimStatement *s) |
| Edits the current statement. Return true if the statement can be edited. | |
| virtual void | initializeFromVariables (const QString &description, const std::vector< DtScriptedTaskVariable > &vars, const std::vector< makVrv::DtSimEntry * > &initializeFrom=std::vector< makVrv::DtSimEntry * >()) |
| Initializes dialog from variables without running. | |
| virtual void | setDescription (const QString &) |
| Sets the description for this task. | |
| virtual std::vector < DtScriptedTaskVariable > | convertToVariables () const |
| Converts the dialog settings back to scripted task variables. | |
| virtual DtRwVariableBindings * | convertToVariableBindings () const |
| Converts the dialog settings to variable bindings. The return pointer must be freed. | |
| virtual void | setLocationValid (bool) |
| virtual void | validate () |
| virtual QSize | visibleSize () |
| virtual void | setupFromBoundVariables (const DtRwVariableBindings &) |
| Sets up gui elements from bound variables it can find. | |
| virtual DtRwVariableBindings * | variableBindings () const |
| Returns the variable bindings for the widgets in this dialog. Delete the returned pointer to prevent memory leak. | |
| template<typename T > | |
| void | getWidgetsOfType (std::vector< T > &widgets) const |
| virtual bool | insertMapFocusHandler (DtMapFocusHandler *h, int index) |
| If a dialog has manages map focus handlers, inserts this map focus handler into the chain. | |
| virtual void | setAutoSizeOnShow (bool) |
| virtual bool | autoSizeOnShow () const |
Public Member Functions inherited from makVrf::DtBaseTaskSetDialogInterface | |
| DtBaseTaskSetDialogInterface (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtBaseTaskSetDialogInterface () |
| virtual void | setOKEnabled (bool) |
| Enables/disables OK button. | |
| virtual void | setCancelEnabled (bool) |
| Sets whether or not the Cancel button is enabled. | |
| virtual bool | valid () const |
| Override to return whether or not extension is valid. | |
| int | accepted () const |
| 0 - Closed without pressing cancel or ok 1 - Closed by ok 2 - Closed by cancel | |
| virtual void | setupGui (const std::vector< makVrv::DtSimEntry * > &) |
| Sets up the ok/cancel buttons. | |
Public Member Functions inherited from makVrf::DtTaskSetDialogInterface | |
| DtTaskSetDialogInterface (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtTaskSetDialogInterface () |
| virtual void | connectSignals (const std::vector< makVrv::DtSimEntry * > &) |
| Setup signals to cancel dialog if all objects deleted that this dialog is representing. | |
| virtual void | setSendToRemoteController (bool b) |
| Set to true to send the message immediately to the remote controller given the currently selected entities when the dialog was created. | |
| virtual bool | sendToRemoteController () const |
| virtual void | selectionChanged (const DtUUID &selection) |
| Notify dialog of selection changes from attached dialogs. | |
| virtual void | sendSetRequest (std::vector< DtUUID > names, const DtSetDataRequest &) |
| Sends signal to send out set. | |
| DtVrfTaskSetAction * | initializedAction () const |
| The action this dialog was initialized for. | |
| virtual void | sendTaskRequest (std::vector< DtUUID > names, const DtSimTask &) |
| Sends signal to send out task. | |
| virtual std::vector< DtUUID > | names () const |
| virtual void | setPartOfPlan (int b) |
| 0 - Not part of plan dialog 1 - Part of plan dialog 2 - Part of command widget 3 - Part of embedded entity menu | |
| int | partOfPlan () const |
| virtual void | cancel () |
| Sends out cancel signal. | |
| virtual QWidget * | widget () |
| Returns the widget. | |
| const std::vector < makVrv::DtSimEntry * > & | connectedTo () const |
| virtual void | noObjectsSelected () |
| No-op at this level. | |
Public Member Functions inherited from makVrf::DtCommandDialogExtensionInterface | |
| virtual | ~DtCommandDialogExtensionInterface () |
| virtual bool | initiallyBroadcast () const |
| Whether or not to initially set to broadcast. Default is false. | |
| virtual bool | allowBroadcasting () const |
| Whether or not to allow broadcasting. Default is true. | |
| virtual bool | hasUserEntry () const |
| Returns true if there is user entry. Default is to assume there is. | |
| virtual QString | entitySelectionGroupBoxTitle () const |
| If defined, title for the group box for entity selection on command widget. | |
| virtual void | onCancel ()=0 |
| virtual makVrv::DtUnicode | broadcastTitle () const |
Public Attributes | |
| boost::signal< void(DtVrfFilteredListView *)> | signal_filteredListViewSelectionChanged |
| boost::signal< void(bool, DtTaskSetVariableWidget *)> | signal_topLevelCheckStateChanged |
| QWidget * | myCanvas |
| QVBoxLayout * | myContentLayout |
| QLabel * | myDescription |
| QScrollArea * | myScrollArea |
| QWidget * | myInsideWidget |
| QFrame * | myDescriptionSeparator |
Public Attributes inherited from makVrf::DtBaseTaskSetDialogInterface | |
| QVBoxLayout * | myMasterLayout |
| QHBoxLayout * | myButtonLayout |
| QPushButton * | myOKButton |
| QPushButton * | myCancelButton |
| char | myAccepted |
Protected Types | |
| typedef std::map < DtLocationEntryWidget *, bool > | LocationValid |
Protected Member Functions | |
| virtual void | finishSizing () |
| virtual void | slot_topLevelCheckStateChanged (bool, DtTaskSetVariableWidget *) |
| virtual void | slot_filteredListViewChanged (DtVrfFilteredListView *) |
| virtual void | initializeFromAction (DtVrfTaskSetAction *) |
| Action contains script_id, so, build dialog from that. | |
| virtual void | initializeFromScriptId (const std::string &scriptId) |
| virtual bool | wantsSelectionOfObjectInCommandMode () const |
| Override to return false if, when this task is used as part of a simulation command, it does not want to allow to choose an object to apply the command to. | |
| virtual void | sendRequest () |
| Override to send the set or task request. | |
| virtual QWidget * | contents (const std::vector< makVrv::DtSimEntry * > &data) |
| Creates set dialog contents. Called from setupGui. | |
| virtual void | run (const std::vector< makVrv::DtSimEntry * > &) |
| If no variables acts as immediate task. | |
| virtual void | setupFrom (const std::vector< makVrv::DtSimEntry * > &s) |
| Sets up variables from data. | |
| virtual void | setupStatement (const DtSimStatement *stmt) |
| Sets up the dialog from the scripted task and the variables within. | |
| virtual void | postGuiSetup (const std::vector< makVrv::DtSimEntry * > &data) |
| For dialog sizing. | |
| virtual void | setLocationValid (DtLocationEntryWidget *loca, bool) |
| virtual void | showEvent (QShowEvent *) |
Protected Member Functions inherited from makVrf::DtBaseTaskSetDialogInterface | |
| virtual void | initializeItems (const std::vector< makVrv::DtSimEntry * > &data) |
| Override for dialogs that need item initialization. | |
| virtual void | closeEvent (QCloseEvent *) |
| Figure out if a cancelled signal needs to be sent. | |
| virtual void | hideButtons (bool) |
| No buttons to hide. | |
| virtual void | sendSetRequest (const DtSetDataRequest &) |
| virtual void | sendTaskRequest (const DtSimTask &) |
| virtual void | sendCommandRequest (const DtSimCommandObjectWrapper &) |
| Sends signal to send out command. | |
| virtual void | onOK () |
Protected Member Functions inherited from makVrf::DtTaskSetDialogInterface | |
| virtual void | slot_objectAboutToBeRemoved (makVrv::DtSimObjectEntry &) |
| virtual std::vector< std::string > | commandDialogFiltersFor (const std::vector< makVrv::DtSimEntry * > &data, const DtSimStatement *stmt, int &initialSelection) const |
| If part of a command dialog the filters to use for the command dialog selection. | |
Protected Attributes | |
| DtMapFocusHandlerManager | myMapFocusHandlerManager |
| std::map< std::string, WidgetInfo > | myWidgetVariables |
| DtScriptedTaskMetaData | myScriptedTaskMetaData |
| std::vector < DtScriptedTaskVariable > | myScriptedTaskVariables |
| QString | myDescriptionText |
| LocationValid | myLocationsValid |
| bool | myAutoSizeOnShow |
| makVrv::DtSignalConnectionManager | myConnections |
Additional Inherited Members | |
Protected Slots inherited from makVrf::DtBaseTaskSetDialogInterface | |
| virtual void | onOk () |
| virtual void | onCancel () |
This class will created a dialog from scripted task meta data and send that information to the back-end for the scripted task.
|
protected |
| makVrf::DtScriptedTaskDialog::DtScriptedTaskDialog | ( | makVrv::DtDe & | de, |
| QWidget * | parent, | ||
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
|
virtual |
|
virtual |
Edits the current statement. Return true if the statement can be edited.
Reimplemented from makVrf::DtBaseTaskSetDialogInterface.
|
virtual |
Initializes dialog from variables without running.
|
virtual |
Sets the description for this task.
|
virtual |
Converts the dialog settings back to scripted task variables.
|
virtual |
Converts the dialog settings to variable bindings. The return pointer must be freed.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Sets up gui elements from bound variables it can find.
|
virtual |
Returns the variable bindings for the widgets in this dialog. Delete the returned pointer to prevent memory leak.
|
inline |
|
virtual |
If a dialog has manages map focus handlers, inserts this map focus handler into the chain.
Default is a no-op and will return false (not handled)
Reimplemented from makVrf::DtTaskSetDialogInterface.
|
virtual |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Action contains script_id, so, build dialog from that.
Reimplemented from makVrf::DtTaskSetDialogInterface.
|
protectedvirtual |
|
protectedvirtual |
Override to return false if, when this task is used as part of a simulation command, it does not want to allow to choose an object to apply the command to.
Calls down to logic with method of same name
Reimplemented from makVrf::DtBaseTaskSetDialogInterface.
|
protectedvirtual |
Override to send the set or task request.
Implements makVrf::DtBaseTaskSetDialogInterface.
|
protectedvirtual |
Creates set dialog contents. Called from setupGui.
Implements makVrf::DtBaseTaskSetDialogInterface.
|
protectedvirtual |
If no variables acts as immediate task.
Reimplemented from makVrf::DtBaseTaskSetDialogInterface.
|
protectedvirtual |
Sets up variables from data.
Reimplemented from makVrf::DtBaseTaskSetDialogInterface.
|
protectedvirtual |
Sets up the dialog from the scripted task and the variables within.
Reimplemented from makVrf::DtBaseTaskSetDialogInterface.
|
protectedvirtual |
For dialog sizing.
Reimplemented from makVrf::DtBaseTaskSetDialogInterface.
|
protectedvirtual |
|
protectedvirtual |
|
virtualslot |
Enables or disables the OK button based on the validity of the user's current selections.
| boost::signal<void (DtVrfFilteredListView*)> makVrf::DtScriptedTaskDialog::signal_filteredListViewSelectionChanged |
| boost::signal<void (bool, DtTaskSetVariableWidget*)> makVrf::DtScriptedTaskDialog::signal_topLevelCheckStateChanged |
| QWidget* makVrf::DtScriptedTaskDialog::myCanvas |
| QVBoxLayout* makVrf::DtScriptedTaskDialog::myContentLayout |
| QLabel* makVrf::DtScriptedTaskDialog::myDescription |
| QScrollArea* makVrf::DtScriptedTaskDialog::myScrollArea |
| QWidget* makVrf::DtScriptedTaskDialog::myInsideWidget |
| QFrame* makVrf::DtScriptedTaskDialog::myDescriptionSeparator |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |