Commit Graph

7987 Commits

Author SHA1 Message Date
David Capello
e1bdcb9899 Added buttons in Options dialog to change grid colors (normal grid and pixel grid). 2010-04-28 23:47:08 -03:00
David Capello
2af3160b3f Added an option in Tools Configuration dialog to show the pixel grid. 2010-04-28 23:46:17 -03:00
David Capello
30c6677cc1 The Editor can draw the pixel grid. 2010-04-28 23:44:32 -03:00
David Capello
4807de27b4 Added "pixel grid" in ISettings interface. 2010-04-28 23:44:10 -03:00
David Capello
8dd69cada9 Moved "Cursor Color" setting from "Tools Configuration" to "Options" dialog. 2010-04-25 23:35:05 -03:00
David Capello
d4a0b4b9eb Modified color selector (tabs replaced with buttons).
Mask button now is just one button (you don't need to select tab and then the "mask button").
2010-04-25 23:24:26 -03:00
David Capello
475398eb4b Fixed colorbutton_draw(). 2010-04-25 23:22:48 -03:00
David Capello
74356cf8b7 The color selector in color-buttons appears only when they are clicked. 2010-04-25 23:21:10 -03:00
David Capello
5bea28659e PopupWindow have not yellow background anymore. 2010-04-25 23:17:37 -03:00
David Capello
475857ebcf Removed unused value in draw_color(). 2010-04-25 23:14:58 -03:00
David Capello
e12c99f61d Avoid to reserve caption space in popup windows that do not have a caption. 2010-04-25 23:14:13 -03:00
David Capello
3cd3839feb Minor fixes for short color format in color_to_formalstring() function. 2010-04-25 23:12:50 -03:00
David Capello
0260452e3e Color buttons for checked-bg have imgtype=IMAGE_RGB. 2010-04-25 23:12:07 -03:00
David Capello
8e62794da0 Added validation in "Grid Settings" dialog to avoid negative grid width/height. 2010-04-25 21:30:29 -03:00
David Capello
befd81c63b Added "checked background configuration".
Now you can configure size and color of the checked background
used in transparent sprites.
2010-04-25 21:29:50 -03:00
David Capello
9c63b4f1ba Added more width to default combobox size. 2010-04-25 19:33:08 -03:00
David Capello
3f6f1471fd Removed mouse speed option.
Removed _setup_mouse_speed() function and dialog/options.cpp file.
All the code is in cmd_options.cpp now.
2010-04-25 15:52:19 -03:00
David Capello
5665b7dd1a Added grid_settings command (feature #2874433). 2010-04-25 15:31:44 -03:00
David Capello
b8e49466ad Added support for vertical separators:
- New PART_SEPARATOR_VERT in skin.
- New SkinneableTheme::draw_part_as_vline() function.
2010-04-25 15:02:28 -03:00
David Capello
162e3efd97 Modified default bounds of "palette editor" window. 2010-04-25 14:40:40 -03:00
David Capello
ebf8515a30 Fixed possible dead-pointers deleting a widget. 2010-04-25 12:13:59 -03:00
David Capello
da072b79e9 Moved icons to data/icons/ directory. 2010-04-25 12:05:18 -03:00
David Capello
f0f5bafd78 Refactored all jwidget_has_focus/mouse/capture functions to member functions.
Added Widget::hasFocus/Mouse/Capture and Widget::hasMouseOver() members.
Removed JI_HARDCAPTURE flag (it was used only by button widget).
2010-04-25 12:03:25 -03:00
David Capello
314e59dae1 Now the user can move selected pixels (still WIP).
Details:
Added EDITOR_STATE_MOVING_PIXELS state to Editor.
Added PixelsMovement helper class.
Added Undoable::paste_image().
2010-04-24 21:23:40 -03:00
David Capello
c65de92e47 Added Editor::controlInfiniteScroll() member function. 2010-04-24 21:04:03 -03:00
David Capello
220df93c35 Fixed: You cannot change the frame or fg/bg color when you are drawing using the mouse wheel. 2010-04-24 16:55:39 -03:00
David Capello
c7f0b368f7 Added support to load .ico files (still WIP). 2010-04-24 16:11:48 -03:00
David Capello
20c4ac5235 Added ToolInk::isCelMovement(). Now "Move" tool moves cel. 2010-04-24 16:10:48 -03:00
David Capello
bb6815524f Refactored 'extras' stuff in Sprite class.
Now it is called "ExtraCel" which is the union of a Cel and an Image.
2010-04-24 16:09:35 -03:00
David Capello
d79d29c1a5 Now when you pass the mouse over a tool button, the tool name and shortcut are shown in the status bar.
Added StatusBar::showTool().
2010-04-24 01:55:51 -03:00
David Capello
e12fd03b7b Fixed a bug in convert_xmlelement_to_widget() setting maxwidth when only minwidth where specified. 2010-04-24 01:36:11 -03:00
David Capello
28074c0e0c Added "wheel actions". The new behavior for the mouse wheel is this:
wheel=zoom,
alt+wheel=change fg color,
ctrl+wheel=change frame.
2010-04-24 01:31:35 -03:00
David Capello
c8436b73e3 Better feedback for eyedropper tool (now the eyedropper tool is controlled by the editor as "Alt+click"). 2010-04-24 01:30:24 -03:00
David Capello
f0c2ae6991 State bar shows alpha value when a color is being shown. 2010-04-24 01:28:33 -03:00
David Capello
e145ea63d7 Removed MODE_VERBOSE in beta version. 2010-04-24 01:22:35 -03:00
David Capello
f2265b2034 Improved color indicators in status bar (StatusBar::showColor()). 2010-04-24 01:06:30 -03:00
David Capello
21a979874b Added support for alpha (in skin graphics) in ToolStrip JM_DRAW message. 2010-04-24 00:13:00 -03:00
David Capello
b0f9b75198 Updated about text. 2010-04-23 23:58:54 -03:00
David Capello
c1dfcc04f7 The ToolStrip is shown only for ToolGroups with more than just one tool (bug reported by Ilija). 2010-04-23 23:26:22 -03:00
David Capello
1e3e4a7bc7 Now SkinneableTheme::draw_bounds*() member functions
receive destination BITMAP. With this we eliminated all
hacks of the ji_screen <-> double-buffer switching style.
2010-04-23 22:36:40 -03:00
David Capello
917127ce37 Added alpha support for skin sheet. 2010-04-23 21:56:59 -03:00
David Capello
0feed51cde Fixed problem in CurrentGfxModeGuard changing gfxmode when it is not necessary. 2010-04-23 21:55:10 -03:00
David Capello
967d0fef39 Fixed problem with Ctrl+mouse wheel over the color-bar (reported by Ilija).
Renamed ColorBar::m_colorsPerColum to m_colorsPerColumn.
2010-04-23 21:49:50 -03:00
David Capello
a76473bf9d Fixed problem picking non-indexed colors. 2010-04-23 19:13:55 -03:00
David Capello
210c127477 Removed unused local variable "imgtype". 2010-04-23 19:13:43 -03:00
David Capello
2c49990420 Added SkinneableTheme::reload_skin() to reload the skin sheet.png file when you press F5. 2010-04-23 19:03:09 -03:00
David Capello
e555f78996 Fixed OpenFilecommand::execute() to open files with errors (these errors in loading process are shown anyway). 2010-04-23 19:02:17 -03:00
David Capello
f24dc119ff Some PRINTFs in gui_flip_screen() to catch the lost screen bug. 2010-04-23 18:50:12 -03:00
David Capello
22b51d20d7 More PRINTF in execute_command() to trace execution of commands. 2010-04-23 18:49:40 -03:00
David Capello
b7410ace5d Added ASE_BETA flag in config.h 2010-04-22 19:00:22 -03:00
David Capello
233fa80850 Added a possible fix to bug #2980428. It needs some testing. 2010-04-22 18:37:54 -03:00
David Capello
cc12e8e88e Added GfxMode and CurrentGfxModeGuard classes.
Now ConfigureScreen command uses these classes.
2010-04-22 18:28:12 -03:00
David Capello
7459c7b6b6 Fixed a couple of warning for comparisons between size_t and int. 2010-04-20 23:46:03 -03:00
David Capello
ed792eba1e Added getRgbMap() methods to Sprite class.
Added Palette* parameter to image_to_allegro() function and Image::to_allegro().
Removed orig_rgb_map.
Removed rgb_map usage (the Allegro global variable).
2010-04-20 23:44:31 -03:00
David Capello
a9ab9cc30d Fixed thumbnails generation of cels (using the palette of the cel's frame). 2010-04-20 23:35:10 -03:00
David Capello
9a95a40e92 Added RgbMap class (this class will replace rgb_map Allegro usage). 2010-04-20 23:32:44 -03:00
David Capello
834a2cfe49 Added Palette::m_modifications member. 2010-04-19 22:43:41 -03:00
David Capello
5c00d14cc0 Replaced jwidget_flush_redraw recursiveness with a std::queue. 2010-04-19 22:42:58 -03:00
David Capello
19483aed3c Changed calls from jwidget_pick to Widget::pick. 2010-04-19 22:41:35 -03:00
David Capello
7869642c83 Quantize a palette for RGB images when they are loaded. 2010-04-12 21:41:26 -03:00
David Capello
8ecc957fb2 Fixed a bug in update_sliders_from_color(). 2010-04-11 17:42:18 -03:00
David Capello
bb69d63883 Fixed palette_editor_change_hook() to update entry widgets. 2010-04-11 17:42:01 -03:00
David Capello
10781dcf5f Removed Context::getFg/BgColor member functions.
Modified color_get_*() so they do not need "imgtype" parameter.
ColorBar class is public (defined in colbar.h).
Added ColorBar::Fg/BgColorChange signals.
Converted palette editor widget to a C++ class (PalEdit derived from Widget).
Modified the "Palette Editor" (F4 key) to be non-modal (still WIP).
2010-04-10 17:01:56 -03:00
David Capello
37e08c1a4a Context class is Vaca::NonCopyable now. 2010-04-10 16:56:26 -03:00
David Capello
edaf1ab0c1 Added "looklike" attribute in <check> and <radio> XML elements. 2010-04-10 15:55:28 -03:00
David Capello
c4e57b2777 Added jmanager_timer_is_running() function to know if a timer is running. 2010-04-10 15:54:46 -03:00
David Capello
bd6bff7998 Fixed: jwidget_flush_redraw() does not generate JM_DRAW messages for hidden widgets anymore. 2010-04-10 15:54:12 -03:00
David Capello
c4ea0dd603 Modified version indicator in about window. 2010-04-10 15:38:21 -03:00
David Capello
50f4cd8a9d Added SkinneableTheme::m_selected_skin member and "[Skin]/Selected" configuration variable to change the selected skin. 2010-04-06 22:30:18 -03:00
David Capello
c5442abcba Moved data/jids/*.jid files to data/widgets/*.xml. 2010-04-06 22:14:33 -03:00
David Capello
5ea607d801 More delay for Editor::flashCurrentLayer(). 2010-04-06 09:03:53 -03:00
David Capello
8ee599f3e3 GotoPrev/NextLayerCommands do not show tooltip. 2010-04-06 09:03:39 -03:00
David Capello
2c7b527efb Modified IntertwineAsLines::fillPoints to draw the contour too (so the shape of the final polygon is more like the previewed-contour). 2010-04-06 08:57:03 -03:00
David Capello
055af25600 Only unknown exceptions (invalid memory access, etc) are not caught in debug mode. 2010-04-06 08:27:53 -03:00
David Capello
27c895732d Clicking fg/bg colors open the palette editor. 2010-04-01 00:09:25 -03:00
David Capello
6383d36f25 Fixed a bug in JM_DRAW handler of colorviewer_msg_proc() function. It was introduced in a recent commit. 2010-04-01 00:08:59 -03:00
David Capello
571a735f3a Fixed somekind of bug (it could happen when we access to invalid memory). 2010-04-01 00:08:08 -03:00
David Capello
4d60f6d560 Default color for new files is current selected "Background Color". 2010-03-31 21:22:47 -03:00
David Capello
dceb182070 Added vsync to flashCurrentLayer. 2010-03-30 23:49:36 -03:00
David Capello
dd2c8d1730 Extras are drawn only when extras-opacity > 0. 2010-03-30 23:40:21 -03:00
David Capello
8720d156e5 Added Editor::flashCurrentLayer() for when the current layer is changed. 2010-03-30 23:40:01 -03:00
David Capello
ebe068b211 StatusBar::showTip now show the text in the same status-bar too (redrawing it). 2010-03-30 23:38:52 -03:00
David Capello
dd6da141c6 Buttons in the status bar now give us the possibility to change the current layer. 2010-03-30 22:46:43 -03:00
David Capello
d976011597 Fixed Sprite(const Sprite&) constructor. 2010-03-30 22:24:05 -03:00
David Capello
19dd9f6c90 Removed unused forward declaration. 2010-03-30 22:18:38 -03:00
David Capello
89e15da176 Fix bug in LayerImage::get_cels(). (it was introduced in commit cbc0bf22bd) 2010-03-30 22:04:28 -03:00
David Capello
69a50e4d9d Fixed: cursor preview is not shown anymore when animation is being played. 2010-03-30 21:49:35 -03:00
David Capello
735b65072e After converting sprite image type, 'extras' are regenerated. 2010-03-30 21:47:31 -03:00
David Capello
475d0eeb1b Refactored Sprite class: no public variable members, all functions sprite_* go as Sprite function members, pimpl idiom. 2010-03-30 21:43:18 -03:00
David Capello
c299844f96 More const-correctness in some functions. 2010-03-30 20:39:56 -03:00
David Capello
bc4e08f454 Added Vaca::Application and Vaca/main.h, and removed Vaca::System.
Now the application compiles with MinGW.
2010-03-30 10:22:47 -03:00
David Capello
a7ecb08f2c Fixed some GCC warnings and errors. 2010-03-30 09:48:19 -03:00
David Capello
ffdd4cf848 Removed some warnings in ase_format.cpp. 2010-03-29 21:32:37 -03:00
David Capello
4611bc0f84 Added parameters to new_layer command ("ask" and "name").
Now by default this command does not ask to the user about the layer name.
2010-03-29 00:23:25 -03:00
David Capello
911c2dca8f The state-bar shows the name of the current layer when there is just one layer. 2010-03-29 00:12:07 -03:00
David Capello
749488d794 Fixed a couple of compiler warnings. 2010-03-29 00:00:39 -03:00
David Capello
bea59d7280 Status bar widget converted to C++ StatusBar class. 2010-03-29 00:00:25 -03:00
David Capello
0119922613 Removed the big-layer button from the state-bar. 2010-03-28 23:18:26 -03:00
David Capello
7974bffb80 Fixed bugs when the current tool was used in an hidden/locked layer. 2010-03-28 17:29:13 -03:00
David Capello
2d5e2dc7d7 Modified state-bar to show the stack of layers.
Removed the sprite & undo size indicators (completely useless).
2010-03-28 17:28:38 -03:00
David Capello
145a78ac09 Fixed minor problem with color-bar and JM_REQSIZE message. 2010-03-28 16:48:34 -03:00
David Capello
67c678a690 Background/padding color in Animator Editor is equal to Sprite Editor one (from SkinneableTheme). 2010-03-28 16:44:34 -03:00
David Capello
ca25326d5d Fixed some strange bugs that appears when a exception is thrown in file-loading process. 2010-03-28 16:18:49 -03:00
David Capello
4810ab8228 Added compressed images (with zlib) to .ase format. 2010-03-28 16:18:15 -03:00
David Capello
65466cfe04 Moved "ncolor" field in .ase format to next WORD position (the "unknown field" looks like a DWORD). 2010-03-28 16:17:51 -03:00
David Capello
5c2d31f3fe Exceptions are caught in open/save command threads. 2010-03-28 15:47:22 -03:00
David Capello
129d5a9b13 Mouse wheel+shift in color-bar jumps entire columns. 2010-03-28 13:11:31 -03:00
David Capello
ee878c87e9 Modified Palette class to contain all functions to manipulate it as function members.
Modified its implementation to use std::vector<> instead of a raw C array[].
Now the number of colors in the sprite is more relevant (e.g. we should be able to create sprites of 4bpp, 16 colors).
2010-03-28 12:15:32 -03:00
David Capello
3b98594129 Removed dead code in cmd_open_file.cpp. 2010-03-27 23:45:03 -03:00
David Capello
61c1e08be1 Added RecentFiles C++ class to replace legacy C implementation of recent files. 2010-03-27 23:43:08 -03:00
David Capello
d7f6b78119 Removed tooltip window and refresh_timer stuff in new color-bar. 2010-03-27 19:43:04 -03:00
David Capello
62d0c1db1d New simplified color-bar (still WIP). 2010-03-27 19:41:39 -03:00
David Capello
74f5fd2f41 Some error reporting if skin.xml contains invalid cursors. 2010-03-27 19:23:24 -03:00
David Capello
1c8705a8cf Minor change: Replaced one JRect to Vaca::Rect. 2010-03-27 19:19:42 -03:00
David Capello
b9d0e846b2 Hand tool now really scrolls. 2010-03-27 19:15:00 -03:00
David Capello
9331e3e5d2 Added more information in About dialog. 2010-03-27 19:13:01 -03:00
David Capello
e675e4e5fe Modified about string. 2010-03-27 18:54:11 -03:00
David Capello
d093439109 Minor change: C++ comment style. 2010-03-27 18:53:58 -03:00
David Capello
b1a53bfdd2 JM_DESTROY message cannot be used in derived classes of Widget. 2010-03-27 18:53:47 -03:00
David Capello
c3ef673421 Minor modification to comments. 2010-03-27 17:26:02 -03:00
David Capello
9a58b21b08 Now draw_emptyset_symbol() uses a Vaca::Rect instead of JRect. 2010-03-27 17:03:25 -03:00
David Capello
ea48f8d9a4 Added jdraw_rectfill() with a Vaca::Rect as parameter. 2010-03-27 16:26:08 -03:00
David Capello
ac27949623 Removed unused variables. 2010-03-27 16:25:18 -03:00
David Capello
a85efcded5 ASE will be the name for the next release. 2010-03-27 16:21:41 -03:00
David Capello
b676b74166 Fixed bug in LayerImage::destroy_all_cels() using cel_is_link() in deleted cels.
Removed cel_is_link() function because link cels do not exist anymore.
2010-03-26 11:44:27 -03:00
David Capello
8ff997d2d2 Fixed a lot of important bugs in clipping code. 2010-03-26 09:57:56 -03:00
David Capello
3f7621ec5c Fixed: multiple-error messages when files specified in arguments are not found. 2010-03-26 08:45:13 -03:00
David Capello
74efad3a0a Fixed a bug in CheckArgs::clear(). 2010-03-26 08:42:53 -03:00
David Capello
706cc17748 Parts are specified in skin.xml now. 2010-03-26 08:31:47 -03:00
David Capello
15dc254f48 Smaller bottom area for tabs widget. 2010-03-24 22:50:14 -03:00
David Capello
4f40d89c6f Added mini-look to tabs buttons. 2010-03-24 22:08:22 -03:00
David Capello
7185d439d8 Fixed SkinneableTheme::draw_bounds() when the rectangle is too short (in width). 2010-03-24 22:08:07 -03:00
David Capello
a2c3517717 Cursors coordinates are specified in the default_skin.xml now. 2010-03-24 21:35:44 -03:00
David Capello
f95a67f8fc Converted color bar widget to ColorBar class. 2010-03-24 20:06:54 -03:00
David Capello
5af9b7809f Fixed bug clearing tool icons. 2010-03-24 19:28:29 -03:00
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
1fe1e2ff7b Removed real-time dithering option (because 8 bpp is not supported anymore). 2010-03-24 18:06:28 -03:00
David Capello
9774059a9a Now windows threads implementation uses CreateThread instead of _beginthread. 2010-03-24 18:01:58 -03:00
David Capello
4ccb661bbf Minilook for group of buttons (groupbut and buttons in "target" selector). 2010-03-24 17:49:46 -03:00
David Capello
a336900115 When the mouse leaves the color-bar the status bar is cleared. 2010-03-24 17:40:58 -03:00
David Capello
ca69e5572f When a file is closed now the status bar says something about it. 2010-03-24 17:40:41 -03:00
David Capello
c00da333d3 Removed about screen with authors.txt 2010-03-24 17:37:16 -03:00
David Capello
0c54a2682c Fixed a little problem with text in draw_slider() overlapping bottom border. 2010-03-24 17:30:15 -03:00
David Capello
dac67bb21c Fixed some problems in jrectexclude() when y1==ey1 or y2==ye2. 2010-03-24 17:28:59 -03:00
David Capello
a4b55a980c Applied jguiscale() to tooltips borders. 2010-03-24 17:28:03 -03:00
David Capello
0f597f747d Removed tips. 2010-03-24 17:24:28 -03:00
David Capello
2a82911b18 Removed asm code. 2010-03-24 14:10:46 -03:00
David Capello
685f4cf191 Now PreviewFilled configuration field is for tool. 2010-03-24 13:57:31 -03:00
David Capello
271e1df6bd Removed support for 8 bpp. 2010-03-24 13:56:31 -03:00
David Capello
5ea8d97b60 Added tooltips to toolbar. 2010-03-24 13:38:28 -03:00
David Capello
d6c4e07f8e Applied jguiscale() to tooltip location. 2010-03-24 11:10:13 -03:00
David Capello
0046f35bfa Minor modification drawing polygon outline. 2010-03-24 03:16:49 -03:00
David Capello
eb24c091df Added "Options/PreviewFilled" configuration option to see preview in real-time of filled shapes. 2010-03-24 03:00:07 -03:00
David Capello
d4344ae348 Replaced algo_polygon() with GD library implementation. 2010-03-24 02:59:40 -03:00
David Capello
65ae558291 Preview of a filled polygon is a closed outline now. 2010-03-24 00:07:48 -03:00
David Capello
db2bbef1cd Fixed cursors focus when jguiscale > 1. 2010-03-22 00:09:44 -03:00
David Capello
38d2c8da68 Minor modifications to state bar JM_DRAW message handler. 2010-03-21 23:47:43 -03:00
David Capello
804de112c4 Changed initial text in state bar. 2010-03-21 23:39:19 -03:00
David Capello
952a2aac4d Fixed buttons in toolbar for jguiscale > 1. 2010-03-21 23:29:41 -03:00
David Capello
af8535d612 mini-look for buttons in file selector dialog. 2010-03-21 23:19:05 -03:00
David Capello
3f1cad8505 Added setup_mini_look() function. 2010-03-21 23:18:30 -03:00
David Capello
9031c48773 Removed unused variable in gui_setup_screen(). 2010-03-21 23:16:53 -03:00
David Capello
bb4da37e51 Added mini-look to the opacity slider in the cel property dialog. 2010-03-21 22:36:17 -03:00
David Capello
4c5ea8f429 Fixed default-size for combo-box window (finally). 2010-03-21 22:35:55 -03:00
David Capello
2966863d24 Fixed SkinneableTheme::draw_bounds() for small rectangles. 2010-03-21 22:04:13 -03:00
David Capello
87ba1dba88 Removed unused functions subclip/backclip. 2010-03-21 22:03:41 -03:00
David Capello
4486ccdd29 Modified state-bar borders to match Ilija's mockup. 2010-03-21 21:31:13 -03:00
David Capello
ac8c1ecdc1 Now buttons and sliders in the state-bar have mini-look. 2010-03-21 21:30:50 -03:00
David Capello
994f5e6284 Added mini-look (SkinProperty::isMiniLook) to buttons and sliders. 2010-03-21 21:28:32 -03:00
David Capello
782d3998c5 Fixed a flicker problem when the slider of layer-opacity in the state bar were used. 2010-03-21 21:27:13 -03:00
David Capello
015a4d713c Added SkinProperty. 2010-03-21 21:25:38 -03:00
David Capello
104d315f25 Applied guiscale to tabs widget. 2010-03-20 12:55:25 -03:00
David Capello
345dbb6fec State-bar is double-buffered now. 2010-03-20 12:29:15 -03:00
David Capello
2658aae644 Applied jguiscale to status bar borders. 2010-03-18 21:28:55 -03:00
David Capello
c4bd51d569 Applied jguiscale to color bar. 2010-03-13 00:21:14 -02:00
David Capello
11fda53fe3 Added Editor::editor_move_cursor to avoid drawing cursor preview flickering. 2010-03-13 00:14:32 -02:00
David Capello
5ae14b550b Added Vaca::String class.
Added Vaca::Exception class.
Added Vaca::System class.
Added vaca_main().
The main/WinMain is defined inside vaca library.
2010-03-12 23:16:05 -02:00
David Capello
6cad6849b5 Removed jpoint.h and jsize.h. 2010-03-11 00:45:19 -02:00
David Capello
cb1b6dc1ad Removed <windows.h>, <commctrl.h> and <algorithm> from Vaca/base.h. 2010-03-11 00:44:12 -02:00
David Capello
33854fed54 Moved vaca lib to third_party directory.
Fixed a problem compiling MutexImpl for win32.
2010-03-10 16:57:38 -03:00
David Capello
5ce6b9c51b REnamed MutexPimpl to MutexImpl. 2010-03-10 01:07:02 -02: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
c8b84732cd Split _ji_set_font_of_all_widgets() in _ji_reinit_theme_in_all_widgets(). 2010-03-09 00:43:28 -02:00
David Capello
719374718d More jguiscale() usage. 2010-03-09 00:42:31 -02:00
David Capello
4369afa2c5 Added jwidget_set_border(JWidget,int) function. 2010-03-09 00:41:25 -02:00
David Capello
28b14cfc0a Gui is regenerated and font is reloaded when the jguiscale() changes. 2010-03-08 23:35:32 -02:00
David Capello
3e1f0e1a63 Now the default font is loaded from the skin (skins/default_skin_font.pcx). 2010-03-08 23:34:48 -02:00
David Capello
f0cb918717 Now ji_font_load_bmp() uses ji_apply_guiscale() to resize the bitmap font. 2010-03-08 22:58:46 -02:00
David Capello
5af4ed0d55 Renamed apply_gui_scale() to ji_apply_guiscale(). 2010-03-08 22:58:10 -02:00
David Capello
6e97287339 Removed conditions about JI_INITIALIZED in SkinneableTheme::init_widget(). 2010-03-08 21:37:53 -02:00
David Capello
9535b085fe Removed guiscale() from ASE and added jguiscale() in Jinete.
With this change we can apply jguiscale() in some places like jalert and jfiles.
2010-03-08 00:42:41 -02:00
David Capello
f1128336f4 The ConfigureScreen now shows the current screen resolution if it is not in the combo box. 2010-03-07 23:48:01 -02:00
David Capello
0a7136a0b4 Added underline_height in jdraw_text() function.
Removed jdraw_widget_text() (deprecated).
2010-03-07 23:16:20 -02:00
David Capello
ed3428345f Replaced hline() with rectfill() in jrectexclude(). A lot of hlines() directly in the screen are really slow. 2010-03-07 22:49:37 -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
1fdd045099 Fixed a little syntax error. 2010-03-07 16:41:40 -02:00
David Capello
470ae96c3b Fixed some new-line issues. 2010-03-07 16:39:58 -02:00
David Capello
324435760d Modified ase_exception creation with printf style. 2010-03-07 16:38:14 -02:00
David Capello
961b2911f5 Old JI_SIGNAL_WINDOW_CLOSE signal is not generated anymore (it was replaced with Frame::Close signal member). 2010-03-07 16:37:30 -02:00
David Capello
ca2e3f7bed Renamed Command_precondition_exception class to CommandPreconditionException. 2010-03-07 16:21:09 -02:00
David Capello
5d55358ffb Renamed Context::m_current_sprite to m_currentSprite. 2010-03-07 16:18:38 -02:00
David Capello
77a54b7d34 Modified ase_exception creation with printf style. 2010-03-07 16:16:10 -02:00
David Capello
6867f2c6a5 Added PopupWindow widget. 2010-03-07 16:10:48 -02:00
David Capello
7a3b1e3369 Modified an ase_exception call using printf style call. 2010-03-07 15:28:01 -02:00
David Capello
d0514884de Fixed a problem in gui_feedback() where the CurrentSpriteReader could be locked. 2010-03-07 15:25:47 -02:00
David Capello
2ed2ce9545 Modified an ase_exception call using printf style call. 2010-03-07 15:22:14 -02:00
David Capello
5edc5696ca Modified some ase_exception creations using PACKAGE name. 2010-03-07 15:20:50 -02:00
David Capello
65cb9c3517 Added constraint of guiscale() value depending height of the screen. 2010-03-07 15:18:39 -02:00
David Capello
6ebf5966c3 Fixed a bug which pressed/released messages were generated incorrectly for mouse buttons pressed/released in groups. 2010-03-07 15:16:15 -02:00
David Capello
1f29b67364 Applied guiscale() to some skinneable widgets. 2010-03-07 14:21:24 -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
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
862ae6078c Modified C comments to C++. 2010-03-07 11:58:10 -02:00
David Capello
2a78fdca92 Applied guiscale() to loaded skin. 2010-03-07 11:57:34 -02:00
David Capello
dc19778ecc Added SkinneableTheme::apply_gui_scale() member function. 2010-03-07 11:55:24 -02:00
David Capello
2d3cfe116b Removed try{}catch in DEBUGMODE to get the exception in the debugger. 2010-03-07 11:49:56 -02:00
David Capello
bb689258ff Removed jmanager_dispatch_messages() from jwidget_scroll() because it is not necessary and it give us problems with the editor scroll movement. 2010-03-07 11:47:40 -02:00
David Capello
32f3987c64 Resort includes. 2010-03-07 11:42:00 -02:00
David Capello
0b357e068b Added Mask::contains_point member function. 2010-03-07 11:40:54 -02:00
David Capello
36f281a2b7 Limited scroll movement (related to feature request #2874441). 2010-03-07 11:39:18 -02:00
David Capello
b8a39cf8db Now clipboard::cut() deselects the mask. 2010-03-01 23:03:33 -02:00
David Capello
4f4d863a0f Now ClearCommand deselects the mask. 2010-03-01 23:02:32 -02:00
David Capello
cc7fd95559 Added Undoable::deselect_mask() member function. 2010-03-01 23:01:43 -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
898f43ff65 Need to include render.h to get RenderEngine class definition. 2010-03-01 01:08:12 -02:00
David Capello
c89b727b47 Missing RenderEngine::setPreviewImage. 2010-03-01 01:03:07 -02:00
David Capello
1e121378de Replaced App events (IAppHook) with Vaca signals/slots. 2010-03-01 00:36:05 -02:00
David Capello
fb139ccf49 Renamed Editor::editor_get_sprite to Editor::getSprite. 2010-03-01 00:00:56 -02:00
David Capello
d8a7fbf0f0 Moved functions from util/render.h into RenderEngine class. 2010-02-28 23:29:50 -02:00
David Capello
700ab045d2 Added algo_polygon() algorithm. 2010-02-28 23:02:50 -02:00
David Capello
031c8d187b Changing ASE name to aseprite. 2010-02-28 22:16:58 -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
43dde6ed78 Removed jxml.cpp and jxml.h 2010-02-01 00:00:29 +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
aac6e31e44 Added CheckArgs class. 2010-01-29 00:53:53 +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
6e93dfe4ea Converted editor widget in a C++ class (Editor class derived from Widget). 2010-01-27 02:52:30 +00:00
David Capello
991488e59b Fixed gcc problem with min/max macros. 2010-01-26 04:10:01 +00:00
David Capello
77c009de55 Renamed jwidget to Widget.
Refactored jwidget_set_text to Widget::setText (same for setFont, setEnabled, etc.).
Created "Frame" class.
Refactored "jwindow_funcname" functions to "Frame::funcname".
Renamed JWidgetPtr to FramePtr.
2010-01-26 00:38:05 +00:00
David Capello
f634a390ee Added jpoint and jsize. 2010-01-25 22:28:39 +00:00
David Capello
4e101699ff Added vaca_fusion directory. 2010-01-25 22:01:52 +00:00
David Capello
8f03d54562 Fixed compilation error in context.cpp 2009-12-19 17:52:21 +00:00
David Capello
017ece697f Now XML files are loaded with tinyxml library 2009-12-16 23:24:57 +00:00
David Capello
11a094cb05 Moved app.cpp from src/core/ to src/ 2009-12-11 14:53:05 +00:00
David Capello
f79ac322cb Fixed a bug in Undoable::copy_previous_frame (using LayerImage::add_cel directly instead of Undoable::add_cel). 2009-11-23 01:25:06 +00:00
David Capello
336f3feb64 Added resizable capability (with a patched version of Allegro). It must be enabled through the special flag HAVE_RESIZE_PATCH. 2009-11-22 14:39:52 +00:00
David Capello
b585600a19 Fixed a couple of bugs:
+ in tabs_remove_tab selected/hot tabs are set to NULL.
+ the select_callback is called only for the hot tab (if hot is NULL, now the selected is not used anymore).
2009-11-22 14:14:06 +00:00
David Capello
50ec2cdff9 Fixed a bug in initialization of parts. 2009-11-22 14:12:25 +00:00
David Capello
fd6f7dd156 Added support for the Close button in the system window. 2009-11-22 03:53:43 +00:00
David Capello
3626589229 Fixed little details in tabs gfxs. 2009-11-22 02:16:29 +00:00
David Capello
774fc8370c Removed "Nothing" tab (Ilija Melentijevic idea). 2009-11-22 02:15:40 +00:00
David Capello
9e0928ca66 Fixed combo-box graphics. 2009-11-22 00:26:58 +00:00
David Capello
5d64181f16 Added SkinneableTheme class. Thanks to Ilija Melentijevic for the graphics. 2009-11-21 20:02:31 +00:00
David Capello
f6821908cc Now jstandard_theme::regen does not use ji_get_theme 2009-11-19 14:57:15 +00:00
David Capello
b70f84b46c Removed JM_DRAWRGN message. Removed jwidget_redraw_region and jwidget_send_message_after_type functions. 2009-11-19 14:38:24 +00:00
David Capello
6d04c3815c Now jtheme is a class with member functions; and jwidget has a virtual msg_proc. 2009-11-19 02:59:20 +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
0e0dacb158 Fixed Undoable::background_from_layer when the layer to be converted to background has empty cels. 2009-11-18 15:24:02 +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
8f1eac61a9 Now color-bar shows FG/BG indicators (Ilija Melentijevic idea). 2009-11-18 14:47:30 +00:00
David Capello
be8a97f5b8 Fixed a bug in Undoable::clear_mask 2009-11-18 14:46:05 +00:00
David Capello
1764f78d1b Fixed ordered dithering menu item. 2009-11-17 23:19:03 +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
8b7f476f17 Fixed issue #2874422 "More screen resolutions" (Philippe Michael Groarke idea). 2009-10-17 22:27:05 +00:00
David Capello
3f1f5e378e Minor changes converting C to C++. 2009-10-16 02:26:28 +00:00
David Capello
f2f78377ad Added IAppHook interface for a cleaner event/hook interface. 2009-10-14 14:09:59 +00:00
David Capello
b758b113e8 Fixed a bug with the file-selector in Windows where new files found in a directory were added at the end instead of sorted. 2009-10-12 23:56:32 +00:00
David Capello
eaf777e093 Modified marquee tooltip. Fixed bug #2874453 (thanks to Philippe Michael Groarke). 2009-10-09 02:51:24 +00:00
David Capello
9e5d0dc2f2 Renamed file cmd_eyedropper_tool.cpp to cmd_eyedropper.cpp 2009-10-09 02:36:30 +00:00
David Capello
4710ddf041 Removed deprecated files. 2009-10-09 02:11:03 +00:00
David Capello
60172fa2ee Modified folders to load data on Mac OS X platform (thanks to Trent Gamblin). 2009-10-09 02:06:09 +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
b0c56578ca Moved modules/sprites.cpp to effect/images_ref.cpp 2009-08-17 23:45:55 +00:00
David Capello
4a4ccfc65f Removed local unused function 'layer_get_pos'. 2009-08-17 21:44:55 +00:00
David Capello
e484553608 Renamed some header guards. 2009-08-17 21:38:00 +00:00
David Capello
39203e34c2 Removed deprecated files canvasze.cpp and canvasze.h. 2009-08-17 21:26:20 +00:00
David Capello
3dbb7c088b Moved console.* from src/console to src/ 2009-08-17 19:32:09 +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
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
5346a7705e Modified file name where ASE configuration is saved. 2009-08-10 02:17:49 +00:00
David Capello
c56cad63e9 Fixed usability issues in the file-selector dialog. 2009-08-09 21:50:26 +00:00
David Capello
8b8f13edf9 + Added support to paste/copy text from/to Windows clipboard.
+ Added support to process Ctrl+C / Ctrl+V / Ctrl+P keys in all entry fields.
+ Fixed a bug where file names for new sprites are lower-case always (in Windows).
2009-08-09 21:24:32 +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
48fbc7d875 Fixed some compilation errors with gcc. 2009-08-02 22:32:29 +00:00
David Capello
a872edd377 Fixed critical bugs in rendering code with zoom. 2009-08-02 22:23:37 +00:00
David Capello
a67c563d6f Fixed some memory leaks. 2009-07-27 03:15:31 +00:00
David Capello
c384b6c19b Fixed problems using the "argument" parameter in commands. 2009-07-27 03:03:19 +00:00
David Capello
5b543a995b Added memory leak detection for MSVC. 2009-07-12 20:29:16 +00:00
David Capello
a948015cf5 Fixed a compilation error. 2009-07-12 16:53:48 +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
7280eba09e Minor changes. 2009-07-10 01:58:43 +00:00
David Capello
16703e2427 Minor changes. 2009-07-10 01:34:37 +00:00
David Capello
a5a71d6c86 Now 'rotate canvas' supports mask-rotation. 2009-06-14 22:08:50 +00:00
David Capello
371e592f8c 2009-06-14 22:01:35 +00:00
David Capello
edc4da4b8e Added new command to rotate canvas. 2009-06-14 19:16:42 +00:00
David Capello
0e2fba2396 Added image_fixup_transparent_colors function.
Fixed image_resize.
2009-06-14 19:05:43 +00:00
David Capello
b84fa3a8c6 Added support to resize the current mask. 2009-06-14 16:10:12 +00:00
David Capello
8ac979667c Fixed compilations problems with ase_exception and JWidgetPtr with g++ 2009-06-11 15:50:10 +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
b4a0d2f7d7 Added CurrentSpriteRgbMap class. 2009-06-11 00:33:29 +00:00
David Capello
be95cccc0a Fixed compilations errors with g++ 2009-06-10 23:04:27 +00:00
David Capello
b696c0dfb9 Added "enabled" method. 2009-06-05 15:19:27 +00:00
David Capello
59ae779fca + Added Context parameter to CurrentSprite.
+ Now CurrentSprite is defined in current_sprite.h.
+ Modified several routines to get the current sprite as parameter.
2009-06-02 14:08:56 +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
6f9bccd65b Changed jwidget to a C++ class with methods. 2009-05-30 21:22:52 +00:00
David Capello
973fe38847 Fixed a bug getting the background color to crop the image. 2009-05-30 20:35:40 +00:00
David Capello
0bdbc9dbdf Default JPEG quality is 1.0 now 2009-05-30 20:26:22 +00:00
David Capello
132193973b Configuration file changed from ase-x.x.cfg to aseprite-x.x.cfg. 2009-05-30 20:24:31 +00:00
David Capello
58bafbb080 Fixed a memory leak. 2009-05-30 19:54:53 +00:00
David Capello
226743a7f1 2009-03-22 16:05:29 +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
73d1920e78 Added support to copy & paste to/from the Windows Clipboard. 2009-03-07 19:14:40 +00:00
David Capello
cb6b45bb3f Fixed a bug in the File Open dialog when user presses ENTER key with an empty file name. 2009-03-02 02:08:40 +00:00
David Capello
0adb37f2bb Fixed a bug with multiple editors, paste command, and cleaning the editor's cursor. 2009-03-02 01:22:52 +00:00
David Capello
3d6af97999 Added "Save Copy As" command (feature #2636076). 2009-02-25 19:22:38 +00:00
David Capello
09578c2f23 Fixed some compilation errors in gcc 64 bits (reported by Scott Wilson). 2009-02-21 19:57:57 +00:00
David Capello
2a81f3e285 Trying to fix a problem converting void* to int in gcc 64-bits. 2009-02-21 17:17:27 +00:00
David Capello
6710ae5c89 Fixed compilation problems with gcc of 64-bits. 2009-02-21 15:52:15 +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
77b06bf748 Added support to close tabs with middle button. 2008-10-16 02:19:00 +00:00
David Capello
f43bbec69d Better handling of special file-names in the file-name entry field of ase_file_selector. 2008-10-16 01:55:12 +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
6562d7071a Now the file-system core routines use jstring (std::string) instead of char*.
Overloaded new and delete when MEMLEAK is activated (to use jmalloc and
jfree so memory leaks can be detected).
2008-10-13 21:43:41 +00:00
David Capello
2b7b89a2a7 Changed delete to delete[]. 2008-10-13 21:05:40 +00:00
David Capello
9bf40439d4 Added jstring. The file-selector now uses jstrings. 2008-10-11 20:41:27 +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
a1d9d2cada Fixed compilation errors in Linux with GCC 4.2.3.
Fixed fix.sh.
2008-10-11 15:52:47 +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
1e44f9a454 Modified makefile.lst for cpp files.
Renamed src/test to src/tests.
2008-09-30 23:04:33 +00:00
David Capello
a587132ffe Project converted to C++. 2008-09-30 21:01:54 +00:00
David Capello
102eaa8cf2 Removed some commented code in tools.c 2008-09-30 13:11:42 +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
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
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
b3e52a24e0 Removed modules/tools2.c because scripting is gone. 2008-09-28 19:29:33 +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
24ca4562dc Added support to drag & drop colors in color-bar (feature request #2109224).
Added "RectTracker".
Renamed "rectsave" function to "rect_tracker_new".
Joined "rectrestore" and "rectdiscard" to "rect_tracker_free".
2008-09-27 18:04:55 +00:00
David Capello
5784cb720e Fixed issue #1958760
Now the loading-progress lock the user-interface.
2008-06-16 00:43:50 +00:00
David Capello
97672099dc Fixed issue 1958932 2008-06-15 23:56:15 +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
369b57f074 Unix text format 2008-04-28 16:32:45 +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
714f7b062c Fixed the soften-ink to support tiled mode. 2008-03-29 14:45:43 +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
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
0ffbf5164c Fixed a problem to load the root element in a Unix like file-system 2008-03-28 02:55:15 +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
bec33706bf Color-bar now support palette-range. 2008-03-22 20:13:05 +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
1f98194363 Renamed 'jcombox.c' to 'jcombobox.c' 2008-02-19 00:02:01 +00:00
David Capello
030a9694b6 Added fileitem_get_keyname. Fixed get_key_for_pidl. 2008-02-18 23:37:57 +00:00
David Capello
2b81efabb4 Added fileitem_get_keyname 2008-02-18 23:37:04 +00:00
David Capello
39184d3286 Minor changes to start in the correct folder specified by the config variable CurrentDirectory 2008-02-18 23:36:34 +00:00
David Capello
ccae3704f4 Fixed 'broadcast_key_msg' when generate the list of widgets to receive the message. 2008-02-18 23:35:44 +00:00
David Capello
257b25001a Fixed: the window is freed. The tooltip disappear when the user press a key. 2008-02-18 23:33:48 +00:00
David Capello
74686e9bb6 2008-02-18 23:32:04 +00:00
David Capello
1a1ace16b1 Simplified the 'preview' generation process 2008-02-18 23:31:38 +00:00
David Capello
1ab947b4f1 Added an assertion to test if get_fileitem_from_path returns the same pointers for the same path. 2008-02-18 23:30:32 +00:00
David Capello
bd851fdeca Minor changes 2008-02-18 23:29:35 +00:00
David Capello
04d0f50dfb 2008-02-17 21:06:37 +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
d304eaac04 The GFLI third_party was moved to src/file/fli 2008-02-12 15:56:47 +00:00
David Capello
ae46058123 Moved FLI core routines from third_party/gfli to src/file/fli 2008-02-12 12:46:39 +00:00
David Capello
82417c7aee Fixed flickering effect in the file-view widget. 2008-02-12 12:34:56 +00:00
David Capello
7939776b94 Fixed a bug when loading some broken-GIF (the 'lzw_write_pixel' routine was called with pos < 0). 2008-02-11 02:04:33 +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
112bde13c8 Added 'monitor_free' (to join threads after exit the program or cancel the loading process) 2008-02-10 19:02:53 +00:00
David Capello
378812a8cb Added an exit_hook (using 'add_gui_exit_hook') to avoid a memory leak (anyway it's at the end of the program, so it wasn't a problem). 2008-02-10 19:01:35 +00:00
David Capello
0e6ae3da5c Added memory-information when MEMLEAK is activated. 2008-02-10 19:00:14 +00:00
David Capello
f7083246cf Fixed some memory leaks 2008-02-10 18:59:08 +00:00
David Capello
9c516cb354 Added get_errno_string 2008-02-10 18:58:17 +00:00
David Capello
db9be355c2 Added free_msgid to avoid using jfree directly like a function (it
could be a macro).
2008-02-10 18:54:35 +00:00
David Capello
fa45321b11 Added the widget to show tooltips.
Added two attributes to '_ji_theme_textbox_draw' (fg and bg colors)
Fixed some memory leaks.
Added MEMLEAK to activate the memory-leak detection in jmem.c.
2008-02-10 18:52:42 +00:00
David Capello
48bca23055 Added the wantfocus property to JWindows. 2008-02-10 18:50:00 +00:00
David Capello
c6b2f7e601 Added the widget to show tooltips. 2008-02-10 18:49:12 +00:00
David Capello
b083623e19 Copyright updated. 2008-02-10 12:55:22 +00:00
David Capello
90a55ad443 Copyright updated. 2008-02-10 12:52:15 +00:00
David Capello
294f5f739f Copyright updated. 2008-02-10 12:42:17 +00:00
David Capello
eaa74d8234 Copyright updated. 2008-02-10 12:37:48 +00:00
David Capello
51c9a25b91 Fixed a memory leak. 2008-02-10 12:36:00 +00:00
David Capello
0b65f81de8 Copyright updated. 2008-02-10 12:35:13 +00:00
David Capello
a9ec8b61f0 Fixed a memory leak. 2008-02-10 12:33:03 +00:00
David Capello
b797cd91b7 Now the null sprite is displayed as an empty-set symbol. 2008-02-10 12:23:59 +00:00
David Capello
dd1ded8deb Copyright updated. 2008-02-10 12:22:48 +00:00
David Capello
63be8aed8a Fixed a bug where the 'Yes' button wasn't recognized as the killer of the window. 2008-02-08 14:00:52 +00:00
David Capello
252846d720 Now the buttons have names like: button-1, button-2, etc. 2008-02-08 13:59:37 +00:00
David Capello
685ec05e3f Fixed some compilations problems in Linux. And a bug in file_system to get the root / file-item
key.
2008-02-05 13:54:30 +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
0abb4c9033 Added a confirmation dialog after changing the gfx-mode. 2008-01-27 18:51:12 +00:00
David Capello
afb2d3f502 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:18: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
dc6d0467ac 2008-01-21 21:54:22 +00:00
David Capello
833c52508c Default min-width for buttons. 2008-01-21 21:50:54 +00:00
David Capello
1ee483cc28 Fixed some problems with focus (when close menus and windows). 2008-01-20 22:38:21 +00:00
David Capello
86fb5a0124 2008-01-13 21:18:00 +00:00
David Capello
ab61d62f5e 2008-01-13 21:04:36 +00:00
David Capello
dfae80457b Fixed problems with the brush-cursor drawing code. 2008-01-13 20:49:02 +00:00
David Capello
8cc8d732e2 Files reformatted (changed "function_call ()" to "function_call()" ). 2008-01-07 15:10:17 +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
6fcea92d7b Fixed a problem with popup-menus. 2008-01-06 19:30:17 +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
David Capello
d2be70c242 Added 'is_processing' in 'Base' structure to avoid sending menu-messages when there're menu-messages in the queue. 2008-01-05 18:08:12 +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
bbdd7a3f83 Now screen shots are generated directly in PNG format. 2007-12-19 20:09:27 +00:00
David Capello
37be418a5a Added some of the new script functions (NewSprite, LoadSprite,
SaveSprite, SetSprite, NewLayer)
2007-12-13 15:55:01 +00:00
David Capello
ece7c72b0f Added ase_uint8, ase_uint16, ase_uint32 2007-12-11 20:05:18 +00:00
David Capello
1851db4ac7 Fixed a problem when saving non-indexed images (reported by Trent Gamblin) 2007-12-09 01:52:58 +00:00
David Capello
9b755b2834 Fixed src/widgets/editor/editor.c 2007-12-06 21:32:44 +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
d1c38d7dfe Removed a lot of GUI functionality for scripting.
Added support to save PNG files.
Added alternative dirty rectangles technique to Jinete.
2007-12-06 03:00:10 +00:00
David Capello
c50df75059 Fixed the tests 2007-12-05 22:00:19 +00:00
David Capello
7a0913c2cf Added rules to make tests 2007-12-05 03:29:17 +00:00
David Capello
d199ae0805 Jinete examples moved to ase/src/text 2007-12-05 01:53:03 +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
9e8a50d58d Moved jinete.h 2007-12-04 22:55:53 +00:00
David Capello
8b2b914b3e The do_progress isn't called anymore for each row, so this optimized a lot the read speed. 2007-11-29 20:06:22 +00:00
David Capello
b8b0fc598a Better graphics resolution selection by default 2007-11-28 17:50:16 +00:00
David Capello
df0104734f Added libjpeg in the repository.
Fixed some bugs in the GUI system.
Added tabs, and removed the list-menu.
2007-11-28 14:19:36 +00:00
David Capello
39c52ae868 Finished load_png. 2007-11-25 01:26:08 +00:00
David Capello
faf2c2cb20 Fixed undo for new frames in other layers. 2007-11-25 01:25:10 +00:00
David Capello
c059b77958 Added "Configure Screen" command. 2007-11-24 18:23:53 +00:00
David Capello
fad42803e4 Undo changes (back to version 15). 2007-11-19 17:24:50 +00:00
David Capello
35f50b6d73 Added more directories to find data in UNIX like systems. 2007-11-19 16:10:00 +00:00
David Capello
ca9b264905 Fixed file_size/file_size_ex depending the Allegro version 2007-11-19 14:41:30 +00:00
David Capello
2aaf287614 Added operations to handle frames. 2007-11-19 14:29:24 +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
83444f1775 Renamed "frame" to "cel" (commands files renamed) 2007-11-16 20:54: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
3932753b38 More scripts removed. Better file-selector 2007-11-15 03:49:58 +00:00
David Capello
1c3cba7208 Removed the usage of "link" frames when load a sequence of bitmaps. 2007-11-14 21:28:33 +00:00
David Capello
57d5783d0c More commands transformed from Lua code to C 2007-11-09 04:12:27 +00:00
David Capello
89e2452ed0 More commands transformed from Lua code to C 2007-11-09 04:10:19 +00:00
David Capello
36f861ddd7 Removed src/dialogs/effect/*.c 2007-11-08 00:54:31 +00:00
David Capello
0acca25989 Added "new_frame" command. Renamed writeable to writable. 2007-10-08 02:20:57 +00:00
David Capello
a1b9a6844b Added crop tool. 2007-10-04 02:44:09 +00:00
David Capello
c1879f7c07 Added sprite_properties command. 2007-09-30 16:04:18 +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
5097767564 Fixed a problem when setting tile rectangle. 2007-09-29 22:19:51 +00:00
David Capello
0a6b8a5955 Removed session stuff. 2007-09-29 00:16:41 +00:00
David Capello
395ad85546 Removed session stuff. 2007-09-29 00:14:10 +00:00
David Capello
ec0d508f77 Added "undo" and "redo" commands. 2007-09-27 20:45:12 +00:00
David Capello
a43470b8f1 Removed cmd_split_editor_horizontally.c 2007-09-27 20:39:31 +00:00
David Capello
a198e43b7e Added "save_file_as" and "options" commands.
Added some dirty tricks to handle the mouse capture in Windows.
2007-09-27 20:13:06 +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
e17df80151 Added all preview stuff in one file. 2007-09-26 20:12:06 +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
8d94d16c0b Added all the "Command" stuff. 2007-09-23 20:13:58 +00:00
David Capello
447451e374 Added all the "Command" stuff. 2007-09-23 19:08:27 +00:00
David Capello
7eb7e8eac9 Removed the include <setjmp.h> to avoid conflicts with libpng 2007-09-20 00:41:39 +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