![]() |
VR-Forces 4.0.4 Class Documentation
|
A global signaler object for the DtContextMenuManager class. More...

Public Member Functions | |
| virtual | ~DtContextMenuManager () |
| DTOR. | |
| virtual void | requestSelectionContextMenu (const QPoint &where) |
| Displays the selection context menu at the given screen location. | |
| virtual void | requestTerrainContextMenu (const QPoint &where) |
| Displays the terrain context menu at the given screen location. | |
Static Public Member Functions | |
| static DtContextMenuManager & | instance (DtDe &de) |
| Get an instance used to emit, or to connect. | |
Protected Member Functions | |
| DtContextMenuManager (DtDe &de) | |
| CTOR. | |
| virtual void | positionPopupMenu (QMenu *menu, const QPoint &where) |
| Position the menu based on the requested display location. | |
| virtual QRect | getScreenGeometry (int screen) const |
| Retrieves the geometry of the requested screen. | |
Protected Attributes | |
| DtDe & | myDe |
Friends | |
| class | DtContextMenuManagerCreator |
A global signaler object for the DtContextMenuManager class.
| virtual makVrv::DtContextMenuManager::~DtContextMenuManager | ( | ) | [virtual] |
DTOR.
| makVrv::DtContextMenuManager::DtContextMenuManager | ( | DtDe & | de | ) | [protected] |
CTOR.
| static DtContextMenuManager& makVrv::DtContextMenuManager::instance | ( | DtDe & | de | ) | [static] |
Get an instance used to emit, or to connect.
Reimplemented in makVrf::DtVrfContextMenuManager.
| virtual void makVrv::DtContextMenuManager::requestSelectionContextMenu | ( | const QPoint & | where | ) | [virtual] |
Displays the selection context menu at the given screen location.
If the menu would extend off the screen when placed at the 'where' location, the menu is moved so that it remains on screen.
Reimplemented in makVrf::DtVrfContextMenuManager.
| virtual void makVrv::DtContextMenuManager::requestTerrainContextMenu | ( | const QPoint & | where | ) | [virtual] |
Displays the terrain context menu at the given screen location.
If the menu would extend off the screen when placed at the 'where' location, the menu is moved so that it remains on screen.
Reimplemented in makVrf::DtVrfContextMenuManager.
| virtual void makVrv::DtContextMenuManager::positionPopupMenu | ( | QMenu * | menu, |
| const QPoint & | where | ||
| ) | [protected, virtual] |
Position the menu based on the requested display location.
If the menu would extend off screen when placed at 'where' location, the menu is repositioned so that it remains on screen.
| virtual QRect makVrv::DtContextMenuManager::getScreenGeometry | ( | int | screen | ) | const [protected, virtual] |
Retrieves the geometry of the requested screen.
Reimplemented since it is private in QMenu.
friend class DtContextMenuManagerCreator [friend] |
DtDe& makVrv::DtContextMenuManager::myDe [protected] |