Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
spicedialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  spicedialog.h
3  ---------------
4  begin : Tue May 3 2005
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 SPICEDIALOG_H
19 #define SPICEDIALOG_H
20 
21 #include <QDialog>
22 #include <QRegExp>
23 #include <QDir>
24 //Added by qt3to4:
25 #include <QTextStream>
26 #include <Q3VBoxLayout>
27 
28 class Schematic;
29 class SpiceFile;
30 class QLineEdit;
31 class QPushButton;
32 class Q3ListBox;
33 class Q3ListBoxItem;
34 class QCheckBox;
35 class Q3VBoxLayout;
36 class QProcess;
37 class QRegExpValidator;
38 class QComboBox;
39 class QucsApp;
40 
41 
42 
43 class SpiceDialog : public QDialog {
44  Q_OBJECT
45 public:
47  ~SpiceDialog();
48 
49 private slots:
50  void slotButtOK();
51  void slotButtCancel();
52  void slotButtApply();
53  void slotButtBrowse();
54  void slotButtEdit();
55 
56  void slotButtAdd();
57  void slotButtRemove();
58  void slotAddPort(Q3ListBoxItem*);
59  void slotRemovePort(Q3ListBoxItem*);
60 
61  void slotGetNetlist();
62  void slotGetError();
63 
64  void slotSkipOut();
65  void slotSkipErr();
66  void slotGetPrepOut();
67  void slotGetPrepErr();
68  void slotPrepChanged(int);
69 
70 protected slots:
71  void reject();
72 
73 private:
74  bool loadSpiceNetList(const QString&);
75 
76  Q3VBoxLayout *all; // the mother of all widgets
77  QRegExpValidator *Validator, *ValRestrict;
78  QRegExp Expr;
79  Q3ListBox *NodesList, *PortsList;
80  QCheckBox *FileCheck, *SimCheck;
81  QLineEdit *FileEdit, *CompNameEdit;
82  QPushButton *ButtBrowse, *ButtEdit, *ButtAdd, *ButtRemove;
83  QComboBox *PrepCombo;
86  bool changed;
88 
89  QTextStream *prestream;
90  QProcess *QucsConv, *SpicePrep;
91  QString Line, Error; // to store the text read from QucsConv
92  int textStatus; // to store with text data QucsConv will sent next
93 
95 };
96 
97 #endif
void slotButtApply()
QucsApp * App
Definition: spicedialog.h:94
QString Line
Definition: spicedialog.h:91
Schematic * Doc
Definition: spicedialog.h:85
void slotAddPort(Q3ListBoxItem *)
void slotGetError()
int textStatus
Definition: spicedialog.h:92
void slotButtBrowse()
Q3ListBox * PortsList
Definition: spicedialog.h:79
QPushButton * ButtAdd
Definition: spicedialog.h:82
void slotGetNetlist()
QRegExpValidator * Validator
Definition: spicedialog.h:77
QPushButton * ButtBrowse
Definition: spicedialog.h:82
QProcess * SpicePrep
Definition: spicedialog.h:90
QPushButton * ButtEdit
Definition: spicedialog.h:82
Q3VBoxLayout * all
Definition: spicedialog.h:76
QLineEdit * CompNameEdit
Definition: spicedialog.h:81
void slotGetPrepOut()
int currentPrep
Definition: spicedialog.h:87
QComboBox * PrepCombo
Definition: spicedialog.h:83
QRegExp Expr
Definition: spicedialog.h:78
QProcess * QucsConv
Definition: spicedialog.h:90
QString Error
Definition: spicedialog.h:91
bool changed
Definition: spicedialog.h:86
QCheckBox * FileCheck
Definition: spicedialog.h:80
void slotButtCancel()
void slotButtOK()
QTextStream * prestream
Definition: spicedialog.h:89
SpiceFile * Comp
Definition: spicedialog.h:84
void slotGetPrepErr()
SpiceDialog(QucsApp *, SpiceFile *, Schematic *)
Definition: spicedialog.cpp:43
QPushButton * ButtRemove
Definition: spicedialog.h:82
QLineEdit * FileEdit
Definition: spicedialog.h:81
QCheckBox * SimCheck
Definition: spicedialog.h:80
Q3ListBox * NodesList
Definition: spicedialog.h:79
QRegExpValidator * ValRestrict
Definition: spicedialog.h:77
void slotButtRemove()
bool loadSpiceNetList(const QString &)
Definition: qucs.h:61
void slotRemovePort(Q3ListBoxItem *)
void slotButtAdd()
void slotPrepChanged(int)
void slotSkipOut()
void slotSkipErr()
void slotButtEdit()