Commit Graph

2072 Commits

Author SHA1 Message Date
David Capello
61c5b0dbb6 Move config.h to src/ directory 2014-02-08 00:56:20 -03:00
David Capello
51f70a170a Move code to handle Windows clipboard (text) to ui/clipboard_win.h 2014-02-08 00:41:16 -03:00
David Capello
e082cd96f1 Make ScreenScale option configurable through UI 2014-02-08 00:19:20 -03:00
David Capello
cff08af639 Fix UISettingsImpl::setBgColor() so right click with eye-dropper set background color 2014-02-06 21:17:47 -03:00
David Capello
d9d761c596 Fix issue 338: Double Clicking Timeline While Holding Control Crashes the Program 2014-02-06 20:40:10 -03:00
David Capello
0480de4388 Add live preview to tiled mode
- Removed draw_emptyset_symbol() function
- Added DocumentSettingsObserver
- Moved Editor's painting code from onProcessMessage to onPaint
2014-02-06 20:22:52 -03:00
David Capello
9b2f5399e9 Add ui::Graphics::fillRegion() 2014-02-06 20:01:32 -03:00
David Capello
9050861d78 Add ui::Widget::getGraphics() and GraphicsPtr 2014-02-06 20:00:59 -03:00
David Capello
936b741f90 Stop propagation of keyboard messages if a child use it
This fix a new bug with the new EditorView's scroll-bars. As 1,2,3,4,5,6
keys change the zoom, they will change the viewport size, and scroll-bars
will be removed/added. We cannot continue iterating the View::m_children
collection after m_children is modified (scroll-bars are removed/added).
2014-02-03 00:22:24 -03:00
David Capello
d3c72bedf2 Fix issue 309: Program crashes immediately after setting ScreenScale to 1
Avoid double destroy_bitmap() call.
2014-02-03 00:09:42 -03:00
David Capello
97d1acc036 Fix issue 313: Canvas does not reflect the change of a layer order 2014-02-02 23:57:30 -03:00
David Capello
c3a03565fb Fix issue 314 (crash): We were adding an image in the sprite's stock with a shared ImageBuffer 2014-02-02 23:10:09 -03:00
David Capello
858d7ff1b3 Add one assert more in ImageIteratorT() ctor 2014-02-02 23:07:54 -03:00
David Capello
20393c8aaa Fix bug with empty ContextBar when Ctrl+W is used to close a sprite and then a new sprite is created
This happens because Ctrl key activates the Hand/Move quick-tool, so the
ContextBar is updated to shows controls for this tool (an empty context
bar at the moment). Then, as Ctrl+W is pressed, the document is closed,
(we lost the Editor), and we willn't receive a
ContextBar::onCurrentToolChange() event (which should be generated by
releasing Ctrl key).
2014-02-02 21:22:50 -03:00
David Capello
78e5ab356a Don't show ContextBar when the program starts 2014-02-02 21:17:48 -03:00
David Capello
44c6a9d91a Fix bug where ContextBar was completely hidden 2014-02-02 21:07:12 -03:00
David Capello
dd2839a49a Add app::StartView (work-in-progress) 2014-02-02 20:55:32 -03:00
David Capello
0a01828ffe Don't eat all keystrokes on ui::TextBox::onProcessMessage() 2014-02-02 20:13:52 -03:00
David Capello
ff166107ed Don't show grid and mask in mini editor 2014-02-02 19:14:27 -03:00
David Capello
0d7f4498b9 Fix const-correctness for ColorPicker::pickColor() member function 2014-02-02 18:49:19 -03:00
David Capello
e671508d85 Change infinite scroll implementation
Remove necessity of jmouse_x(1) and jmouse_y(1) calls.

- Renamed jmouse_control_infinite_scroll() -> ui::control_infinite_scroll()
- Renamed jmouse_set_position() -> ui::set_mouse_position()
- Added ui::get_delta_outside_box()
2014-02-02 18:46:19 -03:00
David Capello
5eb516f0f5 Fix FileList navigation with keyboard (enter key focus the FileList again) 2014-01-30 20:05:05 -03:00
David Capello
c8c099864c Added "Grab Alpha" option to eye dropper (issue 134) 2014-01-28 23:56:44 -03:00
David Capello
beda78e168 Don't use override modifier outside the class definition 2014-01-28 23:46:27 -03:00
David Capello
78fbf07fc7 Fix scroll bar thumb size calculation 2014-01-28 23:46:04 -03:00
David Capello
eee1719109 Implemented issue 260: Scroll-bars for sprite editor 2014-01-26 13:28:11 -03:00
David Capello
c2e50acb0b Fix issue 298: Crash on quit with multiple viewports open 2014-01-26 11:22:23 -03:00
David Capello
11f864da12 Minor changes in skin parts to improve context bar buttons 2014-01-26 11:03:32 -03:00
David Capello
5ccae8c0bb Remove some labels from ContextBar, modify tooltips look, and use mini font 2014-01-26 08:40:16 -03:00
David Capello
4e6320b03c Add setup_mini_font 2014-01-26 08:39:33 -03:00
David Capello
9423b967ab Change selection behavior: left-click replace the selection
With this patch we replace the "unique/odd" behavior of Aseprite where
you add selection regions with left-click and remove with right-click.
Now by default you replace the selection with left-click (as in regular
gfx programs). Also you can change the selection tool behavior with
buttons/icons at the context bar (to select between replace/add/subtract).
2014-01-25 17:58:29 -03:00
David Capello
2d7db879a3 ContextBar: Move m_freehandBox to the last position to improve context bar for selection tools 2014-01-25 16:37:38 -03:00
David Capello
78c1f30f4a Update copyright year in config.h and README.md 2014-01-25 16:28:25 -03:00
David Capello
1554875618 Add pixel-perfect drawing mode for freehand tools (issue 315)
* Added new app::tools::IntertwineAsPixelPerfect intertwiner
* Added app::tools::FreehandAlgorithm enum
* Added app::tools::WellKnownIntertwiners constants
2014-01-25 16:26:49 -03:00
David Capello
f19aae9232 Fix UISettingsImpl/UIPenSettingsImpl::removeObserver() functions 2014-01-25 16:13:44 -03:00
David Capello
8d22664f7e create_release.sh: Add command to sign the .exe file 2014-01-05 22:41:57 -03:00
David Capello
77d24de34e create_release.sh: Use Ninja to build the release 2014-01-05 22:41:46 -03:00
David Capello
ebc9fa55b1 MSVC: Add support for Windows XP platform 2014-01-05 22:37:53 -03:00
David Capello
f7e69a1037 create_release.sh: Ask for source directory 2014-01-05 22:34:29 -03:00
David Capello
5bbe6c6086 Fix compilations problems in g++ 4.2.1 (Mac OS X) 2014-01-05 16:43:39 -03:00
David Capello
2a2c668e4f Fix operator+(StatefulStyle,States) operator 2014-01-05 16:34:05 -03:00
David Capello
7b5f58aff4 Fix gcc compilation error (using undefined PointT class) 2014-01-05 16:15:37 -03:00
David Capello
6bef259060 Fix gcc compilation error in resize_image_unittest (we cannot use C++11 enums yet) 2014-01-05 16:15:10 -03:00
David Capello
656a1bef2a Disable ResizeImage BilinearInterpRGBType test 2014-01-05 16:13:53 -03:00
David Capello
6197054a3c Add base::to/from_utf8 impl for Unix-like platforms 2014-01-05 15:33:09 -03:00
David Capello
0fa2842e40 Fix bug in fixup_image_transparent_colors(): reading pixels out of bounds 2013-12-29 21:19:32 -03:00
David Capello
f8e8657093 Move kPaintMessage code to onPaint() event for some widgets
The affected widgets are: ColorBar::ScrollableView, ColorButton, and
StatusBar.

* Added Graphics::drawLine()
* Moved rectgrid and draw_color to modules/gfx.cpp
2013-12-29 21:12:23 -03:00
David Capello
66f357098c src/app/modules/gfx.cpp: Remove deprecated RectTracker stuff 2013-12-29 20:16:31 -03:00
David Capello
fe552f60de Temporal fix for issue 299: Don't allow moving the selection from other editor than the current one 2013-12-29 19:53:28 -03:00
David Capello
fc58c24da2 allegro/src/keyboard.c: Avoid accessing out of range items in key/_key arrays 2013-12-29 19:52:21 -03:00