Cleanup: use doxy-sections for interface_dropboxes.cc

This commit is contained in:
Campbell Barton 2022-03-04 10:35:22 +11:00
parent 0a2d61f45c
commit bfd43222c3
1 changed files with 19 additions and 4 deletions

View File

@ -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);
}
/** \} */