My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
msopen.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  msopen.cpp - description
3  -------------------
4  begin : Sat Aug 23 2003
5  copyright : (C) 2003 by Michael Margraf
6  email : michael.margraf@alumni.tu-berlin.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #include "msopen.h"
19 
20 
22 {
23  Description = QObject::tr("microstrip open");
24 
25  Lines.append(new Line(-30, 0,-18, 0,QPen(QPen::darkBlue,2)));
26  Lines.append(new Line(-13, -8, 13, -8,QPen(QPen::darkBlue,2)));
27  Lines.append(new Line(-23, 8, 3, 8,QPen(QPen::darkBlue,2)));
28  Lines.append(new Line(-13, -8,-23, 8,QPen(QPen::darkBlue,2)));
29  Lines.append(new Line( 13, -8, 3, 8,QPen(QPen::darkBlue,2)));
30 
31  Ports.append(new Port(-30, 0));
32 
33  x1 = -30; y1 =-11;
34  x2 = 16; y2 = 11;
35 
36  tx = x1+4;
37  ty = y2+4;
38  Model = "MOPEN";
39  Name = "MS";
40 
41  Props.append(new Property("Subst", "Subst1", true,
42  QObject::tr("name of substrate definition")));
43  Props.append(new Property("W", "1 mm", true,
44  QObject::tr("width of the line")));
45  Props.append(new Property("MSModel", "Hammerstad", false,
46  QObject::tr("quasi-static microstrip model")+
47  " [Hammerstad, Wheeler, Schneider]"));
48  Props.append(new Property("MSDispModel", "Kirschning", false,
49  QObject::tr("microstrip dispersion model")+" [Kirschning, Kobayashi, "
50  "Yamashita, Hammerstad, Getsinger, Schneider, Pramanick]"));
51  Props.append(new Property("Model", "Kirschning", false,
52  QObject::tr("microstrip open end model")+" [Kirschning, Hammerstad, "
53  "Alexopoulos]"));
54 }
55 
57 {
58 }
59 
61 {
62  return new MSopen();
63 }
64 
65 Element* MSopen::info(QString& Name, char* &BitmapFile, bool getNewOne)
66 {
67  Name = QObject::tr("Microstrip Open");
68  BitmapFile = (char *) "msopen";
69 
70  if(getNewOne) return new MSopen();
71  return 0;
72 }