Bug 189541 - ability to use tools outside the canvas
Summary: ability to use tools outside the canvas
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: unspecified Unspecified
: NOR major
Target Milestone: ---
Assignee: Dmitry Kazakov
URL:
Keywords:
: 132759 155567 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-13 16:35 UTC by enkithan
Modified: 2010-09-05 15:58 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description enkithan 2009-04-13 16:35:24 UTC
Version:           trunk (using KDE 4.2.2)
Installed from:    Unlisted Binary Package

I'd like to be able to use a tool outside the canvas.
Here are some case where I think it would improve the usability :

- if a layer is bigger than the canvas, it becomes impossible to edit it with the transform tool. Same problem with the image shape where the loaded image can be bigger than the canvas.
- using the perspective grid or ruler assistant tool: when an handle is moved outside the canvas, it can't be moved and seen anymore.
- selections and crop tools can't be used easily along the borders. It would be easier to start from outside so that it sticks to the first pixel.
- the crop tool can't make the image bigger.
Comment 1 Halla Rempt 2010-07-14 08:37:36 UTC
*** Bug 132759 has been marked as a duplicate of this bug. ***
Comment 2 Halla Rempt 2010-07-14 08:37:44 UTC
*** Bug 155567 has been marked as a duplicate of this bug. ***
Comment 3 Halla Rempt 2010-07-14 08:39:33 UTC
We need to be able to show an infinite amount of gray around the image no matter the zoom level; it would be nice to restore the functionality where image data outside the actual image borders is shown grayed out in the canvas gray area. And the canvas gray area must be active as well. Maybe we should solve this in Krita's canvas code, not in the KoCanvasController.
Comment 4 Thomas Zander 2010-07-14 18:27:13 UTC
I wrote a solution for this a while ago, but there were some problems in Krita with it (worked fine in other apps at the time) see http://markmail.org/message/i7xb5ndbkikgjjg5
Comment 5 Halla Rempt 2010-07-14 19:03:38 UTC
Starting a stroke outside the image works already; the remaining problem is that there is no outside the image if we zoom in. In fact, it should always be possible to put the corners of the image in the center of the canvas, and maybe even further, the corners of the image in the opposite corner.

And the functionality in http://www.valdyas.org/fading/index.cgi/hacking/krita/krita2_canvas.html, that is, showing layer data outside the image boundaries in the canvas gray area should be restored.
Comment 6 Halla Rempt 2010-08-30 16:37:42 UTC
Not a wish, but a bug. Dmitry, can you tackle this?
Comment 7 Dmitry Kazakov 2010-09-05 15:58:35 UTC
SVN commit 1171859 by dkazakov:

Added Vast Scrolling ability to KoCanvasController

BUG:189541
This is a bugfix for a one of the most reported bugs.
Now you can scroll the document in such a way, that the corners of the
document are placed in the middle of the screen.

To achieve this i've removed some unnessesary checks in
KoCanvasController because all of them are guaranteed by QScrollBar
range limits and extracted one method to allow KisCanvasController to
override coordinates transformation.

The patch needs some more testing with other KOffice applications.


 M  +1 -1      krita/ui/canvas/kis_canvas2.cpp  
 M  +11 -0     krita/ui/canvas/kis_canvas_controller.cpp  
 M  +4 -2      krita/ui/canvas/kis_canvas_controller.h  
 M  +1 -0      krita/ui/kis_view2.cpp  
 M  +36 -42    libs/flake/KoCanvasControllerWidget.cpp  
 M  +13 -0     libs/flake/KoCanvasControllerWidget.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1171859