My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
qucsattenuator.h
Go to the documentation of this file.
1 //-*- C++ -*-
2 /****************************************************************************
3 ** Qucs Attenuator Synthesis
4 ** qucsattenuator.h
5 **
6 **
7 **
8 **
9 **
10 **
11 **
12 *****************************************************************************/
13 
14 #ifndef QUCSATTENUATOR_H
15 #define QUCSATTENUATOR_H
16 
17 #include <qdialog.h>
18 #include "attenuatorfunc.h"
19 
20 class QGridLayout;
21 class QComboBox;
22 class QLineEdit;
23 class QIntValidator;
24 class QDoubleValidator;
25 class QLabel;
26 class QPushButton;
27 
28 struct tQucsSettings
29 {
30  int x, y; // position of main window
31  QFont font;
32  QString LangDir;
33  QString BitmapDir;
34  QString Language;
35 };
36 
37 extern struct tQucsSettings QucsSettings;
38 
39 class QucsAttenuator : public QDialog
40 {
41  Q_OBJECT
42  public:
45 
46  private slots:
47  void slotHelpIntro();
48  void slotHelpAbout();
49  void slotHelpAboutQt();
50  void slotTopologyChanged();
51  void slotCalculate();
52  void slotQuit();
53  void slotSetText_Zin(const QString &);
54  void slotSetText_Zout(const QString &);
55 
56  private:
57  QComboBox *ComboTopology;
58  QLabel *LabelTopology, *LabelAtten, *LabelImp1, *LabelImp2;
59  QLabel *LabelR1, *LabelR2, *LabelR3, *pixTopology, *LabelResult;
60  QLabel *LabelR3_Ohm;
61  QLineEdit *lineEdit_Attvalue, *lineEdit_Zin, *lineEdit_Zout;
62  QLineEdit *lineEdit_R1, *lineEdit_R2, *lineEdit_R3, *lineEdit_Results;
63  QPushButton *Calculate;
64  QIntValidator *IntVal;
65  QDoubleValidator *DoubleVal;
66 
67 };
68 
69 #endif