Commit Graph

189 Commits

Author SHA1 Message Date
David Capello
7d240c861f Fixed bug 'preview cursor is not visible in indexed images when fg-color is 0' adding Image::mask_color field. 2010-03-24 19:15:23 -03:00
David Capello
975049bdea Removed _index_cmap. It was used to remap colors of the current palette (useful in 8 bpp modes). 2010-03-24 18:21:20 -03:00
David Capello
2a82911b18 Removed asm code. 2010-03-24 14:10:46 -03:00
David Capello
d4344ae348 Replaced algo_polygon() with GD library implementation. 2010-03-24 02:59:40 -03:00
David Capello
2a27405173 Added Vaca::Mutex.
Now Vaca is compiled as a library (.lib/.a).
Removed jmutex.cpp, jpoint.cpp, jsize.cpp.
2010-03-10 00:34:50 -02:00
David Capello
71415febe8 image_impl.h does not include allegro.h anymore 2010-03-09 00:43:49 -02:00
David Capello
cb97884026 - All tools stuff refactored in various files/components.
- Added classes: IToolLoop, Tool, ToolGroup, ToolInk, ToolController, ToolPointShape, ToolIntertwine, ToolBox, etc.
- Added ToolLoopManager.
- Removed old src/modules/tools.cpp.
- Added ISettings and UISettingsImpl, adding the tools settings (onion skinning, grid, tiled mode, etc.).
- Added App::PenSizeBeforeChange, PenSizeAfterChange, CurrentToolChange signals.
- Renamed Context::get_bg/fg_color to getBg/FgColor.
- Refactored Brush class to Pen and added PenType.
- Renamed tiled_t to TiledMode.
- get_config_rect now uses the new Rect class imported from Vaca instead of old jrect.
- Added default_skin.xml to load tool icons.
- Added pen preview in Editor::cursor stuff.
- Added Editor::decorators.

Note: This big patch is from some time ago. I did my best to pre-commit other small changes before this big one.
2010-03-07 17:47:45 -02:00
David Capello
df59edc3ce Modified "int tiled" to "bool tiled" in "dirty_new". 2010-03-07 12:17:11 -02:00
David Capello
156e3adeb3 Added 'extras' to Sprite to draw extra-stuff that is not in the Sprite (it will be useful to draw preview of the brush). 2010-03-07 12:14:25 -02:00
David Capello
e7b99eda29 Modified C *_free calls to C++ delete. 2010-03-07 12:06:37 -02:00
David Capello
0b357e068b Added Mask::contains_point member function. 2010-03-07 11:40:54 -02:00
David Capello
c4afb1a236 Renamed get_sprite() to getSprite() in Layer class and Undoable class. 2010-03-01 22:59:16 -02:00
David Capello
700ab045d2 Added algo_polygon() algorithm. 2010-02-28 23:02:50 -02:00
David Capello
a8831eed86 Modified some comments to C++ style. 2010-02-28 22:09:46 -02:00
David Capello
8cfb3daee0 Removed ^L characters. 2010-02-28 21:45:52 -02:00
David Capello
b747ccdaa6 Updated copyright year to 2010 2010-02-01 21:25:40 +00:00
David Capello
96759c9c17 Converted all TRUE/FALSE to C++ true/false 2010-01-30 16:43:13 +00:00
David Capello
0c6765fb88 Modules converted to C++ classes. 2010-01-29 03:15:33 +00:00
David Capello
33f804213d Added is_empty, freeze, unfreeze, add, reserve, and shrink function member of Mask class. 2010-01-27 21:16:49 +00:00
David Capello
33ca3cf8e0 Added support to load png files through Allegro library (now you can save/load palettes in PNG files) 2009-11-19 00:34:07 +00:00
David Capello
cbc0bf22bd Refactored Layer class to include all layer_* functions as member functions. 2009-11-17 13:12:26 +00:00
David Capello
f2f78377ad Added IAppHook interface for a cleaner event/hook interface. 2009-10-14 14:09:59 +00:00
David Capello
e484553608 Renamed some header guards. 2009-08-17 21:38:00 +00:00
David Capello
05803abaa1 Fixed a lot of VC++8 warnings with /W3 flag. 2009-08-17 18:00:38 +00:00
David Capello
2bc2db1630 Added support to compile ASE for Mac OS X (thanks to Trent Gamblin). 2009-08-17 00:26:05 +00:00
David Capello
67a830183b + Modified makefile.vc to handle a completelly static compilation with VC++9.0 Express Edition
(the new compiler used for the following Win32 binary releases).
+ Modified some error handling code to use C++ exceptions.
+ Modified some collections (std::vector, std::map, etc.) from instances to pointers.
2009-08-05 01:53:02 +00:00
David Capello
f9ac4089f5 Fixed compilation problems with gcc/vc. 2009-08-02 23:40:42 +00:00
David Capello
a872edd377 Fixed critical bugs in rendering code with zoom. 2009-08-02 22:23:37 +00:00
David Capello
f8f45dc0e5 + Added Flip Canvas Horizontal/Vertical commands.
+ Fixed problems with keyboard shortcuts for commands with arguments.
2009-07-10 02:08:41 +00:00
David Capello
a5a71d6c86 Now 'rotate canvas' supports mask-rotation. 2009-06-14 22:08:50 +00:00
David Capello
0e2fba2396 Added image_fixup_transparent_colors function.
Fixed image_resize.
2009-06-14 19:05:43 +00:00
David Capello
3885f37f45 + CurrentSprite class was split in SpriteWrapper/Reader/Writer, and CurrentSpriteReader/Writer wrappers.
+ More routines are using exceptions for error handling.
+ Added JWidgetPtr class.
+ Added Undoable::set_imgtype/layer_from_background/flatten_layers.
2009-06-11 15:11:11 +00:00
David Capello
d157131d4a Added more const-correctness. 2009-06-11 00:59:57 +00:00
David Capello
be95cccc0a Fixed compilations errors with g++ 2009-06-10 23:04:27 +00:00
David Capello
c4be9fe5b4 Added Context and UIContext classes.
Added CurrentSprite class.
Removed current_sprite global.
Moved all functions of 'sprites' module to Context/UIContext.
2009-06-01 02:59:15 +00:00
David Capello
8f92f78702 - Added Job class.
- Added SpriteSizeJob class.
- Added ScopedLock class.
- Fixed some bugs.
2009-05-31 20:15:38 +00:00
David Capello
dd003a8f33 - Now "Image" is a C++ class with virtual methods;
- Removed ImageMethods (the C vtable for old "Image" structure);
- Added ImageImpl and ImageTraits;
- Added "Sprite Size" command (feature #2671468);
- Added "Canvas Size" command;
2009-05-31 16:02:32 +00:00
David Capello
8e498470d5 Fixed bug #2511762 (thanks to Clayton Enga for the patch).
Added the feature #2419098 (David Campo idea).
2009-01-24 00:41:01 +00:00
David Capello
e9c3d46693 Added Undoable::crop_sprite/layer/cel.
Added Undoable::replace_stock_image, autocrop.
Added image_shrink_rect function.
Removed autocrop_sprite, CropSprite, CropLayer, and CropCel functions.
2008-10-14 03:11:59 +00:00
David Capello
7a68a1d32b Fixed an important bug where sprite's palettes where not freed using palette_free
(delete (Palette*)). This leaves some dead-pointers in the objects collection of 'gfxobj.cpp'.
2008-10-13 22:39:41 +00:00
David Capello
2b7b89a2a7 Changed delete to delete[]. 2008-10-13 21:05:40 +00:00
David Capello
17dee030f5 Added undo support when changing frame duration.
Replaced ClearMask with Undoable::clear_mask.
2008-10-11 15:59:13 +00:00
David Capello
07b478907e Added Undoable::remove_layer.
Added Undoable::clear_mask.
Fixed a serious bug in shrink_mask.
2008-10-10 02:14:53 +00:00
David Capello
c327a740d7 Added Undoable class. 2008-10-02 02:31:07 +00:00
David Capello
c35c452a80 Converted GfxObj and all the hierarchy of graphics objects to classes.
Removed "(void)" -> "()".
2008-10-01 01:27:51 +00:00
David Capello
a587132ffe Project converted to C++. 2008-09-30 21:01:54 +00:00
David Capello
bcc221ab59 Fixed a bug in FlattenLayers.
Fixed a bug when paste outside the sprite.
Fixed a bug in color-bar when drop colors in nowhere.
Fixed some compilation errors in MSVC.
2008-09-29 23:58:07 +00:00
David Capello
2e10ec3e21 Version 0.6b2 released.
Minor fixed and changes for the new release.
2008-05-06 15:22:57 +00:00
David Capello
cf3521dfe8 Fixed some bugs in merge-down & crop commands using the Background layer. 2008-05-05 04:03:31 +00:00
David Capello
837cf39c54 Added the new Animator Editor.
Other minor changes & refactorings.
2008-04-27 20:27:06 +00:00
David Capello
215fd7dbd0 Added the jumble tool. 2008-04-14 17:56:38 +00:00
David Capello
8908d25e07 Fixed New Frame: now it copies the entire Cel of the previous frame.
Fixed bugs when undo cels with offset < 0,0 (because the sign wasn't being saved)
2008-04-14 03:05:19 +00:00
David Capello
f4b4996540 + Added the JPEG options dialog box.
+ Fixed some convolution matrices.
+ Fixed editors_draw_sprite_tiled & control_tool for tiled mode in
  transparent layers (non-Background).
+ Added gfxobj_id.
- Removed referenced stock (replaced with the ImageRef structure).
+ Fixed the whole 'target' stuff between effects and target_button.
+ Fixed app_get_fg_color & app_get_bg_color to return the black color
  instead of mask when a `Background' layer is actived.
+ Added get_color_for_layer & fixup_color_for_layer.
2008-04-12 03:09:53 +00:00
David Capello
bc95527cbf Fixed the soften-ink for transparent layers. 2008-03-29 20:02:42 +00:00
David Capello
c090bde1ee Renamed filedata to format_options 2008-03-29 04:35:30 +00:00
David Capello
eb26972a11 Renamed filedata to format_options 2008-03-29 04:24:36 +00:00
David Capello
19070bbfc1 2008-03-27 16:58:14 +00:00
David Capello
61a61bd2fa Added eraser and blur tools.
Added inks and better handling of tools->brushes->inks relationship.
color_t is now a ase_uint32.
Added the Background layer.
Fixed bugs loading some king of BMP files.
Removed the bgcolor from the Sprite and .ase files.
Added FileData and BmpData.
Renamed dirty_put to dirty_restore_image_data.
Renamed dirty_get to dirty_save_image_data.
Added get_pretty_memsize, sprite_get_memsize, undo_get_memsize to show memory-usage.
2008-03-27 14:29:33 +00:00
David Capello
c1a6959e6b Modified the undo implementation 2008-03-23 02:08:06 +00:00
David Capello
d2944d5def Added raster/palette.[ch] (duh) 2008-03-22 21:44:03 +00:00
David Capello
19e8083256 + Added Editor::space_pressed to move the scroll with the space key.
+ Renamed Editor::cursor_eyedropper to Editor::alt_pressed.
+ Added statusbar_show_tip.
+ Added AppHooks.
+ Renamed color_button_* to colorbutton_*
+ Renamed GfxObj*Layer::parent to Layer*Layer::parent_layer.
+ Added Palette gfxobj and refactored a lot of code to this new Palette
  instead of Allegro's RGB/PALETTE.
+ Now jfile.c uses jxml.c.
+ New signature for callbacks in 'hook_signal' of modules/gui.c:
  bool hook(JWidget, void *);
- Removed colsel and minipal from dialogs.
+ Fixed mouse bounds in sliders.
2008-03-22 18:43:56 +00:00
David Capello
ef28731b5a Renamed exchange_colors to switch_colors
Removed the bugreport address
"color" is now in the core (isn't a module anymore)
Refactored palette_editor -> paledit
Added test_intmult.c
Completed test_jlist.c
Added test_init, test_init_gui & test_exit routines
Added test_jgrid.c
2008-03-15 01:54:45 +00:00
David Capello
275181990f Added:
- eye-dropper cursor to editor
- JM_SETCURSOR
- incremental-search to fileview widget
- jgrid widget
- JI_SIGNAL_SET_FONT
- sprite_getpixel
- colorselector widget
- test_jlist test
- HSV color type
- grid, exchange_colors, and eyedropper_tool commands
Fixed:
- duplication of layers
Renamed:
- jwidget_add_childs to jwidget_add_children
- status_bar to statusbar
- tool_bar to toolbar
- color_viewer to colorviewer
- color_bar to colorbar
- color_button to colorbutton
- rectfill_exclude to jrectexclude
- _graya_getk to _graya_getv
- _graya_k_shift to _graya_v_shift
Refactoring to color type:
- now it's a color_t structure instead of a string (char *)
Removed:
- mapgen.[ch]
- update_global_script_variables routine
- JM_CHAR (now it's JM_KEYPRESSED).
- README-es.txt
- FAQ.txt
2008-02-29 19:29:49 +00:00
David Capello
7a4486a8f0 More optimizations. 2008-02-13 11:32:19 +00:00
David Capello
440792dcd1 Optimized the routines to handle 'dirty' data structure 2008-02-13 01:55:07 +00:00
David Capello
a408d8917b Removed USE_PRECOMPILED_HEADER option. 2008-02-11 01:56:20 +00:00
David Capello
3290dfb7d5 Added thumbnails, tooltips, and now the file routines don't use PACKFILE (just FILE from stdio). 2008-02-10 19:06:03 +00:00
David Capello
90a55ad443 Copyright updated. 2008-02-10 12:52:15 +00:00
David Capello
528eaab937 Added threads to load files in background.
Added a new file-selector (using PIDLs for Win32).
2008-02-04 02:37:26 +00:00
David Capello
2aea148245 Fixed file_size_ex and outportw usage in Linux. 2008-01-31 18:48:58 +00:00
David Capello
33cde18bf1 Added JMutex, lock_current_sprite, and locked & mutex fields for Sprite.
Added readable/writable buttons in the Film Editor. Added forbidden cursor.
Fixed some bugs in editors_draw_sprite_tiled and cmd_configure_tools.
2008-01-23 16:16:43 +00:00
David Capello
8cc8d732e2 Files reformatted (changed "function_call ()" to "function_call()" ). 2008-01-07 15:10:17 +00:00
David Capello
8c2ebdfee4 Removed the IDLE message.
Added a lot of asserts (in the GUI code mainly).
2008-01-03 23:22:04 +00:00
David Capello
ece7c72b0f Added ase_uint8, ase_uint16, ase_uint32 2007-12-11 20:05:18 +00:00
David Capello
d87b0dc8ff Added jwidget_set_max_size.
Modified some dialogs for a better look.
Fixed the interactive movement of the layer.
2007-12-06 20:05:32 +00:00
David Capello
549210b95f Fixed the copy & paste. 2007-12-06 03:20:49 +00:00
David Capello
7a0913c2cf Added rules to make tests 2007-12-05 03:29:17 +00:00
David Capello
c8db258b00 Added background color to sprite.
Renamed FileType to FileFormat.
Moved ase/jinete/src to ase/src/jinete.
Moved ase/jinete/include to ase/src/jinete.
Moved ase/jinete/freetype to ase/third_party/freetype.
2007-12-05 01:30:50 +00:00
David Capello
2ea9551ce1 Renamed frpos -> frame. Added operations to handle frames and cels. 2007-11-19 14:23:15 +00:00
David Capello
429d6a83ef Renamed "frame" to "cel" 2007-11-16 20:49:40 +00:00
David Capello
40e3a27ce7 Header of all files updated 2007-11-16 18:25:45 +00:00
David Capello
89e2452ed0 More commands transformed from Lua code to C 2007-11-09 04:10:19 +00:00
David Capello
0acca25989 Added "new_frame" command. Renamed writeable to writable. 2007-10-08 02:20:57 +00:00
David Capello
ce25bfaac4 Added all mask/selection commands.
Added all commands to select a tool.
Fixed a bug when setting the grid.
The about dialog shows AUTHORS.txt
2007-09-30 15:32:21 +00:00
David Capello
a68a9e2e56 Added cmd_drawing_tools.c.
Fixed some errors with double memory free (from 'menuitems' and from 'commands').
Added the four main commands for the editor of sprites (close_editor, make_unique_editor, split_editor).
2007-09-27 18:02:23 +00:00
David Capello
670d468252 Added command_execute_open_file.
Removed jmanager_dispatch_draw_messages.
Fixed wheel behavior in the editor (only when the editor is in standby state).
Replaced scare/unscare_mouse jmouse_hide/show. Renamed ji_mouse -> jmouse.
Added command_execute_close_file
2007-09-26 19:34:06 +00:00
David Capello
e82167b340 Added double-buffering for GUI, and PNG support 2007-09-20 00:32:35 +00:00
David Capello
7c4dbdc036 Fixed a compilation error for GCC 4.x 2007-09-19 18:31:12 +00:00
David Capello
57e978b102 Moved everything to trunk 2007-09-18 23:57:02 +00:00