Qucs-GUI  0.0.19
Defines | Functions | Variables
/home/travis/build/Qucs/qucs/qucs/qucs/main.cpp File Reference

Implementation of the main application. More...

#include <stdlib.h>
#include <ctype.h>
#include <locale.h>
#include <QApplication>
#include <QString>
#include <QStringList>
#include <QTextCodec>
#include <QTranslator>
#include <QFile>
#include <QMessageBox>
#include <QRegExp>
#include <QtSvg>
#include "qucs.h"
#include "main.h"
#include "node.h"
#include "printerwriter.h"
#include "imagewriter.h"
#include "schematic.h"
#include "module.h"
#include "components/components.h"
Include dependency graph for main.cpp:

Go to the source code of this file.

Defines

#define executableSuffix   ""

Functions

bool loadSettings ()
bool saveApplSettings ()
void qucsMessageOutput (QtMsgType type, const char *msg)
 qucsMessageOutput handles qDebug, qWarning, qCritical, qFatal.
SchematicopenSchematic (QString schematic)
int doNetlist (QString schematic, QString netlist)
int doPrint (QString schematic, QString printFile, QString page, int dpi, QString color, QString orientation)
void createIcons ()
 createIcons Create component icons (png) from command line.
void createDocData ()
 createDocData Create data used for documentation.
void createListComponentEntry ()
 createListNetEntry prints to stdout the available netlist formats
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.


Define Documentation

#define executableSuffix   ""

Definition at line 58 of file main.cpp.


Function Documentation

void createDocData ( )

createDocData Create data used for documentation.

It creates the following:

  • list of categories: categories.txt
  • category directory, ex.: ./lumped components/
    • CSV with component data fields. Ex [component#]_data.csv
    • CSV with component properties. Ex [component#]_props.csv

Definition at line 474 of file main.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void createIcons ( )

createIcons Create component icons (png) from command line.

Definition at line 353 of file main.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

createListNetEntry prints to stdout the available netlist formats

Prints the default component entries format for:

  • Qucs schematic
  • Qucsator netlist

Definition at line 583 of file main.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int doNetlist ( QString  schematic,
QString  netlist 
)
Todo:
better handling for error/warnings

Definition at line 264 of file main.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int doPrint ( QString  schematic,
QString  printFile,
QString  page,
int  dpi,
QString  color,
QString  orientation 
)

Definition at line 320 of file main.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool loadSettings ( )

Definition at line 69 of file main.cpp.

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)
Todo:
Make the setting up of all executables below more consistent

Definition at line 632 of file main.cpp.

Here is the call graph for this function:

Schematic* openSchematic ( QString  schematic)

Definition at line 236 of file main.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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 214 of file main.cpp.

Here is the caller graph for this function:

bool saveApplSettings ( )

Definition at line 145 of file main.cpp.

Here is the caller graph for this function:


Variable Documentation

QString lastDir

Definition at line 64 of file main.cpp.

Definition at line 63 of file main.cpp.

QStringList qucsPathList

Definition at line 65 of file main.cpp.

Definition at line 61 of file main.cpp.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines