Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_operators.c
| Context not available. | |||||
| uiDefBut(block, LABEL, 0, "", 10, 10 - uiSearchBoxHeight(), uiSearchBoxWidth(), uiSearchBoxHeight(), NULL, 0, 0, 0, 0, NULL); | uiDefBut(block, LABEL, 0, "", 10, 10 - uiSearchBoxHeight(), uiSearchBoxWidth(), uiSearchBoxHeight(), NULL, 0, 0, 0, 0, NULL); | ||||
| uiPopupBoundsBlock(block, 6, 0, -UI_UNIT_Y); /* move it downwards, mouse over button */ | uiPopupBoundsBlock(block, 6, 0, -UI_UNIT_Y); /* move it downwards, mouse over button */ | ||||
| uiEndBlock(C, block); | |||||
| wm_event_init_from_window(win, &event); | wm_event_init_from_window(win, &event); | ||||
| event.type = EVT_BUT_OPEN; | event.type = EVT_BUT_OPEN; | ||||
| Context not available. | |||||
| } | } | ||||
| uiPopupBoundsBlock(block, 4, 0, 0); | uiPopupBoundsBlock(block, 4, 0, 0); | ||||
| uiEndBlock(C, block); | |||||
| return block; | return block; | ||||
| } | } | ||||
| Context not available. | |||||
| wmOperator *op = op_ptr; | wmOperator *op = op_ptr; | ||||
| if (op->type->check) { | if (op->type->check) { | ||||
| if (op->type->check(C, op)) { | if (op->type->check(C, op)) { | ||||
| /* refresh */ | /* check for popup and re-layout buttons */ | ||||
| ARegion *ar_menu = CTX_wm_menu(C); | |||||
| if (ar_menu) { | |||||
| ED_region_tag_refresh_ui(ar_menu); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||
| /* center around the mouse */ | /* center around the mouse */ | ||||
| uiPopupBoundsBlock(block, 4, data->width / -2, data->height / 2); | uiPopupBoundsBlock(block, 4, data->width / -2, data->height / 2); | ||||
| uiEndBlock(C, block); | |||||
| return block; | return block; | ||||
| } | } | ||||
| Context not available. | |||||
| uiLayoutOperatorButs(C, layout, op, NULL, 'V', 0); | uiLayoutOperatorButs(C, layout, op, NULL, 'V', 0); | ||||
| uiPopupBoundsBlock(block, 4, 0, 0); | uiPopupBoundsBlock(block, 4, 0, 0); | ||||
| uiEndBlock(C, block); | |||||
| return block; | return block; | ||||
| } | } | ||||
| Context not available. | |||||
| uiItemL(col, "", ICON_NONE); | uiItemL(col, "", ICON_NONE); | ||||
| uiCenteredBoundsBlock(block, 0); | uiCenteredBoundsBlock(block, 0); | ||||
| uiEndBlock(C, block); | |||||
| return block; | return block; | ||||
| } | } | ||||
| Context not available. | |||||
| uiDefBut(block, LABEL, 0, "", 10, 10 - uiSearchBoxHeight(), uiSearchBoxWidth(), uiSearchBoxHeight(), NULL, 0, 0, 0, 0, NULL); | uiDefBut(block, LABEL, 0, "", 10, 10 - uiSearchBoxHeight(), uiSearchBoxWidth(), uiSearchBoxHeight(), NULL, 0, 0, 0, 0, NULL); | ||||
| uiPopupBoundsBlock(block, 6, 0, -UI_UNIT_Y); /* move it downwards, mouse over button */ | uiPopupBoundsBlock(block, 6, 0, -UI_UNIT_Y); /* move it downwards, mouse over button */ | ||||
| uiEndBlock(C, block); | |||||
| wm_event_init_from_window(win, &event); | wm_event_init_from_window(win, &event); | ||||
| event.type = EVT_BUT_OPEN; | event.type = EVT_BUT_OPEN; | ||||
| Context not available. | |||||