NCBI C++ ToolKit
Public Member Functions | List of all members
IToolBarContributor Class Referenceabstract

Search Toolkit Book for IToolBarContributor

IToolBarContributor - a factory that produces toolbars. More...

#include <gui/widgets/wx/ui_command.hpp>

+ Inheritance diagram for IToolBarContributor:

Public Member Functions

virtual void GetToolBarNames (vector< string > &names)=0
 returns the names of toolbars produced More...
 
virtual wxAuiToolBar * CreateToolBar (const string &name, wxWindow *parent)=0
 creates a toolbar with the given name (must be deleted by the caller) More...
 
virtual ~IToolBarContributor ()
 

Detailed Description

IToolBarContributor - a factory that produces toolbars.

Toolbars can be shared across views, so vie showld implement a method GetCompatibleToolBars( vector<string>& names ) to designate toolbars it handles.

This interface is to be implemented by packages and view factories.

Definition at line 394 of file ui_command.hpp.

Constructor & Destructor Documentation

◆ ~IToolBarContributor()

virtual IToolBarContributor::~IToolBarContributor ( )
inlinevirtual

Definition at line 403 of file ui_command.hpp.

Member Function Documentation

◆ CreateToolBar()

virtual wxAuiToolBar* IToolBarContributor::CreateToolBar ( const string name,
wxWindow *  parent 
)
pure virtual

creates a toolbar with the given name (must be deleted by the caller)

Implemented in CFrameworkDemoToolBarFactory, and CProjectViewToolBatFactory.

Referenced by CWindowManagerService::x_ShowToolBar().

◆ GetToolBarNames()

virtual void IToolBarContributor::GetToolBarNames ( vector< string > &  names)
pure virtual

returns the names of toolbars produced

Implemented in CFrameworkDemoToolBarFactory, and CProjectViewToolBatFactory.

Referenced by CWindowManagerService::x_ShowToolBar().


The documentation for this class was generated from the following file:
Modified on Wed Sep 04 15:07:09 2024 by modify_doxy.py rev. 669887