Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mslange.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  mscoupled.cpp - description
3  -------------------
4  begin : Sat Aug 23 2003
5  copyright : (C) 2010 by Frans Schreuder
6  email : fransschreuder@lists.sourceforge.net
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 "mslange.h"
19 
20 
22 {
23  Description = QObject::tr("microstrip lange coupler");
24 
25  Lines.append(new Line(-30,-30,-30, 10,QPen(Qt::darkBlue,2)));
26  Lines.append(new Line(-30, 30,-30, 20,QPen(Qt::darkBlue,2)));
27  Lines.append(new Line(-30, 20, 0, 20,QPen(Qt::darkBlue,2)));
28  Lines.append(new Line(-30, 10, 30, 10,QPen(Qt::darkBlue,2)));
29  Lines.append(new Line(-25, 0, 25, 0,QPen(Qt::darkBlue,2)));
30  Lines.append(new Line(-30,-10, 30,-10,QPen(Qt::darkBlue,2)));
31  Lines.append(new Line( 0,-20, 30,-20,QPen(Qt::darkBlue,2)));
32  Lines.append(new Line( 30,-30, 30,-20,QPen(Qt::darkBlue,2)));
33  Lines.append(new Line( 30,-10, 30, 30,QPen(Qt::darkBlue,2)));
34 
35  Ports.append(new Port(-30,-30));
36  Ports.append(new Port( 30, 30));
37  Ports.append(new Port( 30,-30));
38  Ports.append(new Port(-30, 30));
39 
40  x1 = -30; y1 =-33;
41  x2 = 30; y2 = 33;
42 
43  tx = x1+4;
44  ty = y2+4;
45  Model = "MLANGE";
46  Name = "MS";
47 
48  Props.append(new Property("Subst", "Subst1", true,
49  QObject::tr("name of substrate definition")));
50  Props.append(new Property("W", "1 mm", true,
51  QObject::tr("width of the line")));
52  Props.append(new Property("L", "10 mm", true,
53  QObject::tr("length of the line")));
54  Props.append(new Property("S", "1 mm", true,
55  QObject::tr("spacing between the lines")));
56  Props.append(new Property("Model", "Kirschning", false,
57  QObject::tr("microstrip model")+" [Kirschning, Hammerstad]"));
58  Props.append(new Property("DispModel", "Kirschning", false,
59  QObject::tr("microstrip dispersion model")+
60  " [Kirschning, Getsinger]"));
61  Props.append(new Property("Temp", "26.85", false,
62  QObject::tr("simulation temperature in degree Celsius")));
63 }
64 
66 {
67 }
68 
70 {
71  return new MSlange();
72 }
73 
74 Element* MSlange::info(QString& Name, char* &BitmapFile, bool getNewOne)
75 {
76  Name = QObject::tr("Microstrip Lange Coupler");
77  BitmapFile = (char *) "mslange";
78 
79  if(getNewOne) return new MSlange();
80  return 0;
81 }
Q3PtrList< Line > Lines
Definition: component.h:67
int y1
Definition: element.h:153
~MSlange()
Definition: mslange.cpp:65
int tx
Definition: component.h:78
int y2
Definition: element.h:153
Definition: element.h:72
int x1
Definition: element.h:153
int ty
Definition: component.h:78
MSlange()
Definition: mslange.cpp:21
Q3PtrList< Property > Props
Definition: component.h:72
Definition: element.h:48
Superclass of all schematic drawing elements.
Definition: element.h:142
Q3PtrList< Port > Ports
Definition: component.h:70
QString Name
Definition: component.h:80
QString Model
Definition: component.h:80
QString Description
Definition: component.h:81
static Element * info(QString &, char *&, bool getNewOne=false)
Definition: mslange.cpp:74
int x2
Definition: element.h:153
Component * newOne()
Definition: mslange.cpp:69