Qucs-GUI
0.0.19
|
00001 /*************************************************************************** 00002 iprobe.cpp - description 00003 ------------------- 00004 begin : Sat Aug 23 2003 00005 copyright : (C) 2003 by Michael Margraf 00006 email : michael.margraf@alumni.tu-berlin.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #include "iprobe.h" 00019 00020 00021 iProbe::iProbe() 00022 { 00023 Description = QObject::tr("current probe"); 00024 00025 Lines.append(new Line(-30, 0,-20, 0,QPen(Qt::darkBlue,2))); 00026 Lines.append(new Line( 30, 0, 20, 0,QPen(Qt::darkBlue,2))); 00027 Lines.append(new Line(-20, 0, 20, 0,QPen(Qt::darkBlue,3))); 00028 Lines.append(new Line( 4, 0, -4, -4,QPen(Qt::darkBlue,3))); 00029 Lines.append(new Line( 4, 0, -4, 4,QPen(Qt::darkBlue,3))); 00030 00031 Lines.append(new Line(-20,-31, 20,-31,QPen(Qt::darkBlue,2))); 00032 Lines.append(new Line(-20, 9, 20, 9,QPen(Qt::darkBlue,2))); 00033 Lines.append(new Line(-20,-31,-20, 9,QPen(Qt::darkBlue,2))); 00034 Lines.append(new Line( 20,-31, 20, 9,QPen(Qt::darkBlue,2))); 00035 00036 Lines.append(new Line(-16,-27, 16,-27,QPen(Qt::darkBlue,2))); 00037 Lines.append(new Line(-16, -9, 16, -9,QPen(Qt::darkBlue,2))); 00038 Lines.append(new Line(-16,-27,-16, -9,QPen(Qt::darkBlue,2))); 00039 Lines.append(new Line( 16,-27, 16, -9,QPen(Qt::darkBlue,2))); 00040 00041 Arcs.append(new Arc(-20,-23, 39, 39, 16*50, 16*80,QPen(Qt::darkBlue,2))); 00042 Lines.append(new Line(-11,-24, -2, -9,QPen(Qt::darkBlue,2))); 00043 00044 Ports.append(new Port(-30, 0)); 00045 Ports.append(new Port( 30, 0)); 00046 00047 x1 = -30; y1 = -34; 00048 x2 = 30; y2 = 12; 00049 00050 tx = x1+4; 00051 ty = y2+4; 00052 Model = "IProbe"; 00053 Name = "Pr"; 00054 } 00055 00056 iProbe::~iProbe() 00057 { 00058 } 00059 00060 Component* iProbe::newOne() 00061 { 00062 return new iProbe(); 00063 } 00064 00065 Element* iProbe::info(QString& Name, char* &BitmapFile, bool getNewOne) 00066 { 00067 Name = QObject::tr("Current Probe"); 00068 BitmapFile = (char *) "iprobe"; 00069 00070 if(getNewOne) return new iProbe(); 00071 return 0; 00072 }