UIActionHandler Class Reference

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 bindPasteFromActions (const UITransformAction &action)
 
void bindTransformActions (const UITransformAction &encode, const UITransformAction &decode)
 
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 &registeredName, const QString &displayName)
 
void setActionDisplayName (const QString &registeredName, const std::function< QString()> &displayNameFunc)
 
void setActionDisplayName (const QString &registeredName, 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 UIActionHandleractionHandlerFromWidget (QWidget *widget)
 
static UIActionHandlerglobalActions ()
 
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)
 

Constructor & Destructor Documentation

◆ UIActionHandler()

UIActionHandler::UIActionHandler ( bool  isGlobal = false)

◆ ~UIActionHandler()

virtual UIActionHandler::~UIActionHandler ( )
virtual

Member Function Documentation

◆ actionContext()

virtual UIActionContext UIActionHandler::actionContext ( )
virtual

◆ actionHandlerFromWidget()

static UIActionHandler * UIActionHandler::actionHandlerFromWidget ( QWidget *  widget)
static

◆ addGlobalMenuAction()

static void UIActionHandler::addGlobalMenuAction ( const QString &  name)
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 
)

◆ bindBookmarkActions()

void UIActionHandler::bindBookmarkActions ( const QString &  prefix,
const UIBookmarkAction action 
)

◆ bindCopyAsActions()

void UIActionHandler::bindCopyAsActions ( const UITransformAction action)

◆ bindHighlightColorActions()

void UIActionHandler::bindHighlightColorActions ( const QString &  prefix,
const UIHighlightColorAction action 
)

◆ bindPasteFromActions()

void UIActionHandler::bindPasteFromActions ( const UITransformAction action)

◆ bindPluginCommandActions() [1/2]

void UIActionHandler::bindPluginCommandActions ( )

◆ bindPluginCommandActions() [2/2]

void UIActionHandler::bindPluginCommandActions ( const QString &  prefix,
const std::function< UIActionContext(const UIActionContext &, const BinaryNinja::PluginCommand &)> &  context,
const std::function< bool(const UIActionContext &, const BinaryNinja::PluginCommand &)> &  isValid 
)

◆ bindTransformActions()

void UIActionHandler::bindTransformActions ( const UITransformAction encode,
const UITransformAction decode 
)

◆ defaultActionContext()

UIActionContext UIActionHandler::defaultActionContext ( )

◆ executeAction() [1/2]

void UIActionHandler::executeAction ( const QString &  name)

◆ executeAction() [2/2]

void UIActionHandler::executeAction ( const QString &  name,
const UIActionContext context 
)

◆ getActionDisplayName() [1/2]

QString UIActionHandler::getActionDisplayName ( const QString &  name)

◆ getActionDisplayName() [2/2]

QString UIActionHandler::getActionDisplayName ( const QString &  name,
const UIActionContext context 
)

◆ getAllValidActions() [1/2]

std::set< QString > UIActionHandler::getAllValidActions ( )

◆ getAllValidActions() [2/2]

std::set< QString > UIActionHandler::getAllValidActions ( const UIActionContext context)

◆ getPriority()

ActionPriority UIActionHandler::getPriority ( const QString &  name)

◆ globalActions()

static UIActionHandler * UIActionHandler::globalActions ( )
static

◆ isActionBoundToAnyHandler()

static bool UIActionHandler::isActionBoundToAnyHandler ( const QString &  name)
static

◆ isBoundAction()

bool UIActionHandler::isBoundAction ( const QString &  name)

◆ isCheckable()

bool UIActionHandler::isCheckable ( const QString &  name)

◆ isChecked() [1/2]

bool UIActionHandler::isChecked ( const QString &  name)

◆ isChecked() [2/2]

bool UIActionHandler::isChecked ( const QString &  name,
const UIActionContext context 
)

◆ isValidAction() [1/2]

bool UIActionHandler::isValidAction ( const QString &  name)

◆ isValidAction() [2/2]

bool UIActionHandler::isValidAction ( const QString &  name,
const UIActionContext context 
)

◆ removeGlobalMenuAction()

static void UIActionHandler::removeGlobalMenuAction ( const QString &  name)
static

◆ reparentWidget()

static void UIActionHandler::reparentWidget ( QWidget *  widget)
static

◆ setActionContext()

void UIActionHandler::setActionContext ( const std::function< UIActionContext()> &  contextFunc)

◆ 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 
)

◆ 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 
)

◆ setupActionHandler()

void UIActionHandler::setupActionHandler ( QWidget *  obj,
bool  inheritParentBindings = true 
)

◆ unbindAction()

void UIActionHandler::unbindAction ( const QString &  name)

◆ unbindBookmarkActions()

void UIActionHandler::unbindBookmarkActions ( const QString &  prefix)

◆ unbindCopyAsActions()

void UIActionHandler::unbindCopyAsActions ( )

◆ unbindHighlightColorActions()

void UIActionHandler::unbindHighlightColorActions ( const QString &  prefix)

◆ unbindPasteFromActions()

void UIActionHandler::unbindPasteFromActions ( )

◆ unbindPluginCommandActions() [1/2]

void UIActionHandler::unbindPluginCommandActions ( )

◆ unbindPluginCommandActions() [2/2]

void UIActionHandler::unbindPluginCommandActions ( const QString &  prefix)

◆ unbindTransformActions()

void UIActionHandler::unbindTransformActions ( )

◆ updateActionBindings()

static void UIActionHandler::updateActionBindings ( const QString &  name)
static

◆ widget()

QWidget * UIActionHandler::widget ( )
inline

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