wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
PropertyShortcutHandler Class Reference

Dispatches keyboard shortcuts that cycle element properties and types. More...

#include <PropertyShortcutHandler.h>

Public Member Functions

void nextElement ()
 Morphs each selected element to the next type in the cycle.
void nextMainProperty ()
 Increments the primary property of each selected element.
void nextSecondaryProperty ()
 Increments the secondary property of each selected element.
void prevElement ()
 Morphs each selected element to the previous type in the cycle.
void prevMainProperty ()
 Decrements the primary property of each selected element.
void prevSecondaryProperty ()
 Decrements the secondary property of each selected element.
 PropertyShortcutHandler (Scene *scene)

Detailed Description

Dispatches keyboard shortcuts that cycle element properties and types.

Extracted from Scene to decouple property-cycling dispatch logic (input count, frequency, color, element morphing) from the main circuit scene.

Definition at line 24 of file PropertyShortcutHandler.h.

Constructor & Destructor Documentation

◆ PropertyShortcutHandler()

PropertyShortcutHandler::PropertyShortcutHandler ( Scene * scene)
explicit

Definition at line 15 of file PropertyShortcutHandler.cpp.

Member Function Documentation

◆ nextElement()

void PropertyShortcutHandler::nextElement ( )

Morphs each selected element to the next type in the cycle.

Definition at line 216 of file PropertyShortcutHandler.cpp.

References GraphicElement::elementType(), and Enums::nextElmType().

◆ nextMainProperty()

void PropertyShortcutHandler::nextMainProperty ( )

Increments the primary property of each selected element.

Definition at line 134 of file PropertyShortcutHandler.cpp.

◆ nextSecondaryProperty()

void PropertyShortcutHandler::nextSecondaryProperty ( )

Increments the secondary property of each selected element.

Definition at line 211 of file PropertyShortcutHandler.cpp.

◆ prevElement()

void PropertyShortcutHandler::prevElement ( )

Morphs each selected element to the previous type in the cycle.

Definition at line 247 of file PropertyShortcutHandler.cpp.

References GraphicElement::elementType(), and Enums::prevElmType().

◆ prevMainProperty()

void PropertyShortcutHandler::prevMainProperty ( )

Decrements the primary property of each selected element.

Definition at line 129 of file PropertyShortcutHandler.cpp.

◆ prevSecondaryProperty()

void PropertyShortcutHandler::prevSecondaryProperty ( )

Decrements the secondary property of each selected element.

Definition at line 206 of file PropertyShortcutHandler.cpp.


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