|
SBB Host
Host communication with the self balancing bike.
|
A class with a Gtk::ComboBoxText and Gtk::Label. More...
#include <EntryLabel.h>
Public Member Functions | |
| ComboEntryLabel (std::vector< int > vals, Glib::ustring lbl) | |
| Constructor. More... | |
| void | set_entries (std::vector< int > vals) |
| Set the values. More... | |
| std::vector< int > | get_entries () |
| Get the values. More... | |
| bool | set_selected (int val) |
| Set the selected value. More... | |
| int | get_selected () |
| Get the selected value. More... | |
Protected Attributes | |
| Gtk::ComboBoxText | entry |
| Gtk::ComboBoxText object. More... | |
| Gtk::Box | box |
| Gtk::Box object of the widget. More... | |
| Gtk::Label | label |
| label string variable. More... | |
| std::vector< int > | entries |
| Vector to store the values of the ComboBoxText. More... | |
A class with a Gtk::ComboBoxText and Gtk::Label.
Class including a Gtk::ComboBoxText together with a Gtk::Label, used in SettingsDialog.
| ComboEntryLabel::ComboEntryLabel | ( | std::vector< int > | vals, |
| Glib::ustring | lbl | ||
| ) |
Constructor.
Default constructor.
| vals | The values of the ComboBoxText. |
| lbl | The label. |
| std::vector< int > ComboEntryLabel::get_entries | ( | ) |
Get the values.
Function to get the values of the ComboBoxText.
| int ComboEntryLabel::get_selected | ( | ) |
Get the selected value.
Function to get the selected value of the ComboBoxText.
| void ComboEntryLabel::set_entries | ( | std::vector< int > | vals | ) |
Set the values.
Function to set the values of the ComboBoxText.
| vals | The values of the ComboBoxText. |
| bool ComboEntryLabel::set_selected | ( | int | val | ) |
Set the selected value.
Function to set the selected value of the ComboBoxText.
| val | The value to set. |
|
protected |
Gtk::Box object of the widget.
|
protected |
Vector to store the values of the ComboBoxText.
|
protected |
Gtk::ComboBoxText object.
|
protected |
label string variable.