Qucs-GUI
0.0.19
|
#include <simmessage.h>
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 |
Component * | SimOpt |
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. | |
Component * | findOptimization (Schematic *) |
Definition at line 41 of file simmessage.h.
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.
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.
void SimMessage::AbortSim | ( | ) | [private, slot] |
void SimMessage::displayDataPage | ( | QString & | , |
QString & | |||
) | [signal] |
Component * SimMessage::findOptimization | ( | Schematic * | Doc | ) | [private] |
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.
[in] | Status | exit status of the process (0 = normal, !=0 = error) |
Definition at line 771 of file simmessage.cpp.
void SimMessage::nextSPICE | ( | ) | [private] |
Converts a spice netlist into Qucs format and outputs it.
Definition at line 211 of file simmessage.cpp.
void SimMessage::SimulationEnded | ( | int | , |
SimMessage * | |||
) | [signal] |
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.
void SimMessage::slotCloseStdin | ( | ) | [private, slot] |
void SimMessage::slotDisplayButton | ( | ) | [private, slot] |
Definition at line 838 of file simmessage.cpp.
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.
void SimMessage::slotDisplayMsg | ( | ) | [private, slot] |
called when the process sends an output to stdout.
Definition at line 621 of file simmessage.cpp.
void SimMessage::slotFinishSpiceNetlist | ( | int | status | ) | [private, slot] |
Definition at line 315 of file simmessage.cpp.
void SimMessage::slotReadSpiceNetlist | ( | ) | [private, slot] |
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.
[in] | exitCode | exit code of the process |
[in] | exitStatus | exit status of the process |
Definition at line 745 of file simmessage.cpp.
void SimMessage::slotStateChanged | ( | QProcess::ProcessState | newState | ) | [private, slot] |
The process state changes.
Called when the process changes state;
[in] | newState | new status of the process |
Definition at line 691 of file simmessage.cpp.
bool SimMessage::startProcess | ( | ) |
Definition at line 152 of file simmessage.cpp.
void SimMessage::startSimulator | ( | ) | [private] |
SimMessage::startSimulator simulates the document in view.
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?
Anotate netlist with Verilog-A dynamic path and module names
Definition at line 345 of file simmessage.cpp.
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.
QString SimMessage::DataDisplay |
Definition at line 87 of file simmessage.h.
QString SimMessage::DataSet |
Definition at line 87 of file simmessage.h.
QPushButton* SimMessage::Display |
Definition at line 93 of file simmessage.h.
QString SimMessage::DocName |
Definition at line 87 of file simmessage.h.
QWidget* SimMessage::DocWidget |
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.
QFile SimMessage::NetlistFile |
Definition at line 101 of file simmessage.h.
QString SimMessage::Program [protected] |
Definition at line 106 of file simmessage.h.
QString SimMessage::ProgressText |
Definition at line 95 of file simmessage.h.
QPlainTextEdit* SimMessage::ProgText |
Definition at line 90 of file simmessage.h.
QString SimMessage::Script |
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.
QProcess SimMessage::SimProcess |
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.
bool SimMessage::wasLF |
Definition at line 91 of file simmessage.h.