Fawkes API  Fawkes Development Version
LaserGuiGtkWindow Class Reference

Laser GUI window for Gtkmm. More...

#include "lasergui.cpp"

Inheritance diagram for LaserGuiGtkWindow:

Public Types

typedef fawkes::Interface Interface
 Typedef of fawkes::Interface to override Glib::Interface. More...
 
typedef MultiInterfaceChooserDialog::TypeIdPair TypeIdPair
 Shorthand for pair of interface type and ID. More...
 
typedef MultiInterfaceChooserDialog::TypeIdPairList TypeIdPairList
 Shorthand for set of pairs of interface type and ID. More...
 
typedef std::pair< Interface *, InterfaceDispatcher * > InterfaceDispatcherPair
 For each interface, an interface dispatcher is opened that listens for data changes. More...
 
typedef std::list< InterfaceDispatcherPairInterfaceDispatcherPairList
 A list of interfaces and their respective dispatchers. More...
 

Public Member Functions

 LaserGuiGtkWindow (BaseObjectType *cobject, const Glib::RefPtr< Gtk::Builder > &builder)
 Constructor for Gtk::Builder. More...
 

Protected Member Functions

virtual void on_connection_clicked ()
 Event handler for connection button. More...
 
virtual void on_select_clicked ()
 Event handler for connection button. More...
 
void open_interfaces (const TypeIdPairList &types_and_ids)
 Open interfaces. More...
 
virtual void on_connect ()
 Event handler for connected event. More...
 
virtual void on_disconnect ()
 Event handler for disconnected event. More...
 
void on_rotation_toggled ()
 Event handler for rotation button. More...
 
void on_stop_toggled ()
 Event handler for stop button. More...
 
void on_legtracker_toggled ()
 Event handler for legtracker button. More...
 
void on_trimvals_toggled ()
 Event handler for trim button. More...
 
void on_exit_clicked ()
 Event handler for exit button. More...
 

Detailed Description

Laser GUI window for Gtkmm.

Author
Tim Niemueller

Definition at line 63 of file lasergui.cpp.

Member Typedef Documentation

◆ Interface

Typedef of fawkes::Interface to override Glib::Interface.

Definition at line 67 of file lasergui.cpp.

◆ InterfaceDispatcherPair

For each interface, an interface dispatcher is opened that listens for data changes.

Definition at line 74 of file lasergui.cpp.

◆ InterfaceDispatcherPairList

A list of interfaces and their respective dispatchers.

Note that this is a list and not a map from interface to dispatcher only to keep the ordering specified by the user in the GUI.

Definition at line 78 of file lasergui.cpp.

◆ TypeIdPair

Shorthand for pair of interface type and ID.

Definition at line 69 of file lasergui.cpp.

◆ TypeIdPairList

Shorthand for set of pairs of interface type and ID.

Definition at line 71 of file lasergui.cpp.

Constructor & Destructor Documentation

◆ LaserGuiGtkWindow()

LaserGuiGtkWindow::LaserGuiGtkWindow ( BaseObjectType *  cobject,
const Glib::RefPtr< Gtk::Builder > &  builder 
)
inline

Member Function Documentation

◆ on_connect()

virtual void LaserGuiGtkWindow::on_connect ( )
inlineprotectedvirtual

Event handler for connected event.

Definition at line 255 of file lasergui.cpp.

Referenced by LaserGuiGtkWindow().

◆ on_connection_clicked()

virtual void LaserGuiGtkWindow::on_connection_clicked ( )
inlineprotectedvirtual

Event handler for connection button.

Definition at line 140 of file lasergui.cpp.

References fawkes::ServiceChooserDialog::run_and_connect().

Referenced by LaserGuiGtkWindow().

◆ on_disconnect()

virtual void LaserGuiGtkWindow::on_disconnect ( )
inlineprotectedvirtual

Event handler for disconnected event.

Definition at line 327 of file lasergui.cpp.

Referenced by LaserGuiGtkWindow().

◆ on_exit_clicked()

void LaserGuiGtkWindow::on_exit_clicked ( )
inlineprotected

Event handler for exit button.

Definition at line 544 of file lasergui.cpp.

Referenced by LaserGuiGtkWindow().

◆ on_legtracker_toggled()

void LaserGuiGtkWindow::on_legtracker_toggled ( )
inlineprotected

Event handler for legtracker button.

Definition at line 424 of file lasergui.cpp.

References fawkes::StringConversions::to_string().

Referenced by LaserGuiGtkWindow().

◆ on_rotation_toggled()

void LaserGuiGtkWindow::on_rotation_toggled ( )
inlineprotected

Event handler for rotation button.

Definition at line 407 of file lasergui.cpp.

Referenced by LaserGuiGtkWindow().

◆ on_select_clicked()

virtual void LaserGuiGtkWindow::on_select_clicked ( )
inlineprotectedvirtual

Event handler for connection button.

Definition at line 152 of file lasergui.cpp.

References fawkes::MultiInterfaceChooserDialog::create().

Referenced by LaserGuiGtkWindow().

◆ on_stop_toggled()

void LaserGuiGtkWindow::on_stop_toggled ( )
inlineprotected

Event handler for stop button.

Definition at line 418 of file lasergui.cpp.

Referenced by LaserGuiGtkWindow().

◆ on_trimvals_toggled()

void LaserGuiGtkWindow::on_trimvals_toggled ( )
inlineprotected

Event handler for trim button.

Definition at line 534 of file lasergui.cpp.

Referenced by LaserGuiGtkWindow().

◆ open_interfaces()

void LaserGuiGtkWindow::open_interfaces ( const TypeIdPairList types_and_ids)
inlineprotected

Open interfaces.

Tries to open the interfaces. Even if it fails, the old interfaces are closed.

Parameters
types_and_idstypes and ids of interfaces to open

Definition at line 186 of file lasergui.cpp.

References fawkes::BlackBoard::BBIL_FLAG_DATA, fawkes::InterfaceDispatcher::signal_data_changed(), and fawkes::Exception::what().


The documentation for this class was generated from the following file: