Class MaestroDrawingArea¶
Defined in File maestrodrawingarea.h
Class Documentation¶
-
class
MaestroDrawingArea
: public QFrame¶ Public Functions
-
MaestroDrawingArea
(QWidget *parent, MaestroController &maestro_controller)¶ Constructor.
- Parameters
parent
: The parent QWidget.maestro_controller
: The MaestroController rendered by this DrawingArea.
-
~MaestroDrawingArea
()¶
-
SectionDrawingArea *
add_section_drawing_area
(Section §ion, const uint8_t section_id)¶ Adds a new SectionDrawingArea to the widget.
- Return
New SectionDrawingArea.
- Parameters
section
: Section to draw.
-
MaestroControlWidget *
get_maestro_control_widget
() const¶ Returns this DrawingArea’s MaestroControlWidget (if applicable).
- Return
DrawingArea’s controlling widget.
-
void
frame_active_section
(Section §ion)¶ Changes the active Section, which highlights the appropriate SectionDrawingArea.
- Parameters
section
: Active Section.
-
void
remove_section_drawing_areas
()¶ Removes a Section drawing areas.
- Parameters
Section
: Pointer to the Section to remove. Leave blank to remove all Sections.
-
void
set_locked
(bool locked)¶
-
void
set_maestro_control_widget
(MaestroControlWidget *widget)¶ Sets the MaestroControlWidget used to control this DrawingArea.
- Parameters
widget
: Controlling MaestroControlWidget.
Public Slots
-
void
update
()¶ Redraws the DrawingArea.
Protected Attributes
-
MaestroControlWidget *
maestro_control_widget_
= nullptr¶ The MaestroControlWidget controlling this DrawingArea (if applicable).
-
MaestroController &
maestro_controller_
¶ The MaestroController managed by this DrawingArea.
-
QVector<QSharedPointer<SectionDrawingArea>>
section_drawing_areas_
¶ The SectionDrawingAreas managed by this DrawingArea.
-