79 filesOpen = args |
79 filesOpen = args |
80 |
80 |
81 ColSizes = [75, 250, 150, 125, 100, 60, 250] |
81 ColSizes = [75, 250, 150, 125, 100, 60, 250] |
82 ColAlignements = [wxALIGN_CENTER, wxALIGN_LEFT, wxALIGN_CENTER, wxALIGN_RIGHT, wxALIGN_CENTER, wxALIGN_CENTER, wxALIGN_LEFT] |
82 ColAlignements = [wxALIGN_CENTER, wxALIGN_LEFT, wxALIGN_CENTER, wxALIGN_RIGHT, wxALIGN_CENTER, wxALIGN_CENTER, wxALIGN_LEFT] |
83 AccessList = "Read Only,Write Only,Read/Write" |
83 AccessList = "Read Only,Write Only,Read/Write" |
|
84 RAccessList = "Read Only,Read/Write" |
84 BoolList = "True,False" |
85 BoolList = "True,False" |
85 OptionList = "Yes,No" |
86 OptionList = "Yes,No" |
86 |
87 |
87 DictionaryOrganisation = [ |
88 DictionaryOrganisation = [ |
88 {"minIndex" : 0x0001, "maxIndex" : 0x0FFF, "name" : "Data Type Definitions"}, |
89 {"minIndex" : 0x0001, "maxIndex" : 0x0FFF, "name" : "Data Type Definitions"}, |
228 editor = wxGridCellChoiceEditor() |
229 editor = wxGridCellChoiceEditor() |
229 editor.SetParameters(BoolList) |
230 editor.SetParameters(BoolList) |
230 elif editortype == "access": |
231 elif editortype == "access": |
231 editor = wxGridCellChoiceEditor() |
232 editor = wxGridCellChoiceEditor() |
232 editor.SetParameters(AccessList) |
233 editor.SetParameters(AccessList) |
|
234 elif editortype == "raccess": |
|
235 editor = wxGridCellChoiceEditor() |
|
236 editor.SetParameters(RAccessList) |
233 elif editortype == "option": |
237 elif editortype == "option": |
234 editor = wxGridCellChoiceEditor() |
238 editor = wxGridCellChoiceEditor() |
235 editor.SetParameters(OptionList) |
239 editor.SetParameters(OptionList) |
236 elif editortype == "type": |
240 elif editortype == "type": |
237 editor = wxGridCellChoiceEditor() |
241 editor = wxGridCellChoiceEditor() |
238 editor.SetParameters(self.Parent.Manager.GetCurrentTypeList()) |
242 editor.SetParameters(self.Parent.Manager.GetCurrentTypeList()) |
239 elif editortype == "map": |
243 elif editortype == "map": |
240 editor = wxGridCellChoiceEditor() |
244 editor = wxGridCellChoiceEditor() |
241 editor.SetParameters(self.Parent.Manager.GetCurrentMapList()) |
245 editor.SetParameters(self.Parent.Manager.GetCurrentMapList()) |
|
246 elif editortype == "time": |
|
247 editor = wxGridCellTextEditor() |
|
248 renderer = wxGridCellStringRenderer() |
242 else: |
249 else: |
243 grid.SetReadOnly(row, col, True) |
250 grid.SetReadOnly(row, col, True) |
244 |
251 |
245 grid.SetCellEditor(row, col, editor) |
252 grid.SetCellEditor(row, col, editor) |
246 grid.SetCellRenderer(row, col, renderer) |
253 grid.SetCellRenderer(row, col, renderer) |