|
| | DtCreateMenu (makVrv::DtDe &, const QString &createName=DtCreateMenuId) |
| |
| virtual | ~DtCreateMenu () override |
| |
| virtual QMenu * | createMenu (makVrv::DtDe &, QWidget *parent) override |
| |
| virtual void | setUseGlobalMenuManager (bool) |
| |
| virtual bool | useGlobalMenuManager () const |
| |
| virtual DtCreateMenu * | newInstance () |
| |
| virtual DtCreateMenu * | clone () const |
| |
| virtual DtCreateMenu * | duplicate (QMenu *&, QWidget *parent, DtVrfMenu *menu=0) |
| |
| void | setTearOffsEnabled (bool b) |
| |
| virtual void | setBaseCreateMenu (DtVrfMenu *) |
| |
| virtual DtEntityType | nameToType (const QString &) const |
| |
| virtual bool | triggerAction (const DtEntityMapperKey &key) |
| |
| bool | tearOffsEnabled () const |
| |
| virtual void | setSignalCreation (bool) |
| |
| bool | signalCreation () const |
| |
| const AdditionalItems & | additionalItems () const |
| |
| AdditionalItems & | additionalItems () |
| |
| virtual void | setCreateObjectActionCreatorFor (const DtEntityType &, DtCreateObjectActionCreator *) |
| |
virtual
DtCreateObjectActionCreator * | createObjectActionCreatorFor (const DtEntityType &) const |
| |
const
DtVrfCreateMenu::MappedActions & | mappedActions () const |
| |
| virtual DtCreateMenuFlags | menuFlags () const |
| |
| bool | removePaletteItems () const |
| |
| bool | removeExtraCreateItems () const |
| |
| virtual void | setMenuFlags (DtCreateMenuFlags b) |
| |
| virtual DtSubMenuConfiguration & | menuConfiguration () override |
| |
virtual
DtConfigurableMenuAssembler & | menuAssembler () override |
| |
| virtual void | addItemToCreate (const makVrv::DtMenuPath &path, const DtEntityMapperKey &key, const DtString &keywords="", const DtString &menuIcon="") |
| |
| virtual void | removeItemToCreate (const makVrv::DtMenuPath &) |
| |
| virtual void | addItemToCreateBefore (const makVrv::DtMenuPath &path, const makVrv::DtMenuPath &before, const DtEntityMapperKey &key, const DtString &keywords="", const DtString &menuIcon="") |
| |
| virtual void | addItemToCreateAfter (const makVrv::DtMenuPath &path, const makVrv::DtMenuPath &after, const DtEntityMapperKey &key, const DtString &keywords="", const DtString &menuIcon="") |
| |
| | DtVirtualBaseClass () |
| |
| virtual | ~DtVirtualBaseClass () |
| |
| virtual makVrf::DtCreateMenu::~DtCreateMenu |
( |
| ) |
|
|
overridevirtual |
| virtual QMenu* makVrf::DtCreateMenu::createMenu |
( |
makVrv::DtDe & |
, |
|
|
QWidget * |
parent |
|
) |
| |
|
overridevirtual |
| virtual void makVrf::DtCreateMenu::setUseGlobalMenuManager |
( |
bool |
| ) |
|
|
virtual |
The useGlobalMenuManager should only be used for the first instance of the create menu. Not for create menus on dialogs. If true, when actions are created they will be added to the global menu manager.
| virtual bool makVrf::DtCreateMenu::useGlobalMenuManager |
( |
| ) |
const |
|
virtual |
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.
Returns a duplicate of this menu. If you are subclassing this menu, override the clone() method to return a new instance of your subclass.
If menu is specified, uses that rather than scenario default.
| void makVrf::DtCreateMenu::setTearOffsEnabled |
( |
bool |
b | ) |
|
|
inline |
| virtual void makVrf::DtCreateMenu::setBaseCreateMenu |
( |
DtVrfMenu * |
| ) |
|
|
virtual |
| virtual DtEntityType makVrf::DtCreateMenu::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.
| bool makVrf::DtCreateMenu::tearOffsEnabled |
( |
| ) |
const |
|
inline |
| virtual void makVrf::DtCreateMenu::setSignalCreation |
( |
bool |
| ) |
|
|
virtual |
Set to true to signal creation rather than creating immediately. Will send boost signal_createObject signal if true.
| bool makVrf::DtCreateMenu::signalCreation |
( |
| ) |
const |
|
inline |
Returns items that are scheduled to be added to new create menus.
Add/replace the object action creator for the specified entity mapper key.
Return the object action creator for the specified type.
| bool makVrf::DtCreateMenu::removePaletteItems |
( |
| ) |
const |
|
inline |
| bool makVrf::DtCreateMenu::removeExtraCreateItems |
( |
| ) |
const |
|
inline |
When creating the menu, set to true to remove the "Entity Palette..." and other palette related items item.
| virtual void makVrf::DtCreateMenu::createMenuConfiguration |
( |
makVrv::DtDe & |
de | ) |
|
|
overrideprotectedvirtual |
Returns the configuration for the menu to be used in the master mode. May be effected directly.
When using this configuration, it is used a bit differently than other configuration due to the nature of the create menu itself
When referencing the main menu, referece CreateMenu as the main menu (makVrv::DtMenuPath::mainMenu("CreateMenu")) Sub-menus and items are referenced by their name as they appear in the entity.mst file (Friendly, Opposing, M1A2, etc).
Reimplemented from makVrf::DtConfigurableMenu.
Returns the configuration for the menu to be used in the master mode. May be effected directly.
Reimplemented from makVrf::DtConfigurableMenu.
Routines to add items to the menu to create. Shortcut for adding a menu item creator of type DtCreateObjectAction and a menu item to the path.
Add at least the keyword on_overlay to allow the object to be placed on overlay layers. This means it can be created locally and placed on the overlay palette
TODO: Make sure this gets on the overlay palette
Call to remove an additional item to create.
Same as above, except adds before specified path.
Same as above, except adds after specified path.
| virtual void makVrf::DtCreateMenu::menuRecreated |
( |
| ) |
|
|
protectedvirtual |
| bool makVrf::DtCreateMenu::myTearOffsEnabled |
|
protected |
| bool makVrf::DtCreateMenu::mySignalCreation |
|
protected |
Variables used to store initial menu configuration.
| DtVrfMenu* makVrf::DtCreateMenu::myBaseCreateMenu |
|
protected |
| bool makVrf::DtCreateMenu::myUseGlobalMenuManager |
|
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