graphics/GraphicCommons.py
changeset 28 fc23e1f415d8
parent 27 dae55dd9ee14
child 42 4a8400732001
--- a/graphics/GraphicCommons.py	Mon Jul 09 11:10:14 2007 +0200
+++ b/graphics/GraphicCommons.py	Tue Jul 10 09:52:53 2007 +0200
@@ -36,30 +36,30 @@
 """
 
 # FBD and SFC constants
-MIN_MOVE = 5            # Minimum move before starting a element dragging
-CONNECTOR_SIZE = 8      # Size of connectors
-BLOCK_LINE_SIZE = 20    # Minimum size of each line in a block
-HANDLE_SIZE = 6         # Size of the squares for handles
-ANCHOR_DISTANCE = 5     # Distance where wire is automativally attached to a connector
-POINT_RADIUS = 2        # Radius of the point of wire ends
-MIN_SEGMENT_SIZE = 2    # Minimum size of the endling segments of a wire
+MIN_MOVE = 5                            # Minimum move before starting a element dragging
+CONNECTOR_SIZE = 8                      # Size of connectors
+BLOCK_LINE_SIZE = 20                    # Minimum size of each line in a block
+HANDLE_SIZE = 6                         # Size of the squares for handles
+ANCHOR_DISTANCE = 5                     # Distance where wire is automativally attached to a connector
+POINT_RADIUS = 2                        # Radius of the point of wire ends
+MIN_SEGMENT_SIZE = 2                    # Minimum size of the endling segments of a wire
 
 # LD constants
-LD_LINE_SIZE = 40                   # Distance between two lines in a ladder rung
-LD_ELEMENT_SIZE = (21, 15)          # Size (width, height) of a ladder element (contact or coil)
-LD_WIRE_SIZE = 30                   # Size of a wire between two contact
-LD_WIRECOIL_SIZE = 70               # Size of a wire between a coil and a contact
-LD_OFFSET = (10, 10)                # Distance (x, y) between each comment and rung of the ladder
-LD_COMMENT_DEFAULTSIZE = (600, 40)  # Size (width, height) of a comment box
+LD_LINE_SIZE = 40                       # Distance between two lines in a ladder rung
+LD_ELEMENT_SIZE = (21, 15)              # Size (width, height) of a ladder element (contact or coil)
+LD_WIRE_SIZE = 30                       # Size of a wire between two contact
+LD_WIRECOIL_SIZE = 70                   # Size of a wire between a coil and a contact
+LD_OFFSET = (10, 10)                    # Distance (x, y) between each comment and rung of the ladder
+LD_COMMENT_DEFAULTSIZE = (600, 40)      # Size (width, height) of a comment box
 
 # SFC constants
-SFC_STEP_DEFAULT_SIZE = (40, 30)      # Default size of a SFC step
-SFC_TRANSITION_SIZE = (20, 2)         # Size of a SFC transition
-SFC_DEFAULT_SEQUENCE_INTERVAL = 40    # Default size of the interval between two divergence branches
-SFC_SIMULTANEOUS_SEQUENCE_EXTRA = 20  # Size of extra lines for simultaneous divergence and convergence
-SFC_JUMP_SIZE = (12, 13)              # Size of a SFC jump to step
-SFC_WIRE_MIN_SIZE = 25                # Size of a wire between two elements
-SFC_ACTION_MIN_SIZE = (100, 30)       # Minimum size of an action block line
+SFC_STEP_DEFAULT_SIZE = (40, 30)        # Default size of a SFC step
+SFC_TRANSITION_SIZE = (20, 2)           # Size of a SFC transition
+SFC_DEFAULT_SEQUENCE_INTERVAL = 40      # Default size of the interval between two divergence branches
+SFC_SIMULTANEOUS_SEQUENCE_EXTRA = 20    # Size of extra lines for simultaneous divergence and convergence
+SFC_JUMP_SIZE = (12, 13)                # Size of a SFC jump to step
+SFC_WIRE_MIN_SIZE = 25                  # Size of a wire between two elements
+SFC_ACTION_MIN_SIZE = (100, 30)         # Minimum size of an action block line
 
 # Type definition constants for graphic elements
 [INPUT, OUTPUT, INOUT] = range(3)