equal
deleted
inserted
replaced
39 HIGHLIGHT_LEFT, |
39 HIGHLIGHT_LEFT, |
40 HIGHLIGHT_RIGHT, |
40 HIGHLIGHT_RIGHT, |
41 HIGHLIGHT_RESIZE] = range(6) |
41 HIGHLIGHT_RESIZE] = range(6) |
42 |
42 |
43 # Viewer highlight styles |
43 # Viewer highlight styles |
44 HIGHLIGHT_DROP_PEN = wx.Pen(wx.Colour(0, 128, 255)) |
44 HIGHLIGHT_DROP_PEN = None |
45 HIGHLIGHT_DROP_BRUSH = wx.Brush(wx.Colour(0, 128, 255, 128)) |
45 HIGHLIGHT_DROP_BRUSH = None |
46 HIGHLIGHT_RESIZE_PEN = wx.Pen(wx.Colour(200, 200, 200)) |
46 HIGHLIGHT_RESIZE_PEN = None |
47 HIGHLIGHT_RESIZE_BRUSH = wx.Brush(wx.Colour(200, 200, 200)) |
47 HIGHLIGHT_RESIZE_BRUSH = None |
48 |
48 |
49 # ------------------------------------------------------------------------------- |
49 # ------------------------------------------------------------------------------- |
50 # Base Debug Variable Viewer Class |
50 # Base Debug Variable Viewer Class |
51 # ------------------------------------------------------------------------------- |
51 # ------------------------------------------------------------------------------- |
52 |
52 |
70 |
70 |
71 # Variable storing current highlight displayed in Viewer |
71 # Variable storing current highlight displayed in Viewer |
72 self.Highlight = HIGHLIGHT_NONE |
72 self.Highlight = HIGHLIGHT_NONE |
73 # List of buttons |
73 # List of buttons |
74 self.Buttons = [] |
74 self.Buttons = [] |
|
75 self.InitHighlightPensBrushes() |
75 |
76 |
76 def __del__(self): |
77 def __del__(self): |
77 """ |
78 """ |
78 Destructor |
79 Destructor |
79 """ |
80 """ |
80 # Remove reference to Debug Variable Panel |
81 # Remove reference to Debug Variable Panel |
81 self.ParentWindow = None |
82 self.ParentWindow = None |
|
83 |
|
84 def InitHighlightPensBrushes(self): |
|
85 """ |
|
86 Init global pens and brushes |
|
87 """ |
|
88 if HIGHLIGHT_DROP_PEN is None: |
|
89 HIGHLIGHT_DROP_PEN = wx.Pen(wx.Colour(0, 128, 255)) |
|
90 HIGHLIGHT_DROP_BRUSH = wx.Brush(wx.Colour(0, 128, 255, 128)) |
|
91 HIGHLIGHT_RESIZE_PEN = wx.Pen(wx.Colour(200, 200, 200)) |
|
92 HIGHLIGHT_RESIZE_BRUSH = wx.Brush(wx.Colour(200, 200, 200)) |
82 |
93 |
83 def GetIndex(self): |
94 def GetIndex(self): |
84 """ |
95 """ |
85 Return position of Viewer in Debug Variable Panel |
96 Return position of Viewer in Debug Variable Panel |
86 @return: Position of Viewer |
97 @return: Position of Viewer |