Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
matchdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  matchdialog.h
3  ---------------
4  begin : Fri Jul 22 2005
5  copyright : (C) 2005 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 #ifndef MATCHDIALOG_H
19 #define MATCHDIALOG_H
20 
21 #include <QDialog>
22 #include <QVBoxLayout>
23 #include <QLabel>
24 
25 class Element;
26 class QLabel;
27 class QLineEdit;
28 class QComboBox;
29 class QCheckBox;
30 class QVBoxLayout;
31 class QDoubleValidator;
32 
33 
34 class MatchDialog : public QDialog {
35  Q_OBJECT
36 public:
37  MatchDialog(QWidget *parent=0);
38  ~MatchDialog();
39 
40  static void c2p(double&, double&);
41  static void p2c(double&, double&);
42  static void r2z(double&, double&, double);
43  static void z2r(double&, double&, double);
44  static QString calcMatching(double, double, double, double);
45  static bool calcMatchingCircuit(double, double, double, double);
46  static QString calcBiMatch(double, double, double, double, double, double,
47  double, double);
48  static bool calc2PortMatch(double, double, double, double, double, double,
49  double, double, double);
50  void setFrequency(double);
51 
55  QCheckBox *TwoCheck;
56 
57 public slots:
58  void slotButtCreate();
59  void slotImpedanceChanged(const QString&);
60  void slotReflexionChanged(const QString&);
61  void slotSetTwoPort(bool);
62  void slotChangeMode(int);
63 
64 private:
65  QVBoxLayout *all; // the mother of all widgets
66  QDoubleValidator *DoubleVal;
73  QComboBox *FormatCombo, *UnitCombo;
74 };
75 
76 #endif
QLabel * S11uLabel
Definition: matchdialog.h:67
QLabel * Port1Label
Definition: matchdialog.h:67
void slotChangeMode(int)
QLineEdit * S12magEdit
Definition: matchdialog.h:52
QLabel * FrequencyLabel
Definition: matchdialog.h:67
static void p2c(double &, double &)
MatchDialog(QWidget *parent=0)
Definition: matchdialog.cpp:45
QLabel * S12uLabel
Definition: matchdialog.h:67
void slotSetTwoPort(bool)
static QString calcBiMatch(double, double, double, double, double, double, double, double)
QLabel * S22Label
Definition: matchdialog.h:67
QLineEdit * S21degEdit
Definition: matchdialog.h:52
static void z2r(double &, double &, double)
QVBoxLayout * all
Definition: matchdialog.h:65
QLabel * S21Label
Definition: matchdialog.h:67
void slotButtCreate()
static bool calcMatchingCircuit(double, double, double, double)
QLabel * Ohm2Label
Definition: matchdialog.h:67
QLineEdit * Ref1Edit
Definition: matchdialog.h:52
QLabel * S12sLabel
Definition: matchdialog.h:67
QLineEdit * S11degEdit
Definition: matchdialog.h:52
Superclass of all schematic drawing elements.
Definition: element.h:142
QComboBox * UnitCombo
Definition: matchdialog.h:73
QLabel * S12Label
Definition: matchdialog.h:67
void slotReflexionChanged(const QString &)
static bool calc2PortMatch(double, double, double, double, double, double, double, double, double)
QCheckBox * TwoCheck
Definition: matchdialog.h:55
QLabel * S21uLabel
Definition: matchdialog.h:67
static void r2z(double &, double &, double)
QLineEdit * FrequencyEdit
Definition: matchdialog.h:52
QLineEdit * S22degEdit
Definition: matchdialog.h:52
void setFrequency(double)
QLineEdit * S21magEdit
Definition: matchdialog.h:52
QLabel * S11sLabel
Definition: matchdialog.h:67
QComboBox * FormatCombo
Definition: matchdialog.h:73
QLabel * Port2Label
Definition: matchdialog.h:67
QLabel * Ohm1Label
Definition: matchdialog.h:67
QLabel * S22uLabel
Definition: matchdialog.h:67
void slotImpedanceChanged(const QString &)
QLineEdit * Ref2Edit
Definition: matchdialog.h:52
QLabel * FormatLabel
Definition: matchdialog.h:67
QDoubleValidator * DoubleVal
Definition: matchdialog.h:66
QLabel * S21sLabel
Definition: matchdialog.h:67
QLineEdit * S11magEdit
Definition: matchdialog.h:52
QLabel * S11Label
Definition: matchdialog.h:67
QLineEdit * S22magEdit
Definition: matchdialog.h:52
static QString calcMatching(double, double, double, double)
QLineEdit * S12degEdit
Definition: matchdialog.h:52
QLabel * S22sLabel
Definition: matchdialog.h:67
static void c2p(double &, double &)