Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
impedance_calculator.h
Go to the documentation of this file.
1
8#ifndef IMPEDANCE_CALCULATOR_H
9#define IMPEDANCE_CALCULATOR_H
10
11#include <QDialog>
12#include <complex>
14#include "Misc/general.h"
15
17class QLabel;
18class QPushButton;
19class QTableWidget;
20class QGroupBox;
21
29class ImpedanceCalculatorDialog : public QDialog {
30 Q_OBJECT
31
32public:
35 explicit ImpedanceCalculatorDialog(QWidget *parent = nullptr);
36
37private slots:
38
40 void computeResults();
41
43 void on_inputChanged();
44
46 void showDocumentation() {
47 QString path = QString("/Calculators/ReflectionCoefficientTools/index.html");
48 showHTMLDocs(path);
49 }
50
51private:
52 // ========== Input Widgets ==========
53
55 CustomDoubleSpinBox *spinReZ;
56
58 CustomDoubleSpinBox *spinImZ;
59
61 CustomDoubleSpinBox *spinZ0;
62
63 // ========== Output Widgets ==========
64
65 // Output
71 QTableWidget *resultsTable;
72
75 std::complex<double> impedanceFromInputs() const;
76};
77
78#endif // IMPEDANCE_CALCULATOR_H
Custom QDoubleSpinBox. It includes a context menu (right-click) for setting the minimum,...
A QDoubleSpinBox subclass that provides a context menu for configuring range and step.
Definition CustomDoubleSpinBox.h:28
Dialog for calculating reflection coefficient, VSWR, and S11 from a complex impedance (Z)
Definition impedance_calculator.h:29
Utility functions needed across the whole project.
void showHTMLDocs(QString path)
Show HTML documentation in the web browser.
Definition showHTMLDocs.cpp:17