NCBI C++ ToolKit
Classes | Macros | Functions
object_contrib.hpp File Reference
#include <corelib/ncbistd.hpp>
#include <gui/utils/extension.hpp>
#include <gui/objutils/objects.hpp>
+ Include dependency graph for object_contrib.hpp:
+ This graph shows which files directly or indirectly include this file:

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

Macro Definition Documentation

◆ EXT_POINT__SCOPED_OBJECTS__CMD_CONTRIBUTOR

#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.

Function Documentation

◆ AddCommandsForScopedObjects()

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().

◆ CreateContextMenuBackbone()

wxMenu* CreateContextMenuBackbone ( )
Modified on Fri Sep 20 14:57:40 2024 by modify_doxy.py rev. 669887