Class SetupStepWidget

Inheritance Relationships

Base Type

  • public QWidget

Class Documentation

class SetupStepWidget : public QWidget

The GUI code for one SetupStep.

Public Functions

inline void initialize(const rclcpp::Node::SharedPtr &parent_node, QWidget *parent_widget, RVizPanel *rviz_panel, const DataWarehousePtr &config_data)

Called after construction to initialize the step.

Parameters:
  • parent_node – Shared pointer to the parent node

  • parent_widget – Pointer to the parent gui element

  • rviz_panel – Pointer to the shared rviz panel

  • config_data – All the data

inline virtual void onInit()
inline virtual void focusGiven()

function called when widget is activated, allows to update/initialize GUI

inline virtual bool focusLost()

function called when widget loses focus, although switching away can be rejected

Returns:

If the widget should not be switched away from, return false

virtual SetupStep &getSetupStep() = 0

Return a reference to the SetupStep object.

inline bool isReady()

Signals

void dataUpdated()

When the underlying data has been updated (which can cause other steps to become “Ready”)

void advanceRequest()

When this signal is received, the GUI should attempt to advance to the next step.

void setModalMode(bool isModal)

Event for when the current screen is in modal view. Disables the left navigation.

Protected Attributes

RVizPanel *rviz_panel_
bool debug_