diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-04 02:35:22 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-04 02:35:22 +0300 |
commit | bfd43222c3095dd2e8cd64d5828f218dffce29be (patch) | |
tree | 3c7ee4e23436fb84c3242bb975214997fc1382ab /source/blender | |
parent | 0a2d61f45c4d05d17e403015ecfba798df8a36f8 (diff) |
Cleanup: use doxy-sections for interface_dropboxes.cc
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/interface/interface_dropboxes.cc | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/source/blender/editors/interface/interface_dropboxes.cc b/source/blender/editors/interface/interface_dropboxes.cc index 40d1a0ca6f5..4da2fa9f286 100644 --- a/source/blender/editors/interface/interface_dropboxes.cc +++ b/source/blender/editors/interface/interface_dropboxes.cc @@ -9,8 +9,8 @@ #include "BLI_string.h" #include "BLT_translation.h" -#include "DNA_space_types.h" #include "DNA_material_types.h" +#include "DNA_space_types.h" #include "MEM_guardedalloc.h" @@ -20,6 +20,10 @@ #include "UI_interface.h" +/* -------------------------------------------------------------------- */ +/** \name Tree View Drag/Drop Callbacks + * \{ */ + static bool ui_tree_view_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event) { const ARegion *region = CTX_wm_region(C); @@ -51,7 +55,11 @@ static char *ui_tree_view_drop_tooltip(bContext *C, return UI_tree_view_item_drop_tooltip(hovered_tree_item, drag); } -/* ---------------------------------------------------------------------- */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Name Drag/Drop Callbacks + * \{ */ static bool ui_drop_name_poll(struct bContext *C, wmDrag *drag, const wmEvent *UNUSED(event)) { @@ -64,8 +72,9 @@ static void ui_drop_name_copy(wmDrag *drag, wmDropBox *drop) RNA_string_set(drop->ptr, "string", id->name + 2); } -/* ---------------------------------------------------------------------- */ -/* Material Drag/Drop Operators */ +/* -------------------------------------------------------------------- */ +/** \name Material Drag/Drop Callbacks + * \{ */ static bool ui_drop_material_poll(bContext *C, wmDrag *drag, const wmEvent *UNUSED(event)) { @@ -118,7 +127,11 @@ static char *ui_drop_material_tooltip(bContext *C, return result; } +/** \} */ + /* -------------------------------------------------------------------- */ +/** \name Add User Interface Drop Boxes + * \{ */ void ED_dropboxes_ui() { @@ -143,3 +156,5 @@ void ED_dropboxes_ui() WM_drag_free_imported_drag_ID, ui_drop_material_tooltip); } + +/** \} */ |