Xorn
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
ref.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.ref
21 ## Referenced symbols and pixmaps.
22 
23 class Symbol:
24  def __init__(self, basename, prim_objs, embedded):
25  ## Last part of the symbol filename.
26  self.basename = basename
27  ## Revision object containing the symbol data.
28  self.prim_objs = prim_objs
29  ## Whether the symbol is embedded.
30  self.embedded = embedded
31 
32 class Pixmap:
33  def __init__(self, filename, data, embedded):
34  ## Path and filename of the pixmap.
35  #
36  # Not used if the picture is embedded.
37  self.filename = filename
38  ## String object containing the pixmap data.
39  self.data = data
40  ## Whether the pixmap is embedded.
41  self.embedded = embedded
basename
Last part of the symbol filename.
Definition: ref.py:26
embedded
Whether the symbol is embedded.
Definition: ref.py:30
filename
Path and filename of the pixmap.
Definition: ref.py:37
embedded
Whether the pixmap is embedded.
Definition: ref.py:41
data
String object containing the pixmap data.
Definition: ref.py:39
prim_objs
Revision object containing the symbol data.
Definition: ref.py:28