![]() |
VR-Forces 5.0.1 Developer's Guide
|
This menu is added to the right click menu, the entites menu and the plan dialog in order to allow the tasking or setting of an embedded entity from the context of the host entity.

Static Public Member Functions | |
| static DtEmbeddedEntitiesMenu & | instance (makVrv::DtDe &) |
| static DtEmbeddedEntitiesMenu * | menuInstance (makVrv::DtDe &, int flags=0) |
Static Public Member Functions inherited from makVrf::DtConfigurableMenu | |
| static bool | hasMenuPath (const makVrv::DtMenuConfiguration &menus, const makVrv::DtMenuPath &sourcePath, const std::string &item, makVrv::DtMenuPath &foundPath) |
Public Attributes | |
| boost::signals2::signal< void(std::vector < DtUUID > names, const DtSimTask &)> | signal_planTaskCreated |
Public Attributes inherited from makVrf::DtConfigurableMenu | |
| boost::signals2::signal< void(DtConfigurableMenu *)> | signal_menuRecreated |
| boost::signals2::signal< void(QAction *)> | signal_validateMenuItem |
Protected Slots | |
| virtual void | onAboutToShow () |
Protected Member Functions | |
| virtual void | slot_onInfoCacheUpdated (const DtObjectType &updatedType) |
| virtual void | resolveContext (DtObjectType &objType, DtUUID &uuid, bool &isHomogeneous) |
| virtual void | setActionsEnabled (QMenu *, bool b) |
Protected Member Functions inherited from makVrf::DtConfigurableMenu | |
| virtual void | initMenuItems (makVrv::DtDe &de) |
| DtConfigurableMenuAssembler & | assembler () |
| DtSubMenuConfiguration & | configuration () |
| virtual void | createMenuConfiguration (makVrv::DtDe &) |
Protected Attributes | |
| DtObjectType | myHostObjectType |
| DtUUID | myHost |
| int | myHostPlanPart |
| bool | myHostContextIsHomogeneous |
| QMenu * | myMenu |
| int | myPartOfPlanDialog |
| makVrv::DtSelectionManager::IdSet | myPlanEntitySet |
| int | myCachedEmbeddedEntitiesSize |
| int | myFlags |
| DtConfigurableMenuAssembler * | myMenuAssembler |
| DtSubMenuConfiguration * | myMenuConfiguration |
Protected Attributes inherited from makVrf::DtConfigurableMenu | |
| DtConfigurableMenuAssembler | myAssembler |
| DtSubMenuConfiguration | myConfiguration |
| bool | myInitialized |
| makVrv::DtSignalConnectionManager | myConnections |
Protected Attributes inherited from makVrv::DtMenu | |
| DtDe & | myDe |
| std::string | myMenuIdName |
| makVrf::DtEmbeddedEntitiesMenu::DtEmbeddedEntitiesMenu | ( | makVrv::DtDe & | , |
| const std::string & | menuIdName = DtEmbeddedEntitiesMenuId, |
||
| int | flags = 0 |
||
| ) |
Connects DtEmbeddedEntitiesListRequestor::signal_InfoCacheUpdated to onAboutToShow().
Constructor
|
virtual |
Destructor.
|
virtual |
Creates a new QMenu and caches the pointer in myMenu. Connects the aboutToShow() signal from the QMenu to the aboutToShow() function in this class.
Implements makVrv::DtMenu.
Reimplemented in makVrf::DtRightClickEmbeddedEntitiesMenu.
|
virtual |
Returns theMenuConfiguration. If it is null when this is called a new DtSubMenuConfiguration is allocated and assigned to theMenuConfiguration.
Reimplemented from makVrf::DtConfigurableMenu.
|
virtual |
Returns theMenuAssembler. If it is null when this is called a new DtConfigurableMenuAssembler is allocated and assigned to theMenuAssembler.
Reimplemented from makVrf::DtConfigurableMenu.
|
virtual |
Builds the submenus for each embedded entity and puts a DtEmbeddedEntityTaskMenu and DtEmbeddedEntitySetMenu under each one. The DtEmbeddedEntitiesListRequestor is used to look up the embedded entities. If partOfPlanDialog() returns 1, myPlanEntitySet is used as the source and otherwise the currently selected entity is the source. When the submenus are created, their signal_planTaskCreated is connected to slot_planTaskCreated. Note that regardless of whether a task or set is selected, they both generate a task - either a DtEmbeddedTaskForwardTask or an DtEmbeddedSetForwardTask.
|
virtual |
Calls clear() on myMenu. Goes through the DtSubMenuConfiguration and finds each path DtConfigurableMenuAssembler and deletes each menu. Finally, calls setDeleteReferences(true) and cleanup() on the assembler.
|
virtual |
|
virtual |
|
virtual |
Called by DtEditEntityPlanWidget::setupMenuForPlanDialog to setup the source for the embedded entities.
|
static |
Finds the instance of DtEmbeddedEntitiesMenuId registered with the DtDe and allocates it if it isn't found.
|
static |
Return a new copy, not the registered copy. It will do this by calling the newInstance method on the currently registered version. newInstance needs to be overridden by subclasses to return their own new instance.
|
virtual |
Creates a DtEmbeddedEntitiesMenu and returns the pointer.
|
virtual |
Connected to the signal_planTaskCreated of each of the DtEmbeddedEntityVrfSetMenu and DtEmbeddedEntityVrfTaskMenu instances.
|
virtual |
|
protectedvirtual |
Disconnects itself from the requestor's signal and calls clearMenu() and buildMenu() if the updated type is the one in context.
|
protectedvirtual |
Gets the currently selected object type and name, and (assuming a multiple-object context) whether or not all object types are homogeneous.
|
protectedvirtual |
|
protectedvirtualslot |
Checks that the object for which the menu is currently based on is the object currently in context. If not, rebuilds the menu.
| boost::signals2::signal<void (std::vector<DtUUID> names, const DtSimTask&)> makVrf::DtEmbeddedEntitiesMenu::signal_planTaskCreated |
Connected to DtEditEntityPlanWidget::slot_addTaskRequest by DtEditEntityPlanWidget::setupMenuForPlanDialog to add the DtEmbeddedTaskForwardTask or DtEmbeddedSetForwardTask to the plan.
|
protected |
Name & type of the object that was in context when the menu is created, along with any other context data relevant from the last time the menu was built.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |