Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_userpref/space_userpref.c
| Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Lines | |||||
| /* add handlers, stuff you only do once or on area/region changes */ | /* add handlers, stuff you only do once or on area/region changes */ | ||||
| static void userpref_execute_region_init(wmWindowManager *wm, ARegion *region) | static void userpref_execute_region_init(wmWindowManager *wm, ARegion *region) | ||||
| { | { | ||||
| ED_region_panels_init(wm, region); | ED_region_panels_init(wm, region); | ||||
| region->v2d.keepzoom |= V2D_LOCKZOOM_X | V2D_LOCKZOOM_Y; | region->v2d.keepzoom |= V2D_LOCKZOOM_X | V2D_LOCKZOOM_Y; | ||||
| } | } | ||||
| static void userpref_main_region_listener(wmWindow *UNUSED(win), | static void userpref_main_region_listener(const wmRegionListenerParams *UNUSED(params)) | ||||
| ScrArea *UNUSED(area), | |||||
| ARegion *UNUSED(region), | |||||
| wmNotifier *UNUSED(wmn), | |||||
| const Scene *UNUSED(scene)) | |||||
| { | { | ||||
| /* context changes */ | |||||
| } | } | ||||
| static void userpref_header_listener(wmWindow *UNUSED(win), | static void userpref_header_listener(const wmRegionListenerParams *UNUSED(params)) | ||||
| ScrArea *UNUSED(area), | |||||
| ARegion *UNUSED(region), | |||||
| wmNotifier *UNUSED(wmn), | |||||
| const Scene *UNUSED(scene)) | |||||
| { | { | ||||
| /* context changes */ | |||||
| #if 0 | |||||
| switch (wmn->category) { | |||||
| default: | |||||
| break; | |||||
| } | |||||
| #endif | |||||
| } | } | ||||
| static void userpref_navigation_region_listener(wmWindow *UNUSED(win), | static void userpref_navigation_region_listener(const wmRegionListenerParams *UNUSED(params)) | ||||
| ScrArea *UNUSED(area), | |||||
| ARegion *UNUSED(region), | |||||
| wmNotifier *UNUSED(wmn), | |||||
| const Scene *UNUSED(scene)) | |||||
| { | { | ||||
| /* context changes */ | |||||
| } | } | ||||
| static void userpref_execute_region_listener(wmWindow *UNUSED(win), | static void userpref_execute_region_listener(const wmRegionListenerParams *UNUSED(params)) | ||||
| ScrArea *UNUSED(area), | |||||
| ARegion *UNUSED(region), | |||||
| wmNotifier *UNUSED(wmn), | |||||
| const Scene *UNUSED(scene)) | |||||
| { | { | ||||
| /* context changes */ | |||||
| } | } | ||||
| /* only called once, from space/spacetypes.c */ | /* only called once, from space/spacetypes.c */ | ||||
| void ED_spacetype_userpref(void) | void ED_spacetype_userpref(void) | ||||
| { | { | ||||
| SpaceType *st = MEM_callocN(sizeof(SpaceType), "spacetype userpref"); | SpaceType *st = MEM_callocN(sizeof(SpaceType), "spacetype userpref"); | ||||
| ARegionType *art; | ARegionType *art; | ||||
| ▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines | |||||