#include <Fireworks/Core/interface/FWViewContextMenuHandlerBase.h>
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 &) | |
virtual void | init (MenuEntryAdder &, const FWModelId &id)=0 |
Called when have to add entries to the context menu. | |
const FWViewContextMenuHandlerBase & | operator= (const FWViewContextMenuHandlerBase &) |
Description: Base class for handling context menu's from views
Usage: <usage>
Definition at line 31 of file FWViewContextMenuHandlerBase.h.
FWViewContextMenuHandlerBase::FWViewContextMenuHandlerBase | ( | ) |
Definition at line 41 of file FWViewContextMenuHandlerBase.cc.
{ }
FWViewContextMenuHandlerBase::~FWViewContextMenuHandlerBase | ( | ) | [virtual] |
Definition at line 50 of file FWViewContextMenuHandlerBase.cc.
{ }
FWViewContextMenuHandlerBase::FWViewContextMenuHandlerBase | ( | const FWViewContextMenuHandlerBase & | ) | [private] |
void FWViewContextMenuHandlerBase::addTo | ( | FWModelContextMenuHandler & | iHandle, |
const FWModelId & | id | ||
) |
Definition at line 70 of file FWViewContextMenuHandlerBase.cc.
References init().
Referenced by FWModelContextMenuHandler::showSelectedModelContext().
{ MenuEntryAdder adder(iHandle); init(adder, id); }
virtual void FWViewContextMenuHandlerBase::init | ( | MenuEntryAdder & | , |
const FWModelId & | id | ||
) | [private, pure virtual] |
Called when have to add entries to the context menu.
Implemented in FWViewContextMenuHandlerGL.
Referenced by addTo().
const FWViewContextMenuHandlerBase& FWViewContextMenuHandlerBase::operator= | ( | const FWViewContextMenuHandlerBase & | ) | [private] |
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().