28 explicit DFlipFlop(QGraphicsItem *parent =
nullptr);
48 Status m_simLastClk = Status::Inactive;
49 Status m_simLastValue = Status::Active;
Abstract base class for all graphical circuit elements.
Theme management types and singleton ThemeManager.
DFlipFlop(QGraphicsItem *parent=nullptr)
Constructs the element with optional parent.
void updateLogic() override
Updates output state on each rising clock edge.
void updatePortsProperties() override
Updates port names for this flip-flop.
void updateTheme() override
Refreshes the pixmap when the application theme changes.
void resetSimState() override
Resets Q/~Q outputs and edge-detection state to power-on defaults.
static QString pixmapPath()
GraphicElement(ElementType type, QGraphicsItem *parent=nullptr)
Constructs a graphic element of the given type, fetching all properties from the metadata registry.
static QString themePath()
Returns the resource path prefix for the current theme (e.g. "dark" or "light").