Commit Graph

1707 Commits

Author SHA1 Message Date
David Capello
8b67fd0bf3 Convert jgrid widget to C++ Grid class (avoid reallocs, use std::vector for internals instead). 2011-01-26 19:51:52 -03:00
David Capello
d8a3d27c0f Convert jbox widget to Box class. 2011-01-24 19:48:09 -03:00
David Capello
e32d8dc633 Rename src/gui/jview to src/gui/view. 2011-01-24 18:09:54 -03:00
David Capello
58b2c1bcd0 Improve palette editor's RGB/HSV sliders.
+ Added SkinSliderProperty and ISliderBgPainter to draw a customized background in sliders.
+ Moved SkinTheme to src/skin/ directory.
2011-01-24 00:03:38 -03:00
David Capello
18db7513a8 Open new sprites in the center of the current sprite. 2011-01-23 21:15:00 -03:00
David Capello
73d7c608a1 Convert "list" collection in "move_focus" function to std::vector. 2011-01-23 20:35:27 -03:00
David Capello
048bdbfb36 Convert "timers" collection to std::vector (to avoid using a raw array of pointers). 2011-01-23 20:33:22 -03:00
David Capello
f018ab64df Move "Constant Frame Rate" as a menu option under "Frame" menu (before it was a button in "Sprite Properties" dialog).
+ Added "frame" parameter to FrameProperties command.
+ Removed the global function dialogs_frame_length().
2011-01-23 20:27:52 -03:00
David Capello
749ff05ef7 Add support to load only the first frame of the animation (used in file selector's preview). 2011-01-23 19:35:22 -03:00
David Capello
36e605bdf2 Move jmalloc/jfree to base/ library as base_malloc/free (remove new/new0/renew macros). 2011-01-23 19:19:18 -03:00
David Capello
88f442b831 Avoid memory leaks from GuiXml singleton. 2011-01-22 20:30:44 -03:00
David Capello
8828289e1f Update tasks for next release in TODO.txt. 2011-01-22 19:35:53 -03:00
David Capello
1e88a438eb Rename PopupWindow to PopupFrame. 2011-01-22 11:28:40 -03:00
David Capello
05cc6f6ba6 Remove jwidget_close_window function. 2011-01-21 23:49:07 -03:00
David Capello
75e618c6fa Remove jwidget_send_message. 2011-01-21 23:33:56 -03:00
David Capello
cb6d70521f Replace jwidget_dirty/invalidate and Widget::dirty functions with new Widget::invalidate* member functions. 2011-01-21 19:45:04 -03:00
David Capello
86e145f0ed Remove jwidget_get_parent/manager/parents/children/pick/has_child functions. 2011-01-21 18:54:47 -03:00
David Capello
74b7442ae4 Replace jwidget_get/set_theme with Widget::get/setTheme. 2011-01-21 18:08:25 -03:00
David Capello
e9f7a035b1 Remove jtheme and JTheme types, use Theme class directly.
+ Added CurrentTheme namespace.
+ Rename Theme::regen() to Theme::onRegenerate().
+ ji_regen_theme() is in Theme::regenerate() member function.
2011-01-21 17:50:04 -03:00
David Capello
fc263ddb88 Move SkinneableTheme in src/modules/ directory to SkinTheme in src/. 2011-01-21 17:29:45 -03:00
David Capello
44c1c9720c Remove standard theme from gui/ directory (old ASE 0.7.2 look). 2011-01-21 17:22:05 -03:00
David Capello
e6c2fdd6ed Move pen_type.h to raster directory. 2011-01-21 17:16:21 -03:00
David Capello
45855b88d3 Move "AseException" to "base::Exception" class.
+ Created XmlException for tinyxml parsing errors.
+ Moved functionality of AseException::show() to Console::showException().
2011-01-20 23:33:57 -03:00
David Capello
cf2f042cbf Rename CommandsModule::get_command_by_name to getCommandByName. 2011-01-20 20:49:03 -03:00
David Capello
3887173fac Rename all commands to camel case. 2011-01-20 20:46:58 -03:00
David Capello
af3c4e9fba Move CommandFactory class from command.h to command_factory.h. 2011-01-20 20:02:54 -03:00
David Capello
8e8ac7aa50 Refactor all member functions of Context class to camel case. 2011-01-20 19:58:11 -03:00
David Capello
bf395fca61 More updates for copyright year to 2011. 2011-01-20 18:32:31 -03:00
David Capello
e914c9ad6a Rename ase_exception to AseException. 2011-01-20 18:03:11 -03:00
David Capello
610e06931b Add _WIN32_WINNT definitions to avoid compilations errors with VS2005 (undefined Win32 API symbols). 2011-01-20 17:28:21 -03:00
David Capello
e9bc81cc1d Add transparent color index in sprite and .ase files (it does not work in render operation yet). 2011-01-20 17:17:35 -03:00
David Capello
677fa5d4e0 Minor change: Remove one #include from render.cpp. 2011-01-20 17:13:31 -03:00
David Capello
d6eb20ef7e Update copyright year to 2011. 2011-01-18 20:49:53 -03:00
David Capello
c2e831d009 Use giflib to load gif files.
With this changes a lot of bugs loading different kind of .gif
files are fixed. GIF files must be loaded as RGBA images to
support background color and different transparent color per
frame combinations.
2011-01-18 20:42:43 -03:00
David Capello
f53b0d5816 Use a SharedPtr to delete automatically the optimized palette in fop_operate(). 2011-01-18 20:35:44 -03:00
David Capello
53896f9bfb Avoid to create an optimized palette for RGB images if the same loading process creates one.
+ Added Palette:isBlack member function.
2011-01-18 19:30:42 -03:00
David Capello
b82ec86994 Fix bug in SpriteImpl::resetPalettes() using an invalid "end" iterator after erasing an element from the m_palettes collection. 2011-01-18 19:22:03 -03:00
David Capello
75fd21164e Fix color_utils::color_for_image() when the color is of index type and the imgtype is indexed. 2011-01-18 19:21:36 -03:00
David Capello
ae918802e3 Minor changes in CelPropertiesCommand (remove buf[] local variable using Widget::setTextf). 2011-01-18 19:20:57 -03:00
David Capello
9fa71e5299 Convert FileFormat to a C++ class. 2011-01-16 17:27:18 -03:00
David Capello
28ba73c168 Do not open sub-menus when timer elapsed and we are already opening or closing a menu (base->is_processing). 2011-01-16 17:25:06 -03:00
David Capello
701cac25ca Add CMakeLists.txt and config.h.cmake for giflib. 2011-01-16 14:32:21 -03:00
David Capello
c5ccc5110e Add "Deleter" template parameter to SharedPtr<> class to customize the destruction of T pointer. 2011-01-16 09:41:00 -03:00
David Capello
c3162846cf Remove VACA_DIR variable from main CMakeLists.txt file. 2011-01-16 09:40:00 -03:00
David Capello
7475711153 Remove unnecessary files from giflib directory. 2011-01-16 09:29:25 -03:00
David Capello
fe31108268 Add giflib 4.1.6 third party source code. 2011-01-16 09:21:09 -03:00
David Capello
8b6b51bec2 Fix loading of GIF files with transparent background color (without global palette). 2011-01-15 13:36:33 -03:00
David Capello
68a8907ffc Fix convert_imgtype from Indexed to RGB when the first palette entry is not black (is not transparent color). 2011-01-14 18:29:25 -03:00
David Capello
864d13fb40 Add accurate color quantization or use median cut if the sprite has more than 256 colors.
+ Implemented issue #3 - Accurate Sprite Quantize.
+ Remove Ben Davis code to quantize color palette (to avoid license problems).
2011-01-14 18:22:23 -03:00
David Capello
bc753c5bc1 Fix Palette:countDiff() bug when "to" must be equal to max-1. 2011-01-05 20:11:58 -03:00