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
2017-10-12Fix T52999: floating (popup) panels/menus could jump around screen in some ↵Bastien Montagne
cases. Would happen during panel's refresh drawing, if drawing code had to adjust final panel position compared to the initial one computed based on the mouse coordinates, and user had dragged the floating panel around. Issue fixed by adjusting stored mouse coordinates once final panel position is known, such that they would directly generate those coordinates. that way, the basic offset applied to those stored mouse coordinates during panel dragging is valid, and recreating panel based on those won't make it jump in screen. Note that panel will still jump in case user dragged it partially out of view - we could prevent that, but imho it's better to keep that behavior, since redraw can generate a popup of different size, which could end up with a totally out-of-view one... Hopefully this fix does not break anything else!
2017-09-20UI: fullstop at end of tooltipsCampbell Barton
Allows for multiple sentences not to look strange. Convention not to include in RNA remains.
2017-08-28Fix T51400: Pasting hex code failsCampbell Barton
The # prefix is supported, the button didn't give enough space to paste it. D2812 by @candreacchio
2017-07-27Fix: use click style if a pie was spawned by release or click eventAleksandr Zinovev
2017-07-02Fix T51772: double undo entry for color picker editing.Brecht Van Lommel
2017-05-05Revert "Add red alert in UI controls for datablock pointer properties"Julian Eisel
This reverts commit f5bc8ad4ce87165fc0648f1cd8c0ae1fb5f07281. We agreed there needs to be a better solution for this, see comments in rBf5bc8ad4ce87165.
2017-04-13Add red alert in UI controls for datablock pointer propertiesAlexander Romanov
2017-03-30Redraw parent popup when the child popup is closedraa
2017-03-22Fix for splash not opening centeredCampbell Barton
When the new window didn't end up using the size stored in the preferences the splash would not be centered (even outside the screen in some cases). Now centered popups listen for window resizing.
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.
2016-10-14Fix T49601: Material menu length problem.Bastien Montagne
Regression from rB69b66d549bcc8, was supposed to be non-functionnal change, so not sure why search menu was reduced here? For now, restore to 2.77 width.
2016-09-22RNA/UI: Allow displaying in tooltip why RNA property isn't editableJulian Eisel
This commit allows RNA properties to return additional info on their editable state which may then be displayed in tooltips. To show how it works, it also adds some info for the editable check of proxies. For generally un-editable properties or properties of a linked data-block, RNA returns default strings. | {F362785} | {F362786} | {F362787} | Reviewed by brecht, thanks! Differential Revision: https://developer.blender.org/D2243
2016-09-19Various cleanups related to button lockingJulian Eisel
* Rename uiBut.lockstr to disabled_info * Remove unreachable code * Replace duplicated check with assert * Replace overly ambitious check with assert * Add comments
2016-09-19Cleanup: Completely replace/remove uiBut.lockJulian Eisel
Old leftover from pre 2.5 days. Now handled through UI_BUT_DISABLED button flag.
2016-09-16Picky correction to previous commitJulian Eisel
A bit nicer to do empty-string check for operator poll message as well.
2016-09-16UI: Allow showing why button is disabled in tooltipJulian Eisel
Uses red alert color. Operators that failed poll check already did this.
2016-09-05UI: Ctrl+Tab and Ctrl+Shift+Tab to cycle through space context "tabs"Julian Eisel
In User Preferences, Properties Editor and toolshelf, Ctrl+Tab and Ctrl+Shift+Tab now activates the next or previous space context (or category in case of toolshelf tabs), respectively. For Properties Editor such functionality was completely missing, only toolshelf allowed cycling using ctrl+mousewheel (or only mousewheel while hovering tab region). Ctrl+Tab and Ctrl+Shift+Tab are common web browser shortcuts, so they're a reasonable choice to go with. Reaching the first/last item doesn't cause the cycling to stop, we continue at the other end of the list then. (I didn't add this to Ctrl+Mousewheel toggling in toolshelf since I wanted to keep its behavior unchanged.) We could get rid of (Ctrl+)Mousewheel cycling in toolshelf, but this may break user habits. The cycling happens using a new operator, UI_OT_space_context_cycle, for toolshelf tabs it's hardcoded in panel handling code though. Generalized rna_property_enum_step a bit and moved it to rna_access.c to allow external reuse. Reviewed By: venomgfx Differential Revision: https://developer.blender.org/D2189
2016-08-23Fix T49150: make new 'operator categories' in search menu i18n-aware.Bastien Montagne
2016-07-28Fix T48951: Crash refreshing some popupsCampbell Barton
Fix for T48874 caused popups to be tagged to be refreshed, that didnt support it. Tag popups that can't be refreshed.
2016-07-26Correct UI names of ID typesJulian Eisel
Also correct typo.
2016-07-26More useful block name for report popup blocksJulian Eisel
Report popups simply reuse popup menu code, so their blocks got "UI_popup_menu_begin" assigned as name, which was a bit misleading. Now uses "UI_popup_menu_reports". Ideally they'd have their own popup code.
2016-07-18Fix T48874: Nested pop-up didn't update its parentCampbell Barton
2016-07-16Cleanup: spellingCampbell Barton
2016-07-06Replace of (id->lib != NULL) check by meaningful macro.Bastien Montagne
Idea is to replace hard-to-track (id->lib != NULL) 'is linked datablock' check everywhere in Blender by a macro doing the same thing. This will allow to easily spot those checks in future, and more importantly, to easily change it (see work done in asset-engine branch). Note: did not touch to readfile.c, since there most of the time 'id->lib' check actually concerns the pointer, and not a check whether ID is linked or not. Will have a closer look at it later. Reviewers: campbellbarton, brecht, sergey Differential Revision: https://developer.blender.org/D2082
2016-06-01Fix/Workaround T48560: Color picker V fail w/ user defined RNACampbell Barton
Set the maximum soft-max to 1.0 when its left at FLT_MAX. Since this causes problems using the slider.
2016-05-28Fix T48534: color picker hex #RRGGBB input allows typing one character too many.Brecht Van Lommel
Fix suggested by Daniel Rivera.
2016-04-23Event system: Let event pass through after menu poll failsJulian Eisel
Part 2 of Fix for T48200. Without this, it's not possible to exit GPencil edit mode using tab key with pies enabled. Menus are somehow similar to operators, which let the event pass through too after operator poll returns 0. So think we should handle them similar here. Can't guarantee this is totally safe though ;)
2016-04-19Toggle to standard cursor when opening menus/popupsJulian Eisel
Cursor is now set to standard arrow-cursor when opening menu, and reset to previous one when closing it. Previously it just stayed as it was before, e.g. the edit mode cross-cursor stayed active even if a menu was opened. Fixes T48192.
2016-04-17Fix T48171: activating spacebar search menu over text button activates it or ↵Brecht Van Lommel
shows tooltip.
2016-03-04Fix menu aliged to right side of screen in UserPref windowJulian Eisel
Only applied in a really few cases actually. To reproduce: * Open User Preferences *in own window* * Search for node wrangler add-on (it's one of the few cases where this happens) * Enable and open details * Click on one of the menues in the add-on preferences Actually this was reproducable in any window, user preference area just had to take up most/all of the width. Note: I'm not totally sure if just disabling these lines is correct, but I didn't find any issues or any information why this was needed. So it seems to be redundant.
2016-03-02UI: Show categories in operator search popupCampbell Barton
Gives better context especially when operators have generic names.
2016-03-02UI: Add search-create callbackCampbell Barton
Needed to support alternate search UI's, no functional changes.
2016-02-29Cleanup: Duplicated functionJulian Eisel
wmOrtho2_region_pixelspace and wmOrtho2_region_ui were doing exact same thing since rBSa86482f81cf3.
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!
2016-02-15Uber-picky: Too small margin in tooltipJulian Eisel
Minor design detail, but kept bugging me :) Was removed in rBd57847ca5b9.
2016-02-03Cleanup: refactor tooltip data-access out of layout functionCampbell Barton
2016-01-03Fix text wrapping off-by-one error w/ string widthCampbell Barton
Caused odd white space error in tooltip enum values.
2015-12-01RNA: de-duplciate rna-path create in tooltip codeCampbell Barton
2015-11-24OpenGL: clean up use of old extensionsMike Erwin
2015-11-23Cleanup: shadowing (interface)Campbell Barton
2015-11-15UI: support cycling callback for non RNA menusCampbell Barton
2015-10-16UI: expose UI_POPUP_MENU_TOP for use elsewhere.Campbell Barton
2015-09-19UI: tooltip layout tweaksCampbell Barton
- enable word-wrap for all tip text to align vertically. - draw enum identifier at the end of the last line, not first.
2015-09-18UI: word-wrap support for tooltipsCampbell Barton
Tooltips will automatically wrap when exceeding UI_TIP_MAXWIDTH.
2015-09-10Show correct syntax for id-propertiesCampbell Barton
2015-09-05Fix T45944: Ctrl+Wheel to cycle values failes in toolshelfJulian Eisel
Now, ctrl+wheel for cycling tabs is passed to hovered button if it supports cycling values (RNA menus, color/row/number/slider buttons, list boxes) This might feel a bit glitchy if ctrl+wheel is used to cycle tabs and in newly opened tab, a button with cycling support is under the mouse, which will get mouse input from this point on instead of region. Think this is still better than old behavior.
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-08-14Remove redundant workaround for T41548Julian Eisel
Reverts 7a026971dc3f93 which isn't needed anymore after b347f523cececdf
2015-06-16Cleanup: styleCampbell Barton
2015-06-15Revert "Revert "Disable key accelerators for splash screen""Campbell Barton
This reverts commit 7f3dcbe17feccb99abbdbc3aea83189696d97391. Please check with authors first, this bug was already fixed since RC1.