From 4f19c1a995de507044d1b5ada7fb7398cdb32096 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 18 Mar 2012 07:38:51 +0000 Subject: spelling cleanup --- source/blender/editors/interface/interface.c | 6 +++--- source/blender/editors/interface/interface_draw.c | 2 +- source/blender/editors/interface/interface_handlers.c | 4 ++-- source/blender/editors/interface/interface_layout.c | 2 +- source/blender/editors/interface/interface_ops.c | 2 +- source/blender/editors/interface/interface_panel.c | 4 ++-- source/blender/editors/interface/interface_regions.c | 2 +- source/blender/editors/interface/interface_templates.c | 6 +++--- source/blender/editors/interface/view2d.c | 4 ++-- source/blender/editors/interface/view2d_ops.c | 4 ++-- 10 files changed, 18 insertions(+), 18 deletions(-) (limited to 'source/blender/editors/interface') diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 9136274e39a..390ee76dfcc 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -706,7 +706,7 @@ int uiButActiveOnly(const bContext *C, uiBlock *block, uiBut *but) return 1; } -/* use to check if we need to disable undo, but dont make any changes +/* use to check if we need to disable undo, but don't make any changes * returns FALSE if undo needs to be disabled. */ static int ui_but_is_rna_undo(uiBut *but) { @@ -1880,7 +1880,7 @@ void ui_set_but_soft_range(uiBut *but, double value) { /* ideally we would not limit this but practically, its more then * enough worst case is very long vectors wont use a smart soft-range - * which isnt so bad. */ + * which isn't so bad. */ if(but->rnaprop) { const PropertyType type= RNA_property_type(but->rnaprop); @@ -2957,7 +2957,7 @@ void autocomplete_end(AutoComplete *autocpl, char *autoname) if(autocpl->truncate[0]) BLI_strncpy(autoname, autocpl->truncate, autocpl->maxlen); else { - if (autoname != autocpl->startname) /* dont copy a string over its self */ + if (autoname != autocpl->startname) /* don't copy a string over its self */ BLI_strncpy(autoname, autocpl->startname, autocpl->maxlen); } MEM_freeN(autocpl->truncate); diff --git a/source/blender/editors/interface/interface_draw.c b/source/blender/editors/interface/interface_draw.c index cfd9f65cf00..39ae2ec37f4 100644 --- a/source/blender/editors/interface/interface_draw.c +++ b/source/blender/editors/interface/interface_draw.c @@ -1052,7 +1052,7 @@ void ui_draw_but_COLORBAND(uiBut *but, uiWidgetColors *UNUSED(wcol), rcti *rect) float x1, y1, sizex, sizey; float v3[2], v1[2], v2[2], v1a[2], v2a[2]; int a; - float pos, colf[4]= {0,0,0,0}; /* initialize in case the colorband isnt valid */ + float pos, colf[4]= {0,0,0,0}; /* initialize in case the colorband isn't valid */ coba= (ColorBand *)(but->editcoba? but->editcoba: but->poin); if(coba==NULL) return; diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 537de167153..c7db8d9214f 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -349,7 +349,7 @@ static void ui_apply_autokey_undo(bContext *C, uiBut *but) else if(but->drawstr[0]) str= but->drawstr; else str= but->tip; - /* fallback, else we dont get an undo! */ + /* fallback, else we don't get an undo! */ if(str == NULL || str[0] == '\0') { str= "Unknown Action"; } @@ -1647,7 +1647,7 @@ static void ui_textedit_end(bContext *C, uiBut *but, uiHandleButtonData *data) int strip= BLI_utf8_invalid_strip(but->editstr, strlen(but->editstr)); /* not a file?, strip non utf-8 chars */ if(strip) { - /* wont happen often so isnt that annoying to keep it here for a while */ + /* wont happen often so isn't that annoying to keep it here for a while */ printf("%s: invalid utf8 - stripped chars %d\n", __func__, strip); } } diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index 3b6648a6441..723ffb355a2 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -1589,7 +1589,7 @@ void uiItemMenuF(uiLayout *layout, const char *name, int icon, uiMenuCreateFunc typedef struct MenuItemLevel { int opcontext; - /* dont use pointers to the strings because python can dynamically + /* don't use pointers to the strings because python can dynamically * allocate strings and free before the menu draws, see [#27304] */ char opname[OP_MAX_TYPENAME]; char propname[MAX_IDPROP_NAME]; diff --git a/source/blender/editors/interface/interface_ops.c b/source/blender/editors/interface/interface_ops.c index 5ca3f730006..80c77a54a84 100644 --- a/source/blender/editors/interface/interface_ops.c +++ b/source/blender/editors/interface/interface_ops.c @@ -307,7 +307,7 @@ static int reset_default_button_exec(bContext *C, wmOperator *op) } } - /* Since we dont want to undo _all_ edits to settings, eg window + /* Since we don't want to undo _all_ edits to settings, eg window * edits on the screen or on operator settings. * it might be better to move undo's inline - campbell */ if(success) { diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index b1099576505..c5abcd46437 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -617,7 +617,7 @@ static int get_panel_size_y(Panel *pa) return PNL_HEADER + pa->sizey; } -/* this function is needed because uiBlock and Panel itself dont +/* this function is needed because uiBlock and Panel itself don't * change sizey or location when closed */ static int get_panel_real_ofsy(Panel *pa) { @@ -1001,7 +1001,7 @@ static void ui_do_drag(const bContext *C, wmEvent *event, Panel *panel) /* this function is supposed to call general window drawing too */ -/* also it supposes a block has panel, and isnt a menu */ +/* also it supposes a block has panel, and isn't a menu */ static void ui_handle_panel_header(const bContext *C, uiBlock *block, int mx, int my, int event) { ScrArea *sa= CTX_wm_area(C); diff --git a/source/blender/editors/interface/interface_regions.c b/source/blender/editors/interface/interface_regions.c index f971410672c..a5c1bc0e659 100644 --- a/source/blender/editors/interface/interface_regions.c +++ b/source/blender/editors/interface/interface_regions.c @@ -1282,7 +1282,7 @@ static void ui_block_position(wmWindow *window, ARegion *butregion, uiBut *but, if(dir2==0) if(dir1==UI_LEFT || dir1==UI_RIGHT) dir2= UI_DOWN; if(dir2==0) if(dir1==UI_TOP || dir1==UI_DOWN) dir2= UI_LEFT; - /* no space at all? dont change */ + /* no space at all? don't change */ if(left || right) { if(dir1==UI_LEFT && left==0) dir1= UI_RIGHT; if(dir1==UI_RIGHT && right==0) dir1= UI_LEFT; diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c index f868cd86db7..2b225fb56c2 100644 --- a/source/blender/editors/interface/interface_templates.c +++ b/source/blender/editors/interface/interface_templates.c @@ -793,9 +793,9 @@ static uiLayout *draw_modifier(uiLayout *layout, Scene *scene, Object *ob, } } /* tessellation point for curve-typed objects */ else if (ELEM3(ob->type, OB_CURVE, OB_SURF, OB_FONT)) { - /* some modifiers could work with pre-tesselated curves only */ + /* some modifiers could work with pre-tessellated curves only */ if (ELEM3(md->type, eModifierType_Hook, eModifierType_Softbody, eModifierType_MeshDeform)) { - /* add disabled pre-tesselated button, so users could have + /* add disabled pre-tessellated button, so users could have * message for this modifiers */ but = uiDefIconButBitI(block, TOG, eModifierMode_ApplyOnSpline, 0, ICON_SURFACE_DATA, 0, 0, UI_UNIT_X-2, UI_UNIT_Y, &md->mode, 0.0, 0.0, 0.0, 0.0, TIP_("This modifier could be applied on splines' points only")); @@ -1579,7 +1579,7 @@ static void curvemap_buttons_zoom_out(bContext *C, void *cumap_v, void *UNUSED(u CurveMapping *cumap = cumap_v; float d, d1; - /* we allow 20 times zoom, but dont view outside clip */ + /* we allow 20 times zoom, but don't view outside clip */ if( (cumap->curr.xmax - cumap->curr.xmin) < 20.0f*(cumap->clipr.xmax - cumap->clipr.xmin) ) { d= d1= 0.15f*(cumap->curr.xmax - cumap->curr.xmin); diff --git a/source/blender/editors/interface/view2d.c b/source/blender/editors/interface/view2d.c index 2feccf7a4e8..142584f62fd 100644 --- a/source/blender/editors/interface/view2d.c +++ b/source/blender/editors/interface/view2d.c @@ -161,7 +161,7 @@ static void view2d_masks(View2D *v2d) * - for some of these presets, it is expected that the region will have defined some * additional settings necessary for the customisation of the 2D viewport to its requirements * - this function should only be called from region init() callbacks, where it is expected that - * this is called before UI_view2d_size_update(), as this one checks that the rects are properly initialised. + * this is called before UI_view2d_size_update(), as this one checks that the rects are properly initialized. */ void UI_view2d_region_reinit(View2D *v2d, short type, int winx, int winy) { @@ -170,7 +170,7 @@ void UI_view2d_region_reinit(View2D *v2d, short type, int winx, int winy) /* initialize data if there is a need for such */ if ((v2d->flag & V2D_IS_INITIALISED) == 0) { - /* set initialised flag so that View2D doesn't get reinitialised next time again */ + /* set initialized flag so that View2D doesn't get reinitialised next time again */ v2d->flag |= V2D_IS_INITIALISED; init= 1; diff --git a/source/blender/editors/interface/view2d_ops.c b/source/blender/editors/interface/view2d_ops.c index 49dae81d985..e4726bf0ae4 100644 --- a/source/blender/editors/interface/view2d_ops.c +++ b/source/blender/editors/interface/view2d_ops.c @@ -1547,7 +1547,7 @@ static int scroller_activate_invoke(bContext *C, wmOperator *op, wmEvent *event) if ( ((vsm->scroller=='h') && (v2d->keepofs & V2D_LOCKOFS_X)) || ((vsm->scroller=='v') && (v2d->keepofs & V2D_LOCKOFS_Y)) ) { - /* free customdata initialised */ + /* free customdata initialized */ scroller_activate_exit(C, op); /* can't catch this event for ourselves, so let it go to someone else? */ @@ -1559,7 +1559,7 @@ static int scroller_activate_invoke(bContext *C, wmOperator *op, wmEvent *event) if ( ((vsm->scroller=='h') && (v2d->scroll & (V2D_SCROLL_HORIZONTAL_HIDE|V2D_SCROLL_HORIZONTAL_FULLR))) || ((vsm->scroller=='v') && (v2d->scroll & (V2D_SCROLL_VERTICAL_HIDE|V2D_SCROLL_VERTICAL_FULLR))) ) { - /* free customdata initialised */ + /* free customdata initialized */ scroller_activate_exit(C, op); /* can't catch this event for ourselves, so let it go to someone else? */ -- cgit v1.2.3