CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Member Functions
FWViewContextMenuHandlerBase Class Referenceabstract

#include <Fireworks/Core/interface/FWViewContextMenuHandlerBase.h>

Inheritance diagram for FWViewContextMenuHandlerBase:
FWViewContextMenuHandlerGL

Classes

class  MenuEntryAdder
 

Public Member Functions

void addTo (FWModelContextMenuHandler &, const FWModelId &id)
 
 FWViewContextMenuHandlerBase ()
 
 FWViewContextMenuHandlerBase (const FWViewContextMenuHandlerBase &)=delete
 
const FWViewContextMenuHandlerBaseoperator= (const FWViewContextMenuHandlerBase &)=delete
 
virtual void select (int iEntryIndex, const FWModelId &id, int iX, int iY)=0
 
virtual ~FWViewContextMenuHandlerBase ()
 

Private Member Functions

virtual void init (MenuEntryAdder &, const FWModelId &id)=0
 Called when have to add entries to the context menu. More...
 

Detailed Description

Description: Base class for handling context menu's from views

Usage: <usage>

Definition at line 29 of file FWViewContextMenuHandlerBase.h.

Constructor & Destructor Documentation

◆ FWViewContextMenuHandlerBase() [1/2]

FWViewContextMenuHandlerBase::FWViewContextMenuHandlerBase ( )

Definition at line 37 of file FWViewContextMenuHandlerBase.cc.

37 {}

◆ ~FWViewContextMenuHandlerBase()

FWViewContextMenuHandlerBase::~FWViewContextMenuHandlerBase ( )
virtual

Definition at line 44 of file FWViewContextMenuHandlerBase.cc.

44 {}

◆ FWViewContextMenuHandlerBase() [2/2]

FWViewContextMenuHandlerBase::FWViewContextMenuHandlerBase ( const FWViewContextMenuHandlerBase )
delete

Member Function Documentation

◆ addTo()

void FWViewContextMenuHandlerBase::addTo ( FWModelContextMenuHandler iHandle,
const FWModelId id 
)

Definition at line 61 of file FWViewContextMenuHandlerBase.cc.

References init().

Referenced by FWModelContextMenuHandler::showSelectedModelContext().

61  {
62  MenuEntryAdder adder(iHandle);
63  init(adder, id);
64 }
virtual void init(MenuEntryAdder &, const FWModelId &id)=0
Called when have to add entries to the context menu.

◆ init()

virtual void FWViewContextMenuHandlerBase::init ( MenuEntryAdder ,
const FWModelId id 
)
privatepure virtual

Called when have to add entries to the context menu.

Implemented in FWViewContextMenuHandlerGL.

Referenced by addTo().

◆ operator=()

const FWViewContextMenuHandlerBase& FWViewContextMenuHandlerBase::operator= ( const FWViewContextMenuHandlerBase )
delete

◆ select()

virtual void FWViewContextMenuHandlerBase::select ( int  iEntryIndex,
const FWModelId id,
int  iX,
int  iY 
)
pure virtual

Called when a menu item was selected iEntryIndex: the index of the selected menu item. Same as returned from 'addEntry' iX, iY: Screen coordinates of where mouse was clicked

Implemented in FWViewContextMenuHandlerGL.

Referenced by FWModelContextMenuHandler::chosenItem().