![]() |
VR-Forces 4.10 Class Documentation
|

Public Types | |
| typedef std::map< std::string, QAction * > | MappedActions |
Public Member Functions | |
| DtVrfCreateMenu (makVrv::DtDe &, const QString &name, QWidget *parent=0, DtVrfMenu *baseCreateMenu=0, bool useGlobalMenuManager=false, DtCreateMenuFlags=DtCreateMenuCreateAll) | |
| CTOR. More... | |
| virtual | ~DtVrfCreateMenu () |
| virtual void | setupMenu (DtVrfMenu *, const makVrv::DtMenuConfiguration &initialCreateMenuConfiguration=makVrv::DtMenuConfiguration()) |
| Call to set up menu based upon the given menu structure. More... | |
| virtual void | setMenuBuilder (DtCreateMenu *) |
| Manages connections on behalf of the specified create menu. More... | |
| virtual bool | signalCreation () const |
| virtual void | slot_createObject (const DtVrfObjectManipulationHandlerBaseClass::ObjectManipulationData &) |
| virtual void | slot_creationStopped () |
| Called when creation has stopped. Disconnect signals. More... | |
| virtual DtEntityType | nameToType (const QString &) const |
| Given a name of a menu item (e.g. M1A2) return the entity type that represents that. More... | |
| virtual bool | triggerAction (const DtEntityMapperKey &key) |
| Given an entity key, trigger that action to create it. Return true if action is found. More... | |
| virtual const MappedActions & | mappedActions () const |
Public Member Functions inherited from makVrf::DtAssembledMenu | |
| DtAssembledMenu (const QString &title, QWidget *parent, makVrv::DtDe &) | |
| CTOR. More... | |
| virtual | ~DtAssembledMenu () |
| DTOR. More... | |
| const DtConfigurableMenuAssembler & | assembler () const |
Public Attributes | |
| boost::signals2::signal< void(const DtVrfObjectManipulationHandlerBaseClass::ObjectManipulationData &)> | signal_createObject |
| Signal sent when creation manager signals that an item has been created. More... | |
| boost::signals2::signal< void(const DtEntityMapperKey &, int force, const std::string &keywords)> | signal_creatingObject |
| Signal sent when an object has started to be created from this menu. More... | |
Public Attributes inherited from makVrf::DtAssembledMenu | |
| boost::signals2::signal< void(DtAssembledMenu *)> | signal_preAssembleMenu |
| boost::signals2::signal< void(DtAssembledMenu *)> | signal_postAssembleMenu |
Protected Types | |
| typedef std::pair < DtCreateObjectAction *, QAction * > | ObjectActionData |
| typedef std::map< std::string, ObjectActionData > | TempObjectActions |
Protected Slots | |
| virtual void | onCreateObjectFromMenu (const DtEntityMapperKey &, int, const std::string &) |
| virtual void | enableMenu () |
| Enables/disables menu based on currently selected back-end status. More... | |
| virtual void | createMenuDestroyed () |
Protected Member Functions | |
| virtual void | setupConnections () |
| virtual void | buildCreationMenu (const DtList &list, DtConfigurableMenuAssembler &assemblers, DtSubMenuConfiguration &configurations, const makVrv::DtMenuPath &rootr) |
| virtual void | addAdditionalItems (DtConfigurableMenuAssembler &assemblers, DtSubMenuConfiguration &configurations) |
| Add additional items from the create menu. More... | |
| virtual void | clearMenu () |
| virtual void | enableActions (const QList< QAction * > &) |
| Enables actions that are leaf actions (those that create items) More... | |
| virtual void | destroyActions (const QList< QAction * > &) |
| Iterates over and destroys all the actions (clearing the menu) More... | |
| virtual bool | canCreate (QAction *) const |
| bool | removePaletteItems () const |
| bool | removeExtraCreateItems () const |
| virtual void | slot_createMenuLoaded (const DtScenarioExplorer &) |
| Removes menu items added from previous menu then recreates based on new model set. More... | |
| virtual void | recreateMenu () |
| Recreate the menu from internal structures. More... | |
| virtual void | slot_backendUpdated (const DtVrfBackendState &, int) |
| virtual void | mergeChangesFrom (const DtSubMenuConfiguration &, DtSubMenuConfiguration &) |
| Merges the changes from the source into the configuration. More... | |
| virtual std::string | cleanEntry (const std::string &) const |
| Cleans up menu entry to remove special menu characters. More... | |
| virtual DtCreateObjectAction * | createObjectActionFor (const std::string &menuId, const QString &menuName, const DtEntityMapperKey &key, const std::string &keywords, const std::string &menuIcon, const std::string &toolTip) const |
| Given the entity mapper key, create the object creation menu item. If no item registered, use default of DtCreateObjectAction. More... | |
| virtual void | addMappedActionsFrom (QMenu *) |
| virtual bool | updateSubMenuVisibilityState (QMenu *) |
| Hides all menus that have no visible children. More... | |
Protected Attributes | |
| QMenu * | myCreateMenu |
| DtCreateMenu * | myBuilder |
| bool | myCreating |
| MappedActions | myMappedActions |
| DtCreateMenuFlags | myMenuFlags |
| bool | myUseGlobalMenuManager |
| TempObjectActions | myTempObjectActions |
| DtVrfMenu * | myBaseCreateMenu |
Protected Attributes inherited from makVrf::DtAssembledMenu | |
| makVrv::DtDe & | myDe |
| makVrv::DtSignalConnectionManager | myConnectionManager |
| DtConfigurableMenuAssembler | myAssembler |
| typedef std::map<std::string, QAction*> makVrf::DtVrfCreateMenu::MappedActions |
|
protected |
|
protected |
| makVrf::DtVrfCreateMenu::DtVrfCreateMenu | ( | makVrv::DtDe & | , |
| const QString & | name, | ||
| QWidget * | parent = 0, |
||
| DtVrfMenu * | baseCreateMenu = 0, |
||
| bool | useGlobalMenuManager = false, |
||
| DtCreateMenuFlags | = DtCreateMenuCreateAll |
||
| ) |
CTOR.
The useGlobalMenuManager flag should only be set for the first instance of the create menu, not for create menus as used on other dialogs
|
virtual |
|
virtual |
Call to set up menu based upon the given menu structure.
If initialCreateMenuConfiguration is specified, used as the default build menu. Good for ordering higher level groups (Aggregates, Ground, etc.)
|
virtual |
Manages connections on behalf of the specified create menu.
Will call methods in the parent create menu as need be. Also sets member variable to the parent create menu builder
|
virtual |
|
virtual |
|
virtual |
Called when creation has stopped. Disconnect signals.
|
virtual |
Given a name of a menu item (e.g. M1A2) return the entity type that represents that.
|
virtual |
Given an entity key, trigger that action to create it. Return true if action is found.
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Add additional items from the create menu.
|
protectedvirtual |
Enables actions that are leaf actions (those that create items)
|
protectedvirtual |
Iterates over and destroys all the actions (clearing the menu)
|
inlineprotected |
References makVrf::DtCreateMenuRemovePaletteItems.
|
inlineprotected |
References makVrf::DtCreateMenuRemoveExtraCreateItems.
|
protectedvirtual |
Removes menu items added from previous menu then recreates based on new model set.
|
protectedvirtual |
Recreate the menu from internal structures.
|
protectedvirtual |
|
protectedvirtual |
Merges the changes from the source into the configuration.
Will need to expand paths to be what create menu is expecting.
|
protectedvirtual |
Cleans up menu entry to remove special menu characters.
|
protectedvirtual |
Given the entity mapper key, create the object creation menu item. If no item registered, use default of DtCreateObjectAction.
|
protectedvirtual |
Hides all menus that have no visible children.
|
protectedvirtualslot |
|
protectedvirtualslot |
Enables/disables menu based on currently selected back-end status.
|
protectedvirtualslot |
| boost::signals2::signal<void (const DtVrfObjectManipulationHandlerBaseClass::ObjectManipulationData&)> makVrf::DtVrfCreateMenu::signal_createObject |
Signal sent when creation manager signals that an item has been created.
Only emits this signal if this menu issued the create message
| boost::signals2::signal<void (const DtEntityMapperKey&, int force, const std::string& keywords)> makVrf::DtVrfCreateMenu::signal_creatingObject |
Signal sent when an object has started to be created from this menu.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |