NCBI C++ ToolKit
|
#include <corelib/ncbistd.hpp>
#include <gui/utils/extension.hpp>
#include <gui/objutils/objects.hpp>
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
class | IObjectCmdContributor |
IObjectCmdContributor - contributes commands applicable to scoped objects. More... | |
Macros | |
#define | EXT_POINT__SCOPED_OBJECTS__CMD_CONTRIBUTOR "scoped_objects::cmd_contributor" |
This Extension Point allows external components to add commands that can be applied to scoped CObjects. More... | |
Functions | |
void | AddCommandsForScopedObjects (wxMenu &aMenu, vector< wxEvtHandler * > &handlers, const string &anExtPointId, TConstScopedObjects &objects, CUICommandRegistry *aCmdReg=NULL) |
Helper function for adding commands provided by contributors to the menu. More... | |
wxMenu * | CreateContextMenuBackbone () |
#define EXT_POINT__SCOPED_OBJECTS__CMD_CONTRIBUTOR "scoped_objects::cmd_contributor" |
This Extension Point allows external components to add commands that can be applied to scoped CObjects.
The Extensions shall implement IObjectCmdContributor interface. This extension point can be used by various UI components as a source of commands for context menus.
Definition at line 54 of file object_contrib.hpp.
void AddCommandsForScopedObjects | ( | wxMenu & | aMenu, |
vector< wxEvtHandler * > & | handlers, | ||
const string & | anExtPointId, | ||
TConstScopedObjects & | objects, | ||
CUICommandRegistry * | aCmdReg = NULL |
||
) |
Helper function for adding commands provided by contributors to the menu.
Definition at line 46 of file object_contrib.cpp.
References GetExtensionAsInterface(), CUICommandRegistry::GetInstance(), IObjectCmdContributor::GetMenu(), i, Merge(), and NULL.
Referenced by CObjectListWidget::AppendMenuItems(), CTextItemPanel::OnContextMenu(), and sAddScopedObjectCommands().
wxMenu* CreateContextMenuBackbone | ( | ) |
Definition at line 90 of file object_contrib.cpp.
References CUICommandRegistry::CreateMenu(), and CUICommandRegistry::GetInstance().
Referenced by CSelectionViewEventHandler::OnContextMenu(), CDataMiningPanel::OnContextMenu(), CEventTablePanel::OnContextMenu(), and CTaskTablePanel::OnContextMenu().