Fawkes API  Fawkes Development Version
LaserGuiGtkWindow Class Reference

Laser GUI window for Gtkmm. More...

#include "lasergui.cpp"

List of all members.

Public Types

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

Public Member Functions

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

Protected Member Functions

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

Detailed Description

Laser GUI window for Gtkmm.

Author:
Tim Niemueller

Member Typedef Documentation

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

Definition at line 66 of file lasergui.cpp.

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

Definition at line 73 of file lasergui.cpp.

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 77 of file lasergui.cpp.

Shorthand for pair of interface type and ID.

Definition at line 68 of file lasergui.cpp.

Shorthand for set of pairs of interface type and ID.

Definition at line 70 of file lasergui.cpp.


Constructor & Destructor Documentation

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

Member Function Documentation

virtual void LaserGuiGtkWindow::on_connect ( ) [inline, protected, virtual]

Event handler for connected event.

Definition at line 248 of file lasergui.cpp.

Referenced by LaserGuiGtkWindow().

virtual void LaserGuiGtkWindow::on_connection_clicked ( ) [inline, protected, virtual]

Event handler for connection button.

Definition at line 139 of file lasergui.cpp.

References fawkes::ServiceChooserDialog::run_and_connect().

Referenced by LaserGuiGtkWindow().

virtual void LaserGuiGtkWindow::on_disconnect ( ) [inline, protected, virtual]

Event handler for disconnected event.

Definition at line 320 of file lasergui.cpp.

Referenced by LaserGuiGtkWindow().

void LaserGuiGtkWindow::on_exit_clicked ( ) [inline, protected]

Event handler for exit button.

Definition at line 537 of file lasergui.cpp.

Referenced by LaserGuiGtkWindow().

void LaserGuiGtkWindow::on_legtracker_toggled ( ) [inline, protected]

Event handler for legtracker button.

Definition at line 417 of file lasergui.cpp.

References fawkes::StringConversions::to_string().

Referenced by LaserGuiGtkWindow().

void LaserGuiGtkWindow::on_rotation_toggled ( ) [inline, protected]

Event handler for rotation button.

Definition at line 400 of file lasergui.cpp.

Referenced by LaserGuiGtkWindow().

virtual void LaserGuiGtkWindow::on_select_clicked ( ) [inline, protected, virtual]

Event handler for connection button.

Definition at line 151 of file lasergui.cpp.

References fawkes::MultiInterfaceChooserDialog::create().

Referenced by LaserGuiGtkWindow().

void LaserGuiGtkWindow::on_stop_toggled ( ) [inline, protected]

Event handler for stop button.

Definition at line 411 of file lasergui.cpp.

Referenced by LaserGuiGtkWindow().

void LaserGuiGtkWindow::on_trimvals_toggled ( ) [inline, protected]

Event handler for trim button.

Definition at line 527 of file lasergui.cpp.

Referenced by LaserGuiGtkWindow().

void LaserGuiGtkWindow::open_interfaces ( const TypeIdPairList types_and_ids) [inline, protected]

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 181 of file lasergui.cpp.

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


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