Menu Class Reference

Public Member Functions

 Menu ()
 
 Menu (const Menu &menu)
 
void addAction (const QString &action, const QString &group, uint8_t order=128)
 
void addAction (const QString &submenu, const QString &action, const QString &group, uint8_t order=128)
 
void removeAction (const QString &action)
 
void removeAction (const QString &submenu, const QString &action)
 
void addCopyAsActions (const QString &group, uint8_t order=128)
 
void addPasteFromActions (const QString &group, uint8_t order=128)
 
void addTransformActions (const QString &group, uint8_t order=128)
 
void removeCopyAsActions ()
 
void removePasteFromActions ()
 
void removeTransformActions ()
 
void addPluginCommandActions (const QString &group)
 
void addPluginCommandActions (const QString &prefix, const QString &group, uint8_t order=128)
 
void addPluginCommandSubmenuActions (const QString &submenu, const QString &group)
 
void addPluginCommandSubmenuActions (const QString &submenu, const QString &prefix, const QString &group, uint8_t order=128)
 
void removePluginCommandActions ()
 
void removePluginCommandSubmenuActions (const QString &submenu)
 
void addHighlightColorActions (const QString &submenu, const QString &group, uint8_t order=128)
 
void removeHighlightColorActions (const QString &submenu)
 
void setOrdering (const QString &path, const QString &group, uint8_t order=128)
 
void setGroupOrdering (const QString &group, uint8_t order)
 
void setVisibility (const QString &path, MenuItemVisibility visibility)
 
void setRole (const QString &path, QAction::MenuRole role)
 
void setIcon (const QString &path, const QIcon &icon)
 
MenuInstancecreate (QWidget *owner, UIActionHandler *handler, bool showInactiveActions=false)
 
MenuInstancecreate (QWidget *owner, UIActionHandler *handler, const UIActionContext &context, bool showInactiveActions=false)
 
uint64_t getVersion ()
 
const std::map< QString, QString > & getActions ()
 
QString getGroupForAction (const QString &name)
 
uint8_t getOrderForAction (const QString &name)
 
uint8_t getOrderForGroup (const QString &name)
 
MenuItemVisibility getVisibility (const QString &name)
 
QAction::MenuRole getRole (const QString &name)
 
QIcon getIcon (const QString &name)
 

Static Public Member Functions

static MenumainMenu (const QString &name)
 
static void setMainMenuOrder (const QString &name, uint8_t order)
 
static std::vector< QString > getMainMenus ()
 

Constructor & Destructor Documentation

◆ Menu() [1/2]

Menu::Menu ( )

◆ Menu() [2/2]

Menu::Menu ( const Menu menu)

Member Function Documentation

◆ addAction() [1/2]

void Menu::addAction ( const QString &  action,
const QString &  group,
uint8_t  order = 128 
)

◆ addAction() [2/2]

void Menu::addAction ( const QString &  submenu,
const QString &  action,
const QString &  group,
uint8_t  order = 128 
)

◆ addCopyAsActions()

void Menu::addCopyAsActions ( const QString &  group,
uint8_t  order = 128 
)

◆ addHighlightColorActions()

void Menu::addHighlightColorActions ( const QString &  submenu,
const QString &  group,
uint8_t  order = 128 
)

◆ addPasteFromActions()

void Menu::addPasteFromActions ( const QString &  group,
uint8_t  order = 128 
)

◆ addPluginCommandActions() [1/2]

void Menu::addPluginCommandActions ( const QString &  group)

◆ addPluginCommandActions() [2/2]

void Menu::addPluginCommandActions ( const QString &  prefix,
const QString &  group,
uint8_t  order = 128 
)

◆ addPluginCommandSubmenuActions() [1/2]

void Menu::addPluginCommandSubmenuActions ( const QString &  submenu,
const QString &  group 
)

◆ addPluginCommandSubmenuActions() [2/2]

void Menu::addPluginCommandSubmenuActions ( const QString &  submenu,
const QString &  prefix,
const QString &  group,
uint8_t  order = 128 
)

◆ addTransformActions()

void Menu::addTransformActions ( const QString &  group,
uint8_t  order = 128 
)

◆ create() [1/2]

MenuInstance * Menu::create ( QWidget *  owner,
UIActionHandler handler,
bool  showInactiveActions = false 
)

◆ create() [2/2]

MenuInstance * Menu::create ( QWidget *  owner,
UIActionHandler handler,
const UIActionContext context,
bool  showInactiveActions = false 
)

◆ getActions()

const std::map< QString, QString > & Menu::getActions ( )

◆ getGroupForAction()

QString Menu::getGroupForAction ( const QString &  name)

◆ getIcon()

QIcon Menu::getIcon ( const QString &  name)

◆ getMainMenus()

static std::vector< QString > Menu::getMainMenus ( )
static

◆ getOrderForAction()

uint8_t Menu::getOrderForAction ( const QString &  name)

◆ getOrderForGroup()

uint8_t Menu::getOrderForGroup ( const QString &  name)

◆ getRole()

QAction::MenuRole Menu::getRole ( const QString &  name)

◆ getVersion()

uint64_t Menu::getVersion ( )

◆ getVisibility()

MenuItemVisibility Menu::getVisibility ( const QString &  name)

◆ mainMenu()

static Menu * Menu::mainMenu ( const QString &  name)
static

◆ removeAction() [1/2]

void Menu::removeAction ( const QString &  action)

◆ removeAction() [2/2]

void Menu::removeAction ( const QString &  submenu,
const QString &  action 
)

◆ removeCopyAsActions()

void Menu::removeCopyAsActions ( )

◆ removeHighlightColorActions()

void Menu::removeHighlightColorActions ( const QString &  submenu)

◆ removePasteFromActions()

void Menu::removePasteFromActions ( )

◆ removePluginCommandActions()

void Menu::removePluginCommandActions ( )

◆ removePluginCommandSubmenuActions()

void Menu::removePluginCommandSubmenuActions ( const QString &  submenu)

◆ removeTransformActions()

void Menu::removeTransformActions ( )

◆ setGroupOrdering()

void Menu::setGroupOrdering ( const QString &  group,
uint8_t  order 
)

◆ setIcon()

void Menu::setIcon ( const QString &  path,
const QIcon &  icon 
)

◆ setMainMenuOrder()

static void Menu::setMainMenuOrder ( const QString &  name,
uint8_t  order 
)
static

◆ setOrdering()

void Menu::setOrdering ( const QString &  path,
const QString &  group,
uint8_t  order = 128 
)

◆ setRole()

void Menu::setRole ( const QString &  path,
QAction::MenuRole  role 
)

◆ setVisibility()

void Menu::setVisibility ( const QString &  path,
MenuItemVisibility  visibility 
)

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