Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
spicefile.h
Go to the documentation of this file.
1 /***************************************************************************
2  spicefile.h
3  -------------
4  begin : Tue Dec 28 2004
5  copyright : (C) 2004 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 SPICEFILE_H
19 #define SPICEFILE_H
20 #include <QtGui>
21 #include "component.h"
22 
23 #include <QObject>
24 #include <QDateTime>
25 //Added by qt3to4:
26 #include <QTextStream>
27 
28 class QProcess;
29 class QTextStream;
30 class QString;
31 
32 class SpiceFile : public QObject, public MultiViewComponent {
33  Q_OBJECT
34 public:
35  SpiceFile();
36  ~SpiceFile() {};
37  Component* newOne();
38  static Element* info(QString&, char* &, bool getNewOne=false);
39 
40  bool withSim;
41  bool createSubNetlist(QTextStream *);
42  QString getErrorText() { return ErrText; }
43  QString getSubcircuitFile();
44 
45 private:
47  bool insertSim;
48  bool changed;
49  QProcess *QucsConv, *SpicePrep;
51  QTextStream *outstream, *filstream, *prestream;
52  QDateTime lastLoaded;
53  bool recreateSubNetlist(QString *, QString *);
54 
55 protected:
56  QString netlist();
57  void createSymbol();
58 
59 private slots:
60  void slotGetNetlist();
61  void slotGetError();
62  void slotExited();
63  void slotSkipOut();
64  void slotSkipErr();
65  void slotGetPrepOut();
66  void slotGetPrepErr();
67 };
68 
69 #endif
bool insertSim
Definition: spicefile.h:47
QTextStream * prestream
Definition: spicefile.h:51
void slotExited()
Definition: spicefile.cpp:524
bool withSim
Definition: spicefile.h:40
bool createSubNetlist(QTextStream *)
Definition: spicefile.cpp:247
QString netlist()
Definition: spicefile.cpp:146
QDateTime lastLoaded
Definition: spicefile.h:52
QString getErrorText()
Definition: spicefile.h:42
QTextStream * outstream
Definition: spicefile.h:51
bool changed
Definition: spicefile.h:48
void slotSkipOut()
Definition: spicefile.cpp:470
void slotGetNetlist()
Definition: spicefile.cpp:494
void slotGetError()
Definition: spicefile.cpp:488
QString SimText
Definition: spicefile.h:50
~SpiceFile()
Definition: spicefile.h:36
void createSymbol()
Definition: spicefile.cpp:83
QProcess * SpicePrep
Definition: spicefile.h:49
void slotGetPrepErr()
Definition: spicefile.cpp:476
Superclass of all schematic drawing elements.
Definition: element.h:142
QProcess * QucsConv
Definition: spicefile.h:49
QString NetLine
Definition: spicefile.h:50
QString ErrText
Definition: spicefile.h:50
Component * newOne()
Definition: spicefile.cpp:61
void slotGetPrepOut()
Definition: spicefile.cpp:482
bool recreateSubNetlist(QString *, QString *)
Definition: spicefile.cpp:302
QString NetText
Definition: spicefile.h:50
QTextStream * filstream
Definition: spicefile.h:51
static Element * info(QString &, char *&, bool getNewOne=false)
Definition: spicefile.cpp:69
bool makeSubcircuit
Definition: spicefile.h:46
QString getSubcircuitFile()
Definition: spicefile.cpp:161
void slotSkipErr()
Definition: spicefile.cpp:464