Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Data Fields | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes
SpiceFile Class Reference

#include <spicefile.h>

Inheritance diagram for SpiceFile:
MultiViewComponent Component Element

Public Member Functions

 SpiceFile ()
 
 ~SpiceFile ()
 
ComponentnewOne ()
 
bool createSubNetlist (QTextStream *)
 
QString getErrorText ()
 
QString getSubcircuitFile ()
 
- Public Member Functions inherited from MultiViewComponent
 MultiViewComponent ()
 
virtual ~MultiViewComponent ()
 
void recreate (Schematic *)
 
- Public Member Functions inherited from Component
 Component ()
 
virtual ~Component ()
 
QString getNetlist ()
 
QString get_VHDL_Code (int)
 
QString get_Verilog_Code (int)
 
void paint (ViewPainter *)
 
void paintScheme (Schematic *)
 
void print (ViewPainter *, float)
 
void setCenter (int, int, bool relative=false)
 
void getCenter (int &, int &)
 
int textSize (int &, int &)
 
void Bounding (int &, int &, int &, int &)
 
void entireBounds (int &, int &, int &, int &, float)
 
bool getSelected (int, int)
 
int getTextSelected (int, int, float)
 
void rotate ()
 
void mirrorX ()
 
void mirrorY ()
 
QString save ()
 
bool load (const QString &)
 
virtual void setSchematic (Schematic *p)
 
- Public Member Functions inherited from Element
 Element ()
 
virtual ~Element ()
 

Static Public Member Functions

static Elementinfo (QString &, char *&, bool getNewOne=false)
 

Data Fields

bool withSim
 
- Data Fields inherited from Component
bool mirroredX
 
int rotated
 
Q3PtrList< LineLines
 
Q3PtrList< struct ArcArcs
 
Q3PtrList< AreaRects
 
Q3PtrList< AreaEllips
 
Q3PtrList< PortPorts
 
Q3PtrList< TextTexts
 
Q3PtrList< PropertyProps
 
int isActive
 
int tx
 
int ty
 
bool showName
 
QString Model
 
QString Name
 
QString Description
 
- Data Fields inherited from Element
bool isSelected
 
int Type
 
int cx
 
int cy
 
int x1
 
int y1
 
int x2
 
int y2
 

Protected Member Functions

QString netlist ()
 
void createSymbol ()
 
- Protected Member Functions inherited from Component
virtual QString vhdlCode (int)
 
virtual QString verilogCode (int)
 
int analyseLine (const QString &, int)
 
bool getIntegers (const QString &, int *i1=0, int *i2=0, int *i3=0, int *i4=0, int *i5=0, int *i6=0)
 
bool getPen (const QString &, QPen &, int)
 
bool getBrush (const QString &, QBrush &, int)
 
void copyComponent (Component *)
 
PropertygetProperty (const QString &)
 

Private Slots

void slotGetNetlist ()
 
void slotGetError ()
 
void slotExited ()
 
void slotSkipOut ()
 
void slotSkipErr ()
 
void slotGetPrepOut ()
 
void slotGetPrepErr ()
 

Private Member Functions

bool recreateSubNetlist (QString *, QString *)
 

Private Attributes

bool makeSubcircuit
 
bool insertSim
 
bool changed
 
QProcess * QucsConv
 
QProcess * SpicePrep
 
QString NetText
 
QString ErrText
 
QString NetLine
 
QString SimText
 
QTextStream * outstream
 
QTextStream * filstream
 
QTextStream * prestream
 
QDateTime lastLoaded
 

Additional Inherited Members

- Protected Attributes inherited from Component
SchematiccontainingSchematic
 

Detailed Description

Definition at line 32 of file spicefile.h.

Constructor & Destructor Documentation

SpiceFile::SpiceFile ( )

Definition at line 42 of file spicefile.cpp.

SpiceFile::~SpiceFile ( )
inline

Definition at line 36 of file spicefile.h.

Member Function Documentation

bool SpiceFile::createSubNetlist ( QTextStream *  stream)

Definition at line 247 of file spicefile.cpp.

void SpiceFile::createSymbol ( )
protectedvirtual

Reimplemented from MultiViewComponent.

Definition at line 83 of file spicefile.cpp.

QString SpiceFile::getErrorText ( )
inline

Definition at line 42 of file spicefile.h.

QString SpiceFile::getSubcircuitFile ( )
virtual

Reimplemented from Component.

Definition at line 161 of file spicefile.cpp.

Element * SpiceFile::info ( QString &  Name,
char *&  BitmapFile,
bool  getNewOne = false 
)
static

Definition at line 69 of file spicefile.cpp.

QString SpiceFile::netlist ( )
protectedvirtual

Reimplemented from Component.

Definition at line 146 of file spicefile.cpp.

Component * SpiceFile::newOne ( )
virtual

Reimplemented from Component.

Definition at line 61 of file spicefile.cpp.

bool SpiceFile::recreateSubNetlist ( QString *  SpiceFile,
QString *  FileName 
)
private

these slots might write into NetText, ErrText, outstream, filstream

Definition at line 302 of file spicefile.cpp.

void SpiceFile::slotExited ( )
privateslot

Definition at line 524 of file spicefile.cpp.

void SpiceFile::slotGetError ( )
privateslot

Definition at line 488 of file spicefile.cpp.

void SpiceFile::slotGetNetlist ( )
privateslot

Definition at line 494 of file spicefile.cpp.

void SpiceFile::slotGetPrepErr ( )
privateslot

Definition at line 476 of file spicefile.cpp.

void SpiceFile::slotGetPrepOut ( )
privateslot

Definition at line 482 of file spicefile.cpp.

void SpiceFile::slotSkipErr ( )
privateslot

Definition at line 464 of file spicefile.cpp.

void SpiceFile::slotSkipOut ( )
privateslot

Definition at line 470 of file spicefile.cpp.

Field Documentation

bool SpiceFile::changed
private

Definition at line 48 of file spicefile.h.

QString SpiceFile::ErrText
private

Definition at line 50 of file spicefile.h.

QTextStream * SpiceFile::filstream
private

Definition at line 51 of file spicefile.h.

bool SpiceFile::insertSim
private

Definition at line 47 of file spicefile.h.

QDateTime SpiceFile::lastLoaded
private

Definition at line 52 of file spicefile.h.

bool SpiceFile::makeSubcircuit
private

Definition at line 46 of file spicefile.h.

QString SpiceFile::NetLine
private

Definition at line 50 of file spicefile.h.

QString SpiceFile::NetText
private

Definition at line 50 of file spicefile.h.

QTextStream* SpiceFile::outstream
private

Definition at line 51 of file spicefile.h.

QTextStream * SpiceFile::prestream
private

Definition at line 51 of file spicefile.h.

QProcess* SpiceFile::QucsConv
private

Definition at line 49 of file spicefile.h.

QString SpiceFile::SimText
private

Definition at line 50 of file spicefile.h.

QProcess * SpiceFile::SpicePrep
private

Definition at line 49 of file spicefile.h.

bool SpiceFile::withSim

Definition at line 40 of file spicefile.h.


The documentation for this class was generated from the following files: