My Project
0.0.16
QUCS Mapping
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
DownLoad
QUCS-src
qucs-0.0.16
qucs
main.h
Go to the documentation of this file.
1
/***************************************************************************
2
main.h
3
--------
4
begin : Mon May 24 2004
5
copyright : (C) 2003 by Michael Margraf
6
email : michael.margraf@alumni.tu-berlin.de
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef MAIN_H
19
#define MAIN_H
20
21
#include <qfont.h>
22
#include <qcolor.h>
23
#include <qptrlist.h>
24
#include <qstringlist.h>
25
26
#include "
wire.h
"
27
#include "
node.h
"
28
#include "
diagrams/diagram.h
"
29
30
class
QucsApp
;
31
class
Component
;
32
33
// constants may be missing on windows systems
34
#include <math.h>
35
#ifndef M_PI
36
#define M_PI 3.1415926535897932384626433832795029
37
#endif
38
39
struct
tQucsSettings
{
40
int
x
,
y
,
dx
,
dy
;
// position and size of main window
41
QFont
font
;
42
float
largeFontSize
;
43
QColor
BGColor
;
// background color of view area
44
QString
Language
;
45
46
// syntax highlighting
47
QColor
Comment
,
String
,
Integer
,
Real
,
Character
,
Type
,
48
Attribute
,
Directive
,
Task
;
49
50
unsigned
int
maxUndo
;
// size of undo stack
51
QString
Editor
;
52
QString
BinDir
;
53
QString
BitmapDir
;
54
QString
LangDir
;
55
QString
LibDir
;
56
QString
AscoDir
;
57
QString
OctaveDir
;
58
59
unsigned
int
NodeWiring
;
60
61
// registered filename extensions with program to open the file
62
QStringList
FileTypes
;
63
};
64
65
extern
tQucsSettings
QucsSettings
;
// extern because nearly everywhere used
66
extern
QFont
savingFont
;
// to remember which font to save in "qucsrc"
67
68
extern
QucsApp
*
QucsMain
;
// the Qucs application itself
69
extern
QString
lastDir
;
// to remember last directory for several dialogs
70
71
bool
saveApplSettings
(
QucsApp
*);
72
73
QString
complexRect
(
double
,
double
,
int
Precision=3);
74
QString
complexDeg
(
double
,
double
,
int
Precision=3);
75
QString
complexRad
(
double
,
double
,
int
Precision=3);
76
QString
StringNum
(
double
,
char
form=
'g'
,
int
Precision=3);
77
void
str2num
(
const
QString&,
double
&, QString&,
double
&);
78
QString
num2str
(
double
);
79
QString
StringNiceNum
(
double
);
80
void
convert2Unicode
(QString&);
81
void
convert2ASCII
(QString&);
82
QString
properName
(
const
QString&);
83
QString
properAbsFileName
(
const
QString&);
84
QString
properFileName
(
const
QString&);
85
bool
VHDL_Time
(QString&,
const
QString&);
86
bool
VHDL_Delay
(QString&,
const
QString&);
87
bool
Verilog_Time
(QString&,
const
QString&);
88
bool
Verilog_Delay
(QString&,
const
QString&);
89
QString
Verilog_Param
(
const
QString);
90
bool
checkVersion
(QString&);
91
92
#endif
Generated on Tue Dec 25 2012 14:30:43 for My Project by
1.8.2