Maemomm Reference Documentation: hildonmm
Main Page   Namespaces   Book  

Hildon::TouchSelectorEntryText Class Reference
[Widgets]

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

Inheritance diagram for Hildon::TouchSelectorEntryText:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 TouchSelectorEntryText ()
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)
 Insert an item into the TouchSelectorEntryText, 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_selected_text () const
 Get the currently-chosen item.
void set_selected_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 TouchSelectorEntry widget which has one column of text (a simple list), and appropriate methods for setting and getting the text.

Constructor & Destructor Documentation

Hildon::TouchSelectorEntryText::TouchSelectorEntryText (  ) 


Member Function Documentation

void Hildon::TouchSelectorEntryText::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::TouchSelectorEntryText::insert_text ( int  position,
const Glib::ustring text 
)

Insert an item into the TouchSelectorEntryText, at a specified position.

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

void Hildon::TouchSelectorEntryText::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::TouchSelectorEntryText::get_selected_text (  )  const

Get the currently-chosen item.

Parameters:
text The text of the selected item.

void Hildon::TouchSelectorEntryText::set_selected_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::TouchSelectorEntryText::clear (  ) 

Deprecated:
See clear_items(). Since 2.2.

void Hildon::TouchSelectorEntryText::clear_items (  ) 

Remove all items from the drop-down menu.

void Hildon::TouchSelectorEntryText::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::TouchSelectorEntryText::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