Binary Ninja API C++: Action
Classes | |
| struct | HighlightTokenState |
| struct | UIActionContext |
| struct | UIAction |
| struct | UITransformAction |
| struct | UIHighlightColorAction |
| struct | UIBookmarkAction |
| class | UIActionHandler |
| class | Menu |
| class | MenuInstance |
| class | MainMenuInstance |
◆ HighlightTokenState
struct HighlightTokenState
Public Member Functions | |
| HighlightTokenState () | |
| Json::Value | serialize () const |
| bool | deserialize (const Json::Value &value) |
Public Attributes | |
| bool | valid |
| bool | focused |
| bool | secondaryHighlight |
| BNInstructionTextTokenType | type |
| BinaryNinja::InstructionTextToken | token |
| ArchitectureRef | arch |
| bool | addrValid |
| bool | localVarValid |
| bool | isDest |
| uint64_t | addr |
| BinaryNinja::Variable | localVar |
| size_t | tokenIndex |
| size_t | characterIndex |
| size_t | indentGroup |
◆ HighlightTokenState()
| HighlightTokenState::HighlightTokenState | ( | ) |
◆ serialize()
| Json::Value HighlightTokenState::serialize | ( | ) | const |
◆ deserialize()
| bool HighlightTokenState::deserialize | ( | const Json::Value & | value | ) |
◆ valid
bool HighlightTokenState::valid
◆ focused
bool HighlightTokenState::focused
◆ secondaryHighlight
bool HighlightTokenState::secondaryHighlight
◆ type
◆ token
◆ arch
◆ addrValid
bool HighlightTokenState::addrValid
◆ localVarValid
bool HighlightTokenState::localVarValid
◆ isDest
bool HighlightTokenState::isDest
◆ addr
uint64_t HighlightTokenState::addr
◆ localVar
◆ tokenIndex
size_t HighlightTokenState::tokenIndex
◆ characterIndex
size_t HighlightTokenState::characterIndex
◆ indentGroup
size_t HighlightTokenState::indentGroup
◆ UIActionContext
◆ UIAction
Public Member Functions | |
| UIAction () | |
| UIAction (const std::function< void(const UIActionContext &context)> &activate) | |
| UIAction (const std::function< void()> &activate) | |
| UIAction (const std::function< void(const UIActionContext &context)> &activate, const std::function< bool(const UIActionContext &context)> &isValid) | |
| UIAction (const std::function< void()> &activate, const std::function< bool(const UIActionContext &context)> &isValid) | |
| UIAction (const std::function< void(const UIActionContext &context)> &activate, const std::function< bool()> &isValid) | |
| UIAction (const std::function< void()> &activate, const std::function< bool()> &isValid) | |
| UIAction (const UIAction &other) | |
| UIAction & | operator= (const UIAction &other) |
Static Public Member Functions | |
| static void | registerAction (const QString &name, const QKeySequence &defaultKeyBinding=QKeySequence(), const QList< QString > &alias=QList< QString >()) |
| static void | registerAction (const QString &name, const QList< QKeySequence > &defaultKeyBinding, const QList< QString > &alias=QList< QString >()) |
| static void | unregisterAction (const QString &name) |
| static void | registerTransformActions () |
| static void | registerPluginCommandActions () |
| static void | registerPluginCommandActions (const QString &prefix) |
| static void | registerHighlightColorActions (const QString &prefix) |
| static void | registerBookmarkActions (const QString &prefix) |
| static void | setActionDisplayName (const QString ®isteredName, const QString &displayName) |
| static void | setActionDisplayName (const QString ®isteredName, const std::function< QString()> &displayNameFunc) |
| static void | setActionDisplayName (const QString ®isteredName, const std::function< QString(const UIActionContext &)> &displayNameFunc) |
| static bool | isActionRegistered (const QString &name) |
| static std::set< QString > | getAllRegisteredActions () |
| static QList< QKeySequence > | getDefaultKeyBinding (const QString &name) |
| static QList< QKeySequence > | getKeyBinding (const QString &name) |
| static QString | getActionDisplayName (const QString &name, const UIActionContext &context) |
| static int | rawControl () |
| static int | rawMeta () |
| static void | setUserKeyBinding (const QString &name, const QList< QKeySequence > &keyBinding) |
| static void | resetKeyBindingToDefault (const QString &name) |
| static void | readKeyBindingsFile () |
| static void | writeKeyBindingsFile () |
Public Attributes | |
| std::function< void(const UIActionContext &context)> | activate |
| std::function< bool(const UIActionContext &context)> | isValid |
◆ UIAction() [1/8]
◆ UIAction() [2/8]
| UIAction::UIAction | ( | const std::function< void(const UIActionContext &context)> & | activate | ) |
◆ UIAction() [3/8]
| UIAction::UIAction | ( | const std::function< void()> & | activate | ) |
◆ UIAction() [4/8]
| UIAction::UIAction | ( | const std::function< void(const UIActionContext &context)> & | activate, |
| const std::function< bool(const UIActionContext &context)> & | isValid ) |
◆ UIAction() [5/8]
| UIAction::UIAction | ( | const std::function< void()> & | activate, |
| const std::function< bool(const UIActionContext &context)> & | isValid ) |
◆ UIAction() [6/8]
| UIAction::UIAction | ( | const std::function< void(const UIActionContext &context)> & | activate, |
| const std::function< bool()> & | isValid ) |
◆ UIAction() [7/8]
| UIAction::UIAction | ( | const std::function< void()> & | activate, |
| const std::function< bool()> & | isValid ) |
◆ UIAction() [8/8]
| UIAction::UIAction | ( | const UIAction & | other | ) |
◆ operator=()
◆ registerAction() [1/2]
|
static |
◆ registerAction() [2/2]
|
static |
◆ unregisterAction()
|
static |
◆ registerTransformActions()
|
static |
◆ registerPluginCommandActions() [1/2]
|
static |
◆ registerPluginCommandActions() [2/2]
|
static |
◆ registerHighlightColorActions()
|
static |
◆ registerBookmarkActions()
|
static |
◆ setActionDisplayName() [1/3]
|
static |
◆ setActionDisplayName() [2/3]
|
static |
◆ setActionDisplayName() [3/3]
|
static |
◆ isActionRegistered()
|
static |
◆ getAllRegisteredActions()
|
static |
◆ getDefaultKeyBinding()
|
static |
◆ getKeyBinding()
|
static |
◆ getActionDisplayName()
|
static |
◆ rawControl()
|
static |
◆ rawMeta()
|
static |
◆ setUserKeyBinding()
|
static |
◆ resetKeyBindingToDefault()
|
static |
◆ readKeyBindingsFile()
|
static |
◆ writeKeyBindingsFile()
|
static |
◆ activate
std::function<void(const UIActionContext& context)> UIAction::activate
◆ isValid
std::function<bool(const UIActionContext& context)> UIAction::isValid
◆ UITransformAction
Public Member Functions | |
| UITransformAction () | |
| UITransformAction (const std::function< void(const UIActionContext &context, TransformRef xform)> &activate) | |
| UITransformAction (const std::function< void(TransformRef xform)> &activate) | |
| UITransformAction (const std::function< void(const UIActionContext &context, TransformRef xform)> &activate, const std::function< bool(const UIActionContext &context, TransformRef xform)> &isValid) | |
| UITransformAction (const std::function< void(TransformRef xform)> &activate, const std::function< bool(const UIActionContext &context, TransformRef xform)> &isValid) | |
| UITransformAction (const std::function< void(const UIActionContext &context, TransformRef xform)> &activate, const std::function< bool(TransformRef xform)> &isValid) | |
| UITransformAction (const std::function< void(TransformRef xform)> &activate, const std::function< bool(TransformRef xform)> &isValid) | |
| UITransformAction (const UITransformAction &other) | |
Public Attributes | |
| std::function< void(const UIActionContext &context, TransformRef xform)> | activate |
| std::function< bool(const UIActionContext &context, TransformRef xform)> | isValid |
◆ UITransformAction() [1/8]
| UITransformAction::UITransformAction | ( | ) |
◆ UITransformAction() [2/8]
| UITransformAction::UITransformAction | ( | const std::function< void(const UIActionContext &context, TransformRef xform)> & | activate | ) |
◆ UITransformAction() [3/8]
| UITransformAction::UITransformAction | ( | const std::function< void(TransformRef xform)> & | activate | ) |
◆ UITransformAction() [4/8]
| UITransformAction::UITransformAction | ( | const std::function< void(const UIActionContext &context, TransformRef xform)> & | activate, |
| const std::function< bool(const UIActionContext &context, TransformRef xform)> & | isValid ) |
◆ UITransformAction() [5/8]
| UITransformAction::UITransformAction | ( | const std::function< void(TransformRef xform)> & | activate, |
| const std::function< bool(const UIActionContext &context, TransformRef xform)> & | isValid ) |
◆ UITransformAction() [6/8]
| UITransformAction::UITransformAction | ( | const std::function< void(const UIActionContext &context, TransformRef xform)> & | activate, |
| const std::function< bool(TransformRef xform)> & | isValid ) |
◆ UITransformAction() [7/8]
| UITransformAction::UITransformAction | ( | const std::function< void(TransformRef xform)> & | activate, |
| const std::function< bool(TransformRef xform)> & | isValid ) |
◆ UITransformAction() [8/8]
| UITransformAction::UITransformAction | ( | const UITransformAction & | other | ) |
◆ activate
std::function<void(const UIActionContext& context, TransformRef xform)> UITransformAction::activate
◆ isValid
std::function<bool(const UIActionContext& context, TransformRef xform)> UITransformAction::isValid
◆ UIHighlightColorAction
struct UIHighlightColorAction
Public Member Functions | |
| UIHighlightColorAction () | |
| UIHighlightColorAction (const std::function< void(const UIActionContext &context, BNHighlightColor color)> &activate) | |
| UIHighlightColorAction (const std::function< void(BNHighlightColor color)> &activate) | |
| UIHighlightColorAction (const std::function< void(const UIActionContext &context, BNHighlightColor color)> &activate, const std::function< bool(const UIActionContext &context)> &isValid) | |
| UIHighlightColorAction (const std::function< void(BNHighlightColor color)> &activate, const std::function< bool(const UIActionContext &context)> &isValid) | |
| UIHighlightColorAction (const std::function< void(const UIActionContext &context, BNHighlightColor color)> &activate, const std::function< bool()> &isValid) | |
| UIHighlightColorAction (const std::function< void(BNHighlightColor color)> &activate, const std::function< bool()> &isValid) | |
| UIHighlightColorAction (const UIHighlightColorAction &other) | |
Public Attributes | |
| std::function< void(const UIActionContext &context, BNHighlightColor color)> | activate |
| std::function< bool(const UIActionContext &context)> | isValid |
◆ UIHighlightColorAction() [1/8]
| UIHighlightColorAction::UIHighlightColorAction | ( | ) |
◆ UIHighlightColorAction() [2/8]
| UIHighlightColorAction::UIHighlightColorAction | ( | const std::function< void(const UIActionContext &context, BNHighlightColor color)> & | activate | ) |
◆ UIHighlightColorAction() [3/8]
| UIHighlightColorAction::UIHighlightColorAction | ( | const std::function< void(BNHighlightColor color)> & | activate | ) |
◆ UIHighlightColorAction() [4/8]
| UIHighlightColorAction::UIHighlightColorAction | ( | const std::function< void(const UIActionContext &context, BNHighlightColor color)> & | activate, |
| const std::function< bool(const UIActionContext &context)> & | isValid ) |
◆ UIHighlightColorAction() [5/8]
| UIHighlightColorAction::UIHighlightColorAction | ( | const std::function< void(BNHighlightColor color)> & | activate, |
| const std::function< bool(const UIActionContext &context)> & | isValid ) |
◆ UIHighlightColorAction() [6/8]
| UIHighlightColorAction::UIHighlightColorAction | ( | const std::function< void(const UIActionContext &context, BNHighlightColor color)> & | activate, |
| const std::function< bool()> & | isValid ) |
◆ UIHighlightColorAction() [7/8]
| UIHighlightColorAction::UIHighlightColorAction | ( | const std::function< void(BNHighlightColor color)> & | activate, |
| const std::function< bool()> & | isValid ) |
◆ UIHighlightColorAction() [8/8]
| UIHighlightColorAction::UIHighlightColorAction | ( | const UIHighlightColorAction & | other | ) |
◆ activate
std::function<void(const UIActionContext& context, BNHighlightColor color)> UIHighlightColorAction::activate
◆ isValid
std::function<bool(const UIActionContext& context)> UIHighlightColorAction::isValid
◆ UIBookmarkAction
Public Member Functions | |
| UIBookmarkAction (const std::function< void(const UIActionContext &context, int index)> &activate, const std::function< bool(const UIActionContext &context, int index)> &isValid) | |
Public Attributes | |
| std::function< void(const UIActionContext &context, int index)> | activate |
| std::function< bool(const UIActionContext &context, int index)> | isValid |
◆ UIBookmarkAction()
| UIBookmarkAction::UIBookmarkAction | ( | const std::function< void(const UIActionContext &context, int index)> & | activate, |
| const std::function< bool(const UIActionContext &context, int index)> & | isValid ) |
◆ activate
std::function<void(const UIActionContext& context, int index)> UIBookmarkAction::activate
◆ isValid
std::function<bool(const UIActionContext& context, int index)> UIBookmarkAction::isValid
◆ UIActionHandler
Public Member Functions | |
| UIActionHandler (bool isGlobal=false) | |
| virtual | ~UIActionHandler () |
| void | setupActionHandler (QWidget *obj, bool inheritParentBindings=true) |
| void | bindAction (const QString &name, const UIAction &action) |
| void | bindAction (const QString &name, const UIAction &action, ActionPriority priority) |
| void | unbindAction (const QString &name) |
| void | executeAction (const QString &name) |
| void | executeAction (const QString &name, const UIActionContext &context) |
| bool | isBoundAction (const QString &name) |
| bool | isValidAction (const QString &name) |
| bool | isValidAction (const QString &name, const UIActionContext &context) |
| ActionPriority | getPriority (const QString &name) |
| void | bindCopyAsActions (const UITransformAction &action) |
| void | bindCopyAsActions (const UITransformAction &action, const std::function< bool()> &shouldShow) |
| void | bindPasteFromActions (const UITransformAction &action) |
| void | bindTransformActions (const UITransformAction &encode, const UITransformAction &decode) |
| void | bindTransformActions (const UITransformAction &encode, const UITransformAction &decode, const std::function< bool()> &shouldShow) |
| void | unbindCopyAsActions () |
| void | unbindPasteFromActions () |
| void | unbindTransformActions () |
| void | bindPluginCommandActions () |
| void | bindPluginCommandActions (const QString &prefix, const std::function< UIActionContext(const UIActionContext &, const BinaryNinja::PluginCommand &)> &context, const std::function< bool(const UIActionContext &, const BinaryNinja::PluginCommand &)> &isValid) |
| void | unbindPluginCommandActions () |
| void | unbindPluginCommandActions (const QString &prefix) |
| void | bindHighlightColorActions (const QString &prefix, const UIHighlightColorAction &action) |
| void | unbindHighlightColorActions (const QString &prefix) |
| void | bindBookmarkActions (const QString &prefix, const UIBookmarkAction &action) |
| void | unbindBookmarkActions (const QString &prefix) |
| void | setActionDisplayName (const QString ®isteredName, const QString &displayName) |
| void | setActionDisplayName (const QString ®isteredName, const std::function< QString()> &displayNameFunc) |
| void | setActionDisplayName (const QString ®isteredName, const std::function< QString(const UIActionContext &)> &displayNameFunc) |
| QString | getActionDisplayName (const QString &name) |
| QString | getActionDisplayName (const QString &name, const UIActionContext &context) |
| void | setChecked (const QString &name, bool checked) |
| void | setChecked (const QString &name, const std::function< bool()> &checked) |
| void | setChecked (const QString &name, const std::function< bool(const UIActionContext &)> &checked) |
| bool | isChecked (const QString &name) |
| bool | isChecked (const QString &name, const UIActionContext &context) |
| bool | isCheckable (const QString &name) |
| std::set< QString > | getAllValidActions () |
| std::set< QString > | getAllValidActions (const UIActionContext &context) |
| UIActionContext | defaultActionContext () |
| virtual UIActionContext | actionContext () |
| void | setActionContext (const std::function< UIActionContext()> &contextFunc) |
| QWidget * | widget () |
Static Public Member Functions | |
| static UIActionHandler * | actionHandlerFromWidget (QWidget *widget) |
| static UIActionHandler * | globalActions () |
| static void | updateActionBindings (const QString &name) |
| static bool | isActionBoundToAnyHandler (const QString &name) |
| static void | addGlobalMenuAction (const QString &name) |
| static void | removeGlobalMenuAction (const QString &name) |
| static void | reparentWidget (QWidget *widget) |
Friends | |
| class | UIActionHandlerWidgetConnection |
◆ UIActionHandler()
| UIActionHandler::UIActionHandler | ( | bool | isGlobal = false | ) |
◆ ~UIActionHandler()
|
virtual |
◆ setupActionHandler()
| void UIActionHandler::setupActionHandler | ( | QWidget * | obj, |
| bool | inheritParentBindings = true ) |
◆ actionHandlerFromWidget()
|
static |
◆ globalActions()
|
static |
◆ bindAction() [1/2]
| void UIActionHandler::bindAction | ( | const QString & | name, |
| const UIAction & | action ) |
◆ bindAction() [2/2]
| void UIActionHandler::bindAction | ( | const QString & | name, |
| const UIAction & | action, | ||
| ActionPriority | priority ) |
◆ unbindAction()
| void UIActionHandler::unbindAction | ( | const QString & | name | ) |
◆ executeAction() [1/2]
| void UIActionHandler::executeAction | ( | const QString & | name | ) |
◆ executeAction() [2/2]
| void UIActionHandler::executeAction | ( | const QString & | name, |
| const UIActionContext & | context ) |
◆ isBoundAction()
| bool UIActionHandler::isBoundAction | ( | const QString & | name | ) |
◆ isValidAction() [1/2]
| bool UIActionHandler::isValidAction | ( | const QString & | name | ) |
◆ isValidAction() [2/2]
| bool UIActionHandler::isValidAction | ( | const QString & | name, |
| const UIActionContext & | context ) |
◆ getPriority()
| ActionPriority UIActionHandler::getPriority | ( | const QString & | name | ) |
◆ bindCopyAsActions() [1/2]
| void UIActionHandler::bindCopyAsActions | ( | const UITransformAction & | action | ) |
◆ bindCopyAsActions() [2/2]
| void UIActionHandler::bindCopyAsActions | ( | const UITransformAction & | action, |
| const std::function< bool()> & | shouldShow ) |
◆ bindPasteFromActions()
| void UIActionHandler::bindPasteFromActions | ( | const UITransformAction & | action | ) |
◆ bindTransformActions() [1/2]
| void UIActionHandler::bindTransformActions | ( | const UITransformAction & | encode, |
| const UITransformAction & | decode ) |
◆ bindTransformActions() [2/2]
| void UIActionHandler::bindTransformActions | ( | const UITransformAction & | encode, |
| const UITransformAction & | decode, | ||
| const std::function< bool()> & | shouldShow ) |
◆ unbindCopyAsActions()
| void UIActionHandler::unbindCopyAsActions | ( | ) |
◆ unbindPasteFromActions()
| void UIActionHandler::unbindPasteFromActions | ( | ) |
◆ unbindTransformActions()
| void UIActionHandler::unbindTransformActions | ( | ) |
◆ bindPluginCommandActions() [1/2]
| void UIActionHandler::bindPluginCommandActions | ( | ) |
◆ bindPluginCommandActions() [2/2]
◆ unbindPluginCommandActions() [1/2]
| void UIActionHandler::unbindPluginCommandActions | ( | ) |
◆ unbindPluginCommandActions() [2/2]
| void UIActionHandler::unbindPluginCommandActions | ( | const QString & | prefix | ) |
◆ bindHighlightColorActions()
| void UIActionHandler::bindHighlightColorActions | ( | const QString & | prefix, |
| const UIHighlightColorAction & | action ) |
◆ unbindHighlightColorActions()
| void UIActionHandler::unbindHighlightColorActions | ( | const QString & | prefix | ) |
◆ bindBookmarkActions()
| void UIActionHandler::bindBookmarkActions | ( | const QString & | prefix, |
| const UIBookmarkAction & | action ) |
◆ unbindBookmarkActions()
| void UIActionHandler::unbindBookmarkActions | ( | const QString & | prefix | ) |
◆ setActionDisplayName() [1/3]
| void UIActionHandler::setActionDisplayName | ( | const QString & | registeredName, |
| const QString & | displayName ) |
◆ setActionDisplayName() [2/3]
| void UIActionHandler::setActionDisplayName | ( | const QString & | registeredName, |
| const std::function< QString()> & | displayNameFunc ) |
◆ setActionDisplayName() [3/3]
| void UIActionHandler::setActionDisplayName | ( | const QString & | registeredName, |
| const std::function< QString(const UIActionContext &)> & | displayNameFunc ) |
◆ getActionDisplayName() [1/2]
| QString UIActionHandler::getActionDisplayName | ( | const QString & | name | ) |
◆ getActionDisplayName() [2/2]
| QString UIActionHandler::getActionDisplayName | ( | const QString & | name, |
| const UIActionContext & | context ) |
◆ setChecked() [1/3]
| void UIActionHandler::setChecked | ( | const QString & | name, |
| bool | checked ) |
◆ setChecked() [2/3]
| void UIActionHandler::setChecked | ( | const QString & | name, |
| const std::function< bool()> & | checked ) |
◆ setChecked() [3/3]
| void UIActionHandler::setChecked | ( | const QString & | name, |
| const std::function< bool(const UIActionContext &)> & | checked ) |
◆ isChecked() [1/2]
| bool UIActionHandler::isChecked | ( | const QString & | name | ) |
◆ isChecked() [2/2]
| bool UIActionHandler::isChecked | ( | const QString & | name, |
| const UIActionContext & | context ) |
◆ isCheckable()
| bool UIActionHandler::isCheckable | ( | const QString & | name | ) |
◆ getAllValidActions() [1/2]
| std::set< QString > UIActionHandler::getAllValidActions | ( | ) |
◆ getAllValidActions() [2/2]
| std::set< QString > UIActionHandler::getAllValidActions | ( | const UIActionContext & | context | ) |
◆ defaultActionContext()
| UIActionContext UIActionHandler::defaultActionContext | ( | ) |
◆ actionContext()
|
virtual |
◆ setActionContext()
| void UIActionHandler::setActionContext | ( | const std::function< UIActionContext()> & | contextFunc | ) |
◆ widget()
|
inline |
◆ updateActionBindings()
|
static |
◆ isActionBoundToAnyHandler()
|
static |
◆ addGlobalMenuAction()
|
static |
◆ removeGlobalMenuAction()
|
static |
◆ reparentWidget()
|
static |
◆ UIActionHandlerWidgetConnection
◆ Menu
Public Member Functions | |
| Menu () | |
| Menu (const Menu &menu) | |
| void | addAction (const QString &action, const QString &group, uint8_t order=128) |
| void | addRelativeAction (const QString &base, 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 | addRelativeAction (const QString &submenu, const QString &base, 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, const std::vector< BNPluginCommandType > &types={}) |
| void | addPluginCommandSubmenuActions (const QString &submenu, const QString &group, const std::vector< BNPluginCommandType > &types) |
| 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) |
| MenuInstance * | create (QWidget *owner, UIActionHandler *handler, bool showInactiveActions=false) |
| MenuInstance * | create (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 Menu * | mainMenu (const QString &name) |
| static Menu * | dockMenu () |
| static void | setMainMenuOrder (const QString &name, uint8_t order) |
| static std::vector< QString > | getMainMenus () |
◆ Menu() [1/2]
◆ Menu() [2/2]
| Menu::Menu | ( | const Menu & | menu | ) |
◆ addAction() [1/2]
| void Menu::addAction | ( | const QString & | action, |
| const QString & | group, | ||
| uint8_t | order = 128 ) |
◆ addRelativeAction() [1/2]
| void Menu::addRelativeAction | ( | const QString & | base, |
| 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 ) |
◆ addRelativeAction() [2/2]
| void Menu::addRelativeAction | ( | const QString & | submenu, |
| const QString & | base, | ||
| const QString & | action, | ||
| const QString & | group, | ||
| uint8_t | order = 128 ) |
◆ removeAction() [1/2]
| void Menu::removeAction | ( | const QString & | action | ) |
◆ removeAction() [2/2]
| void Menu::removeAction | ( | const QString & | submenu, |
| const QString & | action ) |
◆ addCopyAsActions()
| void Menu::addCopyAsActions | ( | const QString & | group, |
| uint8_t | order = 128 ) |
◆ addPasteFromActions()
| void Menu::addPasteFromActions | ( | const QString & | group, |
| uint8_t | order = 128 ) |
◆ addTransformActions()
| void Menu::addTransformActions | ( | const QString & | group, |
| uint8_t | order = 128 ) |
◆ removeCopyAsActions()
| void Menu::removeCopyAsActions | ( | ) |
◆ removePasteFromActions()
| void Menu::removePasteFromActions | ( | ) |
◆ removeTransformActions()
| void Menu::removeTransformActions | ( | ) |
◆ 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, | ||
| const std::vector< BNPluginCommandType > & | types = {} ) |
◆ addPluginCommandSubmenuActions()
| void Menu::addPluginCommandSubmenuActions | ( | const QString & | submenu, |
| const QString & | group, | ||
| const std::vector< BNPluginCommandType > & | types ) |
◆ removePluginCommandActions()
| void Menu::removePluginCommandActions | ( | ) |
◆ removePluginCommandSubmenuActions()
| void Menu::removePluginCommandSubmenuActions | ( | const QString & | submenu | ) |
◆ addHighlightColorActions()
| void Menu::addHighlightColorActions | ( | const QString & | submenu, |
| const QString & | group, | ||
| uint8_t | order = 128 ) |
◆ removeHighlightColorActions()
| void Menu::removeHighlightColorActions | ( | const QString & | submenu | ) |
◆ setOrdering()
| void Menu::setOrdering | ( | const QString & | path, |
| const QString & | group, | ||
| uint8_t | order = 128 ) |
◆ setGroupOrdering()
| void Menu::setGroupOrdering | ( | const QString & | group, |
| uint8_t | order ) |
◆ setVisibility()
| void Menu::setVisibility | ( | const QString & | path, |
| MenuItemVisibility | visibility ) |
◆ setRole()
| void Menu::setRole | ( | const QString & | path, |
| QAction::MenuRole | role ) |
◆ setIcon()
| void Menu::setIcon | ( | const QString & | path, |
| const QIcon & | icon ) |
◆ 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 ) |
◆ getVersion()
| uint64_t Menu::getVersion | ( | ) |
◆ getActions()
| const std::map< QString, QString > & Menu::getActions | ( | ) |
◆ getGroupForAction()
| QString Menu::getGroupForAction | ( | const QString & | name | ) |
◆ getOrderForAction()
| uint8_t Menu::getOrderForAction | ( | const QString & | name | ) |
◆ getOrderForGroup()
| uint8_t Menu::getOrderForGroup | ( | const QString & | name | ) |
◆ getVisibility()
| MenuItemVisibility Menu::getVisibility | ( | const QString & | name | ) |
◆ getRole()
| QAction::MenuRole Menu::getRole | ( | const QString & | name | ) |
◆ getIcon()
| QIcon Menu::getIcon | ( | const QString & | name | ) |
◆ mainMenu()
|
static |
◆ dockMenu()
|
static |
◆ setMainMenuOrder()
|
static |
◆ getMainMenus()
|
static |
◆ MenuInstance
Public Member Functions | |
| MenuInstance (Menu *menu, QMenu *instance) | |
| virtual | ~MenuInstance () |
| void | update (UIActionHandler *handler, bool showInactiveActions=false) |
| void | update (UIActionHandler *handler, const UIActionContext &context, bool showInactiveActions=false) |
| Menu * | source () const |
| QMenu * | instance () const |
Static Public Member Functions | |
| static void | updateActionBindings (const QString &name) |
◆ MenuInstance()
| MenuInstance::MenuInstance | ( | Menu * | menu, |
| QMenu * | instance ) |
◆ ~MenuInstance()
|
virtual |
◆ update() [1/2]
| void MenuInstance::update | ( | UIActionHandler * | handler, |
| bool | showInactiveActions = false ) |
◆ update() [2/2]
| void MenuInstance::update | ( | UIActionHandler * | handler, |
| const UIActionContext & | context, | ||
| bool | showInactiveActions = false ) |
◆ source()
|
inline |
◆ instance()
|
inline |
◆ updateActionBindings()
|
static |
◆ MainMenuInstance
Public Member Functions | |
| MainMenuInstance (QMenuBar *instance) | |
| ~MainMenuInstance () | |
| void | update (UIActionHandler *handler) |
| void | update (UIActionHandler *handler, const UIActionContext &context) |
◆ MainMenuInstance()
| MainMenuInstance::MainMenuInstance | ( | QMenuBar * | instance | ) |
◆ ~MainMenuInstance()
| MainMenuInstance::~MainMenuInstance | ( | ) |
◆ update() [1/2]
| void MainMenuInstance::update | ( | UIActionHandler * | handler | ) |
◆ update() [2/2]
| void MainMenuInstance::update | ( | UIActionHandler * | handler, |
| const UIActionContext & | context ) |