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

Public Slots | |
| virtual void | validate () |
| virtual void | addOverlayDescriptor (DtOverlaySymbolDescriptor *desc) |
Public Member Functions | |
| DtTMCreateMenu (QWidget *parent, bool display=true) | |
| virtual | ~DtTMCreateMenu () |
| virtual void | setStartCreateSlot (DtEventController *controller, const char *slot) |
| Call this to set a new creation method for when an entity or overlay object wants to be created in a different manner. | |
Static Public Member Functions | |
| static void | setOnlyValidWithTerrainDatabase (bool b) |
| static DtPopupMenu * | create (QWidget *parent, bool display=true) |
Protected Member Functions | |
| virtual QString | menuName () |
| Pure virtual overrides. | |
| virtual bool | initMenuItems () |
| Initializes and maps the following menu items. | |
| virtual bool | initActionGroups () |
| Creates myOverlayActionGroup. | |
| virtual void | preCreateMenuItems () |
| Calls loadOverlayMenu() | |
| virtual QAction * | addMenuItem (DtMenuItemType &retId, const QString &name, const QString &item, const QString &addToMenu, bool toggle, QObject *actionReceiver, char *action, QObject *validationReceiver, char *validation, const QString &accelerator, const QString &tooltip, bool addSep) |
| Override in order to do something special if the developer wants to add to any of the existing popup menus. | |
| virtual QAction * | addMenuItem (QMenu *menu, DtMenuItemType &retId, const QString &item, const QString &addToMenu, bool toggle, QObject *actionReceiver, char *action, QObject *validationReceiver, char *validation, const QString &accelerator, const QString &tooltip, bool addSep) |
| Special code branch for this menu to start adding items into the popup menu structure. | |
| virtual DtActionGroup * | getActionGroupForType (DtMenuItemType iType) |
| If the newly created menu item is to be added to an action group, add it here. | |
| virtual bool | createMenuItems () |
| virtual bool | buildOverlayMenu () |
| virtual bool | loadOverlayMenu () |
| virtual void | menuItemDestroyed (QAction *) |
| virtual void | actionGroupDestroyed (DtActionGroup *) |
| virtual QPixmap | createPixmap (const DtModelData &data, bool useInternal=false) |
| virtual void | attachMenuItems () |
| Override to specifically attach create menu items. | |
| virtual DtActionGroup * | addOverlayMenuItem (DtOverlaySymbolDescriptor *desc, DtCreateObjectAction **newAct=NULL) |
| Returns the action group the new item was added to. | |
| virtual DtTMMapArea * | mapArea () const |
| Returns the currently active map area assuming owner is of type DtBaseWindow. | |
| virtual void | updateMenuItems () |
| Redo menu icons based on symbol map changes. | |
| virtual DtModelData * | dataFromKey (const DtEntityMapperKey &key) |
| virtual void | enableCreateItems (bool b) |
| Enables/disables create items that were created as part of this menu (typically from vrf.ent file) | |
Protected Attributes | |
| DtActionGroup * | myOverlayActionGroup |
| DtActionGroup * | myOverlaysGroup |
| DtOverlaySymbolMapper | myOverlayItems |
| QHash< QString, DtActionGroup * > | myOverlayGroups |
| QList< DtActionGroup * > | myOrderedGroups |
| QHash< QString, QMenu * > | myOverlayMenus |
| int | myMaxOverlayType |
| QList< DtCreateObjectAction * > | myCreateActions |
| QList< DtCreateObjectAction * > | myOverlayActions |
| Only items that appear on the overlay menu. | |
| QList< QMenu * > | myCreatedMenus |
| DtEventController * | myCurrentCreateController |
| QString | myCurrentCreateSlot |
Static Protected Attributes | |
| static bool | myOnlyValidWithTerrainDatabase |
| DtTMCreateMenu::DtTMCreateMenu | ( | QWidget * | parent, |
| bool | display = true |
||
| ) |
| virtual DtTMCreateMenu::~DtTMCreateMenu | ( | ) | [virtual] |
| static void DtTMCreateMenu::setOnlyValidWithTerrainDatabase | ( | bool | b | ) | [static] |
| virtual void DtTMCreateMenu::setStartCreateSlot | ( | DtEventController * | controller, |
| const char * | slot | ||
| ) | [virtual] |
Call this to set a new creation method for when an entity or overlay object wants to be created in a different manner.
| virtual QString DtTMCreateMenu::menuName | ( | ) | [protected, virtual] |
Pure virtual overrides.
Reimplemented from DtPopupMenu.
| virtual bool DtTMCreateMenu::initMenuItems | ( | ) | [protected, virtual] |
Initializes and maps the following menu items.
Opens appOptions() overlay menu file and creates a sub-menu from those items DtDisplayOverlayPaletteAction to window->launchOverlayPalette()
Reimplemented from DtPopupMenu.
| virtual bool DtTMCreateMenu::initActionGroups | ( | ) | [protected, virtual] |
Creates myOverlayActionGroup.
Reimplemented from DtPopupMenu.
| virtual void DtTMCreateMenu::preCreateMenuItems | ( | ) | [protected, virtual] |
Calls loadOverlayMenu()
Reimplemented from DtPopupMenu.
| virtual QAction* DtTMCreateMenu::addMenuItem | ( | DtMenuItemType & | retId, |
| const QString & | name, | ||
| const QString & | item, | ||
| const QString & | addToMenu, | ||
| bool | toggle, | ||
| QObject * | actionReceiver, | ||
| char * | action, | ||
| QObject * | validationReceiver, | ||
| char * | validation, | ||
| const QString & | accelerator, | ||
| const QString & | tooltip, | ||
| bool | addSep | ||
| ) | [protected, virtual] |
Override in order to do something special if the developer wants to add to any of the existing popup menus.
If so, create QActions and connect them up for that. If not, then call down to the parent class code
| virtual QAction* DtTMCreateMenu::addMenuItem | ( | QMenu * | menu, |
| DtMenuItemType & | retId, | ||
| const QString & | item, | ||
| const QString & | addToMenu, | ||
| bool | toggle, | ||
| QObject * | actionReceiver, | ||
| char * | action, | ||
| QObject * | validationReceiver, | ||
| char * | validation, | ||
| const QString & | accelerator, | ||
| const QString & | tooltip, | ||
| bool | addSep | ||
| ) | [protected, virtual] |
Special code branch for this menu to start adding items into the popup menu structure.
This structure contains a popup menu (for the tear off handle) and an action group
| static DtPopupMenu* DtTMCreateMenu::create | ( | QWidget * | parent, |
| bool | display = true |
||
| ) | [static] |
Reimplemented in DtTerrainCreateMenu.
| virtual void DtTMCreateMenu::validate | ( | ) | [virtual, slot] |
Reimplemented from DtPopupMenu.
Reimplemented in DtTerrainCreateMenu.
| virtual void DtTMCreateMenu::addOverlayDescriptor | ( | DtOverlaySymbolDescriptor * | desc | ) | [virtual, slot] |
| virtual DtActionGroup* DtTMCreateMenu::getActionGroupForType | ( | DtMenuItemType | iType | ) | [protected, virtual] |
If the newly created menu item is to be added to an action group, add it here.
Reimplemented from DtPopupMenu.
| virtual bool DtTMCreateMenu::createMenuItems | ( | ) | [protected, virtual] |
Reimplemented from DtPopupMenu.
| virtual bool DtTMCreateMenu::buildOverlayMenu | ( | ) | [protected, virtual] |
| virtual bool DtTMCreateMenu::loadOverlayMenu | ( | ) | [protected, virtual] |
| virtual void DtTMCreateMenu::menuItemDestroyed | ( | QAction * | ) | [protected, virtual] |
Reimplemented from DtPopupMenu.
| virtual void DtTMCreateMenu::actionGroupDestroyed | ( | DtActionGroup * | ) | [protected, virtual] |
Reimplemented from DtPopupMenu.
| virtual QPixmap DtTMCreateMenu::createPixmap | ( | const DtModelData & | data, |
| bool | useInternal = false |
||
| ) | [protected, virtual] |
| virtual void DtTMCreateMenu::attachMenuItems | ( | ) | [protected, virtual] |
Override to specifically attach create menu items.
Reimplemented from DtPopupMenu.
| virtual DtActionGroup* DtTMCreateMenu::addOverlayMenuItem | ( | DtOverlaySymbolDescriptor * | desc, |
| DtCreateObjectAction ** | newAct = NULL |
||
| ) | [protected, virtual] |
Returns the action group the new item was added to.
Should not call this method, but, call addOverlayDescriptor
| virtual DtTMMapArea* DtTMCreateMenu::mapArea | ( | ) | const [protected, virtual] |
Returns the currently active map area assuming owner is of type DtBaseWindow.
| virtual void DtTMCreateMenu::updateMenuItems | ( | ) | [protected, virtual] |
Redo menu icons based on symbol map changes.
Reimplemented from DtPopupMenu.
| virtual DtModelData* DtTMCreateMenu::dataFromKey | ( | const DtEntityMapperKey & | key | ) | [protected, virtual] |
| virtual void DtTMCreateMenu::enableCreateItems | ( | bool | b | ) | [protected, virtual] |
Enables/disables create items that were created as part of this menu (typically from vrf.ent file)
DtActionGroup* DtTMCreateMenu::myOverlayActionGroup [protected] |
DtActionGroup* DtTMCreateMenu::myOverlaysGroup [protected] |
DtOverlaySymbolMapper DtTMCreateMenu::myOverlayItems [protected] |
QHash<QString, DtActionGroup*> DtTMCreateMenu::myOverlayGroups [protected] |
QList<DtActionGroup*> DtTMCreateMenu::myOrderedGroups [protected] |
QHash<QString, QMenu*> DtTMCreateMenu::myOverlayMenus [protected] |
int DtTMCreateMenu::myMaxOverlayType [protected] |
QList<DtCreateObjectAction*> DtTMCreateMenu::myCreateActions [protected] |
QList<DtCreateObjectAction*> DtTMCreateMenu::myOverlayActions [protected] |
Only items that appear on the overlay menu.
Subset of myCreateActions
QList<QMenu*> DtTMCreateMenu::myCreatedMenus [protected] |
bool DtTMCreateMenu::myOnlyValidWithTerrainDatabase [static, protected] |
QString DtTMCreateMenu::myCurrentCreateSlot [protected] |