VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions
makVrf::DtRightClickEmbeddedEntitiesMenu Class Reference

This subclass is registered with the right click menu. More...

Inheritance diagram for makVrf::DtRightClickEmbeddedEntitiesMenu:
Inheritance graph
[legend]

Public Member Functions

 DtRightClickEmbeddedEntitiesMenu (makVrv::DtDe &de)
- Public Member Functions inherited from makVrf::DtEmbeddedEntitiesMenu
 DtEmbeddedEntitiesMenu (makVrv::DtDe &, const std::string &menuIdName=DtEmbeddedEntitiesMenuId)
 Connects DtEmbeddedEntitiesListRequestor::signal_InfoCacheUpdated to onAboutToShow().
virtual ~DtEmbeddedEntitiesMenu ()
 Destructor.
virtual DtSubMenuConfigurationmenuConfiguration ()
 Returns theMenuConfiguration.
virtual
DtConfigurableMenuAssembler
menuAssembler ()
 Returns theMenuAssembler.
virtual void buildMenu ()
 Builds the submenus for each embedded entity and puts a DtEmbeddedEntityTaskMenu and DtEmbeddedEntitySetMenu under each one.
virtual void clearMenu ()
 Calls clear() on myMenu.
virtual void setPlanEntitySet (const makVrv::DtSelectionManager::IdSet &set)
 Called by DtEditEntityPlanWidget::setupMenuForPlanDialog to setup the source for the embedded entities.
virtual DtEmbeddedEntitiesMenunewInstance ()
 Creates a DtEmbeddedEntitiesMenu and returns the pointer.
virtual void slot_planTaskCreated (const DtSimTask &task)
 Connected to the signal_planTaskCreated of each of the DtEmbeddedEntityVrfSetMenu and DtEmbeddedEntityVrfTaskMenu instances.
virtual void setPartOfPlanDialog (int partOfPlanDialog)
virtual int partOfPlanDialog ()
- Public Member Functions inherited from makVrf::DtConfigurableMenu
 DtConfigurableMenu (makVrv::DtDe &, const std::string &className)
 CTOR.
virtual ~DtConfigurableMenu ()
 DTOR.
virtual void registerMenu (makVrv::DtMenu *customMenu)
 Use to register your own complex menu object.
virtual void registerMenuItem (makVrv::DtMenuItem *customMenuItem)
 Use to register your own complex menu item object.
virtual void createSimpleMenu (std::string menuText, makVrv::DtMenuPath menuIdPath, int weight=-1)
virtual void createSimpleMenuAfter (std::string menuText, makVrv::DtMenuPath menuIdPath, makVrv::DtMenuPath afterIdPath)
virtual void createSimpleMenuBefore (std::string menuText, makVrv::DtMenuPath menuIdPath, makVrv::DtMenuPath beforeIdPath)
virtual void createSimpleMenuItem (std::string itemText, makVrv::DtMenuPath itemIdPath, DtSimpleMenuItemAction *action, void *usr=NULL, int weight=-1)
virtual void createSimpleMenuItemAfter (std::string itemText, makVrv::DtMenuPath itemIdPath, makVrv::DtMenuPath afterIdPath, DtSimpleMenuItemAction *action, void *usr=NULL)
virtual void createSimpleMenuItemBefore (std::string itemText, makVrv::DtMenuPath itemIdPath, makVrv::DtMenuPath beforeIdPath, DtSimpleMenuItemAction *action, void *usr=NULL)
virtual void mergeMenu (makVrv::DtQtMenuAssembler &assembler, makVrv::DtMenuConfiguration &configuration)
 Merges in the assembler and configuration into the supplied assembler and configuration.
virtual void mergeMenu (makVrv::DtQtMenuAssembler &assembler)
 Merges in the assembler into the supplied assembler.
virtual void mergeMenu (makVrv::DtMenuConfiguration &configuration)
 Merges in the configuration into the supplied configuration. This merges all the menu paths together.
- Public Member Functions inherited from makVrv::DtMenu
 DtMenu (DtDe &de, const std::string &menuIdName)
 CTOR.
virtual ~DtMenu ()
 DTOR.
virtual const std::string & menuIdName () const
 Get the menu id name, the menu id name is not the same thing as the visible menu text.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Protected Member Functions

virtual QMenucreateMenu (makVrv::DtDe &de, QWidget *parent)
 Creates a new QMenu and caches the pointer in myMenu.
- Protected Member Functions inherited from makVrf::DtEmbeddedEntitiesMenu
virtual void slot_onInfoCacheUpdated (const DtObjectType &updatedType)
 Disconnects itself from the requestor's signal and calls clearMenu() and buildMenu() if the updated type is the one in context.
virtual void resolveContext (DtObjectType &objType, DtUUID &uuid, bool &isHomogeneous)
 Gets the currently selected object type and name, and (assuming a multiple-object context) whether or not all object types are homogeneous.
virtual void setActionsEnabled (QMenu *, bool b)
- Protected Member Functions inherited from makVrf::DtConfigurableMenu
virtual void initMenuItems (makVrv::DtDe &de)
DtConfigurableMenuAssemblerassembler ()
DtSubMenuConfigurationconfiguration ()
virtual void createMenuConfiguration (makVrv::DtDe &)
 Creates the menu configuration by creating the assembler and adding menu items.

Additional Inherited Members

- Static Public Member Functions inherited from makVrf::DtEmbeddedEntitiesMenu
static DtEmbeddedEntitiesMenuinstance (makVrv::DtDe &)
 Finds the instance of DtEmbeddedEntitiesMenuId registered with the DtDe and allocates it if it isn't found.
static DtEmbeddedEntitiesMenumenuInstance (makVrv::DtDe &)
 Return a new copy, not the registered copy.
- Public Attributes inherited from makVrf::DtEmbeddedEntitiesMenu
boost::signal< void(std::vector
< DtUUID > names, const
DtSimTask &)> 
signal_planTaskCreated
 Connected to DtEditEntityPlanWidget::slot_addTaskRequest by DtEditEntityPlanWidget::setupMenuForPlanDialog to add the DtEmbeddedTaskForwardTask or DtEmbeddedSetForwardTask to the plan.
- Protected Slots inherited from makVrf::DtEmbeddedEntitiesMenu
virtual void onAboutToShow ()
 Checks that the object for which the menu is currently based on is the object currently in context.
- Protected Attributes inherited from makVrf::DtEmbeddedEntitiesMenu
DtObjectType myHostObjectType
 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.
DtUUID myHost
int myHostPlanPart
bool myHostContextIsHomogeneous
QMenumyMenu
int myPartOfPlanDialog
makVrv::DtSelectionManager::IdSet myPlanEntitySet
int myCachedEmbeddedEntitiesSize
- Static Protected Attributes inherited from makVrf::DtEmbeddedEntitiesMenu
static
DtConfigurableMenuAssembler
theMenuAssembler
static DtSubMenuConfigurationtheMenuConfiguration

Detailed Description

This subclass is registered with the right click menu.

Constructor & Destructor Documentation

makVrf::DtRightClickEmbeddedEntitiesMenu::DtRightClickEmbeddedEntitiesMenu ( makVrv::DtDe de)

Member Function Documentation

virtual QMenu* makVrf::DtRightClickEmbeddedEntitiesMenu::createMenu ( makVrv::DtDe ,
QWidget *  parent 
)
protectedvirtual

Creates a new QMenu and caches the pointer in myMenu.

Connects the aboutToShow() signal from the QMenu to the aboutToShow() function in this class.

Returns
The menu that was created

Reimplemented from makVrf::DtEmbeddedEntitiesMenu.


The documentation for this class was generated from the following file:

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)