Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_graph/graph_buttons.c
| Show First 20 Lines • Show All 690 Lines • ▼ Show 20 Lines | static void graph_panel_drivers(const bContext *C, Panel *pa) | ||||
| /* set event handler for panel */ | /* set event handler for panel */ | ||||
| block = uiLayoutGetBlock(pa->layout); // xxx? | block = uiLayoutGetBlock(pa->layout); // xxx? | ||||
| UI_block_func_handle_set(block, do_graph_region_driver_buttons, NULL); | UI_block_func_handle_set(block, do_graph_region_driver_buttons, NULL); | ||||
| /* general actions - management */ | /* general actions - management */ | ||||
| col = uiLayoutColumn(pa->layout, false); | col = uiLayoutColumn(pa->layout, false); | ||||
| block = uiLayoutGetBlock(col); | block = uiLayoutGetBlock(col); | ||||
| but = uiDefIconTextBut(block, UI_BTYPE_BUT, B_IPO_DEPCHANGE, ICON_FILE_REFRESH, IFACE_("Update Dependencies"), | but = uiDefIconTextBut(block, UI_BTYPE_BUT, B_IPO_DEPCHANGE, ICON_FILE_REFRESH, IFACE_("Update Dependencies"), | ||||
| 0, 0, 10 * UI_UNIT_X, 22, | 0, 0, 10 * UI_UNIT_X, UI_UNIT_Y, | ||||
| NULL, 0.0, 0.0, 0, 0, | NULL, 0.0, 0.0, 0, 0, | ||||
| TIP_("Force updates of dependencies")); | TIP_("Force updates of dependencies")); | ||||
| UI_but_func_set(but, driver_update_flags_cb, fcu, NULL); | UI_but_func_set(but, driver_update_flags_cb, fcu, NULL); | ||||
| but = uiDefIconTextBut(block, UI_BTYPE_BUT, B_IPO_DEPCHANGE, ICON_ZOOMOUT, IFACE_("Remove Driver"), | but = uiDefIconTextBut(block, UI_BTYPE_BUT, B_IPO_DEPCHANGE, ICON_ZOOMOUT, IFACE_("Remove Driver"), | ||||
| 0, 0, 10 * UI_UNIT_X, 18, | 0, 0, 10 * UI_UNIT_X, UI_UNIT_Y, | ||||
| NULL, 0.0, 0.0, 0, 0, | NULL, 0.0, 0.0, 0, 0, | ||||
| TIP_("Remove this driver")); | TIP_("Remove this driver")); | ||||
| UI_but_funcN_set(but, driver_remove_cb, MEM_dupallocN(ale), NULL); | UI_but_funcN_set(but, driver_remove_cb, MEM_dupallocN(ale), NULL); | ||||
| /* driver-level settings - type, expressions, and errors */ | /* driver-level settings - type, expressions, and errors */ | ||||
| RNA_pointer_create(ale->id, &RNA_Driver, driver, &driver_ptr); | RNA_pointer_create(ale->id, &RNA_Driver, driver, &driver_ptr); | ||||
| col = uiLayoutColumn(pa->layout, true); | col = uiLayoutColumn(pa->layout, true); | ||||
| ▲ Show 20 Lines • Show All 277 Lines • Show Last 20 Lines | |||||