David Capello
6556f97b8c
Try to directly add a trimmed image in the undo history instead of calling TrimCel
2016-05-05 15:40:37 -03:00
David Capello
ad9df5df02
Remove unused variable
2016-05-05 15:26:37 -03:00
David Capello
8b0977cdc3
Optimize doc::algorithm::shrink_bounds() a little
2016-05-05 15:26:19 -03:00
David Capello
975c1bd0a5
Remove reference to the old raster::Dirty object
2016-05-05 15:25:19 -03:00
David Capello
b2d14b3ce9
Remove comment
2016-05-05 15:24:45 -03:00
David Capello
2dbb50cc23
Fix exception text in doc::crop_image()
2016-05-05 15:18:50 -03:00
David Capello
eec2904974
Fix crash when we press Del key to completely delete a cel
2016-05-04 18:58:36 -03:00
David Capello
5d8af3ca36
Trim (or remove) cels automatically (when they are completely empty) ( fix #559 , fix #1111 )
2016-05-04 12:32:39 -03:00
David Capello
5ce7f24463
Add tooltip to paint bucket settings button in context bar
2016-05-04 10:06:21 -03:00
David Capello
1b715010bd
Add tooltip to "new frame" button in status bar
2016-05-04 10:04:32 -03:00
David Capello
97d9b3cb31
Go to frame field in status bar isn't focused by default anymore ( fix #1113 )
2016-05-04 10:00:54 -03:00
David Capello
5b51e281d3
Fix warnings between double <-> int conversion
2016-05-04 09:36:05 -03:00
David Capello
0f3dea233b
Fix problems using paint bucket referring to all layers and cels origin != 0,0
...
With this change we've simplified several portions of the ToolLoop code
where the "cel origin" is added and then subtracted needlessly.
2016-05-04 00:02:56 -03:00
David Capello
065ad4f1dc
Fix blur ink: avoid adding dark pixels when opacity < 255 ( fix #708 )
2016-05-03 17:00:50 -03:00
David Capello
5b2c162a6d
Remove double #include
2016-05-03 16:38:59 -03:00
David Capello
b60b76ff22
Add option to show layer edges
2016-05-03 16:23:38 -03:00
David Capello
6dc9bb984d
New option for paint bucket using all layers as reference/stop fill ( fix #969 )
2016-05-03 15:31:27 -03:00
David Capello
aededaaeab
Merge branch 'master'
2016-05-03 12:43:51 -03:00
David Capello
7d24d7cc82
Merge pull request #1062 from RomainGiraud/master
...
Fix error when decoding GPL file
2016-05-03 12:42:24 -03:00
David Capello
382aad635c
Update clip version
2016-05-03 10:41:57 -03:00
David Capello
640025e84b
Fix selection UX to show white/black negative for the stroke
...
With this patch now we can use the selection tool in locked or hidden
layers, because the selection doesn't modify the layers (only the
selection). Also we can use the selection tool on any layer and we'll
always see the feedback stroke/shape/rectangle while we're creating
the new selection.
2016-05-02 18:42:02 -03:00
David Capello
d838cbf91b
Key modifiers now disable the 'moving' action on selection ( fix #1105 )
...
Now we can move the selection only using the default selection mode
(even when it's subtract mode). With this is easier to add new regions
starting the selection from the inside of the active selection.
2016-05-02 13:33:29 -03:00
David Capello
d9604d9905
Fix bug not returning to default selection mode from subtraction after releasing Alt+Shift
2016-05-02 13:24:30 -03:00
David Capello
53683579b8
Disable assert in BrushPreview::clearPixelDelegate
...
This assert fails too often and we prefer to show some data
to try to fix it in a near future instead of showing an assertion
dialog on Windows or closing the whole app.
2016-05-02 13:04:31 -03:00
David Capello
00c7cb7e54
Fix removing original accelerators that are before a new accelerator ( fix #1104 )
2016-05-02 13:03:04 -03:00
David Capello
918acb6bc8
Don't focus context bar when we use selection behavior modifiers ( fix #1103 )
2016-05-02 12:25:51 -03:00
David Capello
c99a187256
Use clip library to copy & paste images/custom data
...
With this change we finally support copy & paste images into the OS X
pasteboard. (Fix #925 , fix #533 , fix #172.)
2016-04-29 20:42:05 -03:00
David Capello
60fd6072e9
ui library now depends on clip
2016-04-29 14:19:00 -03:00
David Capello
6c0ff1735f
Fix typo on File > Exit command
2016-04-29 11:40:56 -03:00
David Capello
e1c60a399e
Don't compile clip examples by default
2016-04-29 09:04:56 -03:00
David Capello
924c2ac86a
Use clip library to copy/paste text
...
In this way we can remove all the code related to handle clipboard text
from she and ui libraries.
2016-04-28 23:26:20 -03:00
David Capello
174d31a12a
Remove unused variables in app::Editor class
2016-04-28 23:04:55 -03:00
David Capello
becdd90789
Block the document in MovingCelState so other commands cannot modify it ( fix #1078 )
2016-04-28 15:00:15 -03:00
David Capello
106f1c9dd9
Merge branch 'master'
2016-04-28 14:33:10 -03:00
David Capello
3a1b918380
Don't destroy custom brush when we use X key to switch colors ( fix #1004 )
2016-04-28 14:32:22 -03:00
David Capello
ba21e312f5
Merge pull request #1082 from winterheart/x11-undelinking
...
Fixing underlinking for gcc 4.9
2016-04-28 12:21:31 -03:00
David Capello
6814136252
render: change blend function to return the result instead of output param
2016-04-27 12:48:30 -03:00
David Capello
0c9fb6b22b
Remove src/pen directory
...
It's not required anymore after 1c94dda072ffb23ffa0d22652c26300df663f081
2016-04-27 12:47:55 -03:00
David Capello
ea80b4ad96
Remove unused include files
2016-04-26 11:15:30 -03:00
David Capello
97ebd70048
Update the status bar depending on the Editor text when the tool changes
...
It fixes a problem were PaletteView was clearing the StatusBar set by
the Editor when a quicktool keyboard shortcut was pressed.
2016-04-25 16:17:30 -03:00
David Capello
93c616cd7b
Don't change two times the status bar text when the selected tool changes
2016-04-25 15:29:06 -03:00
David Capello
fc0cebc0dd
Redraw editor only when selection handles must be redrawn
2016-04-25 15:26:46 -03:00
David Capello
a09b00dba8
Fix synchronization of different UI elements depending on the active tool
...
With this patch now the context bar shows the real active tool
preferences. For example, if we choose the option to use the Eraser
tool with right-click, now right-clicking will draw with the Eraser
brush size (instead of using the selected tool/left-click tool brush
size).
Changes:
* Removed the toolBox.activeTool() field from preferences
(as the option isn't persisted between sessions)
* Added an observable app::tools::ActiveToolManager class to sync all
UI elements that depend on the active tool and ink.
* Moved a lot of "active tool" logic from app::Editor to the
new ActiveToolManager
* Moved app::tools::ToolLoopManager::Pointer as an indepedent
app::tools::Pointer class
2016-04-25 15:20:53 -03:00
David Capello
f87cf93a55
Merge branch 'master'
2016-04-25 14:05:48 -03:00
David Capello
34d4489599
Merge pull request #924 from TheKK/brush_value_set
...
Apply brush size when clicking on brush icon
2016-04-25 14:04:06 -03:00
David Capello
d363f29840
Fix timeout in StatusBar::showTool()
2016-04-25 13:26:39 -03:00
Azamat H. Hackimov
eda468b272
Fix compilation on MSVC for 32bit profile.
...
Option "/SUBSYSTEM:WINDOWS,5.01" cause failing compilation checkings.
It is near to impossible compile current cmake-project on Windows XP,
and since this statement doing nothing else than CMake can do
themself, let's just delete them.
Tested on Windows 10 / MSVC 2015 on 32 and 64 bit profiles. Fixes
issue #1086 .
2016-04-25 20:06:40 +05:00
David Capello
5f90ef7c9b
Add properties in App to access directly to timeline/contextBar/workspace
2016-04-22 13:19:06 -03:00
David Capello
350cc2df2d
Show text on console too when TRACE() is used on Windows
2016-04-22 12:27:00 -03:00
Azamat H. Hackimov
e7883b7d64
Fixing underlinking for gcc 4.9
...
Allegro4 backend uses XGrabPointer() from libX11.
Added ${X11_LIBRARIES} for she to resolve underlinking.
2016-04-22 13:42:26 +05:00