#include <Fireworks/Core/interface/FWViewContextMenuHandlerBase.h>
Classes | |
class | MenuEntryAdder |
Public Member Functions | |
void | addTo (FWModelContextMenuHandler &) |
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 &)=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 & | iHandler | ) |
Definition at line 70 of file FWViewContextMenuHandlerBase.cc.
References init().
Referenced by FWModelContextMenuHandler::showSelectedModelContext().
{ MenuEntryAdder adder(iHandler); init(adder); }
virtual void FWViewContextMenuHandlerBase::init | ( | MenuEntryAdder & | ) | [private, pure virtual] |
Called when have to add entries to the context menu.
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
Referenced by FWModelContextMenuHandler::chosenItem().