Qucs-GUI  0.0.19
/home/travis/build/Qucs/qucs/qucs/qucs/components/msopen.cpp
Go to the documentation of this file.
00001 /***************************************************************************
00002                           msopen.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 "msopen.h"
00019 
00020 
00021 MSopen::MSopen()
00022 {
00023   Description = QObject::tr("microstrip open");
00024 
00025   Lines.append(new Line(-30,  0,-18,  0,QPen(Qt::darkBlue,2)));
00026   Lines.append(new Line(-13, -8, 13, -8,QPen(Qt::darkBlue,2)));
00027   Lines.append(new Line(-23,  8,  3,  8,QPen(Qt::darkBlue,2)));
00028   Lines.append(new Line(-13, -8,-23,  8,QPen(Qt::darkBlue,2)));
00029   Lines.append(new Line( 13, -8,  3,  8,QPen(Qt::darkBlue,2)));
00030 
00031   Ports.append(new Port(-30, 0));
00032 
00033   x1 = -30; y1 =-11;
00034   x2 =  16; y2 = 11;
00035 
00036   tx = x1+4;
00037   ty = y2+4;
00038   Model = "MOPEN";
00039   Name  = "MS";
00040 
00041   Props.append(new Property("Subst", "Subst1", true,
00042   QObject::tr("name of substrate definition")));
00043   Props.append(new Property("W", "1 mm", true,
00044   QObject::tr("width of the line")));
00045   Props.append(new Property("MSModel", "Hammerstad", false,
00046   QObject::tr("quasi-static microstrip model")+
00047   " [Hammerstad, Wheeler, Schneider]"));
00048   Props.append(new Property("MSDispModel", "Kirschning", false,
00049   QObject::tr("microstrip dispersion model")+" [Kirschning, Kobayashi, "
00050   "Yamashita, Hammerstad, Getsinger, Schneider, Pramanick]"));
00051   Props.append(new Property("Model", "Kirschning", false,
00052   QObject::tr("microstrip open end model")+" [Kirschning, Hammerstad, "
00053   "Alexopoulos]"));
00054 }
00055 
00056 MSopen::~MSopen()
00057 {
00058 }
00059 
00060 Component* MSopen::newOne()
00061 {
00062   return new MSopen();
00063 }
00064 
00065 Element* MSopen::info(QString& Name, char* &BitmapFile, bool getNewOne)
00066 {
00067   Name = QObject::tr("Microstrip Open");
00068   BitmapFile = (char *) "msopen";
00069 
00070   if(getNewOne)  return new MSopen();
00071   return 0;
00072 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines