![]() |
VR-Forces Developer's Guide
|
One of the main interface concepts presented to the user is the task and set dialogs.
The task and set dialogs can either be configured in code and associated with a particular operation, or can be constructed as part of a scripted task. The Add Set example shows how to add one by code and the Add Task shows how to add a task dialog either by code or by scripted task.
The more complicated approach of creating a new task or set for an entity is by code. Using scripted tasks allows for gui design by variable selection or Qt Designer, and execution via the lua scripting language. Knowledge of C++ is not necessary to add a task or set in this manner. If, however, the dialog you need to create has more complexity than can be achieved using the scripted task dialog editor, then, you can use C++ to design and fill in your task. The base class for all task and set dialogs is makVrf::DtTaskSetDialogInterface, of which there are some general starter subclasses for dialogs, makVrf::DtBaseComboTaskSetDialog, makVrf::DtBaseFilteredListViewTaskSetDialog. These dialogs are general single use dialogs that are used as a foundation for adding other widgets to. The flow of creating a new task is as follows (note that the same is generally true for sets as well):
Additionally, you might also want to replace an existing task dialog with one of your own to provide additional functionality. Note that for dialogs that are created only from scripted tasks (not code) you will need to edit the scripted task to change the dialog. For those that are registered and created in code
You can subclass the existing dialog and creator and replace the creator in the makVrf::DtVrfTaskSetDialogManager (see Modify Task)