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

Class used in right click menu. Returns previously created instance of Create Menu. More...

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

Public Member Functions

 DtRightClickCreateMenu (makVrv::DtDe &de)
virtual ~DtRightClickCreateMenu ()
- Public Member Functions inherited from makVrf::DtCreateMenu
 DtCreateMenu (makVrv::DtDe &, const QString &createName=DtCreateMenuId)
 CTOR.
virtual ~DtCreateMenu ()
 DTOR.
virtual void setUseGlobalMenuManager (bool)
 The useGlobalMenuManager should only be used for the first instance of the create menu.
virtual bool useGlobalMenuManager () const
virtual DtCreateMenunewInstance ()
virtual DtCreateMenuclone () const
 Returns a duplicate of this menu.
virtual DtCreateMenuduplicate (QMenu *&, QWidget *parent, makVrf::DtMenu *menu=0)
 If menu is specified, uses that rather than scenario default.
void setTearOffsEnabled (bool b)
virtual void setBaseCreateMenu (makVrf::DtMenu *)
virtual DtEntityType nameToType (const QString &) const
 Given a name of a menu item (e.g. M1A2) return the entity type that represents that.
virtual bool triggerAction (const DtEntityMapperKey &key)
 Given an entity key, trigger that action to create it. Return true if action is found.
bool tearOffsEnabled () const
virtual void setSignalCreation (bool)
 Set to true to signal creation rather than creating immediately. Will send boost signal_createObject signal if true.
bool signalCreation () const
const AdditionalItemsadditionalItems () const
 Returns items that are scheduled to be added to new create menus.
AdditionalItemsadditionalItems ()
virtual void setCreateObjectActionCreatorFor (const DtEntityType &, DtCreateObjectActionCreator *)
 Add/replace the object action creator for the specified entity mapper key.
virtual
DtCreateObjectActionCreator
createObjectActionCreatorFor (const DtEntityType &) const
 Return the object action creator for the specified type.
const
DtVrfCreateMenu::MappedActions
mappedActions () const
virtual bool removePaletteItems () const
virtual void setRemovePaletteItems (bool b)
 When creating the menu, set to true to remove the "Entity Palette..." and other palette related items item.
virtual DtSubMenuConfigurationmenuConfiguration ()
 Returns the configuration for the menu to be used in the master mode.
virtual
DtConfigurableMenuAssembler
menuAssembler ()
 Returns the configuration for the menu to be used in the master mode. May be effected directly.
virtual void addItemToCreate (const makVrv::DtMenuPath &path, const DtEntityMapperKey &key, const DtString &keywords="", const DtString &menuIcon="")
 Routines to add items to the menu to create.
virtual void removeItemToCreate (const makVrv::DtMenuPath &)
 Call to remove an additional item to create.
virtual void addItemToCreateBefore (const makVrv::DtMenuPath &path, const makVrv::DtMenuPath &before, const DtEntityMapperKey &key, const DtString &keywords="", const DtString &menuIcon="")
 Same as above, except adds before specified path.
virtual void addItemToCreateAfter (const makVrv::DtMenuPath &path, const makVrv::DtMenuPath &after, const DtEntityMapperKey &key, const DtString &keywords="", const DtString &menuIcon="")
 Same as above, except adds after specified path.
- 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)
 Build a menu.
- Protected Member Functions inherited from makVrf::DtCreateMenu
virtual void createMenuConfiguration (makVrv::DtDe &de)
 Called to initially create the menu configuration.
virtual void slot_onCreateObject (const DtVrfObjectManipulationHandlerBaseClass::ObjectManipulationData &)
- Protected Member Functions inherited from makVrf::DtConfigurableMenu
virtual void initMenuItems (makVrv::DtDe &de)
DtConfigurableMenuAssemblerassembler ()
DtSubMenuConfigurationconfiguration ()

Protected Attributes

DtCreateMenumyCreateMenu
- Protected Attributes inherited from makVrf::DtCreateMenu
bool myTearOffsEnabled
AdditionalItems myAdditionalItems
bool mySignalCreation
ObjectActionCreators myObjectActionCreators
bool myRemovePaletteItems
makVrf::DtMenumyBaseCreateMenu
bool myUseGlobalMenuManager
- Protected Attributes inherited from makVrf::DtConfigurableMenu
DtConfigurableMenuAssembler myAssembler
DtSubMenuConfiguration myConfiguration
bool myInitialized
- Protected Attributes inherited from makVrv::DtMenu
DtDemyDe
std::string myMenuIdName

Additional Inherited Members

- Public Types inherited from makVrf::DtCreateMenu
typedef std::vector
< AdditionalItem
AdditionalItems
typedef
DtOrderedEntityTypeList
< DtCreateObjectActionCreator * > 
ObjectActionCreators
- Static Public Member Functions inherited from makVrf::DtCreateMenu
static DtCreateMenuinstance (makVrv::DtDe &)
static DtCreateMenumenuInstance (makVrv::DtDe &)
 Return a new copy, not the registered copy.
- Public Attributes inherited from makVrf::DtCreateMenu
boost::signal< void(const
DtVrfObjectManipulationHandlerBaseClass::ObjectManipulationData &)> 
signal_createObject
- Static Protected Attributes inherited from makVrf::DtCreateMenu
static
DtConfigurableMenuAssembler
theMenuAssembler
 Variables used to store initial menu configuration.
static DtSubMenuConfigurationtheMenuConfiguration

Detailed Description

Class used in right click menu. Returns previously created instance of Create Menu.

Constructor & Destructor Documentation

makVrf::DtRightClickCreateMenu::DtRightClickCreateMenu ( makVrv::DtDe de)
virtual makVrf::DtRightClickCreateMenu::~DtRightClickCreateMenu ( )
virtual

Member Function Documentation

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

Build a menu.

Reimplemented from makVrf::DtCreateMenu.

Member Data Documentation

DtCreateMenu* makVrf::DtRightClickCreateMenu::myCreateMenu
protected

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)