Displays a menu when the right mouse button has been pressed. More...
#include <gui/gui.hh>
Inherits QObject.
Public Types | |
| enum | EntityTypes { MODEL, LIGHT, LINK } |
| Unique identifiers for the type of entity this menu is attached to. More... | |
Public Member Functions | |
| ModelRightMenu () | |
| Constructor. More... | |
| virtual | ~ModelRightMenu () |
| Destructor. More... | |
| bool | Init () |
| Initialize the right menu. More... | |
| void | Run (const std::string &_entityName, const QPoint &_pt, EntityTypes _type=MODEL) |
| Show the right menu. More... | |
Displays a menu when the right mouse button has been pressed.
| enum EntityTypes |
| ModelRightMenu | ( | ) |
Constructor.
|
virtual |
Destructor.
| bool Init | ( | ) |
Initialize the right menu.
| void Run | ( | const std::string & | _entityName, |
| const QPoint & | _pt, | ||
| EntityTypes | _type = MODEL |
||
| ) |
Show the right menu.
| [in] | _entityName | Name of the entity that is active. |
| [in] | _pt | Point on the GUI that has received the right-click request. |
| [in] | _type | Type of the entity clicked. |