Logo Search packages:      
Sourcecode: qsapecng version File versions  Download package

Public Types | Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

qsapecng::SchematicScene Class Reference

Collaboration diagram for qsapecng::SchematicScene:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { Ground = 0 }
enum  { GridStep = 10 }
enum  SupportedItemType {
  NilItemType = 0, 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 resetStatus ()
void setGridVisible (bool visible=true)

Public Member Functions

SupportedItemType activeItem () const
QList< Item * > activeItems () const
void addItems (QList< QGraphicsItem * > items)
void addItems (QGraphicsItem *item)
void addSupportedItem (QGraphicsItem *gItem, bool init=true)
void assignNodes ()
void binSelectedItems ()
void bringToFrontSelectedItem ()
void clearSchematicScene ()
void clearSupportedItem (QGraphicsItem *gItem)
QPointF closestGridPoint (const QPointF &pos) const
QMenu * contextMenu () const
void copySelectedItems ()
void createLabel ()
void cutSelectedItems ()
bool gridVisible () const
void initializeBrowser (QtAbstractPropertyBrowser *browser)
bool isGridPoint (QPointF point) const
void joinWires (Wire *w1, Wire *w2)
void mirrorSelectedItems ()
void modifyWire (Wire *wire)
void moveSelectedItems (QPointF pos)
void pasteItems ()
QtPropertyproperties () const
void removeSupportedItem (QGraphicsItem *gItem)
void rotateSelectedItems ()
 SchematicScene (QObject *parent=0)
void sendToBackSelectedItem ()
void setActiveItem (SupportedItemType item)
void setContextMenu (QMenu *menu)
void setUserDefRequest ()
void setWireSessionRequest (bool connectedWire)
QUndoStack * undoRedoStack () const

Static Public Member Functions

static QPainterPath ammeterPath ()
static QPainterPath capacitorPath ()
static QPainterPath cccsPath ()
static QPainterPath ccvsPath ()
static QPainterPath conductancePath ()
static QPainterPath currentSourcePath ()
static QPainterPath groundPath ()
static QPainterPath inductorPath ()
static ItemitemByType (SupportedItemType type)
static QChar itemIdByType (SchematicScene::SupportedItemType type)
static QString itemNameByType (SchematicScene::SupportedItemType type)
static QtPropertyitemProperties (QGraphicsItem *item)
static
SchematicScene::SupportedItemType 
itemType (QGraphicsItem *item)
static QPainterPath mutualInductancePath ()
static QPainterPath nilPath ()
static QPainterPath opAmplPath ()
static QPainterPath outPath ()
static QPainterPath portPath ()
static QPainterPath resistorPath ()
static int size (SchematicScene &scene)
static QPainterPath transformerPath ()
static QList< QPointF > userDefNodes (uint ports)
static QPainterPath userDefPath (uint ports)
static QPainterPath vccsPath ()
static QPainterPath vcvsPath ()
static QPainterPath voltageSourcePath ()
static QPainterPath voltmeterPath ()

Protected Member Functions

void contextMenuEvent (QGraphicsSceneContextMenuEvent *event)
void dragEnterEvent (QGraphicsSceneDragDropEvent *event)
void dragLeaveEvent (QGraphicsSceneDragDropEvent *event)
void dragMoveEvent (QGraphicsSceneDragDropEvent *event)
void drawBackground (QPainter *painter, const QRectF &rect)
void dropEvent (QGraphicsSceneDragDropEvent *event)
bool event (QEvent *event)
void keyPressEvent (QKeyEvent *event)
void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
void mousePressEvent (QGraphicsSceneMouseEvent *event)

Private Member Functions

void addWires ()
bool hasActiveItem () const
bool hasPendingWire () const
bool hasUserDefReq () const
void init ()
void setPrePostWireLine (QPointF toPoint)
void setupProperties ()

Private Attributes

SupportedItemType activeItem_
QtBoolPropertyManagerboolManager_
QtCheckBoxFactorycheckBoxFactory_
bool connectedWire_
QMenu * contextMenu_
QtDoublePropertyManagerdoubleManager_
QPointF fromPoint_
bool gridVisible_
QList< Item * > groundList_
QtGroupPropertyManagergroupManager_
bool hasValidFromPoint_
bool horizontalFirst_
Itemitem_
QHash< SupportedItemType,
unsigned int > 
itemCntMap_
QList< Item * > labelList_
QPointF lastMousePressPos_
QtLineEditFactorylineEditFactory_
Itemout_
QList< Item * > outList_
QList< Item * > portList_
QGraphicsLineItem * postWireItem_
QGraphicsLineItem * preWireItem_
QtPropertyproperties_
QtDoubleSpinBoxFactoryspinBoxFactory_
QList< Item * > standardList_
QtStringPropertyManagerstringManager_
QHash< SupportedItemType,
QtProperty * > 
typeRootMap_
QUndoStack * undoRedoStack_
ItemuserDefItem_
bool userDefSessionRequested_
bool validNode_
WirewireInProgress_
QList< Item * > wireList_
QPen wirePen_
bool wireSessionRequested_

Detailed Description

Definition at line 67 of file schematicscene.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index