My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
qucsfilter.h
Go to the documentation of this file.
1 /***************************************************************************
2  qucsfilter.h
3  -------------------
4  begin : Wed Mar 02 2005
5  copyright : (C) 2005 by Michael Margraf
6  email : michael.margraf@alumni.tu-berlin.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QUCSFILTER_H
19 #define QUCSFILTER_H
20 
21 #include <qdialog.h>
22 
23 class QGridLayout;
24 class QComboBox;
25 class QLineEdit;
26 class QLabel;
27 class QIntValidator;
28 class QDoubleValidator;
29 
30 
31 struct tQucsSettings {
32  int x, y; // position of main window
33  QFont font;
34  QString LangDir;
35  QString BitmapDir;
36  QString Language;
37 };
38 
39 extern struct tQucsSettings QucsSettings;
40 
41 class QucsFilter : public QDialog
42 {
43  Q_OBJECT
44 public:
45  QucsFilter();
46  ~QucsFilter();
47 
48 private slots:
49  void slotQuit();
50  void slotHelpIntro();
51  void slotHelpAbout();
52  void slotHelpAboutQt();
53  void slotCalculate();
54  void slotTypeChanged(int);
55  void slotClassChanged(int);
56  void slotShowResult();
57 
58 private:
59  void setError(const QString&);
60  QString * calculateFilter(struct tFilter *);
61 
62  int ResultState;
63 
64  QGridLayout *gbox;
65  QComboBox *ComboType, *ComboClass, *ComboCorner, *ComboStop, *ComboBandStop;
66  QLineEdit *EditOrder, *EditCorner, *EditStop, *EditRipple, *EditImpedance;
67  QLineEdit *EditAtten, *EditBandStop;
68  QLabel *LabelRipple, *LabelRipple_dB, *LabelStart, *LabelStop, *LabelResult;
69  QLabel *LabelAtten, *LabelAtten_dB, *LabelBandStop, *LabelOrder;
70  QIntValidator *IntVal;
71  QDoubleValidator *DoubleVal;
72 };
73 
74 #endif