Central enumeration types for element types, groups, and signal status.
Enums::ElementType ElementType
Factory for circuit elements.
static QString translatedName(const ElementType type)
Returns the translated human-readable name for type.
static bool hasCreator(ElementType type)
Returns true if a creator function is registered for type.
static QPixmap pixmap(const ElementType type)
Returns the pixmap icon for the given element type.
static void registerCreator(ElementType type, std::function< GraphicElement *()> creator)
Registers a creator lambda for type, used by buildElement().
static QString typeToText(const ElementType type)
Converts type to its internal name string.
static QString description(const ElementType type)
static QString typeToTitleText(const ElementType type)
Returns the display title string for type.
static ElementFactory & instance()
Returns the singleton ElementFactory instance.
static ElementType textToType(const QString &text)
Converts an element type name string to its ElementType enum value.
static GraphicElement * buildElement(const ElementType type)
Constructs and returns a new graphic element of the given type.
Abstract base class for all graphical circuit elements in wiRedPanda.