Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_userdef.c
| Context not available. | |||||
| "for high DPI displays"); | "for high DPI displays"); | ||||
| RNA_def_property_update(prop, 0, "rna_userdef_dpi_update"); | RNA_def_property_update(prop, 0, "rna_userdef_dpi_update"); | ||||
| static const EnumPropertyItem paint_cursors[] = { | |||||
| {WM_CURSOR_PAINT, "PAINT_CROSS", 0, "Paint", "Paint cross cursor"}, | |||||
| {WM_CURSOR_EDIT, "CROSSHAIR", 0, "Crosshair", "Crosshair cursor"}, | |||||
| {WM_CURSOR_PAINT_BRUSH, "PAINT_BRUSH", 0, "Pen", "Pen cursor"}, | |||||
| {WM_CURSOR_DOT, "DOT", 0, "Dot", "Dot cursor"}, | |||||
| {WM_CURSOR_DEFAULT, "DEFAULT", 0, "Pointer", "Pointer cursor"}, | |||||
| {WM_CURSOR_NONE, "NONE", 0, "None", "No cursor displayed"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| prop = RNA_def_property(srna, "paint_cursor", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, paint_cursors); | |||||
| RNA_def_property_ui_text(prop, "Paint Cursor", "Cursor used while painting."); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_dpi_update"); | |||||
| static const EnumPropertyItem sculpt_cursors[] = { | |||||
| {WM_CURSOR_PAINT, "PAINT_CROSS", 0, "Paint", "Paint cross cursor"}, | |||||
| {WM_CURSOR_EDIT, "CROSSHAIR", 0, "Crosshair", "Crosshair cursor"}, | |||||
| {WM_CURSOR_PAINT_BRUSH, "PAINT_BRUSH", 0, "Pen", "Pen cursor"}, | |||||
| {WM_CURSOR_DOT, "DOT", 0, "Dot", "Dot cursor"}, | |||||
| {WM_CURSOR_DEFAULT, "DEFAULT", 0, "Pointer", "Pointer cursor"}, | |||||
| {WM_CURSOR_NONE, "NONE", 0, "None", "No cursor displayed"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| prop = RNA_def_property(srna, "sculpt_cursor", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, sculpt_cursors); | |||||
| RNA_def_property_ui_text(prop, "Sculpting Cursor", "Cursor used while sculpting."); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_dpi_update"); | |||||
| static const EnumPropertyItem gp_cursors[] = { | |||||
| {WM_CURSOR_PAINT, "PAINT_CROSS", 0, "Paint", "Paint cross cursor"}, | |||||
| {WM_CURSOR_EDIT, "CROSSHAIR", 0, "Crosshair", "Crosshair cursor"}, | |||||
| {WM_CURSOR_PAINT_BRUSH, "PAINT_BRUSH", 0, "Pen", "Pen cursor"}, | |||||
| {WM_CURSOR_DOT, "DOT", 0, "Dot", "Dot cursor"}, | |||||
| {WM_CURSOR_DEFAULT, "DEFAULT", 0, "Pointer", "Pointer cursor"}, | |||||
| {WM_CURSOR_NONE, "NONE", 0, "None", "No cursor displayed"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| prop = RNA_def_property(srna, "gp_cursor", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, gp_cursors); | |||||
| RNA_def_property_ui_text(prop, "Grease Pencil Cursor", "Cursor used while using Grease Pencil."); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_dpi_update"); | |||||
| static const EnumPropertyItem annotate_cursors[] = { | |||||
| {WM_CURSOR_PAINT_BRUSH, "PAINT_BRUSH", 0, "Pen", "Pen cursor"}, | |||||
| {WM_CURSOR_PAINT, "PAINT_CROSS", 0, "Paint", "Paint cross cursor"}, | |||||
| {WM_CURSOR_EDIT, "CROSSHAIR", 0, "Crosshair", "Crosshair cursor"}, | |||||
| {WM_CURSOR_DOT, "DOT", 0, "Dot", "Dot cursor"}, | |||||
| {WM_CURSOR_DEFAULT, "DEFAULT", 0, "Pointer", "Pointer cursor"}, | |||||
| {WM_CURSOR_NONE, "NONE", 0, "None", "No cursor displayed"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| prop = RNA_def_property(srna, "annotate_cursor", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, annotate_cursors); | |||||
| RNA_def_property_ui_text(prop, "Annotation Cursor", "Cursor used while annotating."); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_dpi_update"); | |||||
| static const EnumPropertyItem selection_cursors[] = { | |||||
| {WM_CURSOR_DEFAULT, "DEFAULT", 0, "Pointer", "Pointer cursor"}, | |||||
| {WM_CURSOR_EDIT, "EDIT", 0, "Edit", "Edit cursor"}, | |||||
| {WM_CURSOR_PAINT, "PAINT_CROSS", 0, "Paint", "Paint cross cursor"}, | |||||
| {WM_CURSOR_NONE, "NONE", 0, "None", "No cursor displayed"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| prop = RNA_def_property(srna, "select_cursor", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, selection_cursors); | |||||
| RNA_def_property_ui_text(prop, "Selection Cursor", "Cursor used while selecting."); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_dpi_update"); | |||||
| static const EnumPropertyItem precision_cursors[] = { | |||||
| {WM_CURSOR_EDIT, "EDIT", 0, "Edit", "Edit cursor"}, | |||||
| {WM_CURSOR_PAINT, "PAINT_CROSS", 0, "Paint", "Paint cross cursor"}, | |||||
| {WM_CURSOR_DEFAULT, "DEFAULT", 0, "Pointer", "Pointer cursor"}, | |||||
| {WM_CURSOR_NONE, "NONE", 0, "None", "No cursor displayed"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| prop = RNA_def_property(srna, "precision_cursor", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, precision_cursors); | |||||
| RNA_def_property_ui_text(prop, "Precision Cursor", "Cursor used while editing."); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_dpi_update"); | |||||
| static const EnumPropertyItem movement_cursors[] = { | |||||
| {WM_CURSOR_NSEW_SCROLL, "SCROLL_XY", 0, "Arrows", "Arrows cursor"}, | |||||
| {WM_CURSOR_HAND, "HAND", 0, "Hand", "Hand cursor"}, | |||||
| {WM_CURSOR_DEFAULT, "DEFAULT", 0, "Pointer", "Pointer cursor"}, | |||||
| {WM_CURSOR_NONE, "NONE", 0, "None", "No cursor displayed"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| prop = RNA_def_property(srna, "movement_cursor", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, movement_cursors); | |||||
| RNA_def_property_ui_text(prop, "Movement Cursor", "Cursor used while moving."); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_dpi_update"); | |||||
| /* display */ | /* display */ | ||||
| prop = RNA_def_property(srna, "show_tooltips", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "show_tooltips", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", USER_TOOLTIPS); | RNA_def_property_boolean_sdna(prop, NULL, "flag", USER_TOOLTIPS); | ||||
| Context not available. | |||||