Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/modules/rna_keymap_ui.py
| Context not available. | |||||
| elif map_type == 'NDOF': | elif map_type == 'NDOF': | ||||
| row.prop(kmi, "type", text="", full_event=True) | row.prop(kmi, "type", text="", full_event=True) | ||||
| elif map_type == 'TWEAK': | elif map_type == 'TWEAK': | ||||
| subrow = row.row() | subrow = row.row(align=True) | ||||
| subrow.prop(kmi, "type", text="") | subrow.prop(kmi, "type", text="") | ||||
| subrow.prop(kmi, "value", text="") | subrow.prop(kmi, "value", text="") | ||||
| elif map_type == 'TIMER': | elif map_type == 'TIMER': | ||||
| Context not available. | |||||
| rowsub.operator("wm.keyconfig_preset_add", text="", icon='REMOVE').remove_active = True | rowsub.operator("wm.keyconfig_preset_add", text="", icon='REMOVE').remove_active = True | ||||
| rowsub = split.row(align=True) | rowsub = split.row(align=True) | ||||
| rowsub.operator("preferences.keyconfig_import", text="Import...", icon='IMPORT') | rowsub.operator("preferences.keyconfig_import", text="Import...") | ||||
| rowsub.operator("preferences.keyconfig_export", text="Export...", icon='EXPORT') | rowsub.operator("preferences.keyconfig_export", text="Export...") | ||||
| row = layout.row() | row = layout.row() | ||||
| col = layout.column() | col = layout.column() | ||||
| Context not available. | |||||
| ok = True | ok = True | ||||
| # go back and fill in rowsub | # go back and fill in rowsub | ||||
| rowsub.prop(spref, "filter_type", text="") | rowsubsub = rowsub.row(align=True) | ||||
| rowsubsub.prop(spref, "filter_type", expand=True) | |||||
| rowsubsub = rowsub.row(align=True) | rowsubsub = rowsub.row(align=True) | ||||
| if not ok: | if not ok: | ||||
| rowsubsub.alert = True | rowsubsub.alert = True | ||||
| Context not available. | |||||