Public Types | |
| enum | { Ground = 0 } |
| enum | { GridStep = 10 } |
| enum | SupportedItemType { NilItemType = 0, UserDefItemType, CapacitorItemType, CCCSItemType, CCVSItemType, ConductanceItemType, CurrentSourceItemType, InductorItemType, OpAmplItemType, ResistorItemType, VCCSItemType, VCVSItemType, VoltageSourceItemType, TransformerItemType, MutualInductanceItemType, VoltmeterItemType, AmmeterItemType, GroundItemType, PortItemType, OutItemType, WireItemType, LabelItemType } |
Public Slots | |
| void | resetNodes () |
| void | setGridVisible (bool visible=true) |
| void | resetStatus () |
Signals | |
| void | showUserDef (SchematicScene &scene) |
| void | propertyChanged () |
Public Member Functions | |
| SchematicScene (QObject *parent=0) | |
| QPointF | closestGridPoint (const QPointF &pos) const |
| bool | gridVisible () const |
| bool | isGridPoint (QPointF point) const |
| void | setActiveItem (SupportedItemType item) |
| SupportedItemType | activeItem () const |
| QList< Item * > | activeItems () const |
| QByteArray | registerUserDef (const SchematicScene &scene) |
| std::string | queryUserDef (QByteArray md5) |
| void | setUserDefRequest () |
| void | addItems (QList< QGraphicsItem * > items) |
| void | addItems (QGraphicsItem *item) |
| void | addSupportedItem (QGraphicsItem *gItem, bool init=true) |
| void | removeSupportedItem (QGraphicsItem *gItem) |
| void | clearSupportedItem (QGraphicsItem *gItem) |
| void | setWireSessionRequest (bool connectedWire) |
| void | joinWires (Wire *w1, Wire *w2) |
| void | modifyWire (Wire *wire) |
| void | createLabel () |
| void | moveSelectedItems (QPointF pos) |
| void | cutSelectedItems () |
| void | copySelectedItems () |
| void | pasteItems () |
| void | rotateSelectedItems () |
| void | mirrorSelectedItems () |
| void | binSelectedItems () |
| void | bringToFrontSelectedItem () |
| void | sendToBackSelectedItem () |
| void | clearSchematicScene () |
| void | setContextMenu (QMenu *menu) |
| QMenu * | contextMenu () const |
| QUndoStack * | undoRedoStack () const |
| void | initializeBrowser (QtAbstractPropertyBrowser *browser) |
| QtProperty * | properties () const |
| QVector< int > | ports () |
| int | size () |
| void | assignNodes (int seed=SchematicScene::Ground+1) |
Static Public Member Functions | |
| static QPainterPath | nilPath () |
| static QPainterPath | groundPath () |
| static QPainterPath | portPath () |
| static QPainterPath | outPath () |
| static QPainterPath | voltmeterPath () |
| static QPainterPath | ammeterPath () |
| static QPainterPath | capacitorPath () |
| static QPainterPath | cccsPath () |
| static QPainterPath | ccvsPath () |
| static QPainterPath | conductancePath () |
| static QPainterPath | currentSourcePath () |
| static QPainterPath | inductorPath () |
| static QPainterPath | opAmplPath () |
| static QPainterPath | resistorPath () |
| static QPainterPath | vccsPath () |
| static QPainterPath | vcvsPath () |
| static QPainterPath | voltageSourcePath () |
| static QPainterPath | transformerPath () |
| static QPainterPath | mutualInductancePath () |
| static QtProperty * | itemProperties (QGraphicsItem *item) |
|
static SchematicScene::SupportedItemType | itemType (QGraphicsItem *item) |
| static Item * | itemByType (SupportedItemType type) |
| static QString | itemNameByType (SchematicScene::SupportedItemType type) |
| static QChar | itemIdByType (SchematicScene::SupportedItemType type) |
| static QPainterPath | userDefPath (uint ports) |
| static QList< QPointF > | userDefNodes (uint ports) |
Protected Member Functions | |
| void | drawBackground (QPainter *painter, const QRectF &rect) |
| void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
| void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
| void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) |
| void | contextMenuEvent (QGraphicsSceneContextMenuEvent *event) |
| void | keyPressEvent (QKeyEvent *event) |
| bool | event (QEvent *event) |
| void | dragEnterEvent (QGraphicsSceneDragDropEvent *event) |
| void | dragMoveEvent (QGraphicsSceneDragDropEvent *event) |
| void | dragLeaveEvent (QGraphicsSceneDragDropEvent *event) |
| void | dropEvent (QGraphicsSceneDragDropEvent *event) |
1.7.6.1