#include <variableresistor.h>
Definition at line 22 of file variableresistor.h.
Public Slots | |
virtual void | moveBy (double dx, double dy) |
void | removeChild (Item *child) |
virtual void | removeItem () |
virtual void | slotUpdateConfiguration () |
Signals | |
void | elementCreated (Element *element) |
void | elementDestroyed (Element *element) |
void | movedBy (double dx, double dy) |
void | orientationChanged () |
void | removed (Item *item) |
void | resized () |
void | selectionChanged () |
void | switchCreated (Switch *sw) |
void | switchDestroyed (Switch *sw) |
Public Member Functions | |
Button * | addButton (const QString &id, const QRect &pos, QPixmap pixmap, bool toggle=false) |
Button * | addButton (const QString &id, const QRect &pos, const QString &display, bool toggle=false) |
void | addChild (Item *child) |
Slider * | addSlider (const QString &id, int minValue, int maxValue, int pageStep, int value, Qt::Orientation orientation, const QRect &pos) |
int | angleDegrees () const |
QPointArray | areaPoints () const |
int | baseZ () const |
QRect | boundingRect () const |
QBrush | brush () const |
Button * | button (const QString &id) const |
virtual void | buttonStateChanged (const QString &, bool) |
virtual bool | canResize () const |
QCanvas * | canvas () const |
Node * | childNode (const QString &childId) |
ItemList | children (bool includeGrandChildren=false) const |
CircuitDocument * | circuitDocument () const |
bool | collidesWith (const QCanvasItem *) const |
QCanvasItemList | collisions (const bool exact) const |
ConnectorList | connectorList () |
bool | contains (Item *item, bool direct=false) const |
virtual bool | contentChanged () const |
BJT * | createBJT (ECNode *c, ECNode *b, ECNode *e, bool isNPN=true) |
BJT * | createBJT (Pin *c, Pin *b, Pin *e, bool isNPN=true) |
Capacitance * | createCapacitance (ECNode *n0, ECNode *n1, double capacitance) |
Capacitance * | createCapacitance (Pin *n0, Pin *n1, double capacitance) |
CCCS * | createCCCS (ECNode *n0, ECNode *n1, ECNode *n2, ECNode *n3, double gain) |
CCCS * | createCCCS (Pin *n0, Pin *n1, Pin *n2, Pin *n3, double gain) |
CCVS * | createCCVS (ECNode *n0, ECNode *n1, ECNode *n2, ECNode *n3, double gain) |
CCVS * | createCCVS (Pin *n0, Pin *n1, Pin *n2, Pin *n3, double gain) |
CurrentSignal * | createCurrentSignal (ECNode *n0, ECNode *n1, double current) |
CurrentSignal * | createCurrentSignal (Pin *n0, Pin *n1, double current) |
CurrentSource * | createCurrentSource (ECNode *n0, ECNode *n1, double current) |
CurrentSource * | createCurrentSource (Pin *n0, Pin *n1, double current) |
Diode * | createDiode (ECNode *n0, ECNode *n1) |
Diode * | createDiode (Pin *n0, Pin *n1) |
Inductance * | createInductance (ECNode *n0, ECNode *n1, double inductance) |
Inductance * | createInductance (Pin *n0, Pin *n1, double inductance) |
JFET * | createJFET (ECNode *D, ECNode *G, ECNode *S, int JFET_type) |
JFET * | createJFET (Pin *D, Pin *G, Pin *S, int JFET_type) |
LogicIn * | createLogicIn (ECNode *node) |
LogicIn * | createLogicIn (Pin *node) |
LogicOut * | createLogicOut (ECNode *node, bool isHigh) |
LogicOut * | createLogicOut (Pin *node, bool isHigh) |
MOSFET * | createMOSFET (ECNode *D, ECNode *G, ECNode *S, ECNode *B, int MOSFET_type) |
MOSFET * | createMOSFET (Pin *D, Pin *G, Pin *S, Pin *B, int MOSFET_type) |
Node * | createNode (double _x, double _y, int orientation, const QString &name, uint type) |
OpAmp * | createOpAmp (ECNode *nonInverting, ECNode *out, ECNode *inverting) |
OpAmp * | createOpAmp (Pin *nonInverting, Pin *out, Pin *inverting) |
ECNode * | createPin (double _x, double _y, int orientation, const QString &name) |
virtual Property * | createProperty (const QString &id, Variant::Type::Value type) |
Resistance * | createResistance (ECNode *n0, ECNode *n1, double resistance) |
Resistance * | createResistance (Pin *n0, Pin *n1, double resistance) |
Switch * | createSwitch (ECNode *n0, ECNode *n1, bool open) |
Switch * | createSwitch (Pin *n0, Pin *n1, bool open) |
VCCS * | createVCCS (ECNode *n0, ECNode *n1, ECNode *n2, ECNode *n3, double gain) |
VCCS * | createVCCS (Pin *n0, Pin *n1, Pin *n2, Pin *n3, double gain) |
VCVS * | createVCVS (ECNode *n0, ECNode *n1, ECNode *n2, ECNode *n3, double gain) |
VCVS * | createVCVS (Pin *n0, Pin *n1, Pin *n2, Pin *n3, double gain) |
VoltagePoint * | createVoltagePoint (ECNode *n0, double voltage) |
VoltagePoint * | createVoltagePoint (Pin *n0, double voltage) |
VoltageSignal * | createVoltageSignal (ECNode *n0, ECNode *n1, double voltage) |
VoltageSignal * | createVoltageSignal (Pin *n0, Pin *n1, double voltage) |
VoltageSource * | createVoltageSource (ECNode *n0, ECNode *n1, double voltage) |
VoltageSource * | createVoltageSource (Pin *n0, Pin *n1, double voltage) |
bool | dataBool (const QString &id) const |
QColor | dataColor (const QString &id) const |
double | dataDouble (const QString &id) const |
int | dataInt (const QString &id) const |
QString | dataString (const QString &id) const |
virtual bool | doesStepNonLogic () const |
void | drawWidgets (QPainter &p) |
ECNode * | ecNodeWithID (const QString &ecNodeId) |
virtual void | enterEvent () |
virtual void | finishedCreation () |
bool | flipped () const |
QFont | font () const |
Node * | getClosestNode (const QPoint &pos) |
bool | hasProperty (const QString &id) const |
int | height () const |
void | hide () |
QString | id () const |
void | initElements (const uint stage) |
virtual bool | isMovable () const |
bool | isRaised () const |
bool | isSelected () const |
bool | isVisible () const |
virtual ItemData | itemData () const |
ItemDocument * | itemDocument () const |
virtual void | leaveEvent () |
int | level () const |
int | mgrX () const |
int | mgrY () const |
virtual QSize | minimumSize () const |
virtual bool | mouseDoubleClickEvent (const EventInfo &eventInfo) |
virtual bool | mouseMoveEvent (const EventInfo &eventInfo) |
virtual bool | mousePressEvent (const EventInfo &eventInfo) |
virtual bool | mouseReleaseEvent (const EventInfo &eventInfo) |
void | move (double const x, double const y) |
QString | name () const |
bool | needRedraw () const |
QString | nodeId (const QString &internalNodeId) |
NodeInfoMap | nodeMap () const |
int | offsetX () const |
int | offsetY () const |
Item * | parentItem () const |
QPen | pen () const |
QPointArray | points () const |
virtual bool | preResize (QRect sizeRect) |
Property * | property (const QString &id) const |
void | removeElement (Element *element, bool setPinsInterIndependent) |
void | removeElements (bool setPinsInterIndependent=false) |
bool | removeNode (const QString &name) |
void | removeSwitch (Switch *sw) |
void | removeWidget (const QString &id) |
virtual void | restoreFromItemData (const ItemData &itemData) |
void | setAngleDegrees (int degrees) |
virtual void | setBrush (const QBrush &b) |
void | setButtonState (const QString &id, int state) |
virtual void | setCanvas (QCanvas *) |
void | setChanged () |
void | setDrawWidgets (bool draw) |
void | setFlipped (bool flipped) |
void | setNeedRedraw (const bool needRedraw) |
void | setNodalCurrents () |
void | setParentItem (Item *parentItem) |
virtual void | setPen (const QPen &p) |
void | setPoints (QPointArray) |
void | setRaised (bool isRaised) |
virtual void | setSelected (bool yes) |
void | setSize (int x, int y, int w, int h, bool forceItemPoints=false) |
void | setSize (QRect sizeRect, bool forceItemPoints=false) |
virtual void | setVisible (bool yes) |
void | setWidgetsPos (const QPoint &pos) |
void | setX (double a) |
void | setY (double a) |
void | setZ (double a) |
void | show () |
QRect | sizeRect () const |
Slider * | slider (const QString &id) const |
virtual void | sliderValueChanged (const QString &id, int newValue) |
virtual void | stepNonLogic () |
SwitchList | switchList () const |
TextMap | textMap () const |
QString | type () const |
virtual void | updateConnectorPoints (bool add) |
virtual void | updateNodeLevels () |
virtual void | updateZ (int baseZ) |
VariableResistor (ICNDocument *icnDocument, bool newItem, const QString &id=0L) | |
VariantDataMap * | variantMap () |
virtual bool | wheelEvent (const EventInfo &eventInfo) |
Widget * | widgetWithID (const QString &id) const |
int | width () const |
double | x () const |
double | y () const |
double | z () const |
Static Public Member Functions | |
static Item * | construct (ItemDocument *itemDocument, bool newItem, const char *id) |
static double | getMultiplier (const QString &mag) |
static double | getMultiplier (double num) |
static QString | getNumberMag (double num) |
static int | getNumberPre (double num) |
static LibraryItem * | libraryItem () |
static QWMatrix | transMatrix (int angleDegrees, bool flipped, int x, int y, bool inverse=false) |
static QColor | voltageColor (double v) |
static double | voltageLength (double v) |
Protected Slots | |
virtual void | propertyChangedInitial () |
Protected Member Functions | |
Text * | addDisplayText (const QString &id, const QRect &pos, const QString &display, bool internal=true, int flags=Qt::AlignHCenter|Qt::AlignVCenter) |
virtual void | addToChunks () |
virtual void | changeChunks () |
virtual void | childAdded (Item *) |
virtual void | childRemoved (Item *) |
virtual void | deinitPainter (QPainter &p) |
void | draw (QPainter &) |
void | drawPortShape (QPainter &p) |
void | init1PinLeft (int h1=-1) |
void | init1PinRight (int h1=-1) |
void | init2PinLeft (int h1=-1, int h2=-1) |
void | init2PinRight (int h1=-1, int h2=-1) |
void | init3PinLeft (int h1=-1, int h2=-1, int h3=-1) |
void | init3PinRight (int h1=-1, int h2=-1, int h3=-1) |
void | init4PinLeft (int h1=-1, int h2=-1, int h3=-1, int h4=-1) |
void | init4PinRight (int h1=-1, int h2=-1, int h3=-1, int h4=-1) |
void | initDIP (const QStringList &pins) |
void | initDIPSymbol (const QStringList &pins, int width) |
virtual void | initPainter (QPainter &p) |
void | invalidate () |
bool | isValid () const |
virtual void | itemPointsChanged () |
virtual void | postResize () |
void | rebuildPinInterDepedence () |
void | removeDisplayText (const QString &id) |
virtual void | removeFromChunks () |
virtual void | reparented (Item *oldParent, Item *newParent) |
void | setDisplayText (const QString &id, const QString &display) |
void | setItemPoints (const QPointArray &pa, bool setSizeFromPoints=true) |
void | setWinding (bool) |
void | update () |
virtual void | updateAttachedPositioning () |
bool | winding () const |
Protected Attributes | |
bool | b_deleted |
bool | b_flipped |
bool | b_pointsAdded |
int | m_angleDegrees |
int | m_baseZ |
bool | m_bDoneCreation |
bool | m_bDynamicContent |
bool | m_bIsRaised |
QColor | m_brushCol |
ItemList | m_children |
QString | m_id |
QPointArray | m_itemPoints |
QString | m_name |
Name (e.g. "Resistor"). | |
NodeInfoMap | m_nodeMap |
QGuardedPtr< CircuitDocument > | m_pCircuitDocument |
ECNode * | m_pNNode [4] |
QPoint | m_pos |
ECNode * | m_pPNode [4] |
QTimer * | m_pPropertyChangedTimer |
Single show timer for one a property changes. | |
QColor | m_selectedCol |
QRect | m_sizeRect |
TextMap | m_textMap |
QString | m_type |
VariantDataMap | m_variantData |
WidgetMap | m_widgetMap |
double | myx |
double | myy |
double | myz |
QCanvas * | p_canvas |
CNItem * | p_cnItem |
QGuardedPtr< ICNDocument > | p_icnDocument |
QGuardedPtr< ItemDocument > | p_itemDocument |
GuardedItem | p_parentItem |
QPointArray | poly |
bool | val |
Private Member Functions | |
void | dataChanged () |
virtual void | drawShape (QPainter &p) |
Private Attributes | |
double | m_currResistance |
double | m_maxResistance |
double | m_minResistance |
Resistance * | m_pResistance |
QSlider * | m_pSlider |
double | m_tickValue |
Friends | |
class | ItemLibrary |