Xorn
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Pages
doc
api
xorn
geda
plainformat.py
Go to the documentation of this file.
1
# xorn.geda - Python library for manipulating gEDA files
2
# Copyright (C) 1998-2010 Ales Hvezda
3
# Copyright (C) 1998-2010 gEDA Contributors (see ChangeLog for details)
4
# Copyright (C) 2013-2016 Roland Lutz
5
#
6
# This program is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; either version 2 of the License, or
9
# (at your option) any later version.
10
#
11
# This program is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
# GNU General Public License for more details.
15
#
16
# You should have received a copy of the GNU General Public License
17
# along with this program; if not, write to the Free Software Foundation,
18
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
20
## \namespace xorn.geda.plainformat
21
## %gEDA schematic/symbol file format constants
22
23
# release version which had file format changes
24
# New file format changes after 20030921 use the above version
25
# and not these #defines anymore.
26
VERSION_20000220 = 20000220
27
VERSION_20000704 = 20000704
28
VERSION_20020825 = 20020825
29
VERSION_20030921 = 20030921
30
# 20030921 wasn't a real version, just a MinGW test version, but it is
31
# out there
32
33
# Object types
34
OBJ_LINE =
'L'
35
OBJ_PATH =
'H'
36
OBJ_BOX =
'B'
37
OBJ_PICTURE =
'G'
38
OBJ_CIRCLE =
'V'
39
OBJ_NET =
'N'
40
OBJ_BUS =
'
U'
41
OBJ_COMPLEX =
'C'
42
OBJ_TEXT =
'T'
43
OBJ_PIN =
'P'
44
OBJ_ARC =
'A'
45
# OBJ_PLACEHOLDER = 'X'
46
# can't occur in files
47
48
STARTATTACH_ATTR =
'{'
49
ENDATTACH_ATTR =
'}'
50
START_EMBEDDED =
'['
51
END_EMBEDDED =
']'
52
53
# font stuff
54
INFO_FONT =
'F'
55
VERSION_CHAR =
'v'
56
57
# misc stuff
58
COMMENT =
'#'
59
60
# for color mechanism used in gschem
61
MAX_COLORS = 25
62
DEFAULT_COLOR = 3
63
64
# for text alignment
65
# 2 -- 5 -- 8
66
# | | |
67
# 1 -- 4 -- 7
68
# | | |
69
# 0 -- 3 -- 6
70
LOWER_LEFT = 0
71
MIDDLE_LEFT = 1
72
UPPER_LEFT = 2
73
LOWER_MIDDLE = 3
74
MIDDLE_MIDDLE = 4
75
UPPER_MIDDLE = 5
76
LOWER_RIGHT = 6
77
MIDDLE_RIGHT = 7
78
UPPER_RIGHT = 8
Generated on Sun Jul 17 2016 16:06:49 for Xorn by
1.8.8