NCBI C++ ToolKit
|
Search Toolkit Book for IMenuContributor
IMenuContributor - contributes menu to Menu Service. More...
#include <gui/widgets/wx/ui_command.hpp>
Public Member Functions | |
virtual const wxMenu * | GetMenu () |
returns a menu (must be deleted by the caller) menu injections should follow a separator named "Contribs" More... | |
virtual | ~IMenuContributor () |
Protected Member Functions | |
virtual const SwxMenuItemRec * | GetMenuDef () const |
simpler way to provide a static menu using macros defined earlier in this file More... | |
IMenuContributor - contributes menu to Menu Service.
Objects such as Views can declare extension points that will be be extended by classes implementing IMenuContributor.
This interface is to be implemented by packages and views.
Definition at line 370 of file ui_command.hpp.
|
inlinevirtual |
Definition at line 379 of file ui_command.hpp.
|
inlinevirtual |
returns a menu (must be deleted by the caller) menu injections should follow a separator named "Contribs"
Reimplemented in CTextView, CSelectionView, CGLTestWMClient, CTreeWMClient, CHTMLWMClient, CTextWMClient, CClockPanelWMClient, CSequinDesktopView, CViewGraphic, CWindowManagerService, CTaskView, CEventView, CDiagConsoleView, CwxGLTestView, CFrameworkDemoGUI, CProjectViewBase, CProjectTreeView, and CDataMiningView.
Definition at line 375 of file ui_command.hpp.
References CUICommandRegistry::CreateMenu(), CUICommandRegistry::GetInstance(), and GetMenuDef().
Referenced by CProjectViewBase::GetMenu(), and CMenuService::ResetMenuBar().
|
inlineprotectedvirtual |
simpler way to provide a static menu using macros defined earlier in this file
Reimplemented in CSeqEditPackage, CAlignPackage, CBioseqEditor, and CMultiAlignView.
Definition at line 384 of file ui_command.hpp.
References NULL.
Referenced by CProjectViewBase::GetMenu(), and GetMenu().