controls/DebugVariablePanel/DebugVariableGraphicViewer.py
changeset 1736 7e61baa047f0
parent 1734 750eeb7230a1
child 1737 a39c2918c015
equal deleted inserted replaced
1735:c02818d7e29f 1736:7e61baa047f0
    65 
    65 
    66 #-------------------------------------------------------------------------------
    66 #-------------------------------------------------------------------------------
    67 #                      Debug Variable Graphic Viewer Helpers
    67 #                      Debug Variable Graphic Viewer Helpers
    68 #-------------------------------------------------------------------------------
    68 #-------------------------------------------------------------------------------
    69 
    69 
       
    70 
    70 def merge_ranges(ranges):
    71 def merge_ranges(ranges):
    71     """
    72     """
    72     Merge variables data range in a list to return a range of minimal min range
    73     Merge variables data range in a list to return a range of minimal min range
    73     value and maximal max range value extended of 10% for keeping a padding
    74     value and maximal max range value extended of 10% for keeping a padding
    74     around graph in canvas
    75     around graph in canvas
   105 
   106 
   106 #-------------------------------------------------------------------------------
   107 #-------------------------------------------------------------------------------
   107 #                   Debug Variable Graphic Viewer Drop Target
   108 #                   Debug Variable Graphic Viewer Drop Target
   108 #-------------------------------------------------------------------------------
   109 #-------------------------------------------------------------------------------
   109 
   110 
   110 """
       
   111 Class that implements a custom drop target class for Debug Variable Graphic
       
   112 Viewer
       
   113 """
       
   114 
   111 
   115 class DebugVariableGraphicDropTarget(wx.TextDropTarget):
   112 class DebugVariableGraphicDropTarget(wx.TextDropTarget):
       
   113     """
       
   114     Class that implements a custom drop target class for Debug Variable Graphic
       
   115     Viewer
       
   116     """
   116 
   117 
   117     def __init__(self, parent, window):
   118     def __init__(self, parent, window):
   118         """
   119         """
   119         Constructor
   120         Constructor
   120         @param parent: Reference to Debug Variable Graphic Viewer
   121         @param parent: Reference to Debug Variable Graphic Viewer
   236 
   237 
   237 #-------------------------------------------------------------------------------
   238 #-------------------------------------------------------------------------------
   238 #                      Debug Variable Graphic Viewer Class
   239 #                      Debug Variable Graphic Viewer Class
   239 #-------------------------------------------------------------------------------
   240 #-------------------------------------------------------------------------------
   240 
   241 
   241 """
       
   242 Class that implements a Viewer that display variable values as a graphs
       
   243 """
       
   244 
   242 
   245 class DebugVariableGraphicViewer(DebugVariableViewer, FigureCanvas):
   243 class DebugVariableGraphicViewer(DebugVariableViewer, FigureCanvas):
       
   244     """
       
   245     Class that implements a Viewer that display variable values as a graphs
       
   246     """
   246 
   247 
   247     def __init__(self, parent, window, items, graph_type):
   248     def __init__(self, parent, window, items, graph_type):
   248         """
   249         """
   249         Constructor
   250         Constructor
   250         @param parent: Parent wx.Window of DebugVariableText
   251         @param parent: Parent wx.Window of DebugVariableText