|
SBB Host
Host communication with the self balancing bike.
|
A class with a Gtk::ComboBoxText and Gtk::Label. Slightly different from ComboEntryLabel. More...
#include <EntryLabel.h>
Public Member Functions | |
| ComboChoiceEntryLabel (Glib::ustring lbl) | |
| Constructor. More... | |
| ComboChoiceEntryLabel (std::vector< int > id_vec, std::vector< std::string > str_vec, Glib::ustring lbl) | |
| Constructor. More... | |
| void | set_entries (std::vector< int > id_vec, std::vector< std::string > str_vec) |
| Set the choices. More... | |
| bool | set_selected (int id) |
| Set the selected choice. More... | |
| int | get_selected () |
| Get the ID of the selected choice. More... | |
| Gtk::ComboBoxText * | get_comboBoxText () |
| Get the Gtk::ComboBoxText pointer. More... | |
Public Attributes | |
| Gtk::ComboBoxText | entry |
| Gtk::ComboBoxText object. More... | |
Protected Attributes | |
| Gtk::Box | box |
| Gtk::Box object of the widget. More... | |
| Gtk::Label | label |
| label string variable. More... | |
| std::vector< int > | id |
| Vector of ID for the item of the ComboBoxText. More... | |
| std::vector< std::string > | str |
| Vector to store the choice name of the ComboBoxText. More... | |
A class with a Gtk::ComboBoxText and Gtk::Label. Slightly different from ComboEntryLabel.
Class including a Gtk::ComboBoxText together with a Gtk::Label, used in SBBHostApp. It slightly differs from ComboEntryLabel for the appearance, usage, and implementation.
| ComboChoiceEntryLabel::ComboChoiceEntryLabel | ( | Glib::ustring | lbl | ) |
Constructor.
Default constructor. Sets only the label, not the choices of the ComboBoxText.
| lbl | The label. |
| ComboChoiceEntryLabel::ComboChoiceEntryLabel | ( | std::vector< int > | id_vec, |
| std::vector< std::string > | str_vec, | ||
| Glib::ustring | lbl | ||
| ) |
Constructor.
Default constructor with set choices.
| lbl | The label. |
| Gtk::ComboBoxText * ComboChoiceEntryLabel::get_comboBoxText | ( | ) |
Get the Gtk::ComboBoxText pointer.
Function to get a pointer to the Gtk::ComboBoxText object.
| int ComboChoiceEntryLabel::get_selected | ( | ) |
Get the ID of the selected choice.
Function to get the ID of the selected choice of the ComboBoxText.
| void ComboChoiceEntryLabel::set_entries | ( | std::vector< int > | id_vec, |
| std::vector< std::string > | str_vec | ||
| ) |
Set the choices.
Function to set the choices of the ComboBoxText.
| id_vec | The vector of IDs of the choices. |
| str_vec | The vector of names of the choices. |
| bool ComboChoiceEntryLabel::set_selected | ( | int | id | ) |
Set the selected choice.
Function to set the selected choice of the ComboBoxText by specifying its ID.
| id | The ID of the selected choice. |
|
protected |
Gtk::Box object of the widget.
| Gtk::ComboBoxText ComboChoiceEntryLabel::entry |
Gtk::ComboBoxText object.
|
protected |
Vector of ID for the item of the ComboBoxText.
|
protected |
label string variable.
|
protected |
Vector to store the choice name of the ComboBoxText.