ModelRightMenu Class Reference

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...
 

Detailed Description

Displays a menu when the right mouse button has been pressed.

Member Enumeration Documentation

Unique identifiers for the type of entity this menu is attached to.

Enumerator
MODEL 

Model.

LIGHT 

Light.

LINK 

Link.

Constructor & Destructor Documentation

Constructor.

virtual ~ModelRightMenu ( )
virtual

Destructor.

Member Function Documentation

bool Init ( )

Initialize the right menu.

Returns
True on success.
void Run ( const std::string &  _entityName,
const QPoint &  _pt,
EntityTypes  _type = MODEL 
)

Show the right menu.

Parameters
[in]_entityNameName of the entity that is active.
[in]_ptPoint on the GUI that has received the right-click request.
[in]_typeType of the entity clicked.

The documentation for this class was generated from the following file: