SBB Host
Host communication with the self balancing bike.
Loading...
Searching...
No Matches
SBBHostApp Class Reference

A class for SBB Host application GUI. More...

#include <SBBHostApp.h>

Inheritance diagram for SBBHostApp:

Public Member Functions

 SBBHostApp ()
 Constructor. More...
 
virtual ~SBBHostApp ()
 Destructor. More...
 

Static Public Member Functions

static Glib::RefPtr< SBBHostAppcreate ()
 Create the object. More...
 

Public Attributes

int exitcode = EXIT_QUIT
 Exit code for the application. More...
 

Static Public Attributes

static constexpr int EXIT_RESTART = 1
 Exitcode for app restarting. More...
 
static constexpr int EXIT_QUIT = 0
 Exitcode for application quit (default). More...
 

Protected Member Functions

void on_startup () override
 Signal handler called on sturtup. More...
 
void on_activate () override
 Signal handler called on activate. More...
 
void on_plotType_changed ()
 Signal handler called on plot type changed. More...
 
void on_buttonRun_toggled ()
 Signal handler called on run button toggled. More...
 
void on_buttonLog_toggled ()
 Signal handler called on log button toggled. More...
 
void on_darkModeSwitch_switched ()
 Signal handler called on darkmode button switched. More...
 
void on_streamModeSwitch_switched ()
 Signal handler called on streamMode button switched. More...
 
void on_menu_file_setfolder ()
 Signal handler called on set folder menu button. More...
 
void on_menu_file_save ()
 Signal handler called on save menu button. More...
 
void on_menu_file_saveas ()
 Signal handler called on saveas menu button. More...
 
void on_menu_file_open ()
 Signal handler called on open menu button. More...
 
void on_menu_file_quit ()
 Signal handler called on quit menu button. More...
 
void on_menu_stream_run ()
 Signal handler called on run menu button. More...
 
void on_menu_stream_log ()
 Signal handler called on log menu button. More...
 
void on_menu_stream_connect ()
 Signal handler called on connect menu button. More...
 
void on_menu_settings ()
 Signal handler called on settings menu button. More...
 
void on_menu_help_about ()
 Signal handler called on about menu button. More...
 
void on_menu_help_help ()
 Signal handler called on help menu button. More...
 
void on_menu_loadcfg ()
 Signal handler called on load config menu button. More...
 
void on_app_restart (int id_response)
 Ask the user to restart the application. More...
 
void on_setting_dialog (int id_response)
 Signal handler called on setting dialog close. More...
 
void on_file_setfolder_dialog (int id_response)
 Signal handler called on setfolder dialog close. More...
 
void on_file_saveAs_dialog (int id_response)
 Signal handler called on saveAs dialog close. More...
 
void on_file_open_dialog (int id_response)
 Signal handler called on open dialog close. More...
 
void on_cfg_load_dialog (int id_response)
 Signal handler called on config load dialog close. More...
 
void on_quit_confirmation (int id_response)
 Signal handler called on quit confirmation. More...
 
bool on_file_drag_and_drop (const Glib::ValueBase &value, double x, double y)
 Signal handler called drag-and-drop files into application. More...
 
bool on_read_serial ()
 Signal handler called during streaming. More...
 
bool on_win_close ()
 Signal handler called for close request. More...
 
void warning (int type)
 Show warning dialog. More...
 
void info (int type)
 Show information dialog. More...
 
int open (std::string filename)
 Open a file and update the plot tree view. More...
 

Protected Attributes

SBBHostCore core
 SBBHostCore object for the core management of the application. More...
 
IniReaderp_cfg
 Pointer to IniReader object to read the configuration file when application starts. More...
 
Glib::RefPtr< Gtk::Builder > p_builder
 Pointer to Gtk::Builder to read the XML file for the toolbase. More...
 
Gtk::ApplicationWindow mainWin
 Gtk::ApplicationWindow object for the main application window. More...
 
Gtk::HeaderBar headerbar
 Gtk::HeaderBar object for the window header bar. More...
 
Gtk::Label headerbarlabel
 Gtk::Label object for the label of the window header bar. More...
 
Gtk::MenuButton menubutton
 Gtk::MenuButton object for the menu button. More...
 
Gtk::StackSwitcher switcher
 Gtk::StackSwitcher object for the tab switcher. More...
 
Gtk::Stack stack
 Gtk::Stack object for the stream and plot tabs. More...
 
Gtk::Paned streamPaned
 Gtk::Paned object for the adjustable horizontal panes in the stream tab. More...
 
Gtk::Paned plotPaned
 Gtk::Paned object for the adjustable horizontal panes in the plot tab. More...
 
Gtk::Box streamBox0
 Gtk::Box object for a vertical box in the stream tab. More...
 
Gtk::Box streamBox1
 Gtk::Box object for a vertical box in the stream tab. More...
 
Gtk::Box streamBox2
 Gtk::Box object for a horizontal box in the stream tab. More...
 
Gtk::Box plotBox1
 Gtk::Box object for a vertical box in the plot tab. More...
 
Gtk::Box fftBox
 Gtk::Box object for a horizontal box for the fft graph. More...
 
Gtk::Overlay plotGraphOverlay
 Gtk::Overlay object to overlay graph in the plot tab. More...
 
Gtk::Frame streamTreeFrame
 Gtk::Frame object containing a StreamTreeView object. More...
 
Gtk::Frame plotTreeFrame
 Gtk::Frame object containing a PlotTreeView object. More...
 
Gtk::Frame streamGraphFrame
 Gtk::Frame object containing the stream graph. More...
 
Gtk::Label streamTimeLabel
 Gtk::Label object for the elapsed time during the signal streaming. More...
 
Gtk::ToggleButton buttonRun
 Gtk::ToggleButton object for the run/stop button. More...
 
Gtk::ToggleButton buttonLog
 Gtk::ToggleButton object for the log button. More...
 
Gtk::AboutDialog aboutDialog
 Gtk::AboutDialog object for the about dialog of the application. More...
 
Glib::ustring def_dir
 Default path where to save the log files. More...
 
SettingsDialog settingsDialog
 SettingsDialog object for the setting dialog. More...
 
Gtk::Switch darkModeSwitch
 Gtk::Switch object for the switch to enable/disable the dark mode. More...
 
Gtk::ScrolledWindow scrolledWinStream
 Gtk::ScrolledWindow object containing a StreamTreeView object. More...
 
Gtk::ScrolledWindow scrolledWinPlot
 Gtk::ScrolledWindow object containing a PlotTreeView object. More...
 
StreamTreeView streamTreeView
 StreamTreeView object for the tree view in the stream tab. More...
 
PlotTreeView plotTreeView
 PlotTreeView object for the tree view in the plot tab. More...
 
Glib::Timer timer
 Glib::Timer object to count the elased time. More...
 
HostControl hostControl
 HostControl object for the host control. More...
 
ComboChoiceEntryLabel plotTypeComboEntry
 ComboChoiceEntryLabel object to choose the plot type in the plot tab. More...
 
Glib::RefPtr< Gio::Menu > p_winmenu = nullptr
 Pointer to Gio::Menu object for the menu. More...
 
Glib::RefPtr< Gio::Menu > p_filemenu = nullptr
 Pointer to Gio::Menu object for the file menu. More...
 
Glib::RefPtr< Gio::Menu > p_editmenu = nullptr
 Pointer to Gio::Menu object for the edit menu. More...
 
Glib::RefPtr< Gio::Menu > p_helpmenu = nullptr
 Pointer to Gio::Menu object for the help menu. More...
 
Glib::RefPtr< Gio::Menu > p_conntype = nullptr
 Pointer to Gio::Menu object for the conn type menu. More...
 
Glib::RefPtr< Gio::SimpleAction > p_menuRun = nullptr
 Pointer to Gio::SimpleAction object for the toolbar run button. More...
 
Glib::RefPtr< Gio::SimpleAction > p_menuLog = nullptr
 Pointer to Gio::SimpleAction object for the toolbar log button. More...
 
Glib::RefPtr< Gio::SimpleAction > p_conn = nullptr
 
std::unique_ptr< Gtk::MessageDialog > p_messageDialog = nullptr
 Pointer to Gtk::MessageDialog object for message dialogs. More...
 
Glib::RefPtr< Gtk::FileChooserNative > p_fileSaveAsDialog = nullptr
 Pointer to Gtk::FileChooserDialog object for the file saveas dialog. More...
 
Glib::RefPtr< Gtk::FileChooserNative > p_fileOpenDialog = nullptr
 Pointer to Gtk::FileChooserDialog object for the file open dialog. More...
 
Glib::RefPtr< Gtk::FileChooserNative > p_cfgLoadDialog = nullptr
 Pointer to Gtk::FileChooserDialog object for the config load dialog. More...
 
Glib::RefPtr< Gtk::FileChooserNative > p_setFolderDialog = nullptr
 Pointer to Gtk::FileChooserDialog object for the setfolder dialog. More...
 
Gtk::FileChooserDialog * p_fileSaveAsDialog = nullptr
 Pointer to Gtk::FileChooserDialog object for the file saveas dialog. More...
 
Gtk::FileChooserDialog * p_fileOpenDialog = nullptr
 Pointer to Gtk::FileChooserDialog object for the file open dialog. More...
 
Gtk::FileChooserDialog * p_cfgLoadDialog = nullptr
 Pointer to Gtk::FileChooserDialog object for the config load dialog. More...
 
Gtk::FileChooserDialog * p_setFolderDialog = nullptr
 Pointer to Gtk::FileChooserDialog object for the setfolder dialog. More...
 
CGraph::CairoGraph * p_streamGraph = nullptr
 Pointer to CGraph::CairoGraph object for the graph in the stream tab. More...
 
CGraph::CairoGraph * p_plotGraph = nullptr
 Pointer to CGraph::CairoGraph object for the sample-domain graph in the plot tab. More...
 
CGraph::CairoGraph * p_magfftGraph = nullptr
 Pointer to CGraph::CairoGraph object for the magnitude-spectra graph in the plot tab. More...
 
CGraph::CairoGraph * p_phfftGraph = nullptr
 Pointer to CGraph::CairoGraph object for the phase-spectra graph in the plot tab. More...
 

Private Member Functions

void create_graph ()
 Create graph. More...
 
void create_toolbar ()
 Create toolbar. More...
 
void create_dialogs ()
 Create dialogs. More...
 
void parse_ini ()
 Parse the configuration file. More...
 
void set_tooltips ()
 Set tooltips. More...
 
void set_graph ()
 Set graph. More...
 
void set_tree ()
 Set tree view. More...
 
void set_streamTimer (int secs)
 Set timer. More...
 
void clear_stream_graph ()
 Clear stream graph. More...
 
void set_drag_and_drop ()
 Set drag and drop. More...
 
void set_host_control ()
 Set host control. More...
 
void on_conntype_radio_button (int i)
 

Private Attributes

int id = NULL_ID
 Current log ID (used in save as). More...
 
bool force_close = false
 Force the application to close. More...
 
int exitFlag = EXIT_DEFAULT
 Exit flag (see config.h for details). More...
 
double streamTimer
 Value of the stream timer. More...
 
double streamGraphTimer
 Value of the stream-graph timer. More...
 
Params params
 Params object to save application parameters. More...
 

Detailed Description

A class for SBB Host application GUI.

Main class for the GUI of the SBB Host Application, extending the Gtk::Application class.

See also
main main.cpp
Author
Stefano Lovato
Date
2022

Constructor & Destructor Documentation

◆ SBBHostApp()

SBBHostApp::SBBHostApp ( )

Constructor.

Defualt constructor.

◆ ~SBBHostApp()

virtual SBBHostApp::~SBBHostApp ( )
virtual

Destructor.

Defualt destructor.

Member Function Documentation

◆ clear_stream_graph()

void SBBHostApp::clear_stream_graph ( )
private

Clear stream graph.

Function to clear the stream graph.

◆ create()

static Glib::RefPtr< SBBHostApp > SBBHostApp::create ( )
static

Create the object.

Function to create a SBBHostApp object, used in main().

See also
main main.cpp
Returns
The Glib::RefPtr pointer to the created SBBHostApp object.

◆ create_dialogs()

void SBBHostApp::create_dialogs ( )
private

Create dialogs.

Function to create and set the dialogs.

◆ create_graph()

void SBBHostApp::create_graph ( )
private

Create graph.

Function to create the graph.

◆ create_toolbar()

void SBBHostApp::create_toolbar ( )
private

Create toolbar.

Function to create the toolbar and set its signal handlers.

◆ info()

void SBBHostApp::info ( int  type)
protected

Show information dialog.

Function to show an information dialog with a message.

Parameters
typeThe type of the message to be shown (see exit flags in config.h for details).

◆ on_activate()

void SBBHostApp::on_activate ( )
overrideprotected

Signal handler called on activate.

Function for signal handler called on startup. It performs a full initialization for the application. It overrides the virtual member in Gtk::Application.

◆ on_app_restart()

void SBBHostApp::on_app_restart ( int  id_response)
protected

Ask the user to restart the application.

Ask the user to restart the application when loading a new configuration file.

Parameters
id_responseThe response ID.

◆ on_buttonLog_toggled()

void SBBHostApp::on_buttonLog_toggled ( )
protected

Signal handler called on log button toggled.

Function for signal handler called when toggling the log button, in order to enable or disable the log. The button is unsensitive during signal streaming (log must be enabled or disabled before signal streaming starts).

◆ on_buttonRun_toggled()

void SBBHostApp::on_buttonRun_toggled ( )
protected

Signal handler called on run button toggled.

Function for signal handler called when toggling the run button, in order to run or stop the signal streaming.

◆ on_cfg_load_dialog()

void SBBHostApp::on_cfg_load_dialog ( int  id_response)
protected

Signal handler called on config load dialog close.

Function for signal handler called when closing the load Gtk::FileChooserDialog. Depending on the reponse, it load the config or not (requires app restart).

Parameters
id_responseThe response ID.

◆ on_conntype_radio_button()

void SBBHostApp::on_conntype_radio_button ( int  i)
private

◆ on_darkModeSwitch_switched()

void SBBHostApp::on_darkModeSwitch_switched ( )
protected

Signal handler called on darkmode button switched.

Function for signal handler called when switching the darkmode button, in order to enable or disable the dark mode.

◆ on_file_drag_and_drop()

bool SBBHostApp::on_file_drag_and_drop ( const Glib::ValueBase &  value,
double  x,
double  y 
)
protected

Signal handler called drag-and-drop files into application.

Function for signal handler called when dragging-and-dropping one or more *.sbb files into the application.

Parameters
valueThe Value being dropped.
xThe x coordinate of the current pointer position.
yThe y coordinate of the current pointer position.
Returns
Whether the drop was accepted at the given pointer position.

◆ on_file_open_dialog()

void SBBHostApp::on_file_open_dialog ( int  id_response)
protected

Signal handler called on open dialog close.

Function for signal handler called when closing the open Gtk::FileChooserDialog. Depending on the reponse, it opens the log or not.

Parameters
id_responseThe response ID.

◆ on_file_saveAs_dialog()

void SBBHostApp::on_file_saveAs_dialog ( int  id_response)
protected

Signal handler called on saveAs dialog close.

Function for signal handler called when closing the saveas Gtk::FileChooserDialog. Depending on the reponse, it saves the log or not.

Parameters
id_responseThe response ID.

◆ on_file_setfolder_dialog()

void SBBHostApp::on_file_setfolder_dialog ( int  id_response)
protected

Signal handler called on setfolder dialog close.

Function for signal handler called when closing the setfolder Gtk::FileChooserDialog. Depending on the reponse, it sets the folder or not.

Parameters
id_responseThe response ID.

◆ on_menu_file_open()

void SBBHostApp::on_menu_file_open ( )
protected

Signal handler called on open menu button.

Function for signal handler called when presseing the 'Open' menu button. It opens a Gtk::FileChooserDialog in order to select the desired *.sbb file to open.

◆ on_menu_file_quit()

void SBBHostApp::on_menu_file_quit ( )
protected

Signal handler called on quit menu button.

Function for signal handler called when presseing the 'Quit' menu button. It exits from the application. The user is asked for confirmation if unsaved logs are found.

◆ on_menu_file_save()

void SBBHostApp::on_menu_file_save ( )
protected

Signal handler called on save menu button.

Function for signal handler called when presseing the 'Save' menu button. It save the last log (in the stream-tab mode) or the selected logs (in the plot-tab mode). In the latter case it is equivalent to PlotTreeView::on_menu_save().

See also
PlotTreeView::on_menu_save

◆ on_menu_file_saveas()

void SBBHostApp::on_menu_file_saveas ( )
protected

Signal handler called on saveas menu button.

Function for signal handler called when presseing the 'Save As' menu button. It open a Gtk::FileChooserDialog in order to save the last log (in the stream-tab mode) or the selected logs (in the plot-tab mode) with a specified name, path, and extension (*.sbb, *.csv, or *.mat).

◆ on_menu_file_setfolder()

void SBBHostApp::on_menu_file_setfolder ( )
protected

Signal handler called on set folder menu button.

Function for signal handler called when presseing the 'Set Folder' menu button. It opens a Gtk::FileChooserDialog in order to select the desired folder.

◆ on_menu_help_about()

void SBBHostApp::on_menu_help_about ( )
protected

Signal handler called on about menu button.

Function for signal handler called when presseing the about menu button. It opens a Gtk::AboutDialog with information about the application.

◆ on_menu_help_help()

void SBBHostApp::on_menu_help_help ( )
protected

Signal handler called on help menu button.

Function for signal handler called when presseing the help menu button. It opens the documentation.

◆ on_menu_loadcfg()

void SBBHostApp::on_menu_loadcfg ( )
protected

Signal handler called on load config menu button.

Function for signal handle called when pressing the load config menu button. It loads a new config file a save for successive starts (requries restarting).

◆ on_menu_settings()

void SBBHostApp::on_menu_settings ( )
protected

Signal handler called on settings menu button.

Function for signal handler called when presseing the settings menu button.

◆ on_menu_stream_connect()

void SBBHostApp::on_menu_stream_connect ( )
protected

Signal handler called on connect menu button.

Function for signal handler called when presseing the connect menu button. It try to connect to the selected serial port (if any), or to the serial port found. If more serial ports are found, a warning is shown.

◆ on_menu_stream_log()

void SBBHostApp::on_menu_stream_log ( )
protected

Signal handler called on log menu button.

Function for signal handler called when toggling the log menu button. It enable or disable the signal logging. The button is unsensitive during signal streaming (signal logging must be enabled or disabled before signal streaming starts).

See also
on_buttonLog_toggled

◆ on_menu_stream_run()

void SBBHostApp::on_menu_stream_run ( )
protected

Signal handler called on run menu button.

Function for signal handler called when toggling the run menu button. It starts of ends the signal streaming.

See also
on_buttonRun_toggled

◆ on_plotType_changed()

void SBBHostApp::on_plotType_changed ( )
protected

Signal handler called on plot type changed.

Function for signal handler called when changing the plot type in the plot tab by acting on the ComboChoiceEntryLabels.

See also
ComboChoiceEntryLabels

◆ on_quit_confirmation()

void SBBHostApp::on_quit_confirmation ( int  id_response)
protected

Signal handler called on quit confirmation.

Function for signal handler called when exiting from the application in order to ask the user for confirmation when one or more unsaved log exists. Depending on the reponse, it quits from the application or not.

Parameters
id_responseThe response ID.

◆ on_read_serial()

bool SBBHostApp::on_read_serial ( )
protected

Signal handler called during streaming.

Function for signal handler called continously and as soon as possible during signal streaming, in order to read the packet from the host port

Returns
Whether the signal streaming should continue or not.
See also
SBBHostCore Packet HostPort Serial

◆ on_setting_dialog()

void SBBHostApp::on_setting_dialog ( int  id_response)
protected

Signal handler called on setting dialog close.

Function for signal handler called when closing the SettingsDialog. Depending on the reponse, it sets the setting parameters or not.

Parameters
id_responseThe response ID.
See also
SettingsDialog

◆ on_startup()

void SBBHostApp::on_startup ( )
overrideprotected

Signal handler called on sturtup.

Function for signal handler called on startup. It performs basic initializations for the application. It overrides the virtual member in Gtk::Application.

◆ on_streamModeSwitch_switched()

void SBBHostApp::on_streamModeSwitch_switched ( )
protected

Signal handler called on streamMode button switched.

Function for signal handler called when switching the streamode button, in order to enable or disable the dark mode.

◆ on_win_close()

bool SBBHostApp::on_win_close ( )
protected

Signal handler called for close request.

Function for signal handler called when closing the main application window.

Returns
true to stop other handlers from being invoked for the signal and continue the window close.

◆ open()

int SBBHostApp::open ( std::string  filename)
protected

Open a file and update the plot tree view.

Function to open the file with SBBHostCore::open and update the PlotTreeView object.

Parameters
filenameThe comple file name to open (path+name).
Returns
An exit flag (see config.h for details).
See also
SBBHostCore::open PlotTreeView

◆ parse_ini()

void SBBHostApp::parse_ini ( )
private

Parse the configuration file.

Function to parse and read the configuration file using the IniReader class.

See also
IniReader

◆ set_drag_and_drop()

void SBBHostApp::set_drag_and_drop ( )
private

Set drag and drop.

Function to set the drag-and-drop signal handlers.

◆ set_graph()

void SBBHostApp::set_graph ( )
private

Set graph.

Function to set the graph.

◆ set_host_control()

void SBBHostApp::set_host_control ( )
private

Set host control.

Function to set the host control widget.

◆ set_streamTimer()

void SBBHostApp::set_streamTimer ( int  secs)
private

Set timer.

Function to set the timer label during signal streaming.

◆ set_tooltips()

void SBBHostApp::set_tooltips ( )
private

Set tooltips.

Function to set the tooltips of the widgets.

◆ set_tree()

void SBBHostApp::set_tree ( )
private

Set tree view.

Function to set the stream and plot tree views.

See also
StreamTreeView PlotTreeView

◆ warning()

void SBBHostApp::warning ( int  type)
protected

Show warning dialog.

Function to show a warning dialog with a message.

Parameters
typeThe type of the message to be shown (see exit flags in config.h for details).

Member Data Documentation

◆ aboutDialog

Gtk::AboutDialog SBBHostApp::aboutDialog
protected

Gtk::AboutDialog object for the about dialog of the application.

◆ buttonLog

Gtk::ToggleButton SBBHostApp::buttonLog
protected

Gtk::ToggleButton object for the log button.

◆ buttonRun

Gtk::ToggleButton SBBHostApp::buttonRun
protected

Gtk::ToggleButton object for the run/stop button.

◆ core

SBBHostCore SBBHostApp::core
protected

SBBHostCore object for the core management of the application.

◆ darkModeSwitch

Gtk::Switch SBBHostApp::darkModeSwitch
protected

Gtk::Switch object for the switch to enable/disable the dark mode.

◆ def_dir

Glib::ustring SBBHostApp::def_dir
protected

Default path where to save the log files.

◆ EXIT_QUIT

constexpr int SBBHostApp::EXIT_QUIT = 0
staticconstexpr

Exitcode for application quit (default).

◆ EXIT_RESTART

constexpr int SBBHostApp::EXIT_RESTART = 1
staticconstexpr

Exitcode for app restarting.

◆ exitcode

int SBBHostApp::exitcode = EXIT_QUIT

Exit code for the application.

This is non-zero if application exit occurs in certain circumstances.

◆ exitFlag

int SBBHostApp::exitFlag = EXIT_DEFAULT
private

Exit flag (see config.h for details).

◆ fftBox

Gtk::Box SBBHostApp::fftBox
protected

Gtk::Box object for a horizontal box for the fft graph.

◆ force_close

bool SBBHostApp::force_close = false
private

Force the application to close.

◆ headerbar

Gtk::HeaderBar SBBHostApp::headerbar
protected

Gtk::HeaderBar object for the window header bar.

◆ headerbarlabel

Gtk::Label SBBHostApp::headerbarlabel
protected

Gtk::Label object for the label of the window header bar.

◆ hostControl

HostControl SBBHostApp::hostControl
protected

HostControl object for the host control.

◆ id

int SBBHostApp::id = NULL_ID
private

Current log ID (used in save as).

◆ mainWin

Gtk::ApplicationWindow SBBHostApp::mainWin
protected

Gtk::ApplicationWindow object for the main application window.

◆ menubutton

Gtk::MenuButton SBBHostApp::menubutton
protected

Gtk::MenuButton object for the menu button.

◆ p_builder

Glib::RefPtr<Gtk::Builder> SBBHostApp::p_builder
protected

Pointer to Gtk::Builder to read the XML file for the toolbase.

◆ p_cfg

IniReader* SBBHostApp::p_cfg
protected

Pointer to IniReader object to read the configuration file when application starts.

◆ p_cfgLoadDialog [1/2]

Glib::RefPtr<Gtk::FileChooserNative> SBBHostApp::p_cfgLoadDialog = nullptr
protected

Pointer to Gtk::FileChooserDialog object for the config load dialog.

◆ p_cfgLoadDialog [2/2]

Gtk::FileChooserDialog* SBBHostApp::p_cfgLoadDialog = nullptr
protected

Pointer to Gtk::FileChooserDialog object for the config load dialog.

◆ p_conn

Glib::RefPtr<Gio::SimpleAction> SBBHostApp::p_conn = nullptr
protected

◆ p_conntype

Glib::RefPtr<Gio::Menu> SBBHostApp::p_conntype = nullptr
protected

Pointer to Gio::Menu object for the conn type menu.

◆ p_editmenu

Glib::RefPtr<Gio::Menu> SBBHostApp::p_editmenu = nullptr
protected

Pointer to Gio::Menu object for the edit menu.

◆ p_filemenu

Glib::RefPtr<Gio::Menu> SBBHostApp::p_filemenu = nullptr
protected

Pointer to Gio::Menu object for the file menu.

◆ p_fileOpenDialog [1/2]

Glib::RefPtr<Gtk::FileChooserNative> SBBHostApp::p_fileOpenDialog = nullptr
protected

Pointer to Gtk::FileChooserDialog object for the file open dialog.

◆ p_fileOpenDialog [2/2]

Gtk::FileChooserDialog* SBBHostApp::p_fileOpenDialog = nullptr
protected

Pointer to Gtk::FileChooserDialog object for the file open dialog.

◆ p_fileSaveAsDialog [1/2]

Glib::RefPtr<Gtk::FileChooserNative> SBBHostApp::p_fileSaveAsDialog = nullptr
protected

Pointer to Gtk::FileChooserDialog object for the file saveas dialog.

◆ p_fileSaveAsDialog [2/2]

Gtk::FileChooserDialog* SBBHostApp::p_fileSaveAsDialog = nullptr
protected

Pointer to Gtk::FileChooserDialog object for the file saveas dialog.

◆ p_helpmenu

Glib::RefPtr<Gio::Menu> SBBHostApp::p_helpmenu = nullptr
protected

Pointer to Gio::Menu object for the help menu.

◆ p_magfftGraph

CGraph::CairoGraph* SBBHostApp::p_magfftGraph = nullptr
protected

Pointer to CGraph::CairoGraph object for the magnitude-spectra graph in the plot tab.

◆ p_menuLog

Glib::RefPtr<Gio::SimpleAction> SBBHostApp::p_menuLog = nullptr
protected

Pointer to Gio::SimpleAction object for the toolbar log button.

◆ p_menuRun

Glib::RefPtr<Gio::SimpleAction> SBBHostApp::p_menuRun = nullptr
protected

Pointer to Gio::SimpleAction object for the toolbar run button.

◆ p_messageDialog

std::unique_ptr<Gtk::MessageDialog> SBBHostApp::p_messageDialog = nullptr
protected

Pointer to Gtk::MessageDialog object for message dialogs.

◆ p_phfftGraph

CGraph::CairoGraph* SBBHostApp::p_phfftGraph = nullptr
protected

Pointer to CGraph::CairoGraph object for the phase-spectra graph in the plot tab.

◆ p_plotGraph

CGraph::CairoGraph* SBBHostApp::p_plotGraph = nullptr
protected

Pointer to CGraph::CairoGraph object for the sample-domain graph in the plot tab.

◆ p_setFolderDialog [1/2]

Glib::RefPtr<Gtk::FileChooserNative> SBBHostApp::p_setFolderDialog = nullptr
protected

Pointer to Gtk::FileChooserDialog object for the setfolder dialog.

◆ p_setFolderDialog [2/2]

Gtk::FileChooserDialog* SBBHostApp::p_setFolderDialog = nullptr
protected

Pointer to Gtk::FileChooserDialog object for the setfolder dialog.

◆ p_streamGraph

CGraph::CairoGraph* SBBHostApp::p_streamGraph = nullptr
protected

Pointer to CGraph::CairoGraph object for the graph in the stream tab.

◆ p_winmenu

Glib::RefPtr<Gio::Menu> SBBHostApp::p_winmenu = nullptr
protected

Pointer to Gio::Menu object for the menu.

◆ params

Params SBBHostApp::params
private

Params object to save application parameters.

◆ plotBox1

Gtk::Box SBBHostApp::plotBox1
protected

Gtk::Box object for a vertical box in the plot tab.

◆ plotGraphOverlay

Gtk::Overlay SBBHostApp::plotGraphOverlay
protected

Gtk::Overlay object to overlay graph in the plot tab.

◆ plotPaned

Gtk::Paned SBBHostApp::plotPaned
protected

Gtk::Paned object for the adjustable horizontal panes in the plot tab.

◆ plotTreeFrame

Gtk::Frame SBBHostApp::plotTreeFrame
protected

Gtk::Frame object containing a PlotTreeView object.

◆ plotTreeView

PlotTreeView SBBHostApp::plotTreeView
protected

PlotTreeView object for the tree view in the plot tab.

◆ plotTypeComboEntry

ComboChoiceEntryLabel SBBHostApp::plotTypeComboEntry
protected

ComboChoiceEntryLabel object to choose the plot type in the plot tab.

◆ scrolledWinPlot

Gtk::ScrolledWindow SBBHostApp::scrolledWinPlot
protected

Gtk::ScrolledWindow object containing a PlotTreeView object.

◆ scrolledWinStream

Gtk::ScrolledWindow SBBHostApp::scrolledWinStream
protected

Gtk::ScrolledWindow object containing a StreamTreeView object.

◆ settingsDialog

SettingsDialog SBBHostApp::settingsDialog
protected

SettingsDialog object for the setting dialog.

◆ stack

Gtk::Stack SBBHostApp::stack
protected

Gtk::Stack object for the stream and plot tabs.

◆ streamBox0

Gtk::Box SBBHostApp::streamBox0
protected

Gtk::Box object for a vertical box in the stream tab.

◆ streamBox1

Gtk::Box SBBHostApp::streamBox1
protected

Gtk::Box object for a vertical box in the stream tab.

◆ streamBox2

Gtk::Box SBBHostApp::streamBox2
protected

Gtk::Box object for a horizontal box in the stream tab.

◆ streamGraphFrame

Gtk::Frame SBBHostApp::streamGraphFrame
protected

Gtk::Frame object containing the stream graph.

◆ streamGraphTimer

double SBBHostApp::streamGraphTimer
private

Value of the stream-graph timer.

◆ streamPaned

Gtk::Paned SBBHostApp::streamPaned
protected

Gtk::Paned object for the adjustable horizontal panes in the stream tab.

◆ streamTimeLabel

Gtk::Label SBBHostApp::streamTimeLabel
protected

Gtk::Label object for the elapsed time during the signal streaming.

◆ streamTimer

double SBBHostApp::streamTimer
private

Value of the stream timer.

◆ streamTreeFrame

Gtk::Frame SBBHostApp::streamTreeFrame
protected

Gtk::Frame object containing a StreamTreeView object.

◆ streamTreeView

StreamTreeView SBBHostApp::streamTreeView
protected

StreamTreeView object for the tree view in the stream tab.

◆ switcher

Gtk::StackSwitcher SBBHostApp::switcher
protected

Gtk::StackSwitcher object for the tab switcher.

◆ timer

Glib::Timer SBBHostApp::timer
protected

Glib::Timer object to count the elased time.