diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-09-06 09:12:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-09-06 09:46:00 +0300 |
commit | ebb7096bb15689f61414d89989c681dfd94d8330 (patch) | |
tree | fea3b5814143cc79e3dd43a9b6097068d594c506 /source/blender/editors/interface/interface_templates.c | |
parent | 1b287230a46d98f7cdfe6cbfd6c86e43c7e14968 (diff) |
Cleanup: use doxy sections
Diffstat (limited to 'source/blender/editors/interface/interface_templates.c')
-rw-r--r-- | source/blender/editors/interface/interface_templates.c | 208 |
1 files changed, 175 insertions, 33 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c index 0dfa6e9ddf5..8059182fee7 100644 --- a/source/blender/editors/interface/interface_templates.c +++ b/source/blender/editors/interface/interface_templates.c @@ -105,6 +105,10 @@ void UI_template_fix_linking(void) { } +/* -------------------------------------------------------------------- */ +/** \name Search Menu Helpers + * \{ */ + /** * Add a block button for the search menu for templateID and templateSearch. */ @@ -265,7 +269,11 @@ static uiBlock *template_common_search_menu(const bContext *C, return block; } -/********************** Header Template *************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Header Template + * \{ */ void uiTemplateHeader(uiLayout *layout, bContext *C) { @@ -275,7 +283,11 @@ void uiTemplateHeader(uiLayout *layout, bContext *C) ED_area_header_switchbutton(C, block, 0); } -/********************** Search Callbacks *************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Search Callbacks + * \{ */ typedef struct TemplateID { PointerRNA ptr; @@ -451,7 +463,12 @@ static uiBlock *id_search_menu(bContext *C, ARegion *ar, void *arg_litem) template_ui.scale); } -/************************ ID Template ***************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name ID Template + * \{ */ + /* This is for browsing and editing the ID-blocks used */ /* for new/open operators */ @@ -1368,7 +1385,11 @@ void uiTemplateIDTabs(uiLayout *layout, false); } -/************************ ID Chooser Template ***************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name ID Chooser Template + * \{ */ /** * This is for selecting the type of ID-block to use, @@ -1441,7 +1462,11 @@ void uiTemplateAnyID(uiLayout *layout, uiItemFullR(sub, ptr, propID, 0, 0, 0, "", ICON_NONE); } -/********************* Search Template ********************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Search Template + * \{ */ typedef struct TemplateSearch { uiRNACollectionSearch search_data; @@ -1687,7 +1712,11 @@ void uiTemplateSearchPreview(uiLayout *layout, } } -/********************* RNA Path Builder Template ********************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name RNA Path Builder Template + * \{ */ /* ---------- */ @@ -1724,7 +1753,11 @@ void uiTemplatePathBuilder(uiLayout *layout, * searching of nested properties to 'build' the path */ } -/************************ Modifier Template *************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Modifier Template + * \{ */ #define ERROR_LIBDATA_MESSAGE TIP_("Can't edit external library data") @@ -2069,7 +2102,11 @@ uiLayout *uiTemplateModifier(uiLayout *layout, bContext *C, PointerRNA *ptr) return NULL; } -/************************ Grease Pencil Modifier Template *************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Grease Pencil Modifier Template + * \{ */ static uiLayout *gpencil_draw_modifier(uiLayout *layout, Object *ob, GpencilModifierData *md) { @@ -2204,7 +2241,11 @@ uiLayout *uiTemplateGpencilModifier(uiLayout *layout, bContext *UNUSED(C), Point return NULL; } -/************************ Shader FX Template *************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Grease Pencil Shader FX Template + * \{ */ static uiLayout *gpencil_draw_shaderfx(uiLayout *layout, Object *ob, ShaderFxData *md) { @@ -2322,7 +2363,11 @@ uiLayout *uiTemplateShaderFx(uiLayout *layout, bContext *UNUSED(C), PointerRNA * return NULL; } -/************************ Redo Buttons Template *************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Operator Redo Buttons Template + * \{ */ static void template_operator_redo_property_buts_draw( const bContext *C, wmOperator *op, uiLayout *layout, int layout_flags, bool *r_has_advanced) @@ -2388,7 +2433,11 @@ void uiTemplateOperatorRedoProperties(uiLayout *layout, const bContext *C) } } -/************************ Constraint Template *************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Constraint Template + * \{ */ static void constraint_active_func(bContext *UNUSED(C), void *ob_v, void *con_v) { @@ -2604,7 +2653,11 @@ uiLayout *uiTemplateConstraint(uiLayout *layout, PointerRNA *ptr) return draw_constraint(layout, ob, con); } -/************************* Preview Template ***************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Preview Template + * \{ */ #include "DNA_light_types.h" #include "DNA_material_types.h" @@ -2866,7 +2919,11 @@ void uiTemplatePreview(uiLayout *layout, } } -/********************** ColorRamp Template **************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name ColorRamp Template + * \{ */ typedef struct RNAUpdateCb { PointerRNA ptr; @@ -3297,7 +3354,12 @@ void uiTemplateColorRamp(uiLayout *layout, PointerRNA *ptr, const char *propname MEM_freeN(cb); } -/********************* Icon Template ************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Icon Template + * \{ */ + /** * \param icon_scale: Scale of the icon, 1x == button height. */ @@ -3324,7 +3386,12 @@ void uiTemplateIcon(uiLayout *layout, int icon_value, float icon_scale) ui_def_but_icon(but, icon_value, UI_HAS_ICON | UI_BUT_ICON_PREVIEW); } -/********************* Icon viewer Template ************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Icon viewer Template + * \{ */ + typedef struct IconViewMenuArgs { PointerRNA ptr; PropertyRNA *prop; @@ -3484,7 +3551,11 @@ void uiTemplateIconView(uiLayout *layout, } } -/********************* Histogram Template ************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Histogram Template + * \{ */ void uiTemplateHistogram(uiLayout *layout, PointerRNA *ptr, const char *propname) { @@ -3534,7 +3605,11 @@ void uiTemplateHistogram(uiLayout *layout, PointerRNA *ptr, const char *propname ""); } -/********************* Waveform Template ************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Waveform Template + * \{ */ void uiTemplateWaveform(uiLayout *layout, PointerRNA *ptr, const char *propname) { @@ -3596,7 +3671,11 @@ void uiTemplateWaveform(uiLayout *layout, PointerRNA *ptr, const char *propname) ""); } -/********************* Vectorscope Template ************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Vectorscope Template + * \{ */ void uiTemplateVectorscope(uiLayout *layout, PointerRNA *ptr, const char *propname) { @@ -3658,7 +3737,11 @@ void uiTemplateVectorscope(uiLayout *layout, PointerRNA *ptr, const char *propna ""); } -/********************* CurveMapping Template ************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name CurveMapping Template + * \{ */ static void curvemap_buttons_zoom_in(bContext *C, void *cumap_v, void *UNUSED(arg)) { @@ -4419,7 +4502,11 @@ void uiTemplateCurveMapping(uiLayout *layout, MEM_freeN(cb); } -/********************* ColorPicker Template ************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name ColorPicker Template + * \{ */ #define WHEEL_SIZE (5 * U.widget_unit) @@ -4766,7 +4853,11 @@ void uiTemplateCryptoPicker(uiLayout *layout, PointerRNA *ptr, const char *propn RNA_boolean_set(opptr, "use_accumulate", false); } -/********************* Layer Buttons Template ************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Layer Buttons Template + * \{ */ static void handle_layer_buttons(bContext *C, void *arg1, void *arg2) { @@ -4871,7 +4962,12 @@ void uiTemplateLayers(uiLayout *layout, } } -/************************* List Template **************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name List Template + * \{ */ + static void uilist_draw_item_default(struct uiList *ui_list, struct bContext *UNUSED(C), struct uiLayout *layout, @@ -5756,7 +5852,11 @@ void uiTemplateList(uiLayout *layout, } } -/************************* Operator Search Template **************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Operator Search Template + * \{ */ static void operator_call_cb(bContext *C, void *UNUSED(arg1), void *arg2) { @@ -5861,7 +5961,11 @@ void uiTemplateOperatorSearch(uiLayout *layout) UI_but_func_operator_search(but); } -/************************* Operator Redo Properties Template **************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Operator Redo Properties Template + * \{ */ #ifdef USE_OP_RESET_BUT static void ui_layout_operator_buts__reset_cb(bContext *UNUSED(C), @@ -6037,7 +6141,11 @@ eAutoPropButsReturn uiTemplateOperatorPropertyButs(const bContext *C, return return_info; } -/************************* Running Jobs Template **************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Running Jobs Template + * \{ */ #define B_STOPRENDER 1 #define B_STOPCAST 2 @@ -6312,7 +6420,11 @@ void uiTemplateRunningJobs(uiLayout *layout, bContext *C) } } -/************************* Reports for Last Operator Template **************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Reports for Last Operator Template + * \{ */ void uiTemplateReportsBanner(uiLayout *layout, bContext *C) { @@ -6448,7 +6560,11 @@ void uiTemplateInputStatus(uiLayout *layout, struct bContext *C) } } -/********************************* Keymap *************************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Keymap Template + * \{ */ static void keymap_item_modified(bContext *UNUSED(C), void *kmi_p, void *UNUSED(unused)) { @@ -6537,7 +6653,11 @@ void uiTemplateKeymapItemProperties(uiLayout *layout, PointerRNA *ptr) } } -/********************************* Color management *************************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Color Management Template + * \{ */ void uiTemplateColorspaceSettings(uiLayout *layout, PointerRNA *ptr, const char *propname) { @@ -6597,7 +6717,11 @@ void uiTemplateColormanagedViewSettings(uiLayout *layout, } } -/********************************* Component Menu *************************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Component Menu + * \{ */ typedef struct ComponentMenuArgs { PointerRNA ptr; @@ -6655,7 +6779,11 @@ void uiTemplateComponentMenu(uiLayout *layout, UI_block_align_end(block); } -/************************* Node Socket Icon **************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Node Socket Icon Template + * \{ */ void uiTemplateNodeSocket(uiLayout *layout, bContext *UNUSED(C), float *color) { @@ -6676,7 +6804,11 @@ void uiTemplateNodeSocket(uiLayout *layout, bContext *UNUSED(C), float *color) UI_block_align_end(block); } -/********************************* Cache File *********************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Cache File Template + * \{ */ void uiTemplateCacheFile(uiLayout *layout, bContext *C, PointerRNA *ptr, const char *propname) { @@ -6756,7 +6888,11 @@ void uiTemplateCacheFile(uiLayout *layout, bContext *C, PointerRNA *ptr, const c #endif } -/******************************* Recent Files *******************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Recent Files Template + * \{ */ int uiTemplateRecentFiles(uiLayout *layout, int rows) { @@ -6781,7 +6917,11 @@ int uiTemplateRecentFiles(uiLayout *layout, int rows) return i; } -/******************************* FileSelectParams Path Button *******************************/ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name FileSelectParams Path Button Template + * \{ */ void uiTemplateFileSelectPath(uiLayout *layout, bContext *C, FileSelectParams *params) { @@ -6790,3 +6930,5 @@ void uiTemplateFileSelectPath(uiLayout *layout, bContext *C, FileSelectParams *p ED_file_path_button(screen, sfile, params, uiLayoutGetBlock(layout)); } + +/** \} */ |