Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
gamma_calculator.h
Go to the documentation of this file.
1
8#ifndef GAMMA_CALCULATOR_H
9#define GAMMA_CALCULATOR_H
10
11#include <QDialog>
12#include <complex>
14#include "Misc/general.h"
15
17class QLabel;
18class QPushButton;
19class QTableWidget;
20class QGroupBox;
21
32class GammaCalculatorDialog : public QDialog {
33 Q_OBJECT
34public:
37 explicit GammaCalculatorDialog(QWidget *parent = nullptr);
38
39private slots:
41 void computeResults();
42
44 void on_inputChanged();
45
47 void showDocumentation() {
48 QString path = QString("/Calculators/ReflectionCoefficientTools/index.html");
49 showHTMLDocs(path);
50 }
51
52private:
53 // ========== Input Widgets ==========
54
56 CustomDoubleSpinBox *spinMag;
57
59 CustomDoubleSpinBox *spinAngle;
60
62 CustomDoubleSpinBox *spinZ0;
63
64 // Output
71 QTableWidget *resultsTable;
72
75 std::complex<double> gammaFromInputs() const;
76};
77
78#endif // GAMMA_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 impedance, VSWR, and S11 from reflection coefficient (Γ)
Definition gamma_calculator.h:32
Utility functions needed across the whole project.
void showHTMLDocs(QString path)
Show HTML documentation in the web browser.
Definition showHTMLDocs.cpp:17