cwidget::widgets::statuschoice Class Reference

Inheritance diagram for cwidget::widgets::statuschoice:
cwidget::widgets::widget trackable

List of all members.

Public Member Functions

int width_request ()
int height_request (int w)
 Calculate the desired height of the widget, given its width.
bool get_cursorvisible ()
point get_cursorloc ()
bool focus_me ()
void paint (const style &st)
 Display this widget.

Static Public Member Functions

static util::ref_ptr
< statuschoice
create (const std::wstring &prompt, const std::wstring &choices)
static void init_bindings ()

Public Attributes

sigc::signal1< void, int > chosen

Static Public Attributes

static config::keybindingsbindings = NULL

Protected Member Functions

bool handle_key (const config::key &k)
 Handles a keypress in this widget.
 statuschoice (const std::wstring &_prompt, const std::wstring &_choices)

Member Function Documentation

bool cwidget::widgets::statuschoice::handle_key ( const config::key k  )  [protected, virtual]

Handles a keypress in this widget.

Parameters:
k the key that was pressed (see keybindings.h).
Returns:
true if the key was consumed; if false is returned, further processing of the key will be performed.

Reimplemented from cwidget::widgets::widget.

References cwidget::config::key::ch, cwidget::widgets::widget::destroy(), cwidget::config::key::function_key, and cwidget::config::keybindings::key_matches().

int cwidget::widgets::statuschoice::height_request ( int  width  )  [virtual]

Calculate the desired height of the widget, given its width.

Parameters:
width the width of this widget
Returns:
the desired height

Implements cwidget::widgets::widget.

void cwidget::widgets::statuschoice::paint ( const style st  )  [virtual]

Display this widget.

Parameters:
st the style environment in which the widget is to be displayed.

Implements cwidget::widgets::widget.

int cwidget::widgets::statuschoice::width_request (  )  [virtual]
Returns:
the desired width of the widget.

Implements cwidget::widgets::widget.


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