Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
componentdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  componentdialog.h - description
3  -------------------
4  begin : Tue Sep 9 2003
5  copyright : (C) 2003 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 COMPONENTDIALOG_H
19 #define COMPONENTDIALOG_H
20 #include <QtGui>
21 #include "component.h"
22 #include <QLabel>
23 #include <QDialog>
24 #include <Q3ListView>
25 #include <QLineEdit>
26 #include <QCheckBox>
27 #include <QRegExp>
28 #include <QComboBox>
29 #include <QPushButton>
30 #include <Q3PtrList>
31 #include <QDir>
32 //Added by qt3to4:
33 #include <Q3GridLayout>
34 #include <Q3VBoxLayout>
35 
36 class Schematic;
37 class Q3GridLayout;
38 class QValidator;
39 class Q3VBoxLayout;
40 class QIntValidator;
41 class QRegExpValidator;
42 
43 
44 
45 class ComponentDialog : public QDialog {
46  Q_OBJECT
47 public:
50 
51 private slots:
52  void slotButtOK();
53  void slotButtCancel();
54  void slotSelectProperty(Q3ListViewItem *item);
55  void slotApplyInput();
56  void slotApplyState(int State);
57  void slotBrowseFile();
58  void slotEditFile();
59  void slotApplyChange(const QString& Text);
60  void slotApplyProperty();
61  void slotApplyPropName();
62 
63  void slotButtAdd();
64  void slotButtRem();
65 
66  void slotSimTypeChange(int);
67  void slotNumberChanged(const QString&);
68  void slotStepChanged(const QString&);
69 
70  void slotParamEntered();
71  void slotSimEntered(int);
72  void slotValuesEntered();
73  void slotStartEntered();
74  void slotStopEntered();
75  void slotStepEntered();
76  void slotNumberEntered();
77 
78 protected slots:
79  void reject();
80 
81 private:
82  Q3VBoxLayout *all; // the mother of all widgets
83  QValidator *Validator, *ValRestrict, *Validator2;
84  QRegExp Expr;
85  QIntValidator *ValInteger;
86  Q3ListView *prop;
87  QLineEdit *edit, *NameEdit, *CompNameEdit;
88  QComboBox *ComboEdit;
89  QLabel *Name, *Description;
90  QPushButton *BrowseButt, *EditButt, *ButtAdd, *ButtRem;
91  QCheckBox *disp;
94  bool changed;
95  int tx_Dist, ty_Dist; // remember the text position
96 
97  QLabel *textType;
101  *editStep, *editNumber;
104  QComboBox *editSim, *comboType;
105 };
106 
107 #endif
QCheckBox * disp
Q3ListView * prop
QLineEdit * editValues
void slotSimTypeChange(int)
QLineEdit * editStart
QComboBox * editSim
QCheckBox * checkStop
QLineEdit * NameEdit
void slotNumberChanged(const QString &)
QCheckBox * checkSim
QPushButton * ButtAdd
QValidator * ValRestrict
QLineEdit * editParam
QCheckBox * checkNumber
Schematic * Doc
QCheckBox * checkStart
QValidator * Validator2
void slotStepChanged(const QString &)
ComponentDialog(Component *, Schematic *)
QLineEdit * editStep
QComboBox * ComboEdit
Component * Comp
QLabel * Description
QIntValidator * ValInteger
QCheckBox * checkType
QLineEdit * editNumber
Definition: element.h:82
void slotApplyChange(const QString &Text)
QPushButton * EditButt
QValidator * Validator
QPushButton * ButtRem
QCheckBox * showName
QComboBox * comboType
QLineEdit * edit
Q3VBoxLayout * all
QCheckBox * checkParam
void slotSelectProperty(Q3ListViewItem *item)
void slotSimEntered(int)
QLineEdit * editStop
QLineEdit * CompNameEdit
QPushButton * BrowseButt
QCheckBox * checkValues
void slotApplyState(int State)