Commit Graph

75 Commits

Author SHA1 Message Date
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
ef51fd59ea Added Ctrl+Shift+Z to redo. 2010-03-07 16:48:21 -02:00
David Capello
1f3dcc77ed Renamed palette.png to default_skin_palette.png. 2010-03-07 12:05:01 -02:00
David Capello
7da47af726 Renamed sheet.png to defaut_skin_sheet.png. Added some temporary icons in the sheet for future tools. 2010-03-07 12:03:47 -02:00
David Capello
1a80c8fcf8 Replaced \n to 
 entity (because now we use TinyXml parser). 2010-01-31 23:42:45 +00:00
David Capello
017ece697f Now XML files are loaded with tinyxml library 2009-12-16 23:24:57 +00:00
David Capello
2a7d182b81 Modified news, and some tips. 2009-11-22 18:20:35 +00:00
David Capello
9e0928ca66 Fixed combo-box graphics. 2009-11-22 00:26:58 +00:00
David Capello
a7cc9371d2 Added GUI sheet (Ilija Melentijevic graphics). 2009-11-21 20:07:21 +00:00
David Capello
e4dd1905fb Added change_color command to change FG color-index with keyboard (Ilija Melentijevic idea). 2009-11-18 14:51:05 +00:00
David Capello
1764f78d1b Fixed ordered dithering menu item. 2009-11-17 23:19:03 +00:00
David Capello
8b7f476f17 Fixed issue #2874422 "More screen resolutions" (Philippe Michael Groarke idea). 2009-10-17 22:27:05 +00:00
David Capello
115af153cc Fixed I keyboard shortcut. Added Shift+I too. 2009-10-09 02:41:09 +00:00
David Capello
2d5e227a5f Replaced "M" label with "MB". 2009-10-09 02:22:49 +00:00
David Capello
5455136f35 Internal refactoring of commands to support record/play macros in the near future. 2009-10-09 01:34:06 +00:00
David Capello
33baa4fd5c Merged branch 0.7.1 (release 0.7.2) to trunk. 2009-09-07 14:28:47 +00:00
David Capello
1c541651ce + Added a progress bar in the file-selector to show the progress of thumbnail generation.
+ Fixed a program crash in file-selector dialog when you open a file and the thumbnail is being generated.
2009-08-10 02:36:06 +00:00
David Capello
c56cad63e9 Fixed usability issues in the file-selector dialog. 2009-08-09 21:50:26 +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
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
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
8d5f265103 Added support for tiled-mode in X or Y axis only. 2009-03-09 00:05:37 +00:00
David Capello
3d6af97999 Added "Save Copy As" command (feature #2636076). 2009-02-25 19:22:38 +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
78f879fa14 Renamed some files and removed deprecated files.
Fixed a bug in fileview with i-search.
2008-09-30 01:25:11 +00:00
David Capello
4026754881 Added support to lock lines in special angles with Shift key (feature request #1961397).
Fixed 'Curve' tool when click with the right mouse button (added
'editor_click_continue' routine for this).
2008-09-29 01:55:24 +00:00
David Capello
8911db458a Added the 'Curve' tool. 2008-09-28 20:53:42 +00:00
David Capello
d181b9f215 Completelly removed the scripting support and lua files.
Updated the forum address.
2008-09-27 23:24:27 +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
3ce0a8fc85 Fixed the duplication of background layer: the flags aren't copied.
Minor changes.
2008-05-05 04:45:17 +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
f8db016cb9 Added NewFrame & RemoveFrame.
Fixed move/copy_cel, and the Animation Editor is almost ready.
Added the cel_movement_popup.
Removed all the "quick" stuff (quick-move/copy, etc.).
Removed some commands (crop cel, crop layer, link cel).
2008-05-05 02:07:04 +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
1a74066f1e 2008-03-29 03:44:24 +00:00
David Capello
a951368da6 Added progress bar to apply-effect and save file operations.
Added support to configure file format with a FileData like JpegData.
2008-03-29 03:43:19 +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
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
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
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
dc6d0467ac 2008-01-21 21:54:22 +00:00
David Capello
dfae80457b Fixed problems with the brush-cursor drawing code. 2008-01-13 20:49:02 +00:00
David Capello
7fe8991db2 Modified the way that GUI manager (jmanager) controls the message-loop. 2008-01-07 11:45:02 +00:00
David Capello
cbcc6953b4 Added goto_*_frame & play_animation commands. With this the 'Preview'
uses the same keys to move through frames that are specified in gui.xml
2008-01-05 18:32:12 +00:00