Merged r9481:9518 on jblum/grc_reorganize into trunk. Reorganized grc source under...
[debian/gnuradio] / grc / src / platforms / gui / Constants.py
1 #
2 # Copyright 2008 Free Software Foundation, Inc.
3 #
4 # This file is part of GNU Radio
5 #
6 # GNU Radio 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 3, or (at your option)
9 # any later version.
10 #
11 # GNU Radio 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 GNU Radio; see the file COPYING.  If not, write to
18 # the Free Software Foundation, Inc., 51 Franklin Street,
19 # Boston, MA 02110-1301, USA.
20 #
21
22 #label constraint dimensions
23 LABEL_SEPARATION = 3
24 LABEL_PADDING_WIDTH = 9
25 LABEL_PADDING_HEIGHT = 9
26 #port constraint dimensions
27 PORT_SEPARATION = 17
28 PORT_HEIGHT = 15
29 PORT_WIDTH = 25
30 PORT_BORDER_SEPARATION = 9
31 #fonts
32 PARAM_LABEL_FONT = 'Sans 9.5'
33 PARAM_FONT = 'Sans 7.5'
34 BLOCK_FONT = 'Sans 8'
35 PORT_FONT = 'Sans 7.5'
36 #minimal length of connector
37 CONNECTOR_EXTENSION_MINIMAL = 11
38 #increment length for connector
39 CONNECTOR_EXTENSION_INCREMENT = 11
40 #connection arrow dimensions
41 CONNECTOR_ARROW_BASE = 13
42 CONNECTOR_ARROW_HEIGHT = 17
43 #possible rotations in degrees
44 POSSIBLE_ROTATIONS = (0, 90, 180, 270)