Qucs-GUI  0.0.19
Signals | Public Member Functions | Static Public Member Functions | Data Fields | Protected Slots | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
Schematic Class Reference

#include <schematic.h>

Inheritance diagram for Schematic:
Inheritance graph
[legend]
Collaboration diagram for Schematic:
Collaboration graph
[legend]

Signals

void signalCursorPosChanged (int, int)
void signalUndoState (bool)
void signalRedoState (bool)
void signalFileChanged (bool)

Public Member Functions

 Schematic (QucsApp *, const QString &)
 ~Schematic ()
void setName (const QString &)
void setChanged (bool, bool fillStack=false, char Op='*')
void paintGrid (ViewPainter *, int, int, int, int)
void print (QPrinter *, QPainter *, bool, bool)
void paintSchToViewpainter (ViewPainter *p, bool printAll, bool toImage, int screenDpiX=96, int printerDpiX=300)
void PostPaintEvent (PE pe, int x1=0, int y1=0, int x2=0, int y2=0, int a=0, int b=0, bool PaintOnViewport=false)
float textCorr ()
bool sizeOfFrame (int &, int &)
void sizeOfAll (int &, int &, int &, int &)
bool rotateElements ()
bool mirrorXComponents ()
bool mirrorYComponents ()
void setOnGrid (int &, int &)
bool elementsOnGrid ()
float zoom (float)
float zoomBy (float)
void showAll ()
void showNoZoom ()
void enlargeView (int, int, int, int)
void switchPaintMode ()
int adjustPortNumbers ()
void reloadGraphs ()
bool createSubcircuitSymbol ()
void cut ()
void copy ()
bool paste (QTextStream *, Q3PtrList< Element > *)
bool load ()
int save ()
int saveSymbolCpp (void)
int saveSymbolJSON (void)
void becomeCurrent (bool)
bool undo ()
bool redo ()
bool scrollUp (int)
bool scrollDown (int)
bool scrollLeft (int)
bool scrollRight (int)
QFileInfo getFileInfo (void)
 Get (schematic) file reference.
void setFileInfo (QString FileName)
 Set reference to file (schematic)
NodeinsertNode (int, int, Element *)
NodeselectedNode (int, int)
int insertWireNode1 (Wire *)
bool connectHWires1 (Wire *)
bool connectVWires1 (Wire *)
int insertWireNode2 (Wire *)
bool connectHWires2 (Wire *)
bool connectVWires2 (Wire *)
int insertWire (Wire *)
void selectWireLine (Element *, Node *, bool)
WireselectedWire (int, int)
WiresplitWire (Wire *, Node *)
bool oneTwoWires (Node *)
void deleteWire (Wire *)
MarkersetMarker (int, int)
void markerLeftRight (bool, Q3PtrList< Element > *)
void markerUpDown (bool, Q3PtrList< Element > *)
ElementselectElement (float, float, bool, int *index=0)
void deselectElements (Element *)
int selectElements (int, int, int, int, bool)
void selectMarkers ()
void newMovingWires (Q3PtrList< Element > *, Node *, int)
int copySelectedElements (Q3PtrList< Element > *)
bool deleteElements ()
bool aligning (int)
 Schematic::aligning align selected elements.
bool distributeHorizontal ()
 Schematic::distributeHorizontal sort selection horizontally.
bool distributeVertical ()
 Schematic::distributeVertical sort selection vertically.
void setComponentNumber (Component *)
void insertRawComponent (Component *, bool noOptimize=true)
void recreateComponent (Component *)
void insertComponent (Component *)
void activateCompsWithinRect (int, int, int, int)
bool activateSpecifiedComponent (int, int)
bool activateSelectedComponents ()
void setCompPorts (Component *)
ComponentselectCompText (int, int, int &, int &)
ComponentsearchSelSubcircuit ()
ComponentselectedComponent (int, int)
void deleteComp (Component *)
void oneLabel (Node *)
int placeNodeLabel (WireLabel *)
ElementgetWireLabel (Node *)
void insertNodeLabel (WireLabel *)
void copyLabels (int &, int &, int &, int &, QList< Element * > *)
PaintingselectedPainting (float, float)
void copyPaintings (int &, int &, int &, int &, QList< Element * > *)
void getSelAreaWidthAndHeight (int &wsel, int &hsel, int &xmin_sel_, int &ymin_sel_)
bool createLibNetlist (QTextStream *, QPlainTextEdit *, int)
bool createSubNetlist (QTextStream *, int &, QStringList &, QPlainTextEdit *, int)
void createSubNetlistPlain (QTextStream *, QPlainTextEdit *, int)
int prepareNetlist (QTextStream &, QStringList &, QPlainTextEdit *)
QString createNetlist (QTextStream &, int)
bool loadDocument ()
 Schematic::loadDocument tries to load a schematic document.
void highlightWireLabels (void)

Static Public Member Functions

static int testFile (const QString &)

Data Fields

Q3PtrList< Wire > * Wires
Q3PtrList< WireDocWires
Q3PtrList< Node > * Nodes
Q3PtrList< NodeDocNodes
Q3PtrList< Diagram > * Diagrams
Q3PtrList< DiagramDocDiags
Q3PtrList< Painting > * Paintings
Q3PtrList< PaintingDocPaints
Q3PtrList< Component > * Components
Q3PtrList< ComponentDocComps
Q3PtrList< PaintingSymbolPaints
QList< PostedPaintEventPostedPaintEvents
bool symbolMode
int GridX
int GridY
int ViewX1
int ViewY1
int ViewX2
int ViewY2
int UsedX1
int UsedY1
int UsedX2
int UsedY2
int showFrame
QString Frame_Text0
QString Frame_Text1
QString Frame_Text2
QString Frame_Text3
float tmpScale
int tmpViewX1
int tmpViewY1
int tmpViewX2
int tmpViewY2
int tmpUsedX1
int tmpUsedY1
int tmpUsedX2
int tmpUsedY2
int undoActionIdx
QVector< QString * > undoAction
int undoSymbolIdx
QVector< QString * > undoSymbol
bool isAnalog
bool isVerilog
bool creatingLib

Protected Slots

void slotScrollUp ()
void slotScrollDown ()
void slotScrollLeft ()
void slotScrollRight ()

Protected Member Functions

void paintFrame (ViewPainter *)
void drawContents (QPainter *, int, int, int, int)
void contentsMouseMoveEvent (QMouseEvent *)
void contentsMousePressEvent (QMouseEvent *)
void contentsMouseDoubleClickEvent (QMouseEvent *)
void contentsMouseReleaseEvent (QMouseEvent *)
void contentsWheelEvent (QWheelEvent *)
void contentsDropEvent (QDropEvent *)
void contentsDragEnterEvent (QDragEnterEvent *)
void contentsDragLeaveEvent (QDragLeaveEvent *)
void contentsDragMoveEvent (QDragMoveEvent *)

Private Member Functions

void insertComponentNodes (Component *, bool)
int copyWires (int &, int &, int &, int &, QList< Element * > *)
int copyComponents (int &, int &, int &, int &, QList< Element * > *)
void copyComponents2 (int &, int &, int &, int &, QList< Element * > *)
bool copyComps2WiresPaints (int &, int &, int &, int &, QList< Element * > *)
int copyElements (int &, int &, int &, int &, QList< Element * > *)
int saveDocument ()
bool loadProperties (QTextStream *)
void simpleInsertComponent (Component *)
bool loadComponents (QTextStream *, Q3PtrList< Component > *List=0)
void simpleInsertWire (Wire *)
bool loadWires (QTextStream *, Q3PtrList< Element > *List=0)
bool loadDiagrams (QTextStream *, Q3PtrList< Diagram > *)
bool loadPaintings (QTextStream *, Q3PtrList< Painting > *)
bool loadIntoNothing (QTextStream *)
QString createClipboardFile ()
bool pasteFromClipboard (QTextStream *, Q3PtrList< Element > *)
QString createUndoString (char)
bool rebuild (QString *)
QString createSymbolUndoString (char)
bool rebuildSymbol (QString *)
void throughAllNodes (bool, QStringList &, int &)
void propagateNode (QStringList &, int &, Node *)
void collectDigitalSignals (void)
bool giveNodeNames (QTextStream *, int &, QStringList &, QPlainTextEdit *, int)
void beginNetlistDigital (QTextStream &)
void endNetlistDigital (QTextStream &)
bool throughAllComps (QTextStream *, int &, QStringList &, QPlainTextEdit *, int)
 Schematic::throughAllComps Goes through all schematic components and allows special component handling, e.g.

Static Private Member Functions

static void createNodeSet (QStringList &, int &, Conductor *, Node *)

Private Attributes

bool dragIsOkay
QFileInfo FileInfo
 hold system-independent information about a schematic file
DigMap Signals
QStringList PortTypes

Detailed Description

Definition at line 78 of file schematic.h.


Constructor & Destructor Documentation

Schematic::Schematic ( QucsApp App_,
const QString &  Name_ 
)

Definition at line 64 of file schematic.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 130 of file schematic.cpp.


Member Function Documentation

void Schematic::activateCompsWithinRect ( int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 2549 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 2623 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Schematic::activateSpecifiedComponent ( int  x,
int  y 
)

Definition at line 2592 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1381 of file schematic.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Schematic::aligning ( int  Mode)

Schematic::aligning align selected elements.

Parameters:
Mode,:top, bottom, left, right, center vertical, center horizontal
Returns:
True if aligned

Definition at line 1988 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::becomeCurrent ( bool  update) [virtual]

Reimplemented from QucsDoc.

Definition at line 174 of file schematic.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::beginNetlistDigital ( QTextStream &  stream) [private]

Definition at line 1871 of file schematic_file.cpp.

Here is the caller graph for this function:

void Schematic::collectDigitalSignals ( void  ) [private]

Definition at line 1138 of file schematic_file.cpp.

Here is the caller graph for this function:

Definition at line 217 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 453 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 280 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 507 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::contentsDragEnterEvent ( QDragEnterEvent *  Event) [protected]

Definition at line 2100 of file schematic.cpp.

Here is the call graph for this function:

void Schematic::contentsDragLeaveEvent ( QDragLeaveEvent *  ) [protected]

Definition at line 2150 of file schematic.cpp.

Here is the call graph for this function:

void Schematic::contentsDragMoveEvent ( QDragMoveEvent *  Event) [protected]

Definition at line 2167 of file schematic.cpp.

Here is the call graph for this function:

void Schematic::contentsDropEvent ( QDropEvent *  Event) [protected]

Definition at line 2062 of file schematic.cpp.

Here is the call graph for this function:

void Schematic::contentsMouseDoubleClickEvent ( QMouseEvent *  Event) [protected]

Definition at line 562 of file schematic.cpp.

void Schematic::contentsMouseMoveEvent ( QMouseEvent *  Event) [protected]

Definition at line 522 of file schematic.cpp.

Here is the call graph for this function:

void Schematic::contentsMousePressEvent ( QMouseEvent *  Event) [protected]

Definition at line 530 of file schematic.cpp.

Here is the call graph for this function:

void Schematic::contentsMouseReleaseEvent ( QMouseEvent *  Event) [protected]

Definition at line 555 of file schematic.cpp.

void Schematic::contentsWheelEvent ( QWheelEvent *  Event) [protected]

Definition at line 1878 of file schematic.cpp.

Here is the call graph for this function:

void Schematic::copy ( )

Definition at line 1270 of file schematic.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int Schematic::copyComponents ( int &  x1,
int &  y1,
int &  x2,
int &  y2,
QList< Element * > *  ElementCache 
) [private]

Definition at line 2769 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::copyComponents2 ( int &  x1,
int &  y1,
int &  x2,
int &  y2,
QList< Element * > *  ElementCache 
) [private]

Definition at line 2813 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Schematic::copyComps2WiresPaints ( int &  x1,
int &  y1,
int &  x2,
int &  y2,
QList< Element * > *  ElementCache 
) [private]

Definition at line 1805 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int Schematic::copyElements ( int &  x1,
int &  y1,
int &  x2,
int &  y2,
QList< Element * > *  ElementCache 
) [private]

Definition at line 1823 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::copyLabels ( int &  x1,
int &  y1,
int &  x2,
int &  y2,
QList< Element * > *  ElementCache 
)

Definition at line 3034 of file schematic_element.cpp.

Here is the caller graph for this function:

void Schematic::copyPaintings ( int &  x1,
int &  y1,
int &  x2,
int &  y2,
QList< Element * > *  ElementCache 
)

Definition at line 3087 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int Schematic::copySelectedElements ( Q3PtrList< Element > *  p)

Definition at line 1645 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int Schematic::copyWires ( int &  x1,
int &  y1,
int &  x2,
int &  y2,
QList< Element * > *  ElementCache 
) [private]

Definition at line 862 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QString Schematic::createClipboardFile ( ) [private]

Definition at line 54 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Schematic::createLibNetlist ( QTextStream *  stream,
QPlainTextEdit *  ErrText,
int  NumPorts 
)

Definition at line 1445 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QString Schematic::createNetlist ( QTextStream &  stream,
int  NumPorts 
)

Definition at line 1914 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::createNodeSet ( QStringList &  Collect,
int &  countInit,
Conductor pw,
Node p1 
) [static, private]

Definition at line 1032 of file schematic_file.cpp.

Here is the caller graph for this function:

Definition at line 135 of file schematic.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Schematic::createSubNetlist ( QTextStream *  stream,
int &  countInit,
QStringList &  Collect,
QPlainTextEdit *  ErrText,
int  NumPorts 
)

Definition at line 1753 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::createSubNetlistPlain ( QTextStream *  stream,
QPlainTextEdit *  ErrText,
int  NumPorts 
)

Definition at line 1485 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QString Schematic::createSymbolUndoString ( char  Op) [private]

Definition at line 964 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QString Schematic::createUndoString ( char  Op) [private]

Definition at line 930 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::cut ( )

Definition at line 1281 of file schematic.cpp.

Here is the call graph for this function:

Definition at line 2745 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1871 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::deleteWire ( Wire w)

Definition at line 827 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1340 of file schematic_element.cpp.

Here is the caller graph for this function:

Schematic::distributeHorizontal sort selection horizontally.

Returns:
True if sorted

Definition at line 2125 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Schematic::distributeVertical sort selection vertically.

Returns:
True if sorted

Definition at line 2240 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::drawContents ( QPainter *  p,
int  ,
int  ,
int  ,
int   
) [protected]

Definition at line 396 of file schematic.cpp.

Here is the call graph for this function:

Definition at line 1714 of file schematic.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::endNetlistDigital ( QTextStream &  stream) [private]

Definition at line 1904 of file schematic_file.cpp.

Here is the caller graph for this function:

void Schematic::enlargeView ( int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 834 of file schematic.cpp.

Here is the caller graph for this function:

QFileInfo Schematic::getFileInfo ( void  ) [inline]

Get (schematic) file reference.

Definition at line 161 of file schematic.h.

Here is the caller graph for this function:

void Schematic::getSelAreaWidthAndHeight ( int &  wsel,
int &  hsel,
int &  xmin_sel_,
int &  ymin_sel_ 
)

Definition at line 2183 of file schematic.cpp.

Here is the call graph for this function:

Definition at line 2967 of file schematic_element.cpp.

Here is the caller graph for this function:

bool Schematic::giveNodeNames ( QTextStream *  stream,
int &  countInit,
QStringList &  Collect,
QPlainTextEdit *  ErrText,
int  NumPorts 
) [private]

Definition at line 1404 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1295 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 2507 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::insertComponentNodes ( Component c,
bool  noOptimize 
) [private]

Definition at line 2383 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Node * Schematic::insertNode ( int  x,
int  y,
Element e 
)

Definition at line 33 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 3007 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::insertRawComponent ( Component c,
bool  noOptimize = true 
)

Definition at line 2423 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 563 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 95 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 345 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Schematic::load ( ) [virtual]

Reimplemented from QucsDoc.

Definition at line 1297 of file schematic.cpp.

Here is the call graph for this function:

bool Schematic::loadComponents ( QTextStream *  stream,
Q3PtrList< Component > *  List = 0 
) [private]
Todo:
enable user to load partial schematic, skip unknown components

Definition at line 630 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Schematic::loadDiagrams ( QTextStream *  stream,
Q3PtrList< Diagram > *  List 
) [private]

Definition at line 737 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Schematic::loadDocument tries to load a schematic document.

Returns:
true/false in case of success/failure
Todo:
implement unified error/warning handling GUI and CLI

Definition at line 830 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Schematic::loadIntoNothing ( QTextStream *  stream) [private]

Definition at line 106 of file schematic_file.cpp.

Here is the caller graph for this function:

bool Schematic::loadPaintings ( QTextStream *  stream,
Q3PtrList< Painting > *  List 
) [private]

Definition at line 780 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Schematic::loadProperties ( QTextStream *  stream) [private]

Definition at line 522 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Schematic::loadWires ( QTextStream *  stream,
Q3PtrList< Element > *  List = 0 
) [private]

Definition at line 700 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::markerLeftRight ( bool  left,
Q3PtrList< Element > *  Elements 
)

Definition at line 936 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::markerUpDown ( bool  up,
Q3PtrList< Element > *  Elements 
)

Definition at line 951 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1125 of file schematic.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1194 of file schematic.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::newMovingWires ( Q3PtrList< Element > *  p,
Node pn,
int  pos 
)

Definition at line 1523 of file schematic_element.cpp.

Here is the caller graph for this function:

void Schematic::oneLabel ( Node n1)

Definition at line 2858 of file schematic_element.cpp.

Here is the caller graph for this function:

Definition at line 783 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::paintFrame ( ViewPainter p) [protected]

Definition at line 329 of file schematic.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::paintGrid ( ViewPainter p,
int  cX,
int  cY,
int  Width,
int  Height 
)
Todo:
setting the center of rotation on the grid causes the center to move when doing multiple rotations when it is not already on the grid. Should not force the center but force the component alignment after rotation.

Definition at line 872 of file schematic.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::paintSchToViewpainter ( ViewPainter p,
bool  printAll,
bool  toImage,
int  screenDpiX = 96,
int  printerDpiX = 300 
)

Definition at line 635 of file schematic.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Schematic::paste ( QTextStream *  stream,
Q3PtrList< Element > *  pe 
)

Definition at line 1290 of file schematic.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Schematic::pasteFromClipboard ( QTextStream *  stream,
Q3PtrList< Element > *  pe 
) [private]

Definition at line 121 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 2933 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::PostPaintEvent ( PE  pe,
int  x1 = 0,
int  y1 = 0,
int  x2 = 0,
int  y2 = 0,
int  a = 0,
int  b = 0,
bool  PaintOnViewport = false 
)

Definition at line 512 of file schematic.cpp.

Here is the caller graph for this function:

int Schematic::prepareNetlist ( QTextStream &  stream,
QStringList &  Collect,
QPlainTextEdit *  ErrText 
)

Definition at line 1779 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::print ( QPrinter *  ,
QPainter *  Painter,
bool  printAll,
bool  fitToPage 
) [virtual]

Reimplemented from QucsDoc.

Definition at line 569 of file schematic.cpp.

Here is the call graph for this function:

void Schematic::propagateNode ( QStringList &  Collect,
int &  countInit,
Node pn 
) [private]

Definition at line 1154 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Schematic::rebuild ( QString *  s) [private]

Definition at line 985 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Schematic::rebuildSymbol ( QString *  s) [private]

Definition at line 1008 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 2444 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Schematic::redo ( )

Definition at line 1664 of file schematic.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1262 of file schematic.cpp.

Here is the caller graph for this function:

Definition at line 1026 of file schematic.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int Schematic::save ( ) [virtual]

Reimplemented from QucsDoc.

Definition at line 1346 of file schematic.cpp.

Here is the call graph for this function:

int Schematic::saveDocument ( ) [private]

Definition at line 340 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int Schematic::saveSymbolCpp ( void  )

Definition at line 187 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int Schematic::saveSymbolJSON ( void  )

Definition at line 255 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Schematic::scrollDown ( int  step)

Definition at line 1940 of file schematic.cpp.

Here is the caller graph for this function:

bool Schematic::scrollLeft ( int  step)

Definition at line 1966 of file schematic.cpp.

Here is the caller graph for this function:

bool Schematic::scrollRight ( int  step)

Definition at line 1991 of file schematic.cpp.

Here is the caller graph for this function:

bool Schematic::scrollUp ( int  step)

Definition at line 1915 of file schematic.cpp.

Here is the caller graph for this function:

Definition at line 2715 of file schematic_element.cpp.

Here is the caller graph for this function:

Component * Schematic::selectCompText ( int  x_,
int  y_,
int &  w,
int &  h 
)

Definition at line 2692 of file schematic_element.cpp.

Here is the caller graph for this function:

Component * Schematic::selectedComponent ( int  x,
int  y 
)

Definition at line 2733 of file schematic_element.cpp.

Here is the caller graph for this function:

Node * Schematic::selectedNode ( int  x,
int  y 
)

Definition at line 76 of file schematic_element.cpp.

Here is the caller graph for this function:

Painting * Schematic::selectedPainting ( float  fX,
float  fY 
)

Definition at line 3075 of file schematic_element.cpp.

Here is the caller graph for this function:

Wire * Schematic::selectedWire ( int  x,
int  y 
)

Definition at line 744 of file schematic_element.cpp.

Here is the caller graph for this function:

Element * Schematic::selectElement ( float  fX,
float  fY,
bool  flag,
int *  index = 0 
)

Definition at line 980 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int Schematic::selectElements ( int  x1,
int  y1,
int  x2,
int  y2,
bool  flag 
)

Definition at line 1381 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1511 of file schematic_element.cpp.

Here is the caller graph for this function:

void Schematic::selectWireLine ( Element pe,
Node pn,
bool  ctrl 
)

Definition at line 725 of file schematic_element.cpp.

Here is the caller graph for this function:

void Schematic::setChanged ( bool  c,
bool  fillStack = false,
char  Op = '*' 
)

Definition at line 245 of file schematic.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 2351 of file schematic_element.cpp.

Here is the caller graph for this function:

Definition at line 2654 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::setFileInfo ( QString  FileName) [inline]

Set reference to file (schematic)

Definition at line 163 of file schematic.h.

Here is the caller graph for this function:

Marker * Schematic::setMarker ( int  x,
int  y 
)

Definition at line 922 of file schematic_element.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::setName ( const QString &  Name_) [virtual]

Reimplemented from QucsDoc.

Definition at line 229 of file schematic.cpp.

Here is the caller graph for this function:

void Schematic::setOnGrid ( int &  x,
int &  y 
)

Definition at line 860 of file schematic.cpp.

Here is the caller graph for this function:

void Schematic::showAll ( ) [virtual]

Reimplemented from QucsDoc.

Definition at line 778 of file schematic.cpp.

Here is the call graph for this function:

void Schematic::showNoZoom ( ) [virtual]

Reimplemented from QucsDoc.

Definition at line 803 of file schematic.cpp.

void Schematic::signalCursorPosChanged ( int  ,
int   
) [signal]

Here is the caller graph for this function:

void Schematic::signalFileChanged ( bool  ) [signal]

Here is the caller graph for this function:

void Schematic::signalRedoState ( bool  ) [signal]

Here is the caller graph for this function:

void Schematic::signalUndoState ( bool  ) [signal]

Here is the caller graph for this function:

Definition at line 593 of file schematic_file.cpp.

Here is the caller graph for this function:

void Schematic::simpleInsertWire ( Wire pw) [private]

Definition at line 661 of file schematic_file.cpp.

Here is the caller graph for this function:

void Schematic::sizeOfAll ( int &  xmin,
int &  ymin,
int &  xmax,
int &  ymax 
)

Definition at line 935 of file schematic.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Schematic::sizeOfFrame ( int &  xall,
int &  yall 
)

Definition at line 310 of file schematic.cpp.

Here is the caller graph for this function:

void Schematic::slotScrollDown ( ) [protected, slot]

Definition at line 2026 of file schematic.cpp.

Here is the call graph for this function:

void Schematic::slotScrollLeft ( ) [protected, slot]

Definition at line 2036 of file schematic.cpp.

Here is the call graph for this function:

void Schematic::slotScrollRight ( ) [protected, slot]

Definition at line 2046 of file schematic.cpp.

Here is the call graph for this function:

void Schematic::slotScrollUp ( ) [protected, slot]

Definition at line 2016 of file schematic.cpp.

Here is the call graph for this function:

Wire * Schematic::splitWire ( Wire pw,
Node pn 
)

Definition at line 755 of file schematic_element.cpp.

Here is the caller graph for this function:

Definition at line 1850 of file schematic.cpp.

Here is the caller graph for this function:

int Schematic::testFile ( const QString &  DocName) [static]

Definition at line 1073 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 925 of file schematic.cpp.

Here is the caller graph for this function:

bool Schematic::throughAllComps ( QTextStream *  stream,
int &  countInit,
QStringList &  Collect,
QPlainTextEdit *  ErrText,
int  NumPorts 
) [private]

Schematic::throughAllComps Goes through all schematic components and allows special component handling, e.g.

like subcircuit netlisting.

Parameters:
streamis a pointer to the text stream used to collect the netlist
countInitis the reference to a counter for nodesets (initial conditions)
Collectis the reference to a list of collected nodesets
ErrTextis pointer to the QPlainTextEdit used for error messages
NumPortscounter for the number of ports
Returns:
true in case of success (false otherwise)
Todo:
implement error/warning message dispatcher for GUI and CLI modes.

Definition at line 1206 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Schematic::throughAllNodes ( bool  User,
QStringList &  Collect,
int &  countInit 
) [private]

Definition at line 1042 of file schematic_file.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Schematic::undo ( )

Definition at line 1617 of file schematic.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

float Schematic::zoom ( float  s)

Definition at line 747 of file schematic.cpp.

Here is the caller graph for this function:

float Schematic::zoomBy ( float  s) [virtual]

Reimplemented from QucsDoc.

Definition at line 768 of file schematic.cpp.

Here is the call graph for this function:


Field Documentation

Definition at line 134 of file schematic.h.

Definition at line 320 of file schematic.h.

Definition at line 132 of file schematic.h.

Definition at line 134 of file schematic.h.

Definition at line 132 of file schematic.h.

Definition at line 131 of file schematic.h.

Definition at line 133 of file schematic.h.

Definition at line 130 of file schematic.h.

bool Schematic::dragIsOkay [private]

Definition at line 193 of file schematic.h.

QFileInfo Schematic::FileInfo [private]

hold system-independent information about a schematic file

Definition at line 195 of file schematic.h.

Definition at line 147 of file schematic.h.

Definition at line 147 of file schematic.h.

Definition at line 147 of file schematic.h.

Definition at line 147 of file schematic.h.

Definition at line 142 of file schematic.h.

Definition at line 142 of file schematic.h.

Definition at line 318 of file schematic.h.

Definition at line 319 of file schematic.h.

Q3PtrList<Node>* Schematic::Nodes

Definition at line 131 of file schematic.h.

Definition at line 133 of file schematic.h.

QStringList Schematic::PortTypes [private]

Definition at line 315 of file schematic.h.

Definition at line 138 of file schematic.h.

Definition at line 146 of file schematic.h.

Definition at line 314 of file schematic.h.

Definition at line 139 of file schematic.h.

Definition at line 136 of file schematic.h.

Definition at line 151 of file schematic.h.

Definition at line 153 of file schematic.h.

Definition at line 153 of file schematic.h.

Definition at line 153 of file schematic.h.

Definition at line 153 of file schematic.h.

Definition at line 152 of file schematic.h.

Definition at line 152 of file schematic.h.

Definition at line 152 of file schematic.h.

Definition at line 152 of file schematic.h.

QVector<QString *> Schematic::undoAction

Definition at line 156 of file schematic.h.

Definition at line 155 of file schematic.h.

QVector<QString *> Schematic::undoSymbol

Definition at line 158 of file schematic.h.

Definition at line 157 of file schematic.h.

Definition at line 144 of file schematic.h.

Definition at line 144 of file schematic.h.

Definition at line 144 of file schematic.h.

Definition at line 144 of file schematic.h.

Definition at line 143 of file schematic.h.

Definition at line 143 of file schematic.h.

Definition at line 143 of file schematic.h.

Definition at line 143 of file schematic.h.

Q3PtrList<Wire>* Schematic::Wires

Definition at line 130 of file schematic.h.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines