Fawkes API
Fawkes Development Version
|
Laser GUI window for Gtkmm. More...
#include "lasergui.cpp"
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< InterfaceDispatcherPair > | InterfaceDispatcherPairList |
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... | |
Laser GUI window for Gtkmm.
Definition at line 62 of file lasergui.cpp.
Typedef of fawkes::Interface to override Glib::Interface.
Definition at line 66 of file lasergui.cpp.
typedef std::pair<Interface*, InterfaceDispatcher*> LaserGuiGtkWindow::InterfaceDispatcherPair |
For each interface, an interface dispatcher is opened that listens for data changes.
Definition at line 73 of file lasergui.cpp.
typedef std::list<InterfaceDispatcherPair> LaserGuiGtkWindow::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 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.
|
inline |
Constructor for Gtk::Builder.
cobject | C base object |
builder | Gtk Builder |
Definition at line 83 of file lasergui.cpp.
References LaserDrawingArea::MODE_HULL, LaserDrawingArea::MODE_LINES, LaserDrawingArea::MODE_POINTS, on_connect(), on_connection_clicked(), on_disconnect(), on_exit_clicked(), on_legtracker_toggled(), on_rotation_toggled(), on_select_clicked(), on_stop_toggled(), on_trimvals_toggled(), LaserDrawingArea::set_draw_mode(), LaserDrawingArea::zoom_in(), and LaserDrawingArea::zoom_out().
|
inlineprotectedvirtual |
Event handler for connected event.
Definition at line 248 of file lasergui.cpp.
Referenced by LaserGuiGtkWindow().
|
inlineprotectedvirtual |
Event handler for connection button.
Definition at line 139 of file lasergui.cpp.
References fawkes::ServiceChooserDialog::run_and_connect().
Referenced by LaserGuiGtkWindow().
|
inlineprotectedvirtual |
Event handler for disconnected event.
Definition at line 320 of file lasergui.cpp.
Referenced by LaserGuiGtkWindow().
|
inlineprotected |
Event handler for exit button.
Definition at line 537 of file lasergui.cpp.
Referenced by LaserGuiGtkWindow().
|
inlineprotected |
Event handler for legtracker button.
Definition at line 417 of file lasergui.cpp.
References fawkes::StringConversions::to_string().
Referenced by LaserGuiGtkWindow().
|
inlineprotected |
Event handler for rotation button.
Definition at line 400 of file lasergui.cpp.
Referenced by LaserGuiGtkWindow().
|
inlineprotectedvirtual |
Event handler for connection button.
Definition at line 151 of file lasergui.cpp.
References fawkes::MultiInterfaceChooserDialog::create(), and fawkes::MultiInterfaceChooserDialog::get_selected_interfaces().
Referenced by LaserGuiGtkWindow().
|
inlineprotected |
Event handler for stop button.
Definition at line 411 of file lasergui.cpp.
Referenced by LaserGuiGtkWindow().
|
inlineprotected |
Event handler for trim button.
Definition at line 527 of file lasergui.cpp.
Referenced by LaserGuiGtkWindow().
|
inlineprotected |
Open interfaces.
Tries to open the interfaces. Even if it fails, the old interfaces are closed.
types_and_ids | types and ids of interfaces to open |
Definition at line 181 of file lasergui.cpp.
References fawkes::BlackBoard::BBIL_FLAG_DATA, fawkes::InterfaceDispatcher::signal_data_changed(), and fawkes::Exception::what().