Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/constants.py
blob: 70025c36b1ad6212010ce13c9b008ddfcb6548a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- coding: utf-8 -*-
#Copyright (c) 2009, Walter Bender

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.

OFFSET = 50
SWIDTH = 2400
SHEIGHT = 60
SCALE = SWIDTH - 2 * OFFSET
TABWIDTH = 100
SCREENOFFSET = 50

HTOP1 = 38
HTOP2 = 59
HTOP3 = 35

LEFT = 0
RIGHT = 1
TOP = 0
BOTTOM = 1

SLIDE = 0
STATOR = 1

CUSTOM = {'C': ['log(x, 10)', 'x', 'pow(10, x)', 'x', '1', '10', '1'],
          'D': ['log(x, 10)', 'x', 'pow(10, x)', 'x', '1', '10', '1'],
          'CI': ['log(10/x, 10)', 'x', '10/pow(10, x)', 'x', '1', '10', '1'],
          'DI': ['log(10/x, 10)', 'x', '10/pow(10, x)', 'x', '1', '10', '1'],
          'L': ['x/10', 'x', 'x*10', 'x', '0', '10', '0.5'],
          'L2': ['x/10', 'x', 'x*10', 'x', '0', '10', '0.5'],
          'A': ['log(x, 10)/2', 'x', 'pow(10, x*2)', 'x', '1', '100', '9'],
          'A2': ['log(x, 10)/2', 'x', 'pow(10, x*2)', 'x', '1', '100', '9'],
          'K': ['log(x, 10)/3', 'x', 'pow(10, x*3)', 'x', '1', '1000', '99'],
          'K2': ['log(x, 10)/3', 'x', 'pow(10, x*3)', 'x', '1', '1000', '99'],
          'Log': ['log(x, 10)', 'log(x, 10)', 'log(pow(10, x), 10)', 'x',
                  '1', '10', '1'],
          'Log2': ['log(x, 10)', 'log(x, 10)', 'log(pow(10, x), 10)', 'x',
                  '1', '10', '1']}