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

Definitions and declarations for the main application. More...

#include <QFont>
#include <QColor>
#include <Q3PtrList>
#include <QStringList>
#include "wire.h"
#include "node.h"
#include "diagrams/diagram.h"
#include <QSettings>
#include <math.h>

Go to the source code of this file.

Data Structures

struct  tQucsSettings
 

Macros

#define M_PI   3.1415926535897932384626433832795029
 

Functions

bool loadSettings ()
 
bool saveApplSettings (QucsApp *)
 
void qucsMessageOutput (QtMsgType type, const char *msg)
 qucsMessageOutput handles qDebug, qWarning, qCritical, qFatal. More...
 
QString complexRect (double, double, int Precision=3)
 
QString complexDeg (double, double, int Precision=3)
 
QString complexRad (double, double, int Precision=3)
 
QString StringNum (double, char form='g', int Precision=3)
 
void str2num (const QString &, double &, QString &, double &)
 
QString num2str (double)
 
QString StringNiceNum (double)
 
void convert2Unicode (QString &)
 
void convert2ASCII (QString &)
 
QString properName (const QString &)
 
QString properAbsFileName (const QString &)
 
QString properFileName (const QString &)
 
bool VHDL_Time (QString &, const QString &)
 
bool VHDL_Delay (QString &, const QString &)
 
bool Verilog_Time (QString &, const QString &)
 
bool Verilog_Delay (QString &, const QString &)
 
QString Verilog_Param (const QString)
 
bool checkVersion (QString &)
 

Variables

tQucsSettings QucsSettings
 
QucsAppQucsMain
 
QString lastDir
 
QStringList qucsPathList
 

Detailed Description

Definitions and declarations for the main application.

Definition in file main.h.

Macro Definition Documentation

#define M_PI   3.1415926535897932384626433832795029

Definition at line 41 of file main.h.

Function Documentation

bool checkVersion ( QString &  )

Definition at line 602 of file main.cpp.

QString complexDeg ( double  ,
double  ,
int  Precision = 3 
)

Definition at line 240 of file main.cpp.

QString complexRad ( double  ,
double  ,
int  Precision = 3 
)

Definition at line 251 of file main.cpp.

QString complexRect ( double  ,
double  ,
int  Precision = 3 
)

Definition at line 224 of file main.cpp.

void convert2ASCII ( QString &  )

Definition at line 433 of file main.cpp.

void convert2Unicode ( QString &  )

Definition at line 416 of file main.cpp.

bool loadSettings ( )

Definition at line 60 of file main.cpp.

QString num2str ( double  )

Definition at line 384 of file main.cpp.

QString properAbsFileName ( const QString &  )

Definition at line 452 of file main.cpp.

QString properFileName ( const QString &  )

Definition at line 468 of file main.cpp.

QString properName ( const QString &  )

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 )

Definition at line 127 of file main.cpp.

void str2num ( const QString &  ,
double &  ,
QString &  ,
double &   
)

Definition at line 328 of file main.cpp.

QString StringNiceNum ( double  )

Definition at line 293 of file main.cpp.

QString StringNum ( double  ,
char  form = 'g',
int  Precision = 3 
)

Definition at line 263 of file main.cpp.

bool Verilog_Delay ( QString &  ,
const QString &   
)

Definition at line 555 of file main.cpp.

QString Verilog_Param ( const QString  )

Definition at line 540 of file main.cpp.

bool Verilog_Time ( QString &  ,
const QString &   
)

Definition at line 575 of file main.cpp.

bool VHDL_Delay ( QString &  ,
const QString &   
)

Definition at line 493 of file main.cpp.

bool VHDL_Time ( QString &  ,
const QString &   
)

Definition at line 513 of file main.cpp.

Variable Documentation

QString lastDir

Definition at line 55 of file main.cpp.

QucsApp* QucsMain

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.