Skui 0.0.1
Build fast and easy to use control software with Skui.
 
Loading...
Searching...
No Matches
Panel Class Reference

#include <panel.hpp>

Inheritance diagram for Panel:

Public Slots

void setMode (DisplayMode display_mode)
 Sets the display mode of the panel.
 
void triggeredAlign (AlignDirection direction)
 Align selected to direction.
 
void changeGeometryForSelected (DragDirection, QPointF)
 

Public Member Functions

 Panel (QWidget *parent=nullptr)
 
void addVisual (Visual *visual)
 Adds a Visual to the Panel.
 

Protected Member Functions

void mousePressEvent (QMouseEvent *) override
 
void mouseMoveEvent (QMouseEvent *) override
 
void mouseReleaseEvent (QMouseEvent *) override
 
bool eventFilter (QObject *, QEvent *) override
 
void childEvent (QChildEvent *) override
 

Constructor & Destructor Documentation

◆ Panel()

Panel::Panel ( QWidget * parent = nullptr)
explicit

Member Function Documentation

◆ addVisual()

void Panel::addVisual ( Visual * visual)

Adds a Visual to the Panel.

This method adds the given Visual element to the Panel. By doing so, it also creates a VisualContainer for the Visual and sets the Visual's parent to the container.

Parameters
visualThe Visual element to be added.
See also
Visual

◆ changeGeometryForSelected

void Panel::changeGeometryForSelected ( DragDirection active_direction,
QPointF delta )
slot

◆ childEvent()

void Panel::childEvent ( QChildEvent * event)
overrideprotected

◆ eventFilter()

bool Panel::eventFilter ( QObject * watched,
QEvent * event )
overrideprotected

◆ mouseMoveEvent()

void Panel::mouseMoveEvent ( QMouseEvent * event)
overrideprotected

◆ mousePressEvent()

void Panel::mousePressEvent ( QMouseEvent * event)
overrideprotected

◆ mouseReleaseEvent()

void Panel::mouseReleaseEvent ( QMouseEvent * event)
overrideprotected

◆ setMode

void Panel::setMode ( DisplayMode display_mode)
slot

Sets the display mode of the panel.

This method changes the display mode of the panel to either Run or Edit. In Edit mode, users can select and manipulate visual elements within the panel. In Run mode, the panel behaves as a standard display without editing capabilities.

Parameters
display_modeThe desired display mode (Run or Edit).

◆ triggeredAlign

void Panel::triggeredAlign ( AlignDirection direction)
slot

Align selected to direction.

This method aligns selected children and aligns them to a direction.

Parameters
directionDirection to align to.

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