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
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
2014-02-07ListBase API: add utility api funcs for clearing and checking emptyCampbell Barton
2014-01-30UI API: don't use a text label when icon_only is setCampbell Barton
2014-01-27UI: Fix for icon-only menus too small click-able areaCampbell Barton
2014-01-17UI: tweak menu padding and make separator line more visible.Brecht Van Lommel
Adds some padding to the left of the icon, adds more space around the separator line and make it more visible, and add some spacing at the top and bottom of the menu. Ref T37794 Reviewed By: dingto, billrey Differential Revision: https://developer.blender.org/D223
2014-01-04RNA API: use bool's for enum itemf callbacks.Campbell Barton
2014-01-04UI: Use bool rather then int/short's where possibleCampbell Barton
2013-11-27Fix T37383: wrong spacing on Add menu in 3D view header.Brecht Van Lommel
This also was in the info header but less obvious, mistake in the layout engine.
2013-11-26Fix own regression in rB254aa8f3a0fb: Titles and sub-titles in menus were ↵Bastien Montagne
drawn shifted to the right. Reported by plasmasolution over IRC, thanks. Also fixes wrong handling of "sub-titles" with icons in EnumO menus (they were just treated as text-only ones). Dev notes: in fact, that clean up commit revealed kind of an "hidden bug that happend to work well" (or at least, a very bad hack): with titles without icon, code used to use uiItemL with ICON_NONE. However, as the root layout is a menu one, internal ui code would add a dummy blank icon, and set UI_HAS_ICON flag for the label button. But in the affected menus, code afterward assigned UI_TEXT_LEFT to but->flag, thus erasing the (internal) UI_HAS_ICON. As UI_TEXT_LEFT was moved to but->drawflag, the internal flag was no more erased, and the fake icon was drawn, creating that shift-to-the-right effect. Turns out we do not even have to set UI_TEXT_LEFT in these cases, just add label buttons without icon is enough!
2013-11-26User Interface: don't show macro args in tooltipsCampbell Barton
was often making much too big strings to show in a tip.
2013-11-23UI List: ctrl click on names in list can be used for renaming.Bastien Montagne
Summary: More information here: http://lists.blender.org/pipermail/bf-committers/2013-November/042113.html Reviewers: brecht Reviewed By: brecht CC: mont29 Differential Revision: http://developer.blender.org/D8
2013-11-22fix for active bone not saving in editmode.Campbell Barton