Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
GraphWidget Class Reference
Inheritance diagram for GraphWidget:
Inheritance graph
[legend]
Collaboration diagram for GraphWidget:
Collaboration graph
[legend]

Public Slots

void shuffle ()
 Randomize component positions.
 
void zoomIn ()
 Zoom in view.
 
void zoomOut ()
 Zoom out view.
 
void ComponentSelectionHandler (struct ComponentInfo CI)
 Handle component selection events.
 

Signals

void SendComponentSelectionToMainFunction (ComponentInfo)
 Send component selection to main function.
 

Public Member Functions

 GraphWidget (QWidget *parent=0)
 Construct graph widget.
 
void itemMoved ()
 Notify that an item has moved.
 
void setComponents (QList< ComponentInfo >)
 Set components (position, type, values) in the schematic.
 
void ModifyComponent (ComponentInfo)
 Modify existing component parameters.
 
void setWires (const QList< WireInfo > &)
 Set wires (position and connection properties) in the schematic.
 
void setNodes (QList< NodeInfo >)
 Set nodes in the schematic.
 
void setSchematic (SchematicContent)
 Set complete schematic content.
 
void setTexts (QList< QGraphicsTextItem * >)
 Set text items in the schematic.
 
void clear ()
 Clear all items from scene.
 

Protected Member Functions

void keyPressEvent (QKeyEvent *)
 Handle key press events.
 
void timerEvent (QTimerEvent *event)
 Handle timer events.
 
void wheelEvent (QWheelEvent *event)
 Handle mouse wheel events.
 
void scaleView (qreal scaleFactor)
 Scale view by factor.
 

Constructor & Destructor Documentation

◆ GraphWidget()

GraphWidget::GraphWidget ( QWidget *  parent = 0)

Construct graph widget.

Parameters
parentParent widget

Member Function Documentation

◆ ComponentSelectionHandler

void GraphWidget::ComponentSelectionHandler ( struct ComponentInfo  CI)
inlineslot

Handle component selection events.

Parameters
CISelected component information

◆ ModifyComponent()

void GraphWidget::ModifyComponent ( ComponentInfo  CI)

Modify existing component parameters.

Parameters
CIComponent information with updated values

◆ scaleView()

void GraphWidget::scaleView ( qreal  scaleFactor)
protected

Scale view by factor.

Parameters
scaleFactorScaling factor

◆ SendComponentSelectionToMainFunction

void GraphWidget::SendComponentSelectionToMainFunction ( ComponentInfo  )
signal

Send component selection to main function.

Parameters
CISelected component information

◆ setComponents()

void GraphWidget::setComponents ( QList< ComponentInfo cmps)

Set components (position, type, values) in the schematic.

Parameters
cmpsList of component information

◆ setNodes()

void GraphWidget::setNodes ( QList< NodeInfo nds)

Set nodes in the schematic.

Parameters
ndsList of node information

◆ setSchematic()

void GraphWidget::setSchematic ( SchematicContent  SchContent)

Set complete schematic content.

Parameters
SchContentSchematic content structure

◆ setTexts()

void GraphWidget::setTexts ( QList< QGraphicsTextItem * >  texts)

Set text items in the schematic.

Parameters
textsList of text items

◆ setWires()

void GraphWidget::setWires ( const QList< WireInfo > &  wrs)

Set wires (position and connection properties) in the schematic.

Parameters
wrsList of wire information

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