equal
deleted
inserted
replaced
35 from editors.ConfTreeNodeEditor import ConfTreeNodeEditor |
35 from editors.ConfTreeNodeEditor import ConfTreeNodeEditor |
36 from util.BitmapLibrary import GetBitmap |
36 from util.BitmapLibrary import GetBitmap |
37 from controls.CustomStyledTextCtrl import CustomStyledTextCtrl, faces, GetCursorPos, NAVIGATION_KEYS |
37 from controls.CustomStyledTextCtrl import CustomStyledTextCtrl, faces, GetCursorPos, NAVIGATION_KEYS |
38 from controls.VariablePanel import VARIABLE_NAME_SUFFIX_MODEL |
38 from controls.VariablePanel import VARIABLE_NAME_SUFFIX_MODEL |
39 from graphics.GraphicCommons import ERROR_HIGHLIGHT, SEARCH_RESULT_HIGHLIGHT, REFRESH_HIGHLIGHT_PERIOD |
39 from graphics.GraphicCommons import ERROR_HIGHLIGHT, SEARCH_RESULT_HIGHLIGHT, REFRESH_HIGHLIGHT_PERIOD |
|
40 from util.TranslationCatalogs import NoTranslate |
40 |
41 |
41 [STC_CODE_ERROR, STC_CODE_SEARCH_RESULT, |
42 [STC_CODE_ERROR, STC_CODE_SEARCH_RESULT, |
42 STC_CODE_SECTION] = range(15, 18) |
43 STC_CODE_SECTION] = range(15, 18) |
43 |
44 |
44 HIGHLIGHT_TYPES = { |
45 HIGHLIGHT_TYPES = { |
738 self.VariablesGrid.SetColAttr(col, attr) |
739 self.VariablesGrid.SetColAttr(col, attr) |
739 self.VariablesGrid.SetColSize(col, self.ColSizes[col]) |
740 self.VariablesGrid.SetColSize(col, self.ColSizes[col]) |
740 self.Table.ResetView(self.VariablesGrid) |
741 self.Table.ResetView(self.VariablesGrid) |
741 |
742 |
742 def GetVariableTableColnames(self): |
743 def GetVariableTableColnames(self): |
743 _ = lambda x: x |
744 _ = NoTranslate |
744 return ["#", _("Name"), _("Type"), _("Initial"), _("Description"), _("OnChange"), _("Options")] |
745 return ["#", _("Name"), _("Type"), _("Initial"), _("Description"), _("OnChange"), _("Options")] |
745 |
746 |
746 def RefreshModel(self): |
747 def RefreshModel(self): |
747 self.Controler.SetVariables(self.Table.GetData()) |
748 self.Controler.SetVariables(self.Table.GetData()) |
748 self.RefreshBuffer() |
749 self.RefreshBuffer() |