1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
.. _editor-factories-for-predefined-traits:
===================================================
Appendix II: Editor Factories for Predefined Traits
===================================================
Predefined traits that are not listed in this table use TextEditor() by default,
and have no other appropriate editor factories.
+-------------+----------------------------+-----------------------------------+
|Trait |Default Editor Factory |Other Possible Editor Factories |
+=============+============================+===================================+
|Any |TextEditor |EnumEditor, ImageEnumEditor, |
| | |ValueEditor |
+-------------+----------------------------+-----------------------------------+
|Array |ArrayEditor (for 2-D arrays)| |
+-------------+----------------------------+-----------------------------------+
|Bool |BooleanEditor |ThemedCheckboxEditor |
+-------------+----------------------------+-----------------------------------+
|Button |ButtonEditor | |
+-------------+----------------------------+-----------------------------------+
|CArray |ArrayEditor (for 2-D arrays)| |
+-------------+----------------------------+-----------------------------------+
|CBool |BooleanEditor | |
+-------------+----------------------------+-----------------------------------+
|CComplex |TextEditor | |
+-------------+----------------------------+-----------------------------------+
|CFloat, CInt,|TextEditor |LEDEditor |
|CLong | | |
+-------------+----------------------------+-----------------------------------+
|Code |CodeEditor | |
+-------------+----------------------------+-----------------------------------+
|Color |ColorEditor | |
+-------------+----------------------------+-----------------------------------+
|Complex |TextEditor | |
+-------------+----------------------------+-----------------------------------+
|CStr, |TextEditor (multi_line=True)|CodeEditor, HTMLEditor |
|CUnicode | | |
+-------------+----------------------------+-----------------------------------+
|Dict |TextEditor |ValueEditor |
+-------------+----------------------------+-----------------------------------+
|Directory |DirectoryEditor | |
+-------------+----------------------------+-----------------------------------+
|Enum |EnumEditor |ImageEnumEditor |
+-------------+----------------------------+-----------------------------------+
|Event |(none) |ButtonEditor, ToolbarButtonEditor |
+-------------+----------------------------+-----------------------------------+
|File |FileEditor |AnimatedGIFEditor |
+-------------+----------------------------+-----------------------------------+
|Float |TextEditor |LEDEditor |
+-------------+----------------------------+-----------------------------------+
|Font |FontEditor | |
+-------------+----------------------------+-----------------------------------+
|HTML |HTMLEditor | |
+-------------+----------------------------+-----------------------------------+
|Instance |InstanceEditor |TreeEditor, DropEditor, DNDEditor, |
| | |ValueEditor |
+-------------+----------------------------+-----------------------------------+
|List |TableEditor for lists of |CSVListEditor, CheckListEditor, |
| |HasTraits objects; |SetEditor, ValueEditor, |
| |ListEditor for all other |ThemedVerticalNotebookEditor |
| |lists. | |
+-------------+----------------------------+-----------------------------------+
|Long |TextEditor |LEDEditor |
+-------------+----------------------------+-----------------------------------+
|Password |TextEditor(password=True) | |
+-------------+----------------------------+-----------------------------------+
|PythonValue |ShellEditor | |
+-------------+----------------------------+-----------------------------------+
|Range |RangeEditor |ThemedSliderEditor |
+-------------+----------------------------+-----------------------------------+
|Regex |TextEditor |CodeEditor |
+-------------+----------------------------+-----------------------------------+
|RGBColor |RGBColorEditor | |
+-------------+----------------------------+-----------------------------------+
|Str |TextEditor(multi_line=True) |CodeEditor, HTMLEditor |
+-------------+----------------------------+-----------------------------------+
|String |TextEditor |CodeEditor, ThemedTextEditor |
+-------------+----------------------------+-----------------------------------+
|This |InstanceEditor | |
+-------------+----------------------------+-----------------------------------+
|ToolbarButton|ButtonEditor | |
+-------------+----------------------------+-----------------------------------+
|Tuple |TupleEditor | |
+-------------+----------------------------+-----------------------------------+
|UIDebugger |ButtonEditor (button calls | |
| |the UIDebugEditor factory) | |
+-------------+----------------------------+-----------------------------------+
|Unicode |TextEditor(multi_line=True) |HTMLEditor |
+-------------+----------------------------+-----------------------------------+
|WeakRef |InstanceEditor | |
+-------------+----------------------------+-----------------------------------+
|