Maeomm Reference Documentation: hildonmm |
Hildon::EditToolbar is a toolbar which contains a label and two buttons, one of them being an arrow pointing backwards.
The label is a description of the action that the user is supposed to do. The button is to be pressed when the user completes the action. The arrow is used to go back to the previous view discarding any changes.
Note that those widgets don't do anything themselves by default. To actually peform actions the developer must provide signal handlers for them.
To add a Hildon::EditToolbar to a window use Hildon::Window::set_edit_toolbar().
Public Member Functions | |
EditToolbar (const Glib::ustring& label, const Glib::ustring& button) | |
Creates a new Hildon::EditToolbar, with the toolbar label set to label and the button label set to button. | |
EditToolbar () | |
const HildonEditToolbar* | gobj () const |
Provides access to the underlying C GtkObject. | |
HildonEditToolbar* | gobj () |
Provides access to the underlying C GtkObject. | |
void | set_button_label (const Glib::ustring& label) |
Sets the label of the toolbar button to label. | |
void | set_label (const Glib::ustring& label) |
Sets the label of toolbar to label. | |
Glib::SignalProxy0<void> | signal_arrow_clicked () |
Glib::SignalProxy0<void> | signal_button_clicked () |
virtual | ~EditToolbar () |
Related Functions | |
(Note that these are not member functions.) | |
Hildon::EditToolbar* | wrap (HildonEditToolbar* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
virtual Hildon::EditToolbar::~EditToolbar | ( | ) | [virtual] |
Hildon::EditToolbar::EditToolbar | ( | ) |
Hildon::EditToolbar::EditToolbar | ( | const Glib::ustring & | label, | |
const Glib::ustring & | button | |||
) |
Creates a new Hildon::EditToolbar, with the toolbar label set to label and the button label set to button.
label | Text for the toolbar label. | |
button | Text for the toolbar button. |
const HildonEditToolbar* Hildon::EditToolbar::gobj | ( | ) | const [inline] |
HildonEditToolbar* Hildon::EditToolbar::gobj | ( | ) | [inline] |
void Hildon::EditToolbar::set_button_label | ( | const Glib::ustring & | label | ) |
Sets the label of the toolbar button to label.
This will clear any previously set value.
label | A new text for the label of the toolbar button. |
void Hildon::EditToolbar::set_label | ( | const Glib::ustring & | label | ) |
Sets the label of toolbar to label.
This will clear any previously set value.
label | A new text for the toolbar label. |
Glib::SignalProxy0< void > Hildon::EditToolbar::signal_arrow_clicked | ( | ) |
void on_my_arrow_clicked()
Glib::SignalProxy0< void > Hildon::EditToolbar::signal_button_clicked | ( | ) |
void on_my_button_clicked()
Hildon::EditToolbar* wrap | ( | HildonEditToolbar * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
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. |