David Capello
581fbb6632
Fix some scrolling issues in Timeline when clicking in a new cel
2015-09-17 16:39:55 -03:00
David Capello
43b3df52b9
Fix minor issues drawing transparent scrollbars in Timeline
2015-09-17 16:06:56 -03:00
David Capello
9772f99303
Add scroll bars to Timeline widget ( fix #732 )
...
Changes:
- Added ui::ScrollableViewDelegate so ui::ScrollBar can be child of
a non-ui::View widget.
- Added a generic ui::setup_scrollbars() utility to locate
horizontal/vertical scrollbars depending on the scrollable area and
the available viewport area.
- Replaced Timeline::m_scroll_x/y ints with m_hbar/m_vbar widgets.
- Added transparent scrollbar look & feel.
- Added a "hover" state to mini-scrollbars used in sprite editors.
2015-09-17 15:19:47 -03:00
David Capello
4ff5f79035
Merge branch 'master'
2015-09-17 10:37:21 -03:00
David Capello
1b79bd75b9
Avoid drawing straight lines with Shift key + Magic Wand tool
2015-09-16 12:24:25 -03:00
David Capello
8aefa24a5b
Add key modifier to draw straight lines from the last point ( fix #562 )
...
- Removed ToolLoop::screenToSprite(), now ToolLoopManager::Pointer has
sprite coordinates (instead of screen coordinates)
2015-09-16 12:19:10 -03:00
David Capello
dc6161a66a
Add mini_scrollbar_size dimension in skin.xml
2015-09-16 11:10:30 -03:00
David Capello
182a094f2b
Add some checks to Menu::closeAll() to avoid accessing null pointers
...
These are not reproducible situations, but we've received a crash
report that indicates that these pointers can be null if some
unknown scenario.
2015-09-16 10:52:02 -03:00
David Capello
c674c474f6
Fix strange scenarios/crashes using NewBrushCommand on multiple editors
...
We cannot use current_editor in SelectBoxDelegate implementations.
For example: NewBrushCommand cannot use the current_editor in
NewBrushCommand::onQuickboxEnd() because multiple editors can be in
SelectBoxState, and it looks like we can select the brush box in
a non-current editor if it's the first click to set that editor
as the current one.
2015-09-15 12:09:50 -03:00
David Capello
a2e33ffbca
Use iterators to improve Timeline drawing performance
...
With this change we avoid calling several times LayerImage::cel() to draw
each cel.
2015-09-15 10:57:43 -03:00
David Capello
a9c3f82c11
Use a binary search to find cels in LayerImage
2015-09-15 08:18:52 -03:00
David Capello
510a686020
Change CelList and LayerList from std::list to std::vector
...
This change gives us an huge performance improvement to paint the
Timeline widget.
2015-09-14 17:37:21 -03:00
David Capello
11c70ab522
Add required #include <list> in document_exporter.cpp
2015-09-14 17:07:28 -03:00
David Capello
ace74fe391
Copy dragged image correctly when the transparent color isn't mask ( fix #808 )
2015-09-14 13:03:01 -03:00
David Capello
77e16cecd0
Use a UniquePtr<> to store the new image in new_image_from_mask()
2015-09-14 12:54:00 -03:00
David Capello
ab53f3f4d7
Update text entries when Abs/Rel mode is changed in Palette Editor ( fix #809 )
2015-09-14 08:53:31 -03:00
David Capello
74e642d997
Add extra KeyContexts for each selection transformation
2015-09-11 20:04:02 -03:00
David Capello
adce0b9569
Fix invalid key[] access in _handle_key_press()
...
On Windows, if we pressed numpad dot key, all timers start working
incorrectly (e.g. animations couldn't be reproduced anymore.).
There was one report about this same issue on Mac OS X.
2015-09-11 15:12:21 -03:00
David Capello
83aa99a8e2
Fix crash using SpriteSizeCommand on batch mode
2015-09-10 16:44:33 -03:00
David Capello
3d700ab94c
New FLI/FLC encoder/decoder ( fix #7 )
2015-09-10 16:10:31 -03:00
David Capello
2a0f8ca536
Disable webp support by default (related to #799 )
...
There is a new WITH_WEBP_SUPPORT cmake option to enable webp support.
2015-09-07 14:45:31 -03:00
David Capello
361973d880
Merge pull request #801 from green-big-frog/patch-1
...
Fix typo in INSTALL.md
2015-09-05 18:20:07 -03:00
Jonathan
a47b9f206f
Fix typo in INSTALL.md
2015-09-05 20:28:34 +02:00
David Capello
6bfae49eb0
Merge branch 'webp-support'
2015-09-02 11:11:45 -03:00
Gabriel Rauter
c2a58dd46f
fix type conversion warn. & remove problem preset
...
fix type conversions by putting WebPOptions Class in a seperate file like
GifOptions and use Getter and Setter for better handling. In cases
needed explicit casting was used to supress those warings.
Additionaly the LAST WebPHint Option was removed as it does not work for
this situation.
2015-09-02 14:52:07 +02:00
Gabriel Rauter
7a3aa6d0c4
replace auto keyword with corresponding types
2015-09-02 13:34:40 +02:00
Gabriel Rauter
5f3dfd125c
use functions for int status code error message conversion instead of maps
2015-09-02 04:10:53 +02:00
Gabriel Rauter
76f0f82b95
use base::convert_to for string to in conversion instead of own funtions
2015-09-02 03:55:26 +02:00
Gabriel Rauter
c9d9af7c6f
use std::vector as buffer for input file
2015-09-02 03:51:35 +02:00
Gabriel Rauter
085ffcdcb2
use auto-generated widget for webp options dialog and save options
2015-09-02 01:26:34 +02:00
Gabriel Rauter
467fcbc0ce
fix compatibility with last stable libWebP release = 0.4.3
2015-09-01 23:39:35 +02:00
Gabriel Rauter
5ae9b9a6ef
correct copyright line
2015-09-01 23:11:50 +02:00
David Capello
f691b91310
Fix split_filename_tests
2015-09-01 13:05:41 -03:00
David Capello
e8abba1b93
Refactor some UI code
...
- Moved ui::GuiSystem from ui/base.h to ui/system.h as ui::UISystem
- Moved some internals to ui::details namespace
- Fix crash of UI tests when ~Manager is called
- Removed ui::init/exit_system() functions
2015-09-01 10:18:47 -03:00
Gabriel Rauter
83159aba8a
add libwebp info to credits
2015-09-01 13:31:33 +02:00
Gabriel Rauter
497fc3ed3a
implement simple non animation webp for #273
...
This includes lossless and lossy webp file format. For this reason a
save option dialog was added giving rudimentary options for saving to
the user.
2015-09-01 13:05:24 +02:00
Gabriel Rauter
884b5f2e6f
add submodule libwebp for #273
2015-09-01 13:04:11 +02:00
David Capello
20832dee93
Update version to 1.1.1-dev
2015-08-31 13:27:40 -03:00
David Capello
d6684691bf
Rename PRINTF to LOG
2015-08-28 20:48:49 -03:00
David Capello
7fb7b85b13
Minor adjustments to ButtonSet style
2015-08-28 15:48:19 -03:00
David Capello
984059e1bc
Avoid selecting all RGBA+Index buttons in FilterTargetButtons
2015-08-28 15:41:02 -03:00
David Capello
465a0c1d14
Don't reset TARGET_ALL_FRAMES/LAYERS flags in FilterTargetButtons::setTarget()
2015-08-28 15:34:47 -03:00
David Capello
9231e9bd51
Add tooltips to FilterTargetButtons ( fix #786 )
2015-08-28 15:33:53 -03:00
David Capello
110aa74dae
Add required #include "ui/timer.h" in ui/tooltips.h
2015-08-28 14:45:56 -03:00
David Capello
5c371285ab
Improve FilterTargetButtons UI style using a ButtonSet
...
Related to #786
2015-08-28 14:37:00 -03:00
David Capello
db4817e3ef
Add an extra grid test with four columns
2015-08-28 13:11:00 -03:00
David Capello
530edb4ae3
Add Widget() constructor to create default widgets
2015-08-28 13:10:42 -03:00
David Capello
d994d67a2a
Fix crash using Shading mode with sprites with different palette sizes
2015-08-28 12:22:32 -03:00
David Capello
47a5b38ada
Hide "Edit > Scripts" menu because scripts destroy undo history at this moment
2015-08-27 13:41:03 -03:00
David Capello
6c9733ca38
Use a FileHandle in Engine::evalFile()
2015-08-27 13:39:50 -03:00