void PcbXML::drawNode(QDomNode node){ DebugDialog::debug("drawing node:"); QString tag = node.nodeName().toLower(); if(tag=="pin"){ DebugDialog::debug("\tPin"); drawPin(node); } else if(tag=="pad"){ DebugDialog::debug("\tPad"); drawPad(node); } else if(tag=="elementline"){ DebugDialog::debug("\tElementLine"); drawElementLine(node); } else if(tag=="elementarc"){ DebugDialog::debug("\tElementArc"); drawElementArc(node); } else if(tag=="mark"){ DebugDialog::debug("\tMark"); drawMark(node); } else { DebugDialog::debug("cannot draw - unrecognized tag"); } }
t_libraryEditor::t_libraryEditor(void) { setMouseTracking(true); mode = MOVE; scale = 1; incompleteStage = false; pinPlacement = false; haveComp = false; g_color = QColor(200, 100, 100); p_color = QColor(100, 200, 100); offsetx = 500; offsety = 500; hintWidth = 4000; hintHeight = 4000; connect(this, SIGNAL(drawWireSignal(QPoint)), this, SLOT(drawWire(QPoint))); connect(this, SIGNAL(drawPinSignal(QPoint)), this, SLOT(drawPin(QPoint))); connect(this, SIGNAL(moveItemSignal(QPoint)), this, SLOT(moveItem(QPoint))); }