class DtVrfCreateMenu
- Related Examples
-
|
| virtual void | setupConnections () |
| |
| virtual void | buildCreationMenu (const DtList &list, DtConfigurableMenuAssembler &assemblers, DtSubMenuConfiguration &configurations, const makVrv::DtMenuPath &rootr) |
| |
| virtual void | addAdditionalItems (DtConfigurableMenuAssembler &assemblers, DtSubMenuConfiguration &configurations) |
| |
| virtual void | clearMenu () |
| |
| virtual void | enableActions (const QList< QAction * > &) |
| |
| virtual void | destroyActions (const QList< QAction * > &) |
| |
| virtual bool | canCreate (QAction *) const |
| |
| bool | removePaletteItems () const |
| |
| bool | removeExtraCreateItems () const |
| |
| virtual void | slot_createMenuLoaded (const DtScenarioExplorer &) |
| |
| virtual void | recreateMenu () |
| |
| virtual void | slot_backendUpdated (const DtVrfBackendState &, int) |
| |
| virtual void | mergeChangesFrom (const DtSubMenuConfiguration &, DtSubMenuConfiguration &) |
| |
| virtual std::string | cleanEntry (const std::string &) const |
| |
| 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 |
| |
| virtual void | addMappedActionsFrom (QMenu *) |
| |
| virtual bool | updateSubMenuVisibilityState (QMenu *) |
| |
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 makVrf::DtVrfCreateMenu::~DtVrfCreateMenu |
( |
| ) |
|
|
overridevirtual |
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 void makVrf::DtVrfCreateMenu::setMenuBuilder |
( |
DtCreateMenu * |
| ) |
|
|
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 bool makVrf::DtVrfCreateMenu::signalCreation |
( |
| ) |
const |
|
virtual |
| virtual void makVrf::DtVrfCreateMenu::slot_creationStopped |
( |
| ) |
|
|
virtual |
Called when creation has stopped. Disconnect signals.
| virtual DtEntityType makVrf::DtVrfCreateMenu::nameToType |
( |
const QString & |
| ) |
const |
|
virtual |
Given a name of a menu item (e.g. M1A2) return the entity type that represents that.
Given an entity key, trigger that action to create it. Return true if action is found.
| virtual const MappedActions& makVrf::DtVrfCreateMenu::mappedActions |
( |
| ) |
const |
|
virtual |
| virtual void makVrf::DtVrfCreateMenu::setupConnections |
( |
| ) |
|
|
protectedvirtual |
Add additional items from the create menu.
| virtual void makVrf::DtVrfCreateMenu::clearMenu |
( |
| ) |
|
|
protectedvirtual |
| virtual void makVrf::DtVrfCreateMenu::enableActions |
( |
const QList< QAction * > & |
| ) |
|
|
protectedvirtual |
Enables actions that are leaf actions (those that create items)
| virtual void makVrf::DtVrfCreateMenu::destroyActions |
( |
const QList< QAction * > & |
| ) |
|
|
protectedvirtual |
Iterates over and destroys all the actions (clearing the menu)
| virtual bool makVrf::DtVrfCreateMenu::canCreate |
( |
QAction * |
| ) |
const |
|
protectedvirtual |
| bool makVrf::DtVrfCreateMenu::removePaletteItems |
( |
| ) |
const |
|
inlineprotected |
| bool makVrf::DtVrfCreateMenu::removeExtraCreateItems |
( |
| ) |
const |
|
inlineprotected |
| virtual void makVrf::DtVrfCreateMenu::slot_createMenuLoaded |
( |
const DtScenarioExplorer & |
| ) |
|
|
protectedvirtual |
Removes menu items added from previous menu then recreates based on new model set.
| virtual void makVrf::DtVrfCreateMenu::recreateMenu |
( |
| ) |
|
|
protectedvirtual |
Recreate the menu from internal structures.
Merges the changes from the source into the configuration. Will need to expand paths to be what create menu is expecting.
| virtual std::string makVrf::DtVrfCreateMenu::cleanEntry |
( |
const std::string & |
| ) |
const |
|
protectedvirtual |
Cleans up menu entry to remove special menu characters.
| virtual DtCreateObjectAction* makVrf::DtVrfCreateMenu::createObjectActionFor |
( |
const std::string & |
menuId, |
|
|
const QString & |
menuName, |
|
|
const DtEntityMapperKey & |
key, |
|
|
const std::string & |
keywords, |
|
|
const std::string & |
menuIcon, |
|
|
const std::string & |
toolTip |
|
) |
| const |
|
protectedvirtual |
Given the entity mapper key, create the object creation menu item. If no item registered, use default of DtCreateObjectAction.
| virtual void makVrf::DtVrfCreateMenu::addMappedActionsFrom |
( |
QMenu * |
| ) |
|
|
protectedvirtual |
| virtual bool makVrf::DtVrfCreateMenu::updateSubMenuVisibilityState |
( |
QMenu * |
| ) |
|
|
protectedvirtual |
Hides all menus that have no visible children.
| virtual void makVrf::DtVrfCreateMenu::onCreateObjectFromMenu |
( |
const DtEntityMapperKey & |
, |
|
|
int |
, |
|
|
const std::string & |
|
|
) |
| |
|
protectedvirtualslot |
| virtual void makVrf::DtVrfCreateMenu::enableMenu |
( |
| ) |
|
|
protectedvirtualslot |
Enables/disables menu based on currently selected back-end status.
| virtual void makVrf::DtVrfCreateMenu::createMenuDestroyed |
( |
| ) |
|
|
protectedvirtualslot |
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.
| QMenu* makVrf::DtVrfCreateMenu::myCreateMenu |
|
protected |
| bool makVrf::DtVrfCreateMenu::myCreating |
|
protected |
| bool makVrf::DtVrfCreateMenu::myUseGlobalMenuManager |
|
protected |
| DtVrfMenu* makVrf::DtVrfCreateMenu::myBaseCreateMenu |
|
protected |
The documentation for this class was generated from the following file:
- /data/exports/nrhent7-1/nightly/docs/vrForces.vrf5-2-branch/include/vrfGuiCoreQt/createMenu.h