|
Blender
V2.93
|
#include <stdio.h>#include <string.h>#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_utildefines.h"#include "BLO_readfile.h"#include "BLT_translation.h"#include "BKE_context.h"#include "BKE_global.h"#include "BKE_screen.h"#include "ED_screen.h"#include "ED_space_api.h"#include "UI_interface.h"#include "UI_resources.h"#include "UI_view2d.h"#include "RNA_access.h"#include "WM_api.h"#include "WM_message.h"#include "WM_types.h"Go to the source code of this file.
Functions | |
| static SpaceLink * | topbar_create (const ScrArea *UNUSED(area), const Scene *UNUSED(scene)) |
| static void | topbar_free (SpaceLink *UNUSED(sl)) |
| static void | topbar_init (struct wmWindowManager *UNUSED(wm), ScrArea *UNUSED(area)) |
| static SpaceLink * | topbar_duplicate (SpaceLink *sl) |
| static void | topbar_main_region_init (wmWindowManager *wm, ARegion *region) |
| static void | topbar_operatortypes (void) |
| static void | topbar_keymap (struct wmKeyConfig *UNUSED(keyconf)) |
| static void | topbar_header_region_init (wmWindowManager *UNUSED(wm), ARegion *region) |
| static void | topbar_main_region_listener (const wmRegionListenerParams *params) |
| static void | topbar_header_listener (const wmRegionListenerParams *params) |
| static void | topbar_header_region_message_subscribe (const wmRegionMessageSubscribeParams *params) |
| static void | recent_files_menu_draw (const bContext *UNUSED(C), Menu *menu) |
| static void | recent_files_menu_register (void) |
| void | ED_spacetype_topbar (void) |
| void ED_spacetype_topbar | ( | void | ) |
Definition at line 240 of file space_topbar.c.
References BKE_spacetype_register(), BKE_ST_MAXNAME, BLI_addhead(), SpaceType::create, ARegionType::draw, SpaceType::duplicate, ED_KEYMAP_HEADER, ED_KEYMAP_UI, ED_KEYMAP_VIEW2D, ED_region_header_draw(), ED_region_header_layout(), SpaceType::free, HEADERY, ARegionType::init, SpaceType::init, SpaceType::keymap, ARegionType::keymapflag, ARegionType::layout, ARegionType::listener, MEM_callocN, ARegionType::message_subscribe, SpaceType::name, SpaceType::operatortypes, ARegionType::prefsizex, ARegionType::prefsizey, recent_files_menu_register(), ARegionType::regionid, SpaceType::regiontypes, RGN_TYPE_HEADER, RGN_TYPE_WINDOW, SPACE_TOPBAR, SpaceType::spaceid, topbar_create(), topbar_duplicate(), topbar_free(), topbar_header_listener(), topbar_header_region_init(), topbar_header_region_message_subscribe(), topbar_init(), topbar_keymap(), topbar_main_region_init(), topbar_main_region_listener(), topbar_operatortypes(), and UI_UNIT_X.
Referenced by ED_spacetypes_init().
Definition at line 207 of file space_topbar.c.
References BLI_listbase_is_empty(), BLI_path_basename(), BLO_has_bfile_extension(), file, RecentFile::filepath, G, IFACE_, Menu::layout, RecentFile::next, NULL, ptr, RNA_boolean_set(), RNA_string_set(), uiItemFullO(), uiItemL(), uiLayoutSetOperatorContext(), and WM_OP_INVOKE_DEFAULT.
Referenced by recent_files_menu_register().
|
static |
Definition at line 227 of file space_topbar.c.
References BLT_I18NCONTEXT_DEFAULT_BPYRNA, MenuType::draw, MenuType::idname, MenuType::label, MEM_callocN, N_, recent_files_menu_draw(), MenuType::translation_context, and WM_menutype_add().
Referenced by ED_spacetype_topbar().
Definition at line 54 of file space_topbar.c.
References ARegion::alignment, BLI_addtail(), MEM_callocN, SpaceTopBar::regionbase, ARegion::regiontype, RGN_ALIGN_RIGHT, RGN_ALIGN_TOP, RGN_SPLIT_PREV, RGN_TYPE_HEADER, RGN_TYPE_WINDOW, SPACE_TOPBAR, and SpaceTopBar::spacetype.
Referenced by ED_spacetype_topbar().
Definition at line 90 of file space_topbar.c.
References MEM_dupallocN.
Referenced by ED_spacetype_topbar().
|
static |
Definition at line 81 of file space_topbar.c.
Referenced by ED_spacetype_topbar().
|
static |
Definition at line 161 of file space_topbar.c.
References wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), NC_SCENE, NC_SCREEN, NC_SPACE, NC_WM, ND_JOB, ND_LAYER, ND_SCENEBROWSE, ND_SPACE_INFO, and params.
Referenced by ED_spacetype_topbar().
|
static |
Definition at line 123 of file space_topbar.c.
References ARegion::alignment, ED_region_header_init(), ARegion::flag, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_RIGHT, and RGN_FLAG_DYNAMIC_SIZE.
Referenced by ED_spacetype_topbar().
|
static |
Definition at line 191 of file space_topbar.c.
References ED_region_do_msg_notify_tag_redraw(), WorkSpace::id, wmMsgSubscribeValue::owner, params, and WM_msg_subscribe_rna_prop.
Referenced by ED_spacetype_topbar().
|
static |
Definition at line 86 of file space_topbar.c.
Referenced by ED_spacetype_topbar().
|
static |
Definition at line 118 of file space_topbar.c.
Referenced by ED_spacetype_topbar().
|
static |
Definition at line 100 of file space_topbar.c.
References ARegion::alignment, wmWindowManager::defaultconf, ELEM, ARegion::flag, ARegion::handlers, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_RIGHT, RGN_FLAG_DYNAMIC_SIZE, UI_view2d_region_reinit(), ARegion::v2d, V2D_COMMONVIEW_HEADER, ARegion::winx, ARegion::winy, WM_event_add_keymap_handler(), and WM_keymap_ensure().
Referenced by ED_spacetype_topbar().
|
static |
Definition at line 131 of file space_topbar.c.
References wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), NC_GPENCIL, NC_SCENE, NC_SPACE, NC_WM, ND_DATA, ND_HISTORY, ND_MODE, ND_SPACE_VIEW3D, and params.
Referenced by ED_spacetype_topbar().
|
static |
Definition at line 114 of file space_topbar.c.
Referenced by ED_spacetype_topbar().