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
2019-05-10Preferences: add is_dirty memberCampbell Barton
Tag preferences as dirty when changed (prepare for adding auto-save).
2019-05-03Fix T59474: Crash assign shortcutsCampbell Barton
2019-05-01ClangFormat: run with ReflowComments on source/Campbell Barton
Prepare for enabling ReflowComments.
2019-04-23UI: ignore events in empty region overlap areasCampbell Barton
- Resizable areas use 2D view bounds. - Header uses the button bounds. - A margin is added to avoid clicking between buttons. - Region resize edges clamp to the 2D view bounds. Resovles T61554
2019-04-23UI: move auto_open clearing out of ui_region_contains_point_pxCampbell Barton
Prefer explicit call for menu buttons since it's confusing if only some queries clear auto open. Also queries shouldn't modify data.
2019-04-19UI: move top-bar into the spaces headerCampbell Barton
Currently this is only in the 3D viewport however all spaces that use the tool-system will have this region added. D4680 by @brecht with own updates.
2019-04-18Cleanup: comment blocksCampbell Barton
2019-04-17Cleanup: comment length in interfaceCampbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-16Cleanup: trailing commasCampbell Barton
2019-04-05Interface: New region type 'Footer', used by text editorGeorge Vogiatzis
* It can be hidden by dragging it up/down. * It can be at the top or bottom, independent of the header. * It uses the color theme from the header. * It does not change its color, when the area becomes active. Currently, it is used in the text editor to display the file path. Differential Revision: https://developer.blender.org/D4601
2019-04-03Fix T62939: Incorrect cursor position when exiting UI sliderVictor Seiji Hariki
Differential Revision: https://developer.blender.org/D4629
2019-03-30Fix T63137: crash pressing enter to confirm menu, after recent changes.Brecht Van Lommel
2019-03-28Fix T63037: Accelerator keys fail when another key is highlightedCampbell Barton
2019-03-27UI: minor change to active-default logicCampbell Barton
Don't attempt to activate default button if it's already active. Also expand on the flags comment.
2019-03-27UI: support an 'active default' button for pop-upsCampbell Barton
Use this for the save confirmation dialog so it has a default action when pressing enter which draws with a highlight so it's clear what the default action is (the dialog was just closing before). Resolves T57686
2019-03-27Fix popovers from enums failing on drag-releaseCampbell Barton
2019-03-26Cleanup: style, use braces for editor/interfaceCampbell Barton
2019-03-25UI: add UILayout.prop_popover_enum functionCampbell Barton
Support for RNA enum buttons that activate popovers when clicked. This means we get useful tooltips, shortcuts and Ctrl-Wheel cycling over enum items. It also avoids inconvenient & slow access of enum values currently done via RNA type lookups on the type to get the name & icon to use for a regular popover button. Resolves T57738
2019-03-25Cleanup: simplify toggle button logicCampbell Barton
2019-03-25Cleanup: return argument namingCampbell Barton
2019-03-25Cleanup: use braces for interface codeCampbell Barton
2019-03-24UI: support Ctrl-C copy for popover buttonsCampbell Barton
Match menu logic that sets the Python expression to call the popover.
2019-03-23Cleanup: doxy sections & function nameCampbell Barton
2019-03-22Silence false positive uninitialized warningDalai Felinto
Techically we would never get to the part where we would use the uninitialized value due to an assert.
2019-03-22Cleanup: minor UI code changesCampbell Barton
- Rename ui_but_find_active_in_region -> ui_region_find_active_but - Remove ui_but_is_active (use ui_region_find_active_but instead) - Re-order ui_but_* functions take the button as their first arg.
2019-03-22UI: refactor queries into interface_query.cCampbell Barton
interface_handlers.c is quite large (over 10k lines), move general button utility functions into a separate file.
2019-03-22UI: refactor color picker flags out of buttonsCampbell Barton
These are specialized color picker options which don't need to be stored in the button (frees of flags for buttons too).
2019-03-21Cleanup: move functions into doxy sectionsCampbell Barton
Also use const args for queries.
2019-03-21Cleanup: use doxy sections for interface_handlersCampbell Barton
2019-03-21Cleanup: move scroll step into own functionCampbell Barton
2019-03-21UI: popovers scroll now changes offset directlyCampbell Barton
Mouse wheel on menus changes the selected item item which doesn't work well for popovers since buttons aren't always stacked vertically. Resolves T62777
2019-03-21Cleanup: split menu scrolling functionCampbell Barton
The same function scrolled to a location and button (depending on args).
2019-03-20Fix T60815: drag & drop crash when search menu is opened immediately after.Brecht Van Lommel
Patch by matc, some further refactoring by me. Differential Revision: https://developer.blender.org/D4250
2019-03-20Preferences: add threshold for cursor motionCampbell Barton
A hard coded threshold was used to ignore cursor motion, make this a preference since tablet users may want to increase it since a pen hovering isn't as easy to keep still as a mouse. Resolves T56278
2019-03-19UI: scale cursor motion threshold by DPICampbell Barton
This was using hard coded values of 2-3px. Move both drag and motion thresholds to defines.
2019-03-14Merge branch 'blender2.7'Brecht Van Lommel
2019-03-14Fix T62120: number button editing outside of soft max range jumps.Brecht Van Lommel
2019-03-01Fix T62016: Outliner visibility icons drag behaviour brokenDalai Felinto
We are mixing bool and fancy 3-in-1 func-set buttons in the outliner. So they would return different pushed state in ui_drag_toggle_but_pushed_state(). We now have a callback function that allows the button to set its own pushed_button_state callback function. Note: This is a bit of overkill since we are planning to change the 3-in-1 outliner buttons. That said, it may be nice to have, since in the future we can mix those buttons for other things. Reviewers: brecht Differential Revision: https://developer.blender.org/D4434
2019-02-20Cleanup: rename wmEventHandler_* base -> headCampbell Barton
Makes it more clear it's the header/start of the struct.
2019-02-19Fix T61274: duplicate current workspace makes the workspace menu disappear.Philipp Oeser
Differential Revision: https://developer.blender.org/D4321
2019-02-19WM: move UI handler to it's own typeCampbell Barton
2019-02-18Cleanup: spellingCampbell Barton
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-15UI: impossible to activate RMB menu on menu itemsCampbell Barton
Right clicking on a menu item now closes it's sub-menus and opens the button's context menu. This is needed for adding them to the quick favourites menu. Resolves T58729, T61015.
2019-02-13Fix T61505, T61280, bugs in button drag toggle after recent changes.Brecht Van Lommel
2019-02-11Preferences: remove tweak/drag threshold distinctionCampbell Barton
Currently the preferences have both tweak and drag threshold, this is confusing because most actions users would consider dragging use the 'tweak' setting. Now one drag threshold is used for both, with a maximum limit of half the button unit-size in case of dragging UI elements.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-05UI: make drag lock work also when buttons have > 2 states or use callbacks.Brecht Van Lommel
This will help with upcoming outliner visibility icons with 3 states. It is done by using the icon to identify the state. If that is not unique there is no visible difference to users anyway.
2019-02-03Cleanup: trailing commasCampbell Barton
Needed for clan-format not to wrap onto one line.