A default implementation of PluginMenu for plugins that do not supply a custom menu for the Workspace editor.
More...
#include <Workspace/Application/Plugins/emptypluginmenu.h>
|
| EmptyPluginMenu () |
|
| ~EmptyPluginMenu () override |
|
void | createMenu () override |
| Ignored as the getMenu() implementation returns NULL.
|
|
void | destroy () override |
|
QMenu * | getMenu () override |
| Returns a null pointer to indicate to the framework that this plugin does not require an integrated menu.
|
|
QString | getMenuName () const override |
| Ignored as the getMenu() implementation returns NULL.
|
|
bool | isTopLevelMenu () const override |
| Ignored as the getMenu() implementation returns NULL.
|
|
virtual void | createMenu ()=0 |
| Here is where the menu items are created and connections made.
|
|
virtual void | destroy ()=0 |
|
virtual QMenu * | getMenu () |
| This returns a pointer to the main plugin menu.
|
|
virtual QString | getMenuName () const =0 |
|
virtual bool | isTopLevelMenu () const |
| Returns true if the menu is to be directly inserted into the application's main menu bar.
|
|
◆ EmptyPluginMenu()
◆ ~EmptyPluginMenu()
Deletes the plugin menu .
◆ createMenu()
◆ destroy()
Subclasses will almost always implement this function simply as a call to the delete
operator, or to some kind of factory singleton which does this. Since PluginMenu subclass objects are usually instantiated by a singleton within the plugin, the destroy() function is necessary to ensure that the plugin also deletes instances.
Implements PluginMenu.
◆ getMenu()
◆ getMenuName()
QString getMenuName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ isTopLevelMenu()
bool isTopLevelMenu |
( |
| ) |
const |
|
overridevirtual |