Updraft
1.0
Open source glider flight visualisation tool.
|
Interface to menu used by plugins. More...
#include <menuinterface.h>
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. |
Interface to menu used by plugins.
virtual Updraft::MenuInterface::~MenuInterface | ( | ) | [inline, virtual] |
virtual void Updraft::MenuInterface::appendAction | ( | QAction * | action, |
bool | own = false |
||
) | [pure virtual] |
Append action to the last place of this menu.
action | The action to be appended |
own | Whether the menu should own the given action |
Implemented in Updraft::Core::Menu.
void Updraft::MenuInterface::clear | ( | ) |
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.
position | Priority of this action. Actions with lower value are closer to the top. |
action | The action to be inserted |
own | Whether the menu should own the given action |
Implemented in Updraft::Core::Menu.