qucs_s/qucs-attenuator/qucsattenuator.h

70 lines
1.4 KiB
C
Raw Normal View History

//-*- C++ -*-
/****************************************************************************
** Qucs Attenuator Synthesis
** qucsattenuator.h
**
**
**
**
**
**
**
*****************************************************************************/
#ifndef QUCSATTENUATOR_H
#define QUCSATTENUATOR_H
2013-06-02 11:03:29 +02:00
#include <QMainWindow>
#include <QLabel>
#include <QCheckBox>
#include "attenuatorfunc.h"
class QComboBox;
class QLineEdit;
class QIntValidator;
class QDoubleValidator;
class QLabel;
class QPushButton;
struct tQucsSettings
{
int x, y; // position of main window
QFont font;
QString LangDir;
QString Language;
};
extern struct tQucsSettings QucsSettings;
2013-06-02 11:03:29 +02:00
class QucsAttenuator : public QMainWindow
{
Q_OBJECT
public:
QucsAttenuator();
~QucsAttenuator();
private slots:
void slotHelpIntro();
void slotHelpAbout();
void slotHelpAboutQt();
void slotTopologyChanged();
void slotCalculate();
void slotQuit();
void slotSetText_Zin(const QString &);
void slotSetText_Zout(const QString &);
private:
QComboBox *ComboTopology;
QLabel *LabelTopology, *LabelAtten, *LabelImp1, *LabelImp2;
QLabel *LabelR1, *LabelR2, *LabelR3, *pixTopology, *LabelResult;
2006-07-28 07:13:18 +00:00
QLabel *LabelR3_Ohm;
QLineEdit *lineEdit_Attvalue, *lineEdit_Zin, *lineEdit_Zout;
QLineEdit *lineEdit_R1, *lineEdit_R2, *lineEdit_R3, *lineEdit_Results;
QPushButton *Calculate;
QDoubleValidator *DoubleVal;
QCheckBox *SparBoxCheckbox, *minR_Reflection_Att;
};
#endif