Maeomm Reference Documentation: hildonsmm |
Inheritance diagram for Hildon::FindToolbar:
Maemo applications can have several toolbars, which are then attached on top of each other. The Find toolbar is generally placed on the top of the main toolbar, as in the example covered in this section.
This is a predefined toolbar for text searching purposes. It contains a Gtk::ListStore which has the text items that the user has searched. The programmer may get the Gtk::ListStore via the "list" property, in order to use the information.
Note that once the search button is pressed, the string in the ComboBoxEntry will be automatically added to the existing model, unless it is empty.
The Find toolbar should be opened and hidden when appropriate.
Public Member Functions | ||||
FindToolbar (const Glib::ustring& label, const Glib::RefPtr<Gtk::ListStore>& list, int column) | ||||
FindToolbar (const Glib::ustring& label) | ||||
FindToolbar () | ||||
int | get_active () const | |||
Gets the index of the currently active item, or -1 if there's no active item. | ||||
Gtk::TreeModel::iterator | get_active_iter () | |||
Get an iterator that points to the current active item. | ||||
const HildonFindToolbar* | gobj () const | |||
Provides access to the underlying C GtkObject. | ||||
HildonFindToolbar* | gobj () | |||
Provides access to the underlying C GtkObject. | ||||
void | highlight_entry (bool get_focus=true) | |||
Highlights the current entry in the find toolbar. | ||||
void | set_active (int index) | |||
Sets the active item on the toolbar's combo-box. | ||||
void | set_active_iter (const Gtk::TreeModel::iterator& iter) | |||
Sets the current active item to be the one referenced by iter. | ||||
Glib::SignalProxy0<void> | signal_close () | |||
| ||||
Glib::SignalProxy0<bool> | signal_history_append () | |||
| ||||
Glib::SignalProxy0<void> | signal_invalid_input () | |||
| ||||
Glib::SignalProxy0<void> | signal_search () | |||
| ||||
virtual | ~FindToolbar () | |||
Related Functions | ||||
(Note that these are not member functions.) | ||||
Hildon::FindToolbar* | wrap (HildonFindToolbar* object, bool take_copy=false) | |||
|
virtual Hildon::FindToolbar::~FindToolbar | ( | ) | [virtual] |
Hildon::FindToolbar::FindToolbar | ( | ) |
Hildon::FindToolbar::FindToolbar | ( | const Glib::ustring & | label | ) | [explicit] |
Hildon::FindToolbar::FindToolbar | ( | const Glib::ustring & | label, | |
const Glib::RefPtr< Gtk::ListStore > & | list, | |||
int | column | |||
) | [explicit] |
int Hildon::FindToolbar::get_active | ( | ) | const |
Gets the index of the currently active item, or -1 if there's no active item.
Simply calls gtk_combo_box_get_active on the HildonFindToolbar's combo.
Gtk::TreeModel::iterator Hildon::FindToolbar::get_active_iter | ( | ) |
Get an iterator that points to the current active item.
: A find toolbar to query
const HildonFindToolbar* Hildon::FindToolbar::gobj | ( | ) | const [inline] |
HildonFindToolbar* Hildon::FindToolbar::gobj | ( | ) | [inline] |
void Hildon::FindToolbar::highlight_entry | ( | bool | get_focus = true |
) |
Highlights the current entry in the find toolbar.
get_focus | If user passes true to this value, then the text in the entry will not only get highlighted, but also get focused. |
void Hildon::FindToolbar::set_active | ( | int | index | ) |
Sets the active item on the toolbar's combo-box.
Simply calls gtk_combo_box_set_active on the HildonFindToolbar's combo.
index | An index in the model passed during construction, or -1 to have no active item. |
void Hildon::FindToolbar::set_active_iter | ( | const Gtk::TreeModel::iterator & | iter | ) |
Sets the current active item to be the one referenced by iter.
Simply calls gtk_combo_box_set_active_iter on the HildonFindToolbar's combo.
iter | An iter to make active. |
Glib::SignalProxy0< void > Hildon::FindToolbar::signal_close | ( | ) |
void close()
Glib::SignalProxy0< bool > Hildon::FindToolbar::signal_history_append | ( | ) |
bool history_append()
Glib::SignalProxy0< void > Hildon::FindToolbar::signal_invalid_input | ( | ) |
void invalid_input()
Glib::SignalProxy0< void > Hildon::FindToolbar::signal_search | ( | ) |
void search()
Hildon::FindToolbar* wrap | ( | HildonFindToolbar * | object, | |
bool | take_copy = false | |||
) | [related] |
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. |