Updraft  1.0
Open source glider flight visualisation tool.
Updraft::MenuInterface Class Reference

Interface to menu used by plugins. More...

#include <menuinterface.h>

Inheritance diagram for Updraft::MenuInterface:

List of all members.

Public Member Functions

virtual ~MenuInterface ()
void clear ()
 Clears all the actions from this menu.
virtual void insertAction (int position, QAction *action, bool own=false)=0
 Insert action into this menu.
virtual void appendAction (QAction *action, bool own=false)=0
 Append action to the last place of this menu.

Detailed Description

Interface to menu used by plugins.


Constructor & Destructor Documentation

virtual Updraft::MenuInterface::~MenuInterface ( ) [inline, virtual]

Member Function Documentation

virtual void Updraft::MenuInterface::appendAction ( QAction *  action,
bool  own = false 
) [pure virtual]

Append action to the last place of this menu.

Parameters:
actionThe action to be appended
ownWhether the menu should own the given action

Implemented in Updraft::Core::Menu.

Clears all the actions from this menu.

Reimplemented in Updraft::Core::Menu.

virtual void Updraft::MenuInterface::insertAction ( int  position,
QAction *  action,
bool  own = false 
) [pure virtual]

Insert action into this menu.

Parameters:
positionPriority of this action. Actions with lower value are closer to the top.
actionThe action to be inserted
ownWhether the menu should own the given action

Implemented in Updraft::Core::Menu.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines