cwidget::widgets::menu_item Class Reference

List of all members.

Public Member Functions

 menu_item (const std::wstring &_title, const std::string &_binding, const std::wstring &_description)
std::wstring get_title () const
std::string get_binding () const
std::wstring get_description () const
chtype get_hotkey () const
bool is_enabled () const
 The canonical way to test whether an item is really enabled.

Public Attributes

sigc::signal0< void > selected
 Emitted when the menu item is selected.
sigc::signal0< bool,
util::accumulate_or
enabled
 Emitted to test whether the menu item should be displayed as "active".

Member Function Documentation

bool cwidget::widgets::menu_item::is_enabled (  )  const

The canonical way to test whether an item is really enabled.

References enabled, and selected.


Member Data Documentation

Emitted to test whether the menu item should be displayed as "active".

If this signal is empty, the item will be displayed as "active" iff "selected" is non-empty. Otherwise, the return value of the signal is used.

Referenced by is_enabled().

Emitted when the menu item is selected.

Referenced by is_enabled().


The documentation for this class was generated from the following files:
Generated on Sun May 9 13:04:56 2010 for cwidget by  doxygen 1.6.3