Qucs-GUI  0.0.19
Public Slots | Signals | Public Member Functions | Data Fields | Protected Attributes | Private Slots | Private Member Functions
SimMessage Class Reference

#include <simmessage.h>

Collaboration diagram for SimMessage:
Collaboration graph
[legend]

Public Slots

void slotClose ()
 Close and delete simulation dialog.

Signals

void SimulationEnded (int, SimMessage *)
void displayDataPage (QString &, QString &)

Public Member Functions

 SimMessage (QWidget *, QWidget *parent=0)
 Create a simulation messages dialog.
 ~SimMessage ()
 Delete the simulation messages dialog.
bool startProcess ()

Data Fields

QWidget * DocWidget
int showBias
bool SimOpenDpl
bool SimRunScript
QString DocName
QString DataSet
QString DataDisplay
QString Script
QProcess SimProcess
QPlainTextEdit * ProgText
QPlainTextEdit * ErrText
bool wasLF
bool simKilled
QPushButton * Display
QPushButton * Abort
QProgressBar * SimProgress
QString ProgressText
ComponentSimOpt
int SimPorts
bool makeSubcircuit
bool insertSim
QStringList Collect
QFile NetlistFile
QTextStream Stream
QVBoxLayout * all

Protected Attributes

QString Program

Private Slots

void slotDisplayMsg ()
 called when the process sends an output to stdout.
void slotDisplayErr ()
 Insert process stderr output in the Error Message output window.
void slotCloseStdin ()
void slotStateChanged (QProcess::ProcessState newState)
 The process state changes.
void slotSimEnded (int exitCode, QProcess::ExitStatus exitStatus)
 Check the simulation process exit status.
void slotDisplayButton ()
void AbortSim ()
void slotReadSpiceNetlist ()
void slotFinishSpiceNetlist (int status)

Private Member Functions

void FinishSimulation (int)
 Add end-of-simulation messages and save the relevant data.
void nextSPICE ()
 Converts a spice netlist into Qucs format and outputs it.
void startSimulator ()
 SimMessage::startSimulator simulates the document in view.
ComponentfindOptimization (Schematic *)

Detailed Description

Definition at line 41 of file simmessage.h.


Constructor & Destructor Documentation

SimMessage::SimMessage ( QWidget *  w,
QWidget *  parent = 0 
)

Create a simulation messages dialog.

Create a new dialog to show the simulation steps progress and the simulator output messages

Definition at line 64 of file simmessage.cpp.

Here is the call graph for this function:

Delete the simulation messages dialog.

Delete the simulation messages dialog and kill the simulation process, if still running.

Definition at line 145 of file simmessage.cpp.


Member Function Documentation

void SimMessage::AbortSim ( ) [private, slot]

Definition at line 844 of file simmessage.cpp.

Here is the caller graph for this function:

void SimMessage::displayDataPage ( QString &  ,
QString &   
) [signal]

Here is the caller graph for this function:

Definition at line 608 of file simmessage.cpp.

Here is the caller graph for this function:

void SimMessage::FinishSimulation ( int  Status) [private]

Add end-of-simulation messages and save the relevant data.

Called when the simulation ended with errors before starting the simulator process.

Parameters:
[in]Statusexit status of the process (0 = normal, !=0 = error)

Definition at line 771 of file simmessage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void SimMessage::nextSPICE ( ) [private]

Converts a spice netlist into Qucs format and outputs it.

Definition at line 211 of file simmessage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void SimMessage::SimulationEnded ( int  ,
SimMessage  
) [signal]

Here is the caller graph for this function:

void SimMessage::slotClose ( ) [slot]

Close and delete simulation dialog.

To call accept(), which is protected, from the outside. Called from the main GUI.

Definition at line 832 of file simmessage.cpp.

Here is the caller graph for this function:

void SimMessage::slotCloseStdin ( ) [private, slot]

Definition at line 284 of file simmessage.cpp.

Here is the caller graph for this function:

void SimMessage::slotDisplayButton ( ) [private, slot]

Definition at line 838 of file simmessage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void SimMessage::slotDisplayErr ( ) [private, slot]

Insert process stderr output in the Error Message output window.

Called when the process sends an output to stderr.

Definition at line 680 of file simmessage.cpp.

Here is the caller graph for this function:

void SimMessage::slotDisplayMsg ( ) [private, slot]

called when the process sends an output to stdout.

Definition at line 621 of file simmessage.cpp.

Here is the caller graph for this function:

void SimMessage::slotFinishSpiceNetlist ( int  status) [private, slot]

Definition at line 315 of file simmessage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void SimMessage::slotReadSpiceNetlist ( ) [private, slot]

Definition at line 291 of file simmessage.cpp.

Here is the caller graph for this function:

void SimMessage::slotSimEnded ( int  exitCode,
QProcess::ExitStatus  exitStatus 
) [private, slot]

Check the simulation process exit status.

Called when the simulation process terminates; inserts an error message in the Error Message output window in case the simulation process does not exit normally.

Parameters:
[in]exitCodeexit code of the process
[in]exitStatusexit status of the process
Todo:
use a macro for the bugs report email (needs to define it for CMake)

Definition at line 745 of file simmessage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void SimMessage::slotStateChanged ( QProcess::ProcessState  newState) [private, slot]

The process state changes.

Called when the process changes state;

Parameters:
[in]newStatenew status of the process

Definition at line 691 of file simmessage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 152 of file simmessage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void SimMessage::startSimulator ( ) [private]

SimMessage::startSimulator simulates the document in view.

Todo:
Bug:
error: unrecognized command line option '-Wl'

Only pass modules to Qucsator that are indeed used on the schematic,it might be the case that the user loaded the icons, but did not compiled the module. Qucsator will not find the library.

Check if used symbols have corresponing lib before running Qucsator? Need to search on the netlis.txt? Is there other data structure containig the netlist?

Todo:
remvoe the command line arguments? use only netlist annotation?

Anotate netlist with Verilog-A dynamic path and module names

Todo:
Bug:
error: unrecognized command line option '-Wl'

Definition at line 345 of file simmessage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

QPushButton * SimMessage::Abort

Definition at line 93 of file simmessage.h.

QVBoxLayout* SimMessage::all

Definition at line 104 of file simmessage.h.

QStringList SimMessage::Collect

Definition at line 100 of file simmessage.h.

Definition at line 87 of file simmessage.h.

Definition at line 87 of file simmessage.h.

QPushButton* SimMessage::Display

Definition at line 93 of file simmessage.h.

Definition at line 87 of file simmessage.h.

Definition at line 83 of file simmessage.h.

QPlainTextEdit * SimMessage::ErrText

Definition at line 90 of file simmessage.h.

Definition at line 99 of file simmessage.h.

Definition at line 99 of file simmessage.h.

Definition at line 101 of file simmessage.h.

QString SimMessage::Program [protected]

Definition at line 106 of file simmessage.h.

Definition at line 95 of file simmessage.h.

QPlainTextEdit* SimMessage::ProgText

Definition at line 90 of file simmessage.h.

Definition at line 87 of file simmessage.h.

Definition at line 84 of file simmessage.h.

Definition at line 92 of file simmessage.h.

Definition at line 85 of file simmessage.h.

Definition at line 97 of file simmessage.h.

Definition at line 98 of file simmessage.h.

Definition at line 89 of file simmessage.h.

QProgressBar* SimMessage::SimProgress

Definition at line 94 of file simmessage.h.

Definition at line 86 of file simmessage.h.

QTextStream SimMessage::Stream

Definition at line 102 of file simmessage.h.

Definition at line 91 of file simmessage.h.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines