Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
main.cpp File Reference

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
 
QucsAppQucsMain = 0
 
QString lastDir
 
QStringList qucsPathList
 

Detailed Description

Implementation of the main application.

Definition in file main.cpp.

Function Documentation

bool checkVersion ( QString &  Line)

Definition at line 602 of file main.cpp.

QString complexDeg ( double  real,
double  imag,
int  Precision 
)

Definition at line 240 of file main.cpp.

QString complexRad ( double  real,
double  imag,
int  Precision 
)

Definition at line 251 of file main.cpp.

QString complexRect ( double  real,
double  imag,
int  Precision 
)

Definition at line 224 of file main.cpp.

void convert2ASCII ( QString &  Text)

Definition at line 433 of file main.cpp.

void convert2Unicode ( QString &  Text)

Definition at line 416 of file main.cpp.

int doNetlist ( QString  schematic,
QString  netlist 
)

Definition at line 620 of file main.cpp.

bool loadSettings ( )

Definition at line 60 of file main.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 698 of file main.cpp.

QString num2str ( double  Num)

Definition at line 384 of file main.cpp.

QString properAbsFileName ( const QString &  Name)

Definition at line 452 of file main.cpp.

QString properFileName ( const QString &  Name)

Definition at line 468 of file main.cpp.

QString properName ( const QString &  Name)

Definition at line 476 of file main.cpp.

void qucsMessageOutput ( QtMsgType  type,
const char *  msg 
)

qucsMessageOutput handles qDebug, qWarning, qCritical, qFatal.

Parameters
typeMessage type (Qt enum)
msgMessage

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

Definition at line 193 of file main.cpp.

bool saveApplSettings ( QucsApp qucs)

Definition at line 127 of file main.cpp.

void str2num ( const QString &  s_,
double &  Number,
QString &  Unit,
double &  Factor 
)

Definition at line 328 of file main.cpp.

QString StringNiceNum ( double  num)

Definition at line 293 of file main.cpp.

QString StringNum ( double  num,
char  form,
int  Precision 
)

Definition at line 263 of file main.cpp.

bool Verilog_Delay ( QString &  td,
const QString &  Name 
)

Definition at line 555 of file main.cpp.

QString Verilog_Param ( const QString  Value)

Definition at line 540 of file main.cpp.

bool Verilog_Time ( QString &  t,
const QString &  Name 
)

Definition at line 575 of file main.cpp.

bool VHDL_Delay ( QString &  td,
const QString &  Name 
)

Definition at line 493 of file main.cpp.

bool VHDL_Time ( QString &  t,
const QString &  Name 
)

Definition at line 513 of file main.cpp.

Variable Documentation

QString lastDir

Definition at line 55 of file main.cpp.

QucsApp* QucsMain = 0

Definition at line 54 of file main.cpp.

QStringList qucsPathList

Definition at line 56 of file main.cpp.

tQucsSettings QucsSettings

Definition at line 52 of file main.cpp.