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 ()
 
virtual void select (int iEntryIndex, const FWModelId &id, int iX, int iY)=0
 
virtual ~FWViewContextMenuHandlerBase ()
 

Private Member Functions

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

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

Member Function Documentation

◆ addTo()

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

Definition at line 61 of file FWViewContextMenuHandlerBase.cc.

61  {
62  MenuEntryAdder adder(iHandle);
63  init(adder, id);
64 }

References init().

Referenced by FWModelContextMenuHandler::showSelectedModelContext().

◆ 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 )
privatedelete

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

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