Qucs-GUI
0.0.18
|
Implementation of the main application. More...
#include <QtGui>
#include <stdlib.h>
#include <ctype.h>
#include <math.h>
#include <locale.h>
#include <QApplication>
#include <QString>
#include <QStringList>
#include <QTextCodec>
#include <QTranslator>
#include <QFile>
#include <QMessageBox>
#include <QRegExp>
#include "qucs.h"
#include "main.h"
#include "node.h"
#include "schematic.h"
#include "module.h"
Go to the source code of this file.
Functions | |
bool | loadSettings () |
bool | saveApplSettings (QucsApp *qucs) |
void | qucsMessageOutput (QtMsgType type, const char *msg) |
qucsMessageOutput handles qDebug, qWarning, qCritical, qFatal. More... | |
QString | complexRect (double real, double imag, int Precision) |
QString | complexDeg (double real, double imag, int Precision) |
QString | complexRad (double real, double imag, int Precision) |
QString | StringNum (double num, char form, int Precision) |
QString | StringNiceNum (double num) |
void | str2num (const QString &s_, double &Number, QString &Unit, double &Factor) |
QString | num2str (double Num) |
void | convert2Unicode (QString &Text) |
void | convert2ASCII (QString &Text) |
QString | properAbsFileName (const QString &Name) |
QString | properFileName (const QString &Name) |
QString | properName (const QString &Name) |
bool | VHDL_Delay (QString &td, const QString &Name) |
bool | VHDL_Time (QString &t, const QString &Name) |
QString | Verilog_Param (const QString Value) |
bool | Verilog_Delay (QString &td, const QString &Name) |
bool | Verilog_Time (QString &t, const QString &Name) |
bool | checkVersion (QString &Line) |
int | doNetlist (QString schematic, QString netlist) |
int | main (int argc, char *argv[]) |
Variables | |
tQucsSettings | QucsSettings |
QucsApp * | QucsMain = 0 |
QString | lastDir |
QStringList | qucsPathList |
Implementation of the main application.
Definition in file main.cpp.
QString complexDeg | ( | double | real, |
double | imag, | ||
int | Precision | ||
) |
QString complexRad | ( | double | real, |
double | imag, | ||
int | Precision | ||
) |
QString complexRect | ( | double | real, |
double | imag, | ||
int | Precision | ||
) |
void qucsMessageOutput | ( | QtMsgType | type, |
const char * | msg | ||
) |
qucsMessageOutput handles qDebug, qWarning, qCritical, qFatal.
type | Message type (Qt enum) |
msg | Message |
The message handler is used to get control of the messages. Particulary on Windows, as the messages are sent to the debugger and do not show on the terminal. The handler could aslo be extended to create a log mechanism. http://qt-project.org/doc/qt-4.8/debug.html#warning-and-debugging-messages http://qt-project.org/doc/qt-4.8/qtglobal.html#qInstallMsgHandler
void str2num | ( | const QString & | s_, |
double & | Number, | ||
QString & | Unit, | ||
double & | Factor | ||
) |
tQucsSettings QucsSettings |