Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-09-27Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3732
2018-07-26WM: Add operator property poll callbackCampbell Barton
This allows operators to filter out properties from the auto-generated draw functions. Some custom draw functions can move to using this.
2018-07-01Cleanup: right shift in interface codeCampbell Barton
2018-05-23Cleanup: strip trailing space from interface filesCampbell Barton
2017-07-21Fix strict compiler error after recent UI changesSergey Sharybin
2017-07-11Fix T49034: multi-drag crashes when UI forces exitCampbell Barton
2017-03-31UI cleanup: simplify Icon handling of uiDefAutoButR for PROP_POINTER.Bastien Montagne
Comes from D113, but really not related to the patch's topic!
2017-01-12UI: Try limiting 'x' icon to search buttonsJulian Eisel
Reusing PROP_TEXTEDIT_UPDATE instead of adding a new property flag just for search strings. Currently it's only used for search strings anyway so seems fine for now. Fixes T50336.
2016-11-30UI: Remove 'x' icon from paths and listsJulian Eisel
2016-11-28UI: Add 'x' icon to text buttons to clear contentJulian Eisel
This is useful e.g. for search buttons to quickly clear the filter string. We might want to make this optional for python scripts.
2015-08-18Refactor translation code out of blenfontCampbell Barton
- Add blentranslation `BLT_*` module. - moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`). - moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.
2015-05-04Cleanup: wrapped function indentationCampbell Barton
2015-04-26UI: 'View Online Manual' ShortcutJulian Eisel
D1031, implement proposal T37478 to give easy access to the online manual. Use Alt+F1 while hovering over a button/setting.
2014-12-30Fix possible NULL pointer dereferenceCampbell Barton
also remove redundant NULL check
2014-12-25Refactor 'immediate search' featureBastien Montagne
Currently, code just checks whether a text-edited button uses a given icon (VIEWZOOM) to decide to apply changes on each typed char. This patch adds a propper button flag (UI_BUT_TEXTEDIT_UPDATE) and a dedicated RNA flag (PROP_TEXTEDIT_UPDATE) for that. It's also now usable not only for text buttons, but also for example for num buttons when in 'text edit' mode, etc. It also fixes an actual bug, which is for text properties, in 'immediate' mode, hitting escape would not restore org value, because `ui_apply_but_TEX()` would set its orgstr to NULL on first call (giving it to `but->rename_orig` instead of copying it). Note no change in behavior is expected from user POV. Update for addons using that 'VIEWZOOM' icon 'feature' will follow (if any). Reviewers: campbellbarton Reviewed By: campbellbarton Projects: #user_interface, #bf_blender:_next Differential Revision: https://developer.blender.org/D938
2014-12-02Fix rare crash dragging number-buttonsCampbell Barton
Could happen dragging shape-keys UIList & the lower slider at once.
2014-11-11UI Refactor T41640Campbell Barton
Make the UI API more consistent and reduce confusion with some naming. mainly: - API function calls - enum values some internal static functions have been left for now
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-06-18Fix for weak floating-point number comparison.Tamito Kajiyama
Was causing assertion failures in MinGW-w64.
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-03-15Code cleanup: spelling & styleCampbell Barton
2014-03-13Code cleanup: quiet warning, 'else' would always crash (& never occurred)Campbell Barton
also quiet waning clamping
2014-03-12UI: allow passing "" for icon only enum buttons and still get an iconCampbell Barton
Enum icon-only buttons were getting their strings set, then truncated with blenders string shortening methods, then not drawn because there was no room (since buttons are icon width). Modify UI code so icon-only buttons don't get names and passing "" to a button won't have its text set later on.
2014-02-09Code cleanup: fix compiler warning with clang.Brecht Van Lommel
2014-02-09UI: improve reports popupCampbell Barton
- use labels rather then menu items (items selected but did nothing) - each report gets its own icon (icons besides first were ignored) - use uiPupMenu rather then string based menu.
2014-02-08UI: butstore API to generalize button storage for modal handlersCampbell Barton
2014-01-27Code cleanup: use booleans where appropriateCampbell Barton
2014-01-08Fix issues with float precision in numinput, like 'R 123' who would show ↵Bastien Montagne
additional 'noise' digits. Expose float precision helper in UI_interface.h API, so that numinput can use this helper as numbuttons already do. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D186
2014-01-04UI: Use bool rather then int/short's where possibleCampbell Barton
2013-06-09Code cleanup: removed some unused UI button typesBrecht Van Lommel
* CHARTAB: not needed anymore with improved copy/paste support and text input. * IDPOIN: replaced by SEARCH_MENU. * ICONROW/ICONTEXTROW: replaced by RNA enums. * NUMABS: can use min/max limits instead. * BUT_TOGDUAL, TOG3, TOGR, SLI: not used in 2.5 interface.
2013-03-20code cleanup: use booleans for mesh and selection code.Campbell Barton
2012-12-18make sure color picker and color swatch buttons have rnaindex of -1.Campbell Barton
Some were 0 some -1, but this messed up reporting - making it think that only red was being changed for each button.
2012-09-12code cleanup: use an enum for uiBut->pointype (more useful debug display of ↵Campbell Barton
members), and rename COL -> COLOR --- less confusing since the layout engine has row/col's.
2012-09-08style cleanupCampbell Barton
2012-06-20style cleanup: use TRUE/FALSE for ui align args.Campbell Barton
2012-06-15click dragging with the eye dropper now averages out colors - useful when ↵Campbell Barton
you have grainy footage of a green screen.
2012-04-30style cleanup: re - ↵Campbell Barton
http://wiki.blender.org/index.php/Dev:Doc/CodeStyle#Braces_with_Macros
2012-04-28style cleanup: format 'for' loop macros the same as for loops, some renaming ↵Campbell Barton
to BLI_array macros.
2012-04-22style cleanup: commentsCampbell Barton
2012-03-30style cleanup: interfaceCampbell Barton
2012-03-24style cleanup: follow style guide for formatting of if/for/while loops, and ↵Campbell Barton
else if's
2012-03-24style cleanup: mainly for mesh code, also some WM function use.Campbell Barton
2012-03-03style cleanup - use aligned * prefixed blocks for descriptive comments (was ↵Campbell Barton
already used a lot and part of proposed style guide).
2011-11-22image save operator now shares settings and UI with render & image out node.Campbell Barton
details: - setting format options from python isnt possible anymore since this isnt exposed via op->properties, python should use image.save() function instead. - image save UI now hides 'Relative' option when copy is selected since it has no effect. - default image depth is set to 8 or more if the image has no float buffer, otherwise its set to 32 or less. other fixes: - image new was adding an image with a filepath set to "untitled", if this file happened to exist in the current directory a save on the generated image would overwrite it, now initialize to empty path. - BKE_ftype_to_imtype was returning an invalid value if ftype==0.
2011-10-21Cleaning i18n code.Bastien Montagne
Previous state: Right now, there are "memories" of the "old" (less than a month!) translation way: * A few remaining calls to BLF_gettext() (only UI_translate_do_iface and UI_translate_do_tooltip should be used). * The _() macro still also calls BLF_gettext()! New state: Here are the changes made by the patch: * Removing the no more needed _() macro. * Removing most N_() and _() calls, only keeping the few needed ones (i.e. strings that are in no other way findable by xgettext and/or update_msg script). * Defining in UI_interface.h IFACE_() and TIP_() macros (resp. for UI_translate_do_iface and UI_translate_do_tooltip). * Replacing all calls to BLF_gettext by relevant IFACE_ or TIP_ one. * Replacing all calls to UI_translate_do_iface by IFACE_. * Replacing all calls to UI_translate_do_tooltip by TIP_. All this somewhat clarifies and simplifies the code. On the bf-translations scripts side, this only implies adding IFACE_ and TIP_ as detection markers for xgettext. It also allows to reduce POTFILES.in quite notably (only 20 files remaining in it). Please also have a look at those pages: * Coder POV: http://wiki.blender.org/index.php/Dev:2.5/Source/Interface/Internationalization * Translator POV: http://wiki.blender.org/index.php/Dev:2.5/Doc/How_to/Translate_Blender
2011-09-26use BLI_snprintf rather than sprintf for interface functionsCampbell Barton
2011-09-20i18n: code clean-upSergey Sharybin
- Move all translation-related declarations to BLF_translation.h - Reverted some changes to match trunk svn rev40365
2011-09-19i18n: code cleanup and fixing unneeded translation (when partial translation ↵Sergey Sharybin
is used only)
2011-09-01merge with trunk r39834Xiao Xiangquan
2011-08-14add in asserts for when array/non array RNA funcions are used incorrectly, ↵Campbell Barton
would have made previous fix a lot easier to find. also remove unused argument from RNA_property_array_check.