Maeomm Reference Documentation: hildonmm
Main Page   Namespaces   Book  

Hildon::TouchSelectorText Class Reference
[Widgets]

This is a specialisation of the TouchSelector widget which has one column of text (a simple list), and appropriate methods for setting and getting the text. More...

Inheritance diagram for Hildon::TouchSelectorText:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 TouchSelectorText ()
 Creates a new TouchSelectorText.
void append_text (const Glib::ustring& text)
 Add an item to the end of the drop-down list.
void insert_text (int position, const Glib::ustring& text)
 Inserts a text item into the TouchSelectorText at a specified position.
void prepend_text (const Glib::ustring& text)
 Add an item to the beginning of the drop-down list.
Glib::ustring get_active_text () const
 Get the currently-chosen item.
void set_active_text (const Glib::ustring& text)
 Set the currently-chosen item if it matches the specified text.
void clear ()
void clear_items ()
 Remove all items from the drop-down menu.
void remove_text (const Glib::ustring& text)
 Remove the specified item if it is in the drop-down menu.

Protected Attributes

TextModelColumns m_text_columns
Glib::RefPtr<Gtk::ListStorem_model
Glib::RefPtr<TouchSelectorColumnm_touch_selector_column


Detailed Description

This is a specialisation of the TouchSelector widget which has one column of text (a simple list), and appropriate methods for setting and getting the text.

Constructor& Destructor Documentation

Hildon::TouchSelectorText::TouchSelectorText (  ) 

Creates a new TouchSelectorText.


Member Function Documentation

void Hildon::TouchSelectorText::append_text ( const Glib::ustring text  ) 

Add an item to the end of the drop-down list.

Parameters:
text The text for the item.

void Hildon::TouchSelectorText::insert_text ( int  position,
const Glib::ustring text 
)

Inserts a text item into the TouchSelectorText at a specified position.

Parameters:
position The position at which to insert the item.
text The text for the item.

void Hildon::TouchSelectorText::prepend_text ( const Glib::ustring text  ) 

Add an item to the beginning of the drop-down list.

Parameters:
text The text for the item.

Glib::ustring Hildon::TouchSelectorText::get_active_text (  )  const

Get the currently-chosen item.

Returns:
The text of the active item.

void Hildon::TouchSelectorText::set_active_text ( const Glib::ustring text  ) 

Set the currently-chosen item if it matches the specified text.

Parameters:
text The text of the item that should be selected.

void Hildon::TouchSelectorText::clear (  ) 

Deprecated:
See clear_items(). Since 2.8.

void Hildon::TouchSelectorText::clear_items (  ) 

Remove all items from the drop-down menu.

void Hildon::TouchSelectorText::remove_text ( const Glib::ustring text  ) 

Remove the specified item if it is in the drop-down menu.

Parameters:
text The text of the item that should be removed.


Member Data Documentation

TextModelColumns Hildon::TouchSelectorText::m_text_columns [protected]


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

Generated for hildonmm by Doxygen 1.5.6 © 1997-2001