cwidget  0.5.16
Public Member Functions | Public Attributes
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.


Member Data Documentation

sigc::signal0<bool, util::accumulate_or> cwidget::widgets::menu_item::enabled

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.

sigc::signal0<void> cwidget::widgets::menu_item::selected

Emitted when the menu item is selected.


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