ca0cc0518f
Cleanup: simplify toggle button logic
2019-03-25 16:21:13 +11:00
6dbe96757b
Cleanup: return argument naming
2019-03-25 12:19:55 +11:00
e86e0aad55
Cleanup: use braces for interface code
2019-03-25 11:16:46 +11:00
72ede30d0f
Cleanup: pass const image data to IMB_ibImageFromMemory
2019-03-25 09:08:29 +11:00
a38313c3bd
Cleanup: style, array wrapping
...
Add trailing comma for clang-format.
2019-03-25 09:02:04 +11:00
ff8c32fa6b
Fix uninitialized variable use for right aligned checkbox
2019-03-25 07:34:06 +11:00
809101e69e
UI: support Ctrl-C copy for popover buttons
...
Match menu logic that sets the Python expression to call the popover.
2019-03-24 10:52:23 +11:00
72c323d50c
GPU: State: Replace GL_LINE_SMOOTH by GPU_line_smooth
2019-03-23 23:54:01 +01:00
ed9af18c76
GPU: Replace glEnable/glDisable but GPU_state calls
2019-03-23 23:43:26 +01:00
ce658d2485
Cleanup: add doxy sections to interface_ops.c
2019-03-23 12:10:23 +11:00
4dc6259cfe
Cleanup: doxy sections & function name
2019-03-23 12:10:23 +11:00
Dalai Felinto
820be185bc
Silence false positive uninitialized warning
...
Techically we would never get to the part where we would use the
uninitialized value due to an assert.
2019-03-22 16:31:23 -03:00
Dalai Felinto
243a9254ea
Fix warning for uninitialized icon_only
...
Warning/issue introduced on rBcaa357dae70322e.
2019-03-22 16:03:38 -03:00
be750e2aee
Cleanup: minor UI code changes
...
- 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-23 00:18:16 +11:00
8f3ecd08e1
Fix checkboxes being right aligned when property split is disabled
2019-03-23 00:03:48 +11:00
caa357dae7
Cleanup: typo in variable name
2019-03-23 00:01:00 +11:00
2d60618746
UI: refactor queries into interface_query.c
...
interface_handlers.c is quite large (over 10k lines),
move general button utility functions into a separate file.
2019-03-22 23:38:24 +11:00
3f852e00f9
Fix T62835: Color picker template value slider does not scale correctly with UI scale
...
Missing multiplication with UI_DPI_FAC.
2019-03-22 10:59:12 +01:00
5cd3e1b5d1
Cleanup: move widget enum into source file
2019-03-22 17:56:58 +11:00
813694e07b
UI: use checkbox text for property split layout
...
Use right aligned checkboxes when 'use_property_split' is enabled
instead of a separate label.
2019-03-22 15:43:23 +11:00
bd2299aae5
UI: support for showing checkboxes after text
...
Needed so the new layouts that show right aligned checkboxes can have
clickable text (as left aligned checkboxes do already).
2019-03-22 15:43:23 +11:00
27da43ba86
UI: refactor color picker flags out of buttons
...
These are specialized color picker options which don't need to be
stored in the button (frees of flags for buttons too).
2019-03-22 15:43:23 +11:00
875b50f94f
UI: Fix curve extention filling on curve widgets
2019-03-22 03:53:21 +01:00
e4694c057b
UI: replace button open event with activate on init
...
No user visible change.
2019-03-22 00:55:24 +11:00
9a09246dc0
WM: enable activate on init for wmOperatorType.prop
...
This enables popups to edit text when displayed,
use for new collection popup.
2019-03-22 00:32:01 +11:00
b98fe9e707
Cleanup: move functions into doxy sections
...
Also use const args for queries.
2019-03-21 14:19:45 +11:00
9b3818762a
Cleanup: use doxy sections for interface_handlers
2019-03-21 13:53:27 +11:00
0bbff8a711
Cleanup: move scroll step into own function
2019-03-21 11:58:03 +11:00
06585e0b13
UI: popovers scroll now changes offset directly
...
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-21 11:37:44 +11:00
83753d1d29
Cleanup: split menu scrolling function
...
The same function scrolled to a location and button (depending on args).
2019-03-21 11:36:51 +11:00
da1350acdc
Fix T60815: drag & drop crash when search menu is opened immediately after.
...
Patch by matc, some further refactoring by me.
Differential Revision: https://developer.blender.org/D4250
2019-03-20 19:50:21 +01:00
a1addc5c63
UI: support for popups starting with buttons activated
...
While this could already be done from C,
this is now exposed to Python
2019-03-20 23:10:34 +11:00
ef09aff61c
Preferences: add threshold for cursor motion
...
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-20 22:19:16 +11:00
47ba487e05
UI: center floating popovers
...
Tweak placement so useful items are more likely to be nearby,
centering horizontally and align vertically to the first button.
2019-03-20 12:34:22 +11:00
5739506104
UI: scale cursor motion threshold by DPI
...
This was using hard coded values of 2-3px.
Move both drag and motion thresholds to defines.
2019-03-20 02:52:55 +11:00
e7fd6c8f30
Cleanup: comment blocks
2019-03-19 15:17:46 +11:00
b0752cd7a0
Fix T57590: assert with zero length array buttons.
2019-03-18 19:56:14 +01:00
1d1e06b376
Cleanup: rename color band to color ramp
2019-03-18 18:26:14 +11:00
b749e43cd3
Fix color ramp eyedropper menu item
...
This couldn't be accessed because the poll function was checking the
active button.
Add a "color_ramp" context pointer which is set by the menu.
Alternative fix to D3984
2019-03-18 17:50:18 +11:00
e04d5a8106
Fix string size passed into name prefix function
2019-03-17 21:14:43 +11:00
ac147872cc
Fix T62594: Truncated text in UI
...
Reviewers: brecht, billreynish
Differential Revision: https://developer.blender.org/D4518
2019-03-15 15:12:42 +01:00
Dalai Felinto
2e043c266b
Fix: "Jump To Target" showing up in workspace context menu
...
Issue introduced on d227c58e3e .
This was affecting WorkSpaces as well as background scene and probably
other places. We use the operator poll to decide whether to show it.
Reviewers: brecht, mont29
Differential Revision: https://developer.blender.org/D4488
2019-03-15 10:53:35 -03:00
3400fe3ece
Tool System: split UI label from tool identifiers
...
Prepare for exposing tool registration to the Python API.
- Generated tools can use their own prefix so naming collisions
won't happen between hard coded & generated tools.
- Add-on authors can use the add-on name as a prefix.
Currently the names match, renaming will happen next.
2019-03-15 14:53:08 +11:00
35b78d9807
Cleanup: indentation, wrapping
...
Mostly functions wrapping args, not confirming to our style guide.
2019-03-15 09:54:30 +11:00
81a03e17f7
Merge branch 'blender2.7'
2019-03-14 19:00:10 +01:00
57b5852bc8
Fix T62120: number button editing outside of soft max range jumps.
2019-03-14 18:29:42 +01:00
3a58e97aed
Fix T62526: Can't scroll redo panel
2019-03-14 09:59:03 +11:00
107c94c338
UI: New option to display factors as percentages
...
The option can be changed in the Preferences
in `Interface -> Editors -> Factor Display Type`.
Reviewers: campbellbarton, brecht, billreynish
Differential Revision: https://developer.blender.org/D4462
2019-03-13 16:58:00 +01:00
17e0565cc5
Fix T58668: Misaligned text when editing multiple values
...
Reviewers: brecht
Differential Revision: https://developer.blender.org/D4503
2019-03-13 16:26:34 +01:00
2bc6858021
Fix T62524: Popover w/ keep-open moves on cursor motion
2019-03-13 16:41:46 +11:00