Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2868)

Issue 6269044: Drag to close areas

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by Vino
Modified:
11 years, 11 months ago
Reviewers:
bf-codereview, brechtvl
Base URL:
https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Visibility:
Public.

Description

Close an area by dragging an edge between two areas. Also works while dragging out a new area using the new area handle. This patch should help new and existing users alike. It addresses one of my primary frustrations while learning to use Blender. The challenge in this patch was that the current way of showing to the user that an area will be merged, the arrow overlay, wasn't obvious enough when the panel had been dragged to a small size. Instead I made the area snap over to one side if it'll be closed when the user releases the mouse button. I had some problems implementing this, so instead of actually moving the area over, it only renders with an offset, as if it's moved over. That may create problems if it continues to be rendered offset after the user lets go of the split, but this should never happen since the user's mouse interaction is tied up with the splitter dragging.

Patch Set 1 #

Patch Set 2 : Don't allow info area to be dragged closed, holding ctrl disables dragging areas closed. #

Patch Set 3 : Fix for ctrl-drag not working if ctrl is pressed before the mouse is clicked. #

Patch Set 4 : Fix for rendering corruption in some cases. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+289 lines, -34 lines) Patch
M . View 1 2 3 0 chunks +0 lines, -0 lines 0 comments Download
M source/blender/editors/screen/area.c View 1 2 3 2 chunks +14 lines, -2 lines 0 comments Download
M source/blender/editors/screen/screen_edit.c View 1 2 3 5 chunks +27 lines, -13 lines 0 comments Download
M source/blender/editors/screen/screen_ops.c View 1 2 3 13 chunks +242 lines, -19 lines 0 comments Download
M source/blender/makesdna/DNA_screen_types.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 13
Vino
11 years, 11 months ago (2012-06-02 18:06:34 UTC) #1
brechtvl
When you drag down the top info header (to view reports), and then drag it ...
11 years, 11 months ago (2012-06-03 10:31:41 UTC) #2
Vino
Thank you so much for taking the time to review both of these patches. You ...
11 years, 11 months ago (2012-06-03 17:52:56 UTC) #3
Vino
11 years, 11 months ago (2012-06-05 23:55:39 UTC) #4
Vino
On 2012/06/05 23:55:39, Vino wrote: To address the issue Brecht mentioned where users may want ...
11 years, 11 months ago (2012-06-05 23:58:17 UTC) #5
Vino
11 years, 11 months ago (2012-06-06 01:38:04 UTC) #6
brechtvl
Checking for the info window does not really address the issue. If you drag in ...
11 years, 11 months ago (2012-06-06 12:52:00 UTC) #7
Vino
Maybe I'm not sure what you mean, then. Are you talking about how if there's ...
11 years, 11 months ago (2012-06-06 17:51:00 UTC) #8
brechtvl
Steps to redo with latest patch: * Load factory settings * Change top info space ...
11 years, 11 months ago (2012-06-06 19:50:34 UTC) #9
Vino
Okay I see it now. This is similar to what I mentioned before, and I ...
11 years, 11 months ago (2012-06-07 21:12:38 UTC) #10
brechtvl
It's your choice, it would be nice if collapsing worked in this case too, but ...
11 years, 11 months ago (2012-06-08 15:18:05 UTC) #11
Vino
11 years, 11 months ago (2012-06-11 22:20:08 UTC) #12
Vino
11 years, 11 months ago (2012-06-11 22:22:40 UTC) #13
I chose to do it the simple way for now. I've added the multiple areas problem
to my to do list and I'll handle it at a later time, when I can focus on making
it work for more than just this feature, but also the right-click method and the
drag-handle method. Until then, users can't drag splits with multiple areas on
either side closed, and the behavior in that case remains the same as it was
before.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b