[Bf-blender-cvs] [bfd43222c30] master: Cleanup: use doxy-sections for interface_dropboxes.cc

Campbell Barton noreply at git.blender.org
Fri Mar 4 00:37:28 CET 2022


Commit: bfd43222c3095dd2e8cd64d5828f218dffce29be
Author: Campbell Barton
Date:   Fri Mar 4 10:35:22 2022 +1100
Branches: master
https://developer.blender.org/rBbfd43222c3095dd2e8cd64d5828f218dffce29be

Cleanup: use doxy-sections for interface_dropboxes.cc

===================================================================

M	source/blender/editors/interface/interface_dropboxes.cc

===================================================================

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



More information about the Bf-blender-cvs mailing list