My Project
0.0.16
QUCS Mapping
|
#include <schematic.h>
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) |
float | textCorr () |
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 () |
QString | copySelected (bool) |
bool | paste (QTextStream *, QPtrList< Element > *) |
bool | load () |
int | save () |
int | saveSymbolCpp (void) |
void | becomeCurrent (bool) |
bool | undo () |
bool | redo () |
bool | scrollUp (int) |
bool | scrollDown (int) |
bool | scrollLeft (int) |
bool | scrollRight (int) |
Node * | insertNode (int, int, Element *) |
Node * | selectedNode (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) |
Wire * | selectedWire (int, int) |
Wire * | splitWire (Wire *, Node *) |
bool | oneTwoWires (Node *) |
void | deleteWire (Wire *) |
Marker * | setMarker (int, int) |
void | markerLeftRight (bool, QPtrList< Element > *) |
void | markerUpDown (bool, QPtrList< Element > *) |
Element * | selectElement (float, float, bool, int *index=0) |
void | deselectElements (Element *) |
int | selectElements (int, int, int, int, bool) |
void | selectMarkers () |
void | newMovingWires (QPtrList< Element > *, Node *, int) |
int | copySelectedElements (QPtrList< Element > *) |
bool | deleteElements () |
bool | aligning (int) |
bool | distributeHorizontal () |
bool | distributeVertical () |
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 *) |
Component * | selectCompText (int, int, int &, int &) |
Component * | searchSelSubcircuit () |
Component * | selectedComponent (int, int) |
void | deleteComp (Component *) |
void | oneLabel (Node *) |
int | placeNodeLabel (WireLabel *) |
Element * | getWireLabel (Node *) |
void | insertNodeLabel (WireLabel *) |
void | copyLabels (int &, int &, int &, int &, QPtrList< Element > *) |
Painting * | selectedPainting (float, float) |
void | copyPaintings (int &, int &, int &, int &, QPtrList< Element > *) |
bool | createLibNetlist (QTextStream *, QTextEdit *, int) |
bool | createSubNetlist (QTextStream *, int &, QStringList &, QTextEdit *, int) |
void | createSubNetlistPlain (QTextStream *, QTextEdit *, int) |
int | prepareNetlist (QTextStream &, QStringList &, QTextEdit *) |
QString | createNetlist (QTextStream &, int) |
bool | loadDocument () |
Public Member Functions inherited from QucsDoc | |
QucsDoc (QucsApp *, const QString &) | |
virtual | ~QucsDoc () |
QString | fileSuffix (void) |
QString | fileBase (void) |
Protected Slots | |
void | slotScrollUp () |
void | slotScrollDown () |
void | slotScrollLeft () |
void | slotScrollRight () |
Protected Member Functions | |
bool | sizeOfFrame (int &, int &) |
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 *) |
Additional Inherited Members | |
Static Public Member Functions inherited from QucsDoc | |
static QString | fileSuffix (const QString &) |
static QString | fileBase (const QString &) |
Definition at line 58 of file schematic.h.
Schematic::Schematic | ( | QucsApp * | App_, |
const QString & | Name_ | ||
) |
Schematic::~Schematic | ( | ) |
Definition at line 137 of file schematic.cpp.
void Schematic::activateCompsWithinRect | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
Definition at line 2092 of file schematic_element.cpp.
bool Schematic::activateSelectedComponents | ( | ) |
Definition at line 2154 of file schematic_element.cpp.
bool Schematic::activateSpecifiedComponent | ( | int | x, |
int | y | ||
) |
Definition at line 2127 of file schematic_element.cpp.
int Schematic::adjustPortNumbers | ( | ) |
Definition at line 1241 of file schematic.cpp.
bool Schematic::aligning | ( | int | Mode | ) |
Definition at line 1597 of file schematic_element.cpp.
|
virtual |
Reimplemented from QucsDoc.
Definition at line 185 of file schematic.cpp.
bool Schematic::connectHWires1 | ( | Wire * | w | ) |
Definition at line 200 of file schematic_element.cpp.
bool Schematic::connectHWires2 | ( | Wire * | w | ) |
Definition at line 410 of file schematic_element.cpp.
bool Schematic::connectVWires1 | ( | Wire * | w | ) |
Definition at line 256 of file schematic_element.cpp.
bool Schematic::connectVWires2 | ( | Wire * | w | ) |
Definition at line 459 of file schematic_element.cpp.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 501 of file schematic.cpp.
|
protected |
Definition at line 462 of file schematic.cpp.
|
protected |
|
protected |
Definition at line 494 of file schematic.cpp.
|
protected |
void Schematic::copyLabels | ( | int & | x1, |
int & | y1, | ||
int & | x2, | ||
int & | y2, | ||
QPtrList< Element > * | ElementCache | ||
) |
void Schematic::copyPaintings | ( | int & | x1, |
int & | y1, | ||
int & | x2, | ||
int & | y2, | ||
QPtrList< Element > * | ElementCache | ||
) |
Definition at line 2582 of file schematic_element.cpp.
QString Schematic::copySelected | ( | bool | cut | ) |
Definition at line 1160 of file schematic.cpp.
int Schematic::copySelectedElements | ( | QPtrList< Element > * | p | ) |
Definition at line 1299 of file schematic_element.cpp.
bool Schematic::createLibNetlist | ( | QTextStream * | stream, |
QTextEdit * | ErrText, | ||
int | NumPorts | ||
) |
QString Schematic::createNetlist | ( | QTextStream & | stream, |
int | NumPorts | ||
) |
bool Schematic::createSubcircuitSymbol | ( | ) |
Definition at line 146 of file schematic.cpp.
bool Schematic::createSubNetlist | ( | QTextStream * | stream, |
int & | countInit, | ||
QStringList & | Collect, | ||
QTextEdit * | ErrText, | ||
int | NumPorts | ||
) |
void Schematic::createSubNetlistPlain | ( | QTextStream * | stream, |
QTextEdit * | ErrText, | ||
int | NumPorts | ||
) |
Definition at line 1174 of file schematic_file.cpp.
void Schematic::deleteComp | ( | Component * | c | ) |
Definition at line 2268 of file schematic_element.cpp.
bool Schematic::deleteElements | ( | ) |
Definition at line 1505 of file schematic_element.cpp.
void Schematic::deleteWire | ( | Wire * | w | ) |
Definition at line 727 of file schematic_element.cpp.
void Schematic::deselectElements | ( | Element * | e | ) |
bool Schematic::distributeHorizontal | ( | ) |
Definition at line 1719 of file schematic_element.cpp.
bool Schematic::distributeVertical | ( | ) |
Definition at line 1819 of file schematic_element.cpp.
|
protected |
bool Schematic::elementsOnGrid | ( | ) |
Definition at line 1565 of file schematic.cpp.
void Schematic::enlargeView | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
void Schematic::insertComponent | ( | Component * | c | ) |
Definition at line 2055 of file schematic_element.cpp.
Definition at line 38 of file schematic_element.cpp.
void Schematic::insertNodeLabel | ( | WireLabel * | pl | ) |
Definition at line 2507 of file schematic_element.cpp.
void Schematic::insertRawComponent | ( | Component * | c, |
bool | noOptimize = true |
||
) |
Definition at line 1980 of file schematic_element.cpp.
int Schematic::insertWire | ( | Wire * | w | ) |
Definition at line 510 of file schematic_element.cpp.
int Schematic::insertWireNode1 | ( | Wire * | w | ) |
Definition at line 95 of file schematic_element.cpp.
int Schematic::insertWireNode2 | ( | Wire * | w | ) |
Definition at line 314 of file schematic_element.cpp.
|
virtual |
Reimplemented from QucsDoc.
Definition at line 1176 of file schematic.cpp.
bool Schematic::loadDocument | ( | ) |
Definition at line 639 of file schematic_file.cpp.
void Schematic::markerLeftRight | ( | bool | left, |
QPtrList< Element > * | Elements | ||
) |
void Schematic::markerUpDown | ( | bool | up, |
QPtrList< Element > * | Elements | ||
) |
bool Schematic::mirrorXComponents | ( | ) |
Definition at line 1014 of file schematic.cpp.
bool Schematic::mirrorYComponents | ( | ) |
Definition at line 1083 of file schematic.cpp.
Definition at line 1188 of file schematic_element.cpp.
void Schematic::oneLabel | ( | Node * | n1 | ) |
bool Schematic::oneTwoWires | ( | Node * | n | ) |
Definition at line 689 of file schematic_element.cpp.
|
protected |
Definition at line 339 of file schematic.cpp.
void Schematic::paintGrid | ( | ViewPainter * | p, |
int | cX, | ||
int | cY, | ||
int | Width, | ||
int | Height | ||
) |
bool Schematic::paste | ( | QTextStream * | stream, |
QPtrList< Element > * | pe | ||
) |
int Schematic::placeNodeLabel | ( | WireLabel * | pl | ) |
Definition at line 2437 of file schematic_element.cpp.
int Schematic::prepareNetlist | ( | QTextStream & | stream, |
QStringList & | Collect, | ||
QTextEdit * | ErrText | ||
) |
Definition at line 1467 of file schematic_file.cpp.
|
virtual |
Reimplemented from QucsDoc.
Definition at line 508 of file schematic.cpp.
void Schematic::recreateComponent | ( | Component * | Comp | ) |
Definition at line 1999 of file schematic_element.cpp.
bool Schematic::redo | ( | ) |
Definition at line 1511 of file schematic.cpp.
void Schematic::reloadGraphs | ( | ) |
bool Schematic::rotateElements | ( | ) |
Definition at line 917 of file schematic.cpp.
|
virtual |
Reimplemented from QucsDoc.
Definition at line 1212 of file schematic.cpp.
int Schematic::saveSymbolCpp | ( | void | ) |
bool Schematic::scrollDown | ( | int | step | ) |
Definition at line 1792 of file schematic.cpp.
bool Schematic::scrollLeft | ( | int | step | ) |
Definition at line 1818 of file schematic.cpp.
bool Schematic::scrollRight | ( | int | step | ) |
Definition at line 1843 of file schematic.cpp.
bool Schematic::scrollUp | ( | int | step | ) |
Definition at line 1767 of file schematic.cpp.
Component * Schematic::searchSelSubcircuit | ( | ) |
Component * Schematic::selectCompText | ( | int | x_, |
int | y_, | ||
int & | w, | ||
int & | h | ||
) |
Component * Schematic::selectedComponent | ( | int | x, |
int | y | ||
) |
Node * Schematic::selectedNode | ( | int | x, |
int | y | ||
) |
Painting * Schematic::selectedPainting | ( | float | fX, |
float | fY | ||
) |
Wire * Schematic::selectedWire | ( | int | x, |
int | y | ||
) |
Element * Schematic::selectElement | ( | float | fX, |
float | fY, | ||
bool | flag, | ||
int * | index = 0 |
||
) |
Definition at line 876 of file schematic_element.cpp.
int Schematic::selectElements | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2, | ||
bool | flag | ||
) |
void Schematic::selectMarkers | ( | ) |
void Schematic::setChanged | ( | bool | c, |
bool | fillStack = false , |
||
char | Op = '*' |
||
) |
void Schematic::setComponentNumber | ( | Component * | c | ) |
void Schematic::setCompPorts | ( | Component * | pc | ) |
Definition at line 2182 of file schematic_element.cpp.
Marker * Schematic::setMarker | ( | int | x, |
int | y | ||
) |
Definition at line 814 of file schematic_element.cpp.
|
virtual |
Reimplemented from QucsDoc.
Definition at line 248 of file schematic.cpp.
void Schematic::setOnGrid | ( | int & | x, |
int & | y | ||
) |
|
virtual |
Reimplemented from QucsDoc.
Definition at line 671 of file schematic.cpp.
|
virtual |
Reimplemented from QucsDoc.
Definition at line 696 of file schematic.cpp.
void Schematic::sizeOfAll | ( | int & | xmin, |
int & | ymin, | ||
int & | xmax, | ||
int & | ymax | ||
) |
Definition at line 826 of file schematic.cpp.
|
protected |
|
protectedslot |
Definition at line 1878 of file schematic.cpp.
|
protectedslot |
Definition at line 1888 of file schematic.cpp.
|
protectedslot |
Definition at line 1898 of file schematic.cpp.
|
protectedslot |
Definition at line 1868 of file schematic.cpp.
void Schematic::switchPaintMode | ( | ) |
float Schematic::textCorr | ( | ) |
bool Schematic::undo | ( | ) |
Definition at line 1458 of file schematic.cpp.
float Schematic::zoom | ( | float | s | ) |
|
virtual |
Reimplemented from QucsDoc.
Definition at line 661 of file schematic.cpp.
QPtrList<Component>* Schematic::Components |
Definition at line 107 of file schematic.h.
bool Schematic::creatingLib |
Definition at line 273 of file schematic.h.
QPtrList<Diagram>* Schematic::Diagrams |
Definition at line 105 of file schematic.h.
QPtrList<Component> Schematic::DocComps |
Definition at line 107 of file schematic.h.
QPtrList<Diagram> Schematic::DocDiags |
Definition at line 105 of file schematic.h.
QPtrList<Node> Schematic::DocNodes |
Definition at line 104 of file schematic.h.
QPtrList<Painting> Schematic::DocPaints |
Definition at line 106 of file schematic.h.
QPtrList<Wire> Schematic::DocWires |
Definition at line 103 of file schematic.h.
QString Schematic::Frame_Text0 |
Definition at line 118 of file schematic.h.
QString Schematic::Frame_Text1 |
Definition at line 118 of file schematic.h.
QString Schematic::Frame_Text2 |
Definition at line 118 of file schematic.h.
QString Schematic::Frame_Text3 |
Definition at line 118 of file schematic.h.
int Schematic::GridX |
Definition at line 113 of file schematic.h.
int Schematic::GridY |
Definition at line 113 of file schematic.h.
bool Schematic::isAnalog |
Definition at line 271 of file schematic.h.
bool Schematic::isVerilog |
Definition at line 272 of file schematic.h.
QPtrList<Node>* Schematic::Nodes |
Definition at line 104 of file schematic.h.
QPtrList<Painting>* Schematic::Paintings |
Definition at line 106 of file schematic.h.
int Schematic::showFrame |
Definition at line 117 of file schematic.h.
bool Schematic::symbolMode |
Definition at line 110 of file schematic.h.
QPtrList<Painting> Schematic::SymbolPaints |
Definition at line 109 of file schematic.h.
float Schematic::tmpScale |
Definition at line 122 of file schematic.h.
int Schematic::tmpUsedX1 |
Definition at line 124 of file schematic.h.
int Schematic::tmpUsedX2 |
Definition at line 124 of file schematic.h.
int Schematic::tmpUsedY1 |
Definition at line 124 of file schematic.h.
int Schematic::tmpUsedY2 |
Definition at line 124 of file schematic.h.
int Schematic::tmpViewX1 |
Definition at line 123 of file schematic.h.
int Schematic::tmpViewX2 |
Definition at line 123 of file schematic.h.
int Schematic::tmpViewY1 |
Definition at line 123 of file schematic.h.
int Schematic::tmpViewY2 |
Definition at line 123 of file schematic.h.
QPtrList<QString> Schematic::UndoStack |
Definition at line 126 of file schematic.h.
QPtrList<QString> Schematic::UndoSymbol |
Definition at line 127 of file schematic.h.
int Schematic::UsedX1 |
Definition at line 115 of file schematic.h.
int Schematic::UsedX2 |
Definition at line 115 of file schematic.h.
int Schematic::UsedY1 |
Definition at line 115 of file schematic.h.
int Schematic::UsedY2 |
Definition at line 115 of file schematic.h.
int Schematic::ViewX1 |
Definition at line 114 of file schematic.h.
int Schematic::ViewX2 |
Definition at line 114 of file schematic.h.
int Schematic::ViewY1 |
Definition at line 114 of file schematic.h.
int Schematic::ViewY2 |
Definition at line 114 of file schematic.h.
QPtrList<Wire>* Schematic::Wires |
Definition at line 103 of file schematic.h.