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
2016-03-05Cleanup: unnecessary comma useCampbell Barton
2016-03-02UI: Add search-create callbackCampbell Barton
Needed to support alternate search UI's, no functional changes.
2016-02-16Fix items in mode pie changing position by supporting more than 8 items in ↵Julian Eisel
operator-enum pies Now a 'More' item is added to the pie when there are too many items. It opens a sub-pie that contains the remaining items. Note that this only touches operator-enum pies (like the object mode pie is), it is not a complete support for pies with more than 8 items. For this further design and code work would be needed, but this is too urgent to wait for that. This is a better fix for T46973, should definitely be applied for 2.77 release. Patch D1800 by myself with some edits by @campbellbarton, thanks!
2015-12-28Cleanup: use BLI_libblock prefix for id functionsCampbell Barton
- test_idbutton -> BLI_libblock_ensure_unique_name (not only used from UI) - BKE_rename_id -> BKE_libblock_rename (always pass valid main) also rename: - name_uiprefix_id -> BKE_id_uiprefix
2015-12-15Temp workaround: Object mode pie glitches since 'Edit Strokes' mode was ↵Julian Eisel
introduced To ensure all items of a pie are always at the same position, invisible dummy buttons were added for unavailable items. This caused mainly two issues: Command line printed warning because of the > 8 elements, and some modes weren't visible in some cases ('Object Mode' entry was missing in stroke edit mode). To solve this nicely, we had to support > 8 items per pie. Will look into that this week, but for now, drawing dummy buttons is disabled. From a user POV this has two ugly consequences: 1. While this temporary workaround is used, *some* pie items are positioned differently than before, 2. The 'Edit Strokes' mode entry might change its position depending on the amount of available modes.
2015-11-07Cleanup: ui align headerCampbell Barton
2015-11-06New uialign code, based on 2D positions of widgets.Bastien Montagne
This new code fixes a tons of issues with previous one, which basically was epic-failing in many non-basic cases (especially mixed columns and rows with column-dominant layout). It basically no more relies over order of buttons declaration in the uiBlock, instead it finds and stores spatial neighbors and uses that data to compute needed stitching. See code comments for details. New code seems to be roughly ten times slower than old one (for complex grouped layouts), that is, about a few microsecconds per alignment group - this remains reasonable. Also, ui-align code becomming rather big in itself, it was separated in own new `interface_align.c` file. Reviewers: campbellbarton, severin Reviewed By: campbellbarton, severin Differential Revision: https://developer.blender.org/D1573
2015-09-01Fix T45825: Macro redo disable options incorrectlyCampbell Barton
A non repeatable operator would disable editing options for all operators after it.
2015-08-18Fix T45824: Pie's no longer show enum iconsCampbell Barton
2015-08-18UI: avoid property lookup w/ expanded enumsCampbell Barton
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-07-03Cleanup: 'return' parameters to the end of functions, and use 'r_' prefix ↵Bastien Montagne
for them.
2015-07-03UI: add ability to access/generate 'shortcuts strings' of modal keymaps.Bastien Montagne
We already had that for global keymaps (used e.g. to generate shortcuts for menu entries), but this wasn’t possible for modal keymaps yet (e.g. help message in header during transforms and other modal operation). This commit only adds needing background code, it does not change anything from user PoV. Modal operators will be updated to use it in comming weeks. Thanks to Campbell for revisions & suggestions. :) Differential Revision: https://developer.blender.org/D780
2015-06-09Fix T44930: File-select in redo panel, disables UICampbell Barton
2015-05-31UI: comments (doxygen tweaks)Campbell Barton
2015-05-26Fix own sillynessAntony Riakiotakis
2015-05-26Don't crash with pie menus with more than 8 items.Antony Riakiotakis
This will print a warning and users will get overlap of pie buttons, but it should be quick paper over the cracks and at least should keep blender working until a more complete fix is coded.
2015-05-04Cleanup: wrapped function indentationCampbell Barton
2015-03-24UI: remove UI_BTYPE_SEARCH_MENU_UNLINKCampbell Barton
Internal change only, use UI_BTYPE_SEARCH_MENU with an unlink flag instead. They are really the same button type, one just happens to have the option to unlink.
2015-02-13Fix (revert) mistake in rB1ae2098a6e04359b, causing broken UI (see e.g. ↵Bastien Montagne
Scene buttons). Reported by sebastian_k through IRC, thanks!
2015-02-13cleanup: ui, use boolsCampbell Barton
2015-02-13UI: show check-boxes pie-menu bool/enumsCampbell Barton
2015-02-06cleanup: styleCampbell Barton
2015-01-20UI: cleanup UI_fontstyle_string_width, UI_draw_stringCampbell Barton
Both were maked as temp, but used often. Now pass uiFontStyle to both, rename UI_draw_string to UI_fontstyle_draw_simple, since its a variant of UI_fontstyle_draw that skips shadow, align... etc.
2015-01-11Cleanup: quite some harmless but noisy warnings from gcc...Bastien Montagne
2015-01-01cleanup: redundant casts & const cast correctnessCampbell Barton
2014-11-24UI: avoid property lookup for uiItemMenuEnumRCampbell Barton
2014-11-16UI: fix for recent menu flipping commitCampbell Barton
2014-11-16Cleanup: use BLI_listbase_*** prefix for count,sort,sort_rCampbell Barton
2014-11-15Fix broken auto-leyframing for 'Vector' button.Bastien Montagne
2014-11-15UI: cleanup next/prev order in menu codeCampbell Barton
Recent flag re-order broke it since bits overlap, but logic here was far too complicated & fragile, Checked the type of each button when testing which direction to handle events as well as block direction. Now store the block-flipped state as a flag.
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-09-24Cleanup: const correctness for BLI_sortlistCampbell Barton
2014-08-14Pie menus:Antony Riakiotakis
If user drags away from initial position, menu changes to drag style and returning to that position won't remake the menu click-style. Allows to use the threshold indicator to cancel the pie.
2014-08-13Maybe slightly controversial pie commit:Antony Riakiotakis
Make pie menu item placement touch the radius from the internal side of the buttons rather than placing on the center on the cirtcle. This allows us to get rid of the separate visual angle property, also allows for tighter placement of pies with a smaller radius without easily overlapping. Also pie menu title now always appears above the threshold indicator.
2014-08-11Pie Menus C code backend.Antony Riakiotakis
This commit merges the code in the pie-menu branch. As per decisions taken the last few days, there are no pie menus included and there will be an official add-on including overrides of some keys with pie menus. However, people will now be able to use the new code in python. Full Documentation is in http://wiki.blender.org/index.php/Dev:Ref/ Thanks: Campbell Barton, Dalai Felinto and Ton Roosendaal for the code review and design comments Jonathan Williamson, Pawel Lyczkowski, Pablo Vazquez among others for suggestions during the development. Special Thanks to Sean Olson, for his support, suggestions, testing and merciless bugging so that I would finish the pie menu code. Without him we wouldn't be here. Also to the rest of the developers of the original python add-on, Patrick Moore and Dan Eicher and finally to Matt Ebb, who did the research and first implementation and whose code I used to get started.
2014-07-23Fix T41156: UILayout.prop_enum() does not observe "text" parameter overrideBastien Montagne
We do have odd behaviors with name and expanded enums, but in this case it did not made any sense at all! :) Note the error was not in RNA, but in C UILayout api itself...
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-06-14UI: Add support for popups to refresh their layput (D578)Campbell Barton
This is needed for popups to chance state once activated, currently it makes use of operators `check` callback, after values are modified, as the file selector does already.
2014-06-13Code cleanup: UI, unnecessary float/int conversionCampbell Barton
2014-05-06Fix for own recent change to menu shortcut behaviorCampbell Barton
Missed setting the flag for operator-menus. Now call `ui_but_add_shortcut` to match the rest of the api.
2014-04-30Warning cleanup: signed/unsigned compareCampbell Barton
also remove redundant loop in BKE_pose_copy_data
2014-04-13Code cleanup: quiet warnings & styleCampbell Barton
2014-04-02Replace resize code of image scopes by use of new GRIP button.Bastien Montagne
This deduplicates/simplifies some code. Also cleanup up a bit scopes UI code! Use new GRIP button for uiList grab-resize. This allows us to greatly simplifies the code, and get rid of a few hacks in uiList event handling! Note autosize mode of uiList is now trigered by any value of list_grip below a given threshold, rather than the fixed zero value... Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D343
2014-03-28Code cleanup: use sqrtf when input and output are floatCampbell Barton
2014-03-19Fix for Layout.operator_enum ignoring alignmentCampbell Barton
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-27Fix: 'F-Curve Editor' popup text was truncated.Campbell Barton
2014-02-12fix/workaround for v3d object mode selector flipping directionCampbell Barton
Allow menu functions to define their own direction, this way menu_item_enum_opname_menu can keep menu flipping from 2.69.
2014-02-11Own recent removal of string encoded menus missed render layers/passesCampbell Barton