|
SBB Host
Host communication with the self balancing bike.
|
A class for the setting dialog. More...
#include <SettingsDialog.h>
Public Member Functions | |
| SettingsDialog () | |
| Constructor. More... | |
| void | show (Params *p_params, int page) |
| Show the dialog. More... | |
| int | set_params (Params *p_params) |
| Set the parameters. More... | |
| std::string | get_selected_ip () |
| Get the selected ip. More... | |
Protected Attributes | |
| Gtk::Notebook | noteBook |
| Gtk::Notebook object for the stream, plot setting tabs. More... | |
| Gtk::Grid | streamGrid |
| Gtk::Grid object for the stream setting page. More... | |
| Gtk::Grid | plotGrid |
| Gtk::Grid object for the plot setting page. More... | |
| ComboChoiceEntryLabel | conntype |
| ComboChoiceEntryLabel object for the choiche of the connection type. More... | |
| ComboEntryLabel | port |
| ComboEntryLabel object for the choice of the serial port. More... | |
| SpinEntryLabel | baud |
| SpinEntryLabel object for the baudrate. More... | |
| SpinEntryLabel | socket_port |
| SpinEntryLabel object for the socket port. More... | |
| TextEntryLabel | socket_ip |
| TextEntryLabel object for the socket ip. More... | |
| SpinEntryLabel | timeout |
| SpinEntryLabel object for the timeout. More... | |
| TextEntryLabel | header |
| TextEntryLabel object for the header. More... | |
| TextEntryLabel | terminator |
| TextEntryLabel object for the terminator. More... | |
| SpinEntryLabel | maxmissings |
| SpinEntryLabel object for the timeout. More... | |
| SpinEntryLabel | winsamples |
| SpinEntryLabel object for the shown samples in the stream-graph. More... | |
| SpinEntryLabel | prevsamples |
| SpinEntryLabel object for the foward samples in the stream-graph. More... | |
| SpinEntryLabel | fps |
| SpinEntryLabel object for the stream-graph frame rate. More... | |
| SpinEntryLabel | stream_decim |
| SpinEntryLabel object for the stream-graph decimation. More... | |
| Gtk::Button * | p_buttonOK |
| Pointer to the OK Gtk::Button. More... | |
| Gtk::Button * | p_buttonCancel |
| Pointer to the Cancel Gtk::Button. More... | |
| Gtk::Button * | p_buttonApply |
| Pointer to the Apply Gtk::Button. More... | |
Private Member Functions | |
| void | on_conn_type_changed () |
A class for the setting dialog.
Class for setting dialog by extending the Gtk::Dialog class, used in SBBHostApp.
| SettingsDialog::SettingsDialog | ( | ) |
Constructor.
Default constructor.
| std::string SettingsDialog::get_selected_ip | ( | ) |
Get the selected ip.
Function to get the selected ip.
|
private |
| int SettingsDialog::set_params | ( | Params * | p_params | ) |
Set the parameters.
Function to set the parameters with those of the dialog window.
| p_params | The pointer to the parameter struct where save the values in the dialog window. |
| void SettingsDialog::show | ( | Params * | p_params, |
| int | page | ||
| ) |
Show the dialog.
Function to show the dialog. This overrides, and uses, that in Gtk::Dialog.
| p_params | The pointer to the parameter struct to use for the values in the dialog window. |
| page | The tab page to be shown when showing the dialog. See STREAM_PAGE and PLOT_PAGE in config.h. |
|
protected |
SpinEntryLabel object for the baudrate.
|
protected |
ComboChoiceEntryLabel object for the choiche of the connection type.
|
protected |
SpinEntryLabel object for the stream-graph frame rate.
|
protected |
TextEntryLabel object for the header.
|
protected |
SpinEntryLabel object for the timeout.
|
protected |
Gtk::Notebook object for the stream, plot setting tabs.
|
protected |
Pointer to the Apply Gtk::Button.
|
protected |
Pointer to the Cancel Gtk::Button.
|
protected |
Pointer to the OK Gtk::Button.
|
protected |
Gtk::Grid object for the plot setting page.
|
protected |
ComboEntryLabel object for the choice of the serial port.
|
protected |
SpinEntryLabel object for the foward samples in the stream-graph.
|
protected |
TextEntryLabel object for the socket ip.
|
protected |
SpinEntryLabel object for the socket port.
|
protected |
SpinEntryLabel object for the stream-graph decimation.
|
protected |
Gtk::Grid object for the stream setting page.
|
protected |
TextEntryLabel object for the terminator.
|
protected |
SpinEntryLabel object for the timeout.
|
protected |
SpinEntryLabel object for the shown samples in the stream-graph.