Jacques Lucke
c66a7822ce
Interface: Free argument callback for popups
...
Reviewers: brecht
Differential Revision: https://developer.blender.org/D4858
2019-05-14 15:39:51 +02:00
Campbell Barton
6b26024ea4
Cleanup: comment length in interface
2019-04-17 08:44:38 +02:00
Campbell Barton
e12c08e8d1
ClangFormat: apply to source, most of intern
...
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-17 06:21:24 +02:00
Campbell Barton
e86e0aad55
Cleanup: use braces for interface code
2019-03-25 11:16:46 +11:00
Campbell Barton
1abd120e70
Cleanup: rename uiBlock.mx,my to bounds_offset
...
Use a name that related to block bounds calculation
(mx/my are typically used for mouse x,y).
2019-03-13 16:41:35 +11:00
Campbell Barton
de13d0a80c
doxygen: add newline after \file
...
While \file doesn't need an argument, it can't have another doxy
command after it.
2019-02-18 08:22:12 +11:00
Campbell Barton
eef4077f18
Cleanup: remove redundant doxygen \file argument
...
Move \ingroup onto same line to be more compact and
make it clear the file is in the group.
2019-02-06 15:45:22 +11:00
Campbell Barton
65ec7ec524
Cleanup: remove redundant, invalid info from headers
...
BF-admins agree to remove header information that isn't useful,
to reduce noise.
- BEGIN/END license blocks
Developers should add non license comments as separate comment blocks.
No need for separator text.
- Contributors
This is often invalid, outdated or misleading
especially when splitting files.
It's more useful to git-blame to find out who has developed the code.
See P901 for script to perform these edits.
2019-02-02 01:36:28 +11:00
Campbell Barton
b8e8c0e325
Cleanup: comment line length (editors)
...
Prevents clang-format wrapping text before comments.
2019-01-15 23:30:31 +11:00
Campbell Barton
3a13b89296
Cleanup: unused args, indentation
2018-11-21 06:29:19 +11:00
Brecht Van Lommel
bbd4613ed9
Keymaps: make click event use position on button press rather than release.
...
This may improve reliability with left click select and pen input, assuming
that the place where the pen first touched the surface is closer to the
intended location than where it was released from the surface.
I'm not sure if this will make a significant difference in practice, but it
seems worth a try.
2018-11-18 12:21:55 +01:00
Campbell Barton
15bab56fbc
Merge branch 'master' into blender2.8
2018-09-11 11:02:37 +10:00
Campbell Barton
5bb11cfde2
UI: split theme draw style into separate field
...
Was using UI_BLOCK_LOOP to control draw style,
this meant we couldn't use popup theme colors for cases
where it the interface has the same purpose as a popup but happens
not to use this flag.
2018-09-11 10:56:08 +10:00
Campbell Barton
3823287179
Merge branch 'master' into blender2.8
2018-06-07 17:08:55 +02:00
Campbell Barton
d274c64d22
WM: add support for drag events
...
This allows for a single key to be mapped to both release and drag,
useful for pie menus to share a key with a different action.
2018-06-07 17:06:01 +02:00
Brecht Van Lommel
5f8ad885e1
Fix some popup menus that don't support it refreshing and crashing.
2018-04-30 14:27:44 +02:00
Campbell Barton
c509922605
UI: use a wider minimum menu width
...
Icon only buttons with menus would be too narrow,
especially buttons for selecting tools.
2018-04-25 21:54:29 +02:00
Campbell Barton
6618852b7f
WM: Add WM_menutype_poll function
...
Wraps menutype poll, no functional changes.
2018-02-23 17:02:03 +11:00
Campbell Barton
2a87bd8995
Cleanup: split interface_regions.c
...
Each region type is quite separate and file was getting too big.
2017-11-03 20:57:09 +11:00