SCV  4.2.1
Simple Components for Visual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
scv::ContextMenu Class Reference

#include <ContextMenu.h>

Inheritance diagram for scv::ContextMenu:
scv::ComboBox::ComboBoxMenu

Public Types

typedef std::deque< ContextMenu * > MenuList
 

Public Member Functions

 ContextMenu (const std::string &name)
 
virtual ~ContextMenu (void)
 
virtual void onMenuAccessed (const std::deque< std::string > &address)
 
virtual void onMouseClick (const scv::MouseEvent &evt, const std::deque< std::string > &address)
 
virtual void onMouseOver (const scv::MouseEvent &evt, const std::deque< std::string > &address)
 
virtual void onStatusChange (void)
 
void addMenu (ContextMenu *menu)
 
void removeMenu (ContextMenu *menu)
 
void removeAllMenus ()
 
std::string getString (void)
 
void setString (const std::string &label)
 
void setPosition (const scv::Point &position)
 
scv::Point getCurrPosition (void) const
 
bool getStatus (void) const
 
void setStatus (bool status)
 
int getWidth (void) const
 
int getHeight (void) const
 
bool hasSubMenus (void) const
 
void setMenuStyle (const PopupMenuStyle *style)
 
const MenuListgetMenus () const
 
bool processMouse (const scv::MouseEvent &evt)
 
bool processKey (const scv::KeyEvent &evt)
 
void display (void)
 

Friends

class MenuHolder
 
class MenuBar
 

Member Typedef Documentation

Constructor & Destructor Documentation

scv::ContextMenu::ContextMenu ( const std::string &  name)
scv::ContextMenu::~ContextMenu ( void  )
virtual

Member Function Documentation

void scv::ContextMenu::addMenu ( ContextMenu menu)
void scv::ContextMenu::display ( void  )
scv::Point scv::ContextMenu::getCurrPosition ( void  ) const
inline
int scv::ContextMenu::getHeight ( void  ) const
inline
const ContextMenu::MenuList & scv::ContextMenu::getMenus ( ) const
inline
bool scv::ContextMenu::getStatus ( void  ) const
inline
std::string scv::ContextMenu::getString ( void  )
inline
int scv::ContextMenu::getWidth ( void  ) const
inline
bool scv::ContextMenu::hasSubMenus ( void  ) const
inline
virtual void scv::ContextMenu::onMenuAccessed ( const std::deque< std::string > &  address)
inlinevirtual

Reimplemented in scv::ComboBox::ComboBoxMenu.

virtual void scv::ContextMenu::onMouseClick ( const scv::MouseEvent evt,
const std::deque< std::string > &  address 
)
inlinevirtual
virtual void scv::ContextMenu::onMouseOver ( const scv::MouseEvent evt,
const std::deque< std::string > &  address 
)
inlinevirtual
virtual void scv::ContextMenu::onStatusChange ( void  )
inlinevirtual

Reimplemented in scv::ComboBox::ComboBoxMenu.

bool scv::ContextMenu::processKey ( const scv::KeyEvent evt)
bool scv::ContextMenu::processMouse ( const scv::MouseEvent evt)
void scv::ContextMenu::removeAllMenus ( )
void scv::ContextMenu::removeMenu ( ContextMenu menu)
void scv::ContextMenu::setMenuStyle ( const PopupMenuStyle style)
void scv::ContextMenu::setPosition ( const scv::Point position)
inline
void scv::ContextMenu::setStatus ( bool  status)
void scv::ContextMenu::setString ( const std::string &  label)
inline

Friends And Related Function Documentation

friend class MenuBar
friend
friend class MenuHolder
friend

The documentation for this class was generated from the following files: