Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
parallel_inductors.h
Go to the documentation of this file.
1
7
8#ifndef PARALLEL_INDUCTORS_H
9#define PARALLEL_INDUCTORS_H
10
11#include <QDialog>
12#include <QVector>
14#include "Misc/general.h"
15
17class QLabel;
18class QPushButton;
19class QGroupBox;
20class QTableWidget;
21class QLineEdit;
22
28class ParallelInductorsDialog : public QDialog {
29 Q_OBJECT
30public:
33 explicit ParallelInductorsDialog(QWidget *parent = nullptr);
34
35private slots:
37 void computeResults();
38
40 void addInductor();
41
43 void removeInductor();
44
46 void on_inputChanged();
47
49 void showDocumentation() {
50 QString path = QString("/Calculators/ParallelSeriesEquivalents/ParallelResistors/index.html");
51 showHTMLDocs(path);
52 }
53
54private:
55 // ========== Input Widgets ==========
56
58 QTableWidget *tableInductors;
59
60 // ========== Output Display ==========
61
63 QLabel *labelLeq;
64
65 // ========== Helper Functions ==========
66
70 double parseInductance(const QString &valueStr) const;
71
75 QString formatInductance(double value) const;
76
79 QVector<double> getInductors() const;
80
84 double calculateParallelInductance(const QVector<double> &inductors) const;
85};
86
87#endif // PARALLEL_INDUCTORS_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 equivalent inductance of parallel inductors.
Definition parallel_inductors.h:28
Utility functions needed across the whole project.
void showHTMLDocs(QString path)
Show HTML documentation in the web browser.
Definition showHTMLDocs.cpp:17