Commit Graph

2819 Commits

Author SHA1 Message Date
David Capello
807598d5c3 Add post build target to copy the whole data/ dir into build/bin/ dir 2014-12-02 11:15:06 -03:00
David Capello
08f846c83d Convert gui.xml to Unix EOLs 2014-12-02 01:47:54 -03:00
David Capello
7c9303e91d Fix compilation of libcurl from a Visual Studio solution 2014-12-02 01:42:11 -03:00
David Capello
ce4021ba35 Minor change in main CMakeLists.txt 2014-12-02 01:38:38 -03:00
David Capello
e0264787c6 Fix compilation of gen utility (and tests) under Visual Studio solution (fix #541) 2014-12-02 01:38:25 -03:00
David Capello
d1c0a61b40 Change the compilation output path to CMAKE_BINARY_DIR/bin and /lib 2014-12-02 01:30:01 -03:00
David Capello
a0c8b1f188 Update version to 1.0.8-dev 2014-11-30 21:09:50 -03:00
David Capello
bc9f4b2c9b Don't load a file if it's already open on drop files event
This avoids to open a document two times on Mac OS X
from the command line (the file is loaded when we
process the command line, and by Finder, which send us
an application:openFile: message).
2014-11-30 21:06:29 -03:00
David Capello
a3ffe68f2d Minor check in ~ScopedHandle() 2014-11-30 21:02:41 -03:00
David Capello
b1d9d82fbf Don't initialize GuiSystem if it's not necessary 2014-11-30 21:01:54 -03:00
David Capello
7a4f4c9c5e Support running multiple instances on OS X (fix #533) 2014-11-30 21:00:27 -03:00
David Capello
a8af9df74a Remove unused variable 2014-11-30 20:54:46 -03:00
David Capello
2c5ef7d636 Add check for allegro_init() 2014-11-30 12:27:41 -03:00
David Capello
d92a5d08eb Fix compilation error in clang 2014-11-30 12:06:31 -03:00
David Capello
11041c00b4 Fix Timeline::hotThis() to highlight elements in the timeline correctly 2014-11-30 11:25:07 -03:00
David Capello
1dfb48e068 Final fix for "Paste at original position" (issue #57 and fix #336) 2014-11-30 10:40:32 -03:00
David Capello
b7d86e596a Add --ignore-empty command line option (close #549)
This option can be used to avoid exporting empty frames/cels.
2014-11-30 10:23:11 -03:00
David Capello
aee7eb7bd4 Fix issue #548 - Avoid moving hidden layers or auto-selecting them 2014-11-30 09:43:33 -03:00
David Capello
2d57ca4b3e Merge branch '1.0' 2014-11-29 15:07:16 -03:00
David Capello
4a1ee6d557 Fix Profile flags for MSVC in CMakeLists.txt 2014-11-28 23:04:14 -03:00
David Capello
694b9c5cd8 Convert CenterOnZoom into a ISettings property 2014-11-28 23:04:01 -03:00
David Capello
21988f277c Modify zoom tool so we can click and drag the mouse in X axis to zoom in/out 2014-11-28 00:23:07 -03:00
David Capello
5c9c05ebe7 Fix problems because excessive zoom out
* Crash when the checked background is too small
* Infinite loop to draw the grid
2014-11-27 23:48:53 -03:00
David Capello
adf08ac7df Merge branch '1.0'
Conflicts:
	src/app/commands/cmd_preview.cpp
	src/app/thumbnail_generator.cpp
	src/app/ui/editor/editor.h
	src/app/util/render.h
	src/raster/image_buffer.h
2014-11-27 23:40:14 -03:00
David Capello
91aeddd7ba Fix more delays when we start drawing (related to issue #239)
Add an ImageBufferPtr parameter to RenderEngine::renderSprite() to avoid
allocating memory for each render.
2014-11-27 23:04:52 -03:00
David Capello
1b3d8650bd Remove Widget::user_data and theme_data fields 2014-11-25 22:46:50 -03:00
David Capello
512c7d4ecf Update TODO.md (some items are already in issues) 2014-11-25 22:40:33 -03:00
David Capello
ca9df1a05e Rename ui::jguiscale() to ui::guiscale()
* Change Theme::guiscale member to Theme::m_guiscale
2014-11-25 22:33:45 -03:00
David Capello
9e0990a70f Remove Manager::currentMouseButtons() 2014-11-25 22:11:44 -03:00
David Capello
752faf11f2 Remove jmouse_[xyz]() functions 2014-11-25 22:10:28 -03:00
David Capello
376fd0a23c Remove jmouse_b() function 2014-11-25 22:01:36 -03:00
David Capello
0a7bbfba6b Add PaletteIndexChangeEvent for PaletteView::IndexChange event
This was added to avoid deprecated jmouse_b(0) function
in ColorBar::onPaletteIndexChange().
2014-11-25 21:51:06 -03:00
David Capello
a35c32dcfe Rename jmouse_hide/show() to ui::hide/show_mouse_cursor() 2014-11-25 21:35:06 -03:00
David Capello
b74262e36e Remove jmouse_is_hidden() and jmouse_is_shown() functions 2014-11-25 21:32:22 -03:00
David Capello
d9ed3c2348 Rename jmouse_[gs]et_cursor() to ui::[gs]et_mouse_cursor() 2014-11-25 21:30:56 -03:00
David Capello
4920179143 Merge branch '1.0'
Conflicts:
	src/ui/manager.cpp
2014-11-25 21:23:02 -03:00
David Capello
83ee0bf45d SelectAccelerator: Focus the KeyField after any modification is done
E.g. if a modifier checkbox is pressed, we want the keyboard focus back
to the KeyField (which is the only interesting field)
2014-11-25 20:29:26 -03:00
David Capello
8514f02ee4 Fix #543 crash adding keyboard shortcuts to menu items without associated app::Key 2014-11-25 20:06:48 -03:00
David Capello
badccf0847 Generate kKeyDownMessage for Cmd key correctly 2014-11-25 05:55:22 -03:00
David Capello
f1cd3bbbe2 Merge branch '1.0'
Conflicts:
	src/app/ui/editor/standby_state.cpp
	src/app/ui/editor/tool_loop_impl.cpp
2014-11-24 21:53:10 -03:00
David Capello
82cc87d9be Redraw transformation handles when the quick tool is changed 2014-11-24 21:15:59 -03:00
David Capello
a00a3b2a83 Fix crash changing ConfigureTools options when activeDoc == NULL 2014-11-24 20:52:52 -03:00
David Capello
2de3f7caff Fix crash when other app prevent us to recreate the primary DirectDraw surface (fix #542) 2014-11-24 20:24:28 -03:00
David Capello
3437c49f0b Add opacity to grid and grid pixel (close #58) 2014-11-24 19:13:25 -03:00
David Capello
4fc28d5639 Add zoom out (related to issue #33)
Before the zoom was handle as a bits shift (scaled = value << zoom),
now the zoom is a fraction (scaled = value * zoom.num / zoom.den).

Changes:
* Add Zoom class to apply/remove zoom factor
* Split merge_zoomed_image template function into
  merge_zoomed_image_scale_down and merge_zoomed_image_scale_up
  to handle the special case where zoom.num/zoom.den < 1.0
2014-11-24 17:18:30 -03:00
David Capello
80501899ca Change errors UI related to locked/hidden layers to status bar tips
This was mainly done for Ctrl+click, so when we try to move the
Background layer, we avoid an annoying message box.
2014-11-24 11:50:02 -03:00
David Capello
17b0bee0ae Refactor: Use gfx::Point in several places instead of two x,y integers
Changes:
* Add doc::Sprite::bounds()
* Use gfx::Point to store the doc::Cel position
* Replace "int x, int y" with a "const gfx::Point&" param
* Fix Mask::intersect(const gfx::Rect&) and Mask::crop(const Image*)
2014-11-24 00:09:22 -03:00
David Capello
3e1c1fb219 Merge pull request #536 from jjconti/patch-2
2nd little fix in README
2014-11-20 22:18:46 -03:00
David Capello
4578973976 Merge pull request #535 from jjconti/patch-1
Little fix in README
2014-11-20 22:18:27 -03:00
Juan José Conti
a9f6eba556 Little fix 2 2014-11-20 22:09:22 -03:00