27 #include <QTextStream>
28 #include <QDragMoveEvent>
30 #include <QDragLeaveEvent>
31 #include <QWheelEvent>
32 #include <QMouseEvent>
33 #include <QDragEnterEvent>
37 #include <Q3ScrollView>
41 #include <QStringList>
49 DigSignal(
const QString& _Name,
const QString& _Type =
"")
54 typedef QMap<QString, DigSignal>
DigMap;
61 SubFile(
const QString& _Type,
const QString& _File)
67 typedef QMap<QString, SubFile>
SubMap;
76 void setChanged(
bool,
bool fillStack=
false,
char Op=
'*');
78 void print(QPrinter*, QPainter*,
bool,
bool);
82 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);
103 bool paste(QTextStream*, Q3PtrList<Element>*);
231 void copyLabels(
int&,
int&,
int&,
int&, Q3PtrList<Element>*);
234 void copyPaintings(
int&,
int&,
int&,
int&, Q3PtrList<Element>*);
241 int copyWires(
int&,
int&,
int&,
int&, Q3PtrList<Element>*);
245 int copyElements(
int&,
int&,
int&,
int&, Q3PtrList<Element>*);
270 bool loadWires(QTextStream*, Q3PtrList<Element> *List=0);
287 bool giveNodeNames(QTextStream *,
int&, QStringList&, QTextEdit*,
int);
290 bool throughAllComps(QTextStream *,
int&, QStringList&, QTextEdit *,
int);
static void createNodeSet(QStringList &, int &, Conductor *, Node *)
void contentsMouseMoveEvent(QMouseEvent *)
void deleteComp(Component *)
int insertWireNode2(Wire *)
bool distributeVertical()
bool createSubNetlist(QTextStream *, int &, QStringList &, QTextEdit *, int)
bool connectHWires2(Wire *)
QMap< QString, DigSignal > DigMap
Q3PtrList< Painting > DocPaints
void createSubNetlistPlain(QTextStream *, QTextEdit *, int)
bool connectHWires1(Wire *)
Marker * setMarker(int, int)
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)
int copyElements(int &, int &, int &, int &, Q3PtrList< Element > *)
void simpleInsertWire(Wire *)
label for Node and Wire classes
SubFile(const QString &_Type, const QString &_File)
bool loadComponents(QTextStream *, Q3PtrList< Component > *List=0)
Node * selectedNode(int, int)
int insertWireNode1(Wire *)
bool giveNodeNames(QTextStream *, int &, QStringList &, QTextEdit *, int)
QString createSymbolUndoString(char)
int selectElements(int, int, int, int, bool)
bool paste(QTextStream *, Q3PtrList< Element > *)
QString createClipboardFile()
void contentsMouseReleaseEvent(QMouseEvent *)
void setOnGrid(int &, int &)
void copyPaintings(int &, int &, int &, int &, Q3PtrList< Element > *)
QMap< QString, SubFile > SubMap
bool activateSelectedComponents()
void contentsWheelEvent(QWheelEvent *)
int copyWires(int &, int &, int &, int &, Q3PtrList< Element > *)
bool createSubcircuitSymbol()
QFileInfo getFileInfo(void)
Node * insertNode(int, int, Element *)
void collectDigitalSignals(void)
void insertRawComponent(Component *, bool noOptimize=true)
Painting * selectedPainting(float, float)
void enlargeView(int, int, int, int)
Q3PtrList< Diagram > * Diagrams
bool copyComps2WiresPaints(int &, int &, int &, int &, Q3PtrList< Element > *)
bool loadWires(QTextStream *, Q3PtrList< Element > *List=0)
Wire * splitWire(Wire *, Node *)
void contentsMousePressEvent(QMouseEvent *)
bool connectVWires1(Wire *)
int copySelectedElements(Q3PtrList< Element > *)
void print(QPrinter *, QPainter *, bool, bool)
QString createNetlist(QTextStream &, int)
Q3PtrList< Component > * Components
Element * selectElement(float, float, bool, int *index=0)
void throughAllNodes(bool, QStringList &, int &)
void simpleInsertComponent(Component *)
void endNetlistDigital(QTextStream &)
Q3PtrList< Diagram > DocDiags
void drawContents(QPainter *, int, int, int, int)
bool loadPaintings(QTextStream *, Q3PtrList< Painting > *)
Component * selectCompText(int, int, int &, int &)
Component * selectedComponent(int, int)
QString createUndoString(char)
int placeNodeLabel(WireLabel *)
Q3PtrList< Node > * Nodes
bool distributeHorizontal()
bool pasteFromClipboard(QTextStream *, Q3PtrList< Element > *)
void copyComponents2(int &, int &, int &, int &, Q3PtrList< Element > *)
void paintGrid(ViewPainter *, int, int, int, int)
QList< PostedPaintEvent > PostedPaintEvents
void newMovingWires(Q3PtrList< Element > *, Node *, int)
void setCompPorts(Component *)
bool sizeOfFrame(int &, int &)
QString copySelected(bool)
DigSignal(const QString &_Name, const QString &_Type="")
Superclass of all schematic drawing elements.
void insertComponentNodes(Component *, bool)
bool rebuildSymbol(QString *)
bool connectVWires2(Wire *)
void getSelAreaWidthAndHeight(int &wsel, int &hsel, int &xmin_sel_, int &ymin_sel_)
void paintSchToViewpainter(ViewPainter *p, bool printAll, bool toImage, int screenDpiX=96, int printerDpiX=300)
bool activateSpecifiedComponent(int, int)
void paintFrame(ViewPainter *)
int copyComponents(int &, int &, int &, int &, Q3PtrList< Element > *)
void markerLeftRight(bool, Q3PtrList< Element > *)
bool createLibNetlist(QTextStream *, QTextEdit *, int)
Element * getWireLabel(Node *)
Schematic(QucsApp *, const QString &)
Component * searchSelSubcircuit()
bool throughAllComps(QTextStream *, int &, QStringList &, QTextEdit *, int)
void markerUpDown(bool, Q3PtrList< Element > *)
void contentsDragMoveEvent(QDragMoveEvent *)
int prepareNetlist(QTextStream &, QStringList &, QTextEdit *)
Q3PtrList< Painting > SymbolPaints
void copyLabels(int &, int &, int &, int &, Q3PtrList< Element > *)
Wire * selectedWire(int, int)
Q3PtrList< QString > UndoSymbol
void contentsDragEnterEvent(QDragEnterEvent *)
void propagateNode(QStringList &, int &, Node *)
void selectWireLine(Element *, Node *, bool)
void contentsMouseDoubleClickEvent(QMouseEvent *)
void setComponentNumber(Component *)
Q3PtrList< Wire > DocWires
void activateCompsWithinRect(int, int, int, int)
void recreateComponent(Component *)
void sizeOfAll(int &, int &, int &, int &)
void deselectElements(Element *)
Q3PtrList< QString > UndoStack
bool loadProperties(QTextStream *)
void contentsDropEvent(QDropEvent *)
void beginNetlistDigital(QTextStream &)
void setName(const QString &)
Q3PtrList< Node > DocNodes
Q3PtrList< Painting > * Paintings
bool loadIntoNothing(QTextStream *)
Q3PtrList< Wire > * Wires
bool loadDiagrams(QTextStream *, Q3PtrList< Diagram > *)
void getSchWidthAndHeight(int &w, int &h, int &xmin_, int &ymin_)
void insertComponent(Component *)
void highlightWireLabels(void)
void setChanged(bool, bool fillStack=false, char Op='*')
void insertNodeLabel(WireLabel *)
Q3PtrList< Component > DocComps
void contentsDragLeaveEvent(QDragLeaveEvent *)