Class SectionControlWidget

Inheritance Relationships

Base Type

  • public QWidget

Class Documentation

class SectionControlWidget : public QWidget

Public Functions

SectionControlWidget(QWidget *parent = nullptr)
~SectionControlWidget()
void refresh()

Updates UI controls based on the current active Section.

Section &get_active_section()

Returns the Section currently being edited.

Return

Selected Section.

uint8_t get_layer_index()

Returns the index of the active Layer.

Return

Layer index.

uint8_t get_layer_index(Section &section)

Returns the index of the given Layer.

Return

Layer index.

Parameters
  • section: Section belonging to the Layer.

uint8_t get_section_index()

Returns the index of the current Section.

Return

Current Section index (or 0 if not found).

uint8_t get_section_index(Section &section)

Returns the index of the specified Section.

Return

Section index.

Parameters
  • section: Section to ID.

void initialize()
void set_active_section(Section *section)

Changes the active Section.

Parameters
  • section: New active Section.