Qucs-GUI
0.0.19
|
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"
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. | |
Schematic * | openSchematic (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 |
QucsApp * | QucsMain = 0 |
QString | lastDir |
QStringList | qucsPathList |
Implementation of the main application.
Definition in file main.cpp.
#define executableSuffix "" |
void createDocData | ( | ) |
createDocData Create data used for documentation.
It creates the following:
Definition at line 474 of file main.cpp.
void createIcons | ( | ) |
void createListComponentEntry | ( | ) |
int doNetlist | ( | QString | schematic, |
QString | netlist | ||
) |
int doPrint | ( | QString | schematic, |
QString | printFile, | ||
QString | page, | ||
int | dpi, | ||
QString | color, | ||
QString | orientation | ||
) |
bool loadSettings | ( | ) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Schematic* openSchematic | ( | QString | schematic | ) |
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>
Definition at line 214 of file main.cpp.
bool saveApplSettings | ( | ) |
QStringList qucsPathList |