#include <ecsubcircuit.h>
Inheritance diagram for ECSubcircuit:


Public Slots | |
| virtual void | removeItem () |
Signals | |
| void | subcircuitDeleted () |
Public Member Functions | |
| ECSubcircuit (ICNDocument *icnDocument, bool newItem, const char *id=0) | |
| ~ECSubcircuit () | |
| virtual bool | canFlip () const |
| void | setNumExtCon (unsigned numExtCon) |
| void | setExtConName (unsigned numId, const QString &name) |
| void | doneSCInit () |
Static Public Member Functions | |
| static Item * | construct (ItemDocument *itemDocument, bool newItem, const char *id) |
| static LibraryItem * | libraryItem () |
Protected Member Functions | |
| virtual void | dataChanged () |
| virtual void | drawShape (QPainter &p) |
Protected Attributes | |
| QValueVector< QString > | m_conNames |
Definition at line 22 of file ecsubcircuit.h.
| virtual bool ECSubcircuit::canFlip | ( | ) | const [inline, virtual] |
Whether or not we can flip the item
Reimplemented from Item.
Definition at line 28 of file ecsubcircuit.h.
| void ECSubcircuit::setNumExtCon | ( | unsigned | numExtCon | ) |
Create numExtCon nodes, deleting any old ones
Definition at line 63 of file ecsubcircuit.cpp.
References Component::initDIP(), Component::initDIPSymbol(), m_conNames, CNItem::m_nodeMap, CNItem::p_icnDocument, and CNItem::removeDisplayText().
Referenced by SubcircuitData::initECSubcircuit().
| void ECSubcircuit::setExtConName | ( | unsigned | numId, | |
| const QString & | name | |||
| ) |
Give the connecting node at position numId the given name
Definition at line 103 of file ecsubcircuit.cpp.
References m_conNames.
Referenced by SubcircuitData::initECSubcircuit().
| void ECSubcircuit::doneSCInit | ( | ) |
Called from SubcircuitData once the subcircuit has been fully attached
Definition at line 112 of file ecsubcircuit.cpp.
References Component::initDIPSymbol(), and m_conNames.
Referenced by SubcircuitData::initECSubcircuit().
| void ECSubcircuit::removeItem | ( | ) | [virtual, slot] |
Remove the item and associated nodes. It appends the item to the ICNDocument's delete list, so you must call ICNDocument::flushDeleteList() after calling this (and possible ICNDocument::clearDeleteList() befor calling it) The virtual function void handleRemove() is called to allow any child classes to clear up any neccessary data (which doesn't do anything by default), before CNItem does the rest
Reimplemented from Component.
Definition at line 56 of file ecsubcircuit.cpp.
References Component::removeItem(), and subcircuitDeleted().
| void ECSubcircuit::subcircuitDeleted | ( | ) | [signal] |
Emitted when the current subcircuit is deleted
Referenced by dataChanged(), and removeItem().
1.5.1