Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
octaveBW_calculator.h
1
7
8#ifndef OCTAVEBW_CALCULATOR_H
9#define OCTAVEBW_CALCULATOR_H
10
11#include <QDialog>
13#include "Misc/general.h"
14
16class QLabel;
17class QPushButton;
18class QTableWidget;
19class QGroupBox;
20
28class OctaveBWCalculatorDialog : public QDialog {
29 Q_OBJECT
30public:
33 explicit OctaveBWCalculatorDialog(QWidget *parent = nullptr);
34
35private slots:
37 void computeResults();
38
40 void on_inputChanged();
41
43 void showDocumentation() {
44 QString path = QString("/Calculators/OctaveBW/index.html");
45 showHTMLDocs(path);
46 }
47
48
49private:
50 // ========== Input Widgets ==========
51
53 CustomDoubleSpinBox *spinFLow;
54
56 CustomDoubleSpinBox *spinFHigh;
57
58 // Output
67 QTableWidget *resultsTable;
68
71 double calculateCenterFrequency() const;
72
75 double calculateBandwidth() const;
76};
77
78#endif // OCTAVEBW_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 the number of octaves, decades, and Q from the band corner frequencies.
Definition octaveBW_calculator.h:28
Utility functions needed across the whole project.
void showHTMLDocs(QString path)
Show HTML documentation in the web browser.
Definition showHTMLDocs.cpp:17