equal
deleted
inserted
replaced
68 text += "\n" |
68 text += "\n" |
69 text += parts[section] |
69 text += parts[section] |
70 if not parts[section].endswith("\n"): |
70 if not parts[section].endswith("\n"): |
71 text += "\n" |
71 text += "\n" |
72 return text |
72 return text |
|
73 |
73 |
74 |
74 class CodeEditor(CustomStyledTextCtrl): |
75 class CodeEditor(CustomStyledTextCtrl): |
75 |
76 |
76 KEYWORDS = [] |
77 KEYWORDS = [] |
77 COMMENT_HEADER = "" |
78 COMMENT_HEADER = "" |
253 self.Controler.EndBuffering() |
254 self.Controler.EndBuffering() |
254 self.CurrentAction = None |
255 self.CurrentAction = None |
255 |
256 |
256 def GetCodeText(self): |
257 def GetCodeText(self): |
257 return GetSectionsText( |
258 return GetSectionsText( |
258 self.Controler, |
259 self.Controler, |
259 lambda section : self.SectionsComments[section]["comment"]) |
260 lambda section: self.SectionsComments[section]["comment"]) |
260 |
261 |
261 def RefreshView(self, scroll_to_highlight=False): |
262 def RefreshView(self, scroll_to_highlight=False): |
262 self.ResetBuffer() |
263 self.ResetBuffer() |
263 self.DisableEvents = True |
264 self.DisableEvents = True |
264 old_cursor_pos = self.GetCurrentPos() |
265 old_cursor_pos = self.GetCurrentPos() |
883 |
884 |
884 # ------------------------------------------------------------------------------- |
885 # ------------------------------------------------------------------------------- |
885 # CodeFileEditor Main Frame Class |
886 # CodeFileEditor Main Frame Class |
886 # ------------------------------------------------------------------------------- |
887 # ------------------------------------------------------------------------------- |
887 |
888 |
|
889 |
888 class CodeFileEditor(ConfTreeNodeEditor): |
890 class CodeFileEditor(ConfTreeNodeEditor): |
889 |
891 |
890 CONFNODEEDITOR_TABS = [] |
892 CONFNODEEDITOR_TABS = [] |
891 CODE_EDITOR = None |
893 CODE_EDITOR = None |
892 COLUMNS_TYPE = None |
894 COLUMNS_TYPE = None |