Maeomm Reference Documentation: hildonsmm
Main Page   Namespaces   Book  

Hildon::PickerButton Class Reference

Inheritance diagram for Hildon::PickerButton:

Inheritance graph
[legend]

List of all members.


Detailed Description

A button that launches a Hildon::PickerDialog and displays the selected item.

Hildon::PickerButton is a widget that lets the user select a particular item from a list. Visually, it's a button with title and value labels that brings up a Hildon::PickerDialog. The user can then use this dialog to choose an item, which will be displayed in the value label of the button.

You should create your own Hildon::TouchSelector at convenience and set it to the Hildon::PickerButton with Hildon::PickerButton::set_selector(). For the common use cases of buttons to select date and time, you can use Hildon::DateButton and Hildon::TimeButton.

See also:
Hildon::TouchSelector, Hildon::PickerDialog

Public Member Functions

int get_active () const
Glib::ustring get_done_button_text () const
const TouchSelectorget_selector () const
TouchSelectorget_selector ()
const HildonPickerButton* gobj () const
 Provides access to the underlying C GtkObject.
HildonPickerButton* gobj ()
 Provides access to the underlying C GtkObject.
 PickerButton (Gtk::Hildon::SizeType size, ButtonArrangement arrangement)
 PickerButton ()
void set_active (int index)
void set_done_button_text (const Glib::ustring& done_button_text)
void set_selector (TouchSelector& selector)
Glib::SignalProxy0<void> signal_value_changed ()
void value_changed ()
virtual ~PickerButton ()

Related Functions

(Note that these are not member functions.)

Hildon::PickerButtonwrap (HildonPickerButton* object, bool take_copy=false)
 A Glib::wrap() method for this object.

Constructor & Destructor Documentation

virtual Hildon::PickerButton::~PickerButton (  )  [virtual]

Hildon::PickerButton::PickerButton (  ) 

Hildon::PickerButton::PickerButton ( Gtk::Hildon::SizeType  size,
ButtonArrangement  arrangement 
) [explicit]


Member Function Documentation

int Hildon::PickerButton::get_active (  )  const

Glib::ustring Hildon::PickerButton::get_done_button_text (  )  const

const TouchSelector* Hildon::PickerButton::get_selector (  )  const

Reimplemented in Hildon::DateButton, and Hildon::TimeButton.

TouchSelector* Hildon::PickerButton::get_selector (  ) 

const HildonPickerButton* Hildon::PickerButton::gobj (  )  const [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Hildon::Button.

Reimplemented in Hildon::DateButton, and Hildon::TimeButton.

HildonPickerButton* Hildon::PickerButton::gobj (  )  [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Hildon::Button.

Reimplemented in Hildon::DateButton, and Hildon::TimeButton.

void Hildon::PickerButton::set_active ( int  index  ) 

void Hildon::PickerButton::set_done_button_text ( const Glib::ustring done_button_text  ) 

void Hildon::PickerButton::set_selector ( TouchSelector selector  ) 

Glib::SignalProxy0< void > Hildon::PickerButton::signal_value_changed (  ) 

Prototype:
void on_my_value_changed()

void Hildon::PickerButton::value_changed (  ) 


Friends And Related Function Documentation

Hildon::PickerButton* wrap ( HildonPickerButton *  object,
bool  take_copy = false 
) [related]

A Glib::wrap() method for this object.

Parameters:
object The C instance.
take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.


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

Generated for hildonmm by Doxygen 1.5.6 © 1997-2001