|
wiRedPanda
Logic Circuit Simulator
|
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) | |
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.
|
explicit |
Definition at line 15 of file PropertyShortcutHandler.cpp.
| 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().
| void PropertyShortcutHandler::nextMainProperty | ( | ) |
Increments the primary property of each selected element.
Definition at line 134 of file PropertyShortcutHandler.cpp.
| void PropertyShortcutHandler::nextSecondaryProperty | ( | ) |
Increments the secondary property of each selected element.
Definition at line 211 of file PropertyShortcutHandler.cpp.
| 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().
| void PropertyShortcutHandler::prevMainProperty | ( | ) |
Decrements the primary property of each selected element.
Definition at line 129 of file PropertyShortcutHandler.cpp.
| void PropertyShortcutHandler::prevSecondaryProperty | ( | ) |
Decrements the secondary property of each selected element.
Definition at line 206 of file PropertyShortcutHandler.cpp.