Commit Graph

1170 Commits

Author SHA1 Message Date
David Capello
948a5e0a5d Add "allegro" library as part of the ASE build process. 2010-10-16 14:30:04 -03:00
David Capello
c6ba92dd0e Add Allegro source code (branch 4.4, svn revision 13829). 2010-10-16 14:12:10 -03:00
David Capello
5f19a15dc1 Simple fix to improve performance in Linux with pixel scaling > x1. 2010-10-14 19:19:40 -07:00
David Capello
fb0e82be08 Add JI_DIRTY flag to optimize jwidget_flush_redraw(). 2010-10-14 19:04:13 -07:00
David Capello
ab32c37955 Add "install" target so we can use "make install" on Linux. 2010-10-12 17:19:19 -07:00
David Capello
31783ffefc Remove DEFAULT_PREFIX variable (on Linux resources are searched in ../share now). 2010-10-12 17:18:42 -07:00
David Capello
a14d0cd59c Minor change in SkinneableTheme::reload_skin(). 2010-10-12 17:16:07 -07:00
David Capello
bd2db4508e Do not center the mouse pointer when zoom (Paul Pridham idea). 2010-10-12 10:37:54 -03:00
David Capello
1bbcf0af38 Remove linking two times aseprite-library in aseprite target. 2010-10-12 10:21:52 -03:00
David Capello
623c1066bd Avoid asserting leak of GfxObjs when MEMLEAK is defined. 2010-10-12 10:21:17 -03:00
David Capello
f3fcc8fd3e Temporarily commented the SpriteReader in editor's JM_DRAW because "Preview" does not work with it. 2010-10-12 10:20:47 -03:00
David Capello
4c5a0177cc Convert Dirty to a class.
Remove all deprecated code of Dirty class that was not being used because the new ASE 0.8 tools implementation.
Remove pointers to an Image/Mask from Dirty class.
2010-10-11 14:57:04 -03:00
David Capello
9f58d0378a Remove algo_dirty() and old 00dirty.cpp test/example. 2010-10-10 21:19:56 -03:00
David Capello
5b93db64ba Add imgtype_shift() and imgtype_line_size(). 2010-10-10 21:17:59 -03:00
David Capello
27fe8f2ffe Call sheet_mapping.clear() in ~SkinneableTheme() to avoid false memory leaks. 2010-10-10 18:57:37 -03:00
David Capello
7f14c8e287 Move GfxObjId type to gfxobj_id.h file. 2010-10-10 18:56:59 -03:00
David Capello
3774d6a167 Lock the editor's sprite to draw it in JM_DARW message. 2010-10-10 18:56:22 -03:00
David Capello
3917892a16 Use replaceStockImage() in Undoable::setImgType() to avoid duplicated code. 2010-10-10 18:54:30 -03:00
David Capello
8b7367a1bb Show SymGetLineFromAddr() information whatever is the SymFromAddr() result. 2010-10-10 17:09:49 -03:00
David Capello
baa0d8f469 Fix __builtin_return_address() for MSVC (problems accessing to the address pointed by eax when it is too small). 2010-10-10 17:07:55 -03:00
David Capello
2be85b1ee5 Fix huge problems using "headslot" in multiple threads. 2010-10-10 16:47:50 -03:00
David Capello
f86c306bab Add ENABLE_MEMLEAK parameter to CMakeLists.txt (fix jmem.cpp so it can be compiled when MEMLEAK is defined). 2010-10-10 16:47:01 -03:00
David Capello
f85070c1c6 Add Dirty::getMemSize() method. 2010-10-09 14:15:11 -03:00
David Capello
072b19a9bb Add a comment in Undo::updateUndo() about the usage of get_config_int() function. 2010-10-03 17:08:06 -03:00
David Capello
7dd78886e2 Remove unnecessary #include <string.h> in undo.h 2010-10-03 15:52:33 -03:00
David Capello
514d666747 Add virtual method getMemSize() to GfxObj class (overriden by Image, Cel, Layer, etc.).
These methods will be used for a new implementation of Undo.
2010-10-03 15:51:03 -03:00
David Capello
070be38e81 Remove "state" arg from UndoAction::invert() function. 2010-10-03 15:24:53 -03:00
David Capello
03c5d0030a Convert UndoStream in a class. 2010-10-03 15:19:18 -03:00
David Capello
6f50c62ace Rename undo_exception to UndoException. 2010-10-03 14:52:50 -03:00
David Capello
b49359314c Modify jnew(FileOp) with "new FileOp". 2010-10-03 13:50:01 -03:00
David Capello
911fe71c0e Fix bug introduced in commit e885fcd3a1: leave one palette after Sprite::resetPalettes(). 2010-10-02 22:58:50 -03:00
David Capello
3aad83b353 Add return statement to thread:🆔:operator=(). 2010-10-02 20:23:42 -03:00
David Capello
3f7333b9ed Fix pthread implementation of base::thread class (problems joining threads, initializing m_id field, etc.). 2010-10-02 20:20:59 -03:00
David Capello
b66371f95a Move thread class to base lib (the new thread class has a C++0x-like api). 2010-10-02 19:00:01 -03:00
David Capello
2a73d6ffb9 Fix order of libraries so we can link loadpng with alleg library with gcc on Windows. 2010-10-02 18:33:06 -03:00
David Capello
eb1815d44e Fix error passing base::string in sprintf() like routine. 2010-10-02 16:37:44 -03:00
David Capello
36d532df21 Rename src/gui/jwidget.cpp|h to src/gui/widget.cpp|h. 2010-10-02 11:19:09 -03:00
David Capello
8f6ae77a2e Rename src/gui/jlabel.cpp|h to src/gui/label.cpp|h. 2010-10-02 11:04:10 -03:00
David Capello
3721064c8b Rename src/gui/jbutton.cpp|h to src/gui/button.cpp|h. 2010-10-02 10:59:14 -03:00
David Capello
7f96084c88 Rename src/gui/jwindow.cpp|h to src/gui/frame.cpp|h. 2010-10-02 10:47:58 -03:00
David Capello
b7609686de Add resources_win32.rc in aseprite target on Windows. 2010-10-01 00:23:13 -03:00
David Capello
ffd0f17879 Move all undo_*() functions as members of Undo class. 2010-09-30 23:55:35 -03:00
David Capello
9e419c418f Refactor Stock class to contains methods instead of stock_*() functions. 2010-09-30 22:38:26 -03:00
David Capello
2f8d9a0d1a Remove JList from UndoStream class. 2010-09-30 22:18:30 -03:00
David Capello
e885fcd3a1 Remove JLists from Sprite class. 2010-09-30 21:38:01 -03:00
David Capello
38a99e2740 Simplify usage of allegro_c_flags setting CMAKE_C_FLAGS variable. 2010-09-30 17:43:00 -03:00
David Capello
485582d816 Add some comments in src/CMakeLists.txt file. 2010-09-30 17:42:06 -03:00
David Capello
3163a5ac98 Add support to link ASE with the shared versions of libjpeg, libpng, and zlib. 2010-09-30 17:04:32 -03:00
David Capello
9ed888b82b Fix compilation errors with gcc in shared_ptr_unittest.cpp. 2010-09-30 16:31:59 -03:00
David Capello
d19e7875e1 Fix compilation errors copying SharedPtr<> of different types in gcc. 2010-09-30 16:31:45 -03:00
David Capello
c4d04d7bf6 Fix compilation problems in core/file_system.cpp (in Unix like platforms). 2010-09-30 16:23:54 -03:00
David Capello
48d0878c7e Include correct header files (gcc compiler detects these kind of problems). 2010-09-30 16:21:15 -03:00
David Capello
d09bd2a6ee Fix code in src/CMakeLists.txt to check return value of allegro-config. 2010-09-30 16:17:08 -03:00
David Capello
109d6a072f Remove jstring class replacing it with the new base::string and new functions to manipulate strings. 2010-09-30 15:34:12 -03:00
David Capello
9f000741a3 Remove WIN32 attribute for tests (so we can see colored output in win cmd console). 2010-09-30 13:22:10 -03:00
David Capello
3d5fd0f07c Remove Vaca source code completely (replace NonCopyable class with DISABLE_COPYING macro). 2010-09-29 17:50:46 -03:00
David Capello
b8ddd30a0d Move Vaca classes to base and gui libraries.
+ Remove Vaca::Referenceable class and move Vaca::SharedPtr<> to base/shared_ptr.h (now shared pointers can point to any type).
+ Move Vaca::Component/Event/Property/PreferredSizeEvent to gui/component.cpp.
2010-09-29 17:14:11 -03:00
David Capello
7643b87cc3 Force DISABLE_COPYING() to be in private: class section. 2010-09-29 16:54:25 -03:00
David Capello
818e286c84 Remove Vaca::Application class. Move Vaca::String class to src/base/string.h (and split_string and convert_to algorithms to src/base/). 2010-09-28 15:36:03 -03:00
David Capello
5ccddbc8bc Now the gui-lib is another package compiled with its own CMakeLists.txt. 2010-09-27 19:18:17 -03:00
David Capello
fd0639feac Fix typo in gfx/point.cpp. 2010-09-27 18:56:38 -03:00
David Capello
22ad9058af Add allegro-config calls to compile ASE on Linux. 2010-09-26 18:58:53 -03:00
David Capello
aa397c4fbf Add dirExists() member function in FileSystemModule. 2010-09-26 18:26:38 -03:00
David Capello
a3616cec54 Fix mem_utils.cpp compilation error with gcc. 2010-09-26 16:10:21 -03:00
David Capello
cb3dd70fb8 Move Jinete library to src/gui directory (future gui-lib). 2010-09-26 15:59:32 -03:00
David Capello
6c8f395977 Remove old C hash implementation. 2010-09-25 18:07:52 -03:00
David Capello
cd6b8d3d23 Move Signal/Slot/Bind stuff to base-lib. 2010-09-25 17:20:59 -03:00
David Capello
28d09af036 Move Point/Size/Rect classes to a new gfx-lib. 2010-09-25 16:22:32 -03:00
David Capello
51fbcae936 Move Mutex class from Vaca to src/base. 2010-09-23 23:33:39 -03:00
David Capello
5e253d4a76 Modify get_pretty_memory_size() to return a std::string. 2010-09-23 20:28:38 -03:00
David Capello
c9dfa8fc03 Separate "base" code under terms of the BSD license. 2010-09-23 20:28:16 -03:00
David Capello
3ec3bbbef8 Refactor undo_clear_redo/set_label/get_next_*_label -> Undo::clearRedo/etc. 2010-09-19 17:44:06 -03:00
David Capello
9924e0fb43 Remove PRINTF() usage in raster/undo.cpp (so raster does not depends on LoggerModule). 2010-09-19 16:26:15 -03:00
David Capello
85766ea915 Refactor undo_do_undo/redo -> Undo::doUndo/Redo. 2010-09-19 16:25:18 -03:00
David Capello
b3546cda94 Refactor undo_can_undo/redo to Undo::canUndo/Redo. 2010-09-19 15:42:40 -03:00
David Capello
12ce788d11 Remove undo_new/free/enable/disable/is_enabled/is_disabled, add Undo::is/setEnabled. 2010-09-19 15:23:15 -03:00
David Capello
752ffa6444 Remove dependency to modules/palettes.h in sprite.cpp. 2010-09-19 15:09:39 -03:00
David Capello
1094328cc7 Add needed forward declaration of Palette in undo.h 2010-09-19 11:29:27 -03:00
David Capello
3246e00db4 Camel-case for Undoable class. 2010-09-19 10:33:07 -03:00
David Capello
198bd648e5 Refactor Layer::add/remove/get_cel to add/remove/getCel. 2010-09-19 00:26:33 -03:00
David Capello
5faa31517e Refactor Layer::configure_as_background -> configureAsBackground(). 2010-09-19 00:17:21 -03:00
David Capello
4d21dd0b5a Refactor Layer::get_cel_begin/end to getCelBegin/End, and get_cels to getCels. 2010-09-19 00:15:44 -03:00
David Capello
4874f455f1 Refactor Layer::get/set_name to Layer::get/setName. 2010-09-19 00:03:32 -03:00
David Capello
e810b1452b Rename "fuzziness" to "tolerance" in maskcol.cpp file. 2010-09-18 23:57:57 -03:00
David Capello
46e847ef80 Remove internationalization stuff.
- Remove "_" macro.
- Remove src/intl/ directory.
2010-09-18 23:54:56 -03:00
David Capello
e2b8a8be1d Remove user_printf() function. 2010-09-18 23:33:32 -03:00
David Capello
2fc785553d Modify GfxObj class to keep its members private. Public members come from old C code where "GfxObj"s were "struct"s.
- Add GfxObj::getId and GfxObj::getType.
- GfxObj type enumeration now is called GfxObjType.
2010-09-18 20:49:13 -03:00
David Capello
5cd11d525d Remove dead code in dirty.cpp. 2010-09-18 19:43:45 -03:00
David Capello
1677cbadaf Rename member functions of Job class. 2010-09-18 19:22:45 -03:00
David Capello
851365f7bb Rename App::get_toolbox() to App::getToolBox(). 2010-09-18 17:49:07 -03:00
David Capello
ec13504c06 Remove core/core.h-cpp.
- App class contains the running mode (isGui() flag).
- LoggerModule contains the verbose flag.
- Remove is_interactive().
2010-09-18 17:36:21 -03:00
David Capello
ca521d3f50 Remove util/rectscr.cpp (as 8bpp is not supported, we cannot record the screen in FLI format anymore). 2010-09-18 01:24:09 -03:00
David Capello
8efbb2e9f0 Modify app/color.h header guard prefix from CORE_ to APP_. 2010-09-18 01:20:41 -03:00
David Capello
97fadb8eb5 Add BASE_ prefix in mem_utils.h header guards. 2010-09-18 01:14:45 -03:00
David Capello
9a9e40395f Move LoggerModule to log.cpp. 2010-09-18 01:14:03 -03:00
David Capello
f1e9814334 Move get_errno_string() to src/base/errno_string. 2010-09-18 01:03:56 -03:00
David Capello
0674fbe069 Move "src/core/job.[ch]" to src/job.[ch]. 2010-09-18 00:39:10 -03:00
David Capello
1f88934542 Remove "static" member functions from RecentFiles. Now App has a RecentFiles member and it must be accessed through the App singleton. 2010-09-18 00:28:24 -03:00
David Capello
99adf98c0f Remove jexception, leave ase_exception only. 2010-09-18 00:12:53 -03:00
David Capello
c821cd3924 Move mem_utils.cpp in base/ directory. 2010-09-18 00:03:06 -03:00
David Capello
7a099e23f9 Add some comments to GfxMode / CurrentGfxModeGuard. 2010-09-17 23:28:05 -03:00
David Capello
955ec830cc Minor change (move location of GLOB_RECURSE defition in src/CMakeLists.txt) 2010-09-14 19:52:02 -03:00
David Capello
a2696555b0 Remove file_system test. 2010-08-26 22:55:01 -03:00
David Capello
7fa4b000c0 Add jstring_unittest.cpp. 2010-08-26 22:45:27 -03:00
David Capello
87a25ea68f Move tests/test_jgrid.cpp to jinete/jgrid_unittest.cpp. 2010-08-26 22:44:30 -03:00
David Capello
e70c78a9a5 Move tests/test_jlist.cpp to jinete/jlist_unittest.cpp. 2010-08-26 22:43:46 -03:00
David Capello
c4017a24e0 Fix test.h for GUI tests. Jinete class instance is needed. 2010-08-26 22:42:53 -03:00
David Capello
75689ef990 Fix bug #3051174 (reported by Trent Gamblin): Loading two or more times gui.xml file. 2010-08-26 21:40:45 -03:00
David Capello
eb056ab358 Add custom targets in CMakeLists to run unit-tests. 2010-08-25 20:13:51 -03:00
David Capello
e8eeb97da9 Move src/tests/test_errno.cpp to src/errno_unittest.cpp. 2010-08-25 17:52:42 -03:00
David Capello
04f92262c5 Include jinete/jinete.h for GUI tests. 2010-08-25 17:51:55 -03:00
David Capello
463c188014 Use GLOB_RECURSE instead of GLOB to get all *_unittest.cpp files from the src/ directory. 2010-08-25 17:27:45 -03:00
David Capello
848a4b9101 Add rule to compile _unittest.cpp files. 2010-08-25 17:11:52 -03:00
David Capello
18606f02bf Add aseprite-library (this library will be used for unit tests, is all aseprite code without the main() routine defined). 2010-08-25 17:11:28 -03:00
David Capello
499658f024 Modify tests/test.h to use gtest. 2010-08-25 16:21:36 -03:00
David Capello
435cebb80e Move common definitions in cflags to the main CMakeLists.txt file. 2010-08-25 16:20:30 -03:00
David Capello
d6ac296390 Move src/tests/test_color.cpp to src/app/color_unittest.cpp. 2010-08-25 15:57:29 -03:00
David Capello
3f9e947ea9 Convert color_t type to Color class.
+ Add color_utils namespace and move useful routines for colors right there.
+ Add test_color.cpp.
2010-08-25 00:26:37 -03:00
David Capello
733ee5b705 Rename colbut.h to color_button.h. 2010-08-23 18:25:57 -03:00
David Capello
0765be0306 Rename colsel.h to color_selector.h. 2010-08-23 18:23:30 -03:00
David Capello
8727390b2d Rename colbar.h to color_bar.h. 2010-08-23 18:11:47 -03:00
David Capello
a476820958 Remove old unused graphics. 2010-08-23 17:57:53 -03:00
David Capello
f87cf2a4bc Move jinete/jfile.cpp to xml_widgets.cpp. 2010-08-23 17:52:17 -03:00
David Capello
a59cce0932 Added an assert in debug mode to check duplicate FileItems in file_system module. 2010-08-23 17:41:52 -03:00
David Capello
7d47093acc Convert jbutton widget to ButtonBase, Button, CheckBox, and RadioButton C++ classes.
+ Add ButtonBase::Click signal.
+ Button does not close the window by default (you have to configure this action manually when Click signal is triggered).
+ Add "closewindow" attribute to <button> widget in XML files.
+ Move "bevels" to SkinProperty.
+ Convert colorbutton widget in ColorButton C++ class.
2010-08-23 17:41:19 -03:00
David Capello
cf0f7d9663 Remove jfilesel.[ch] file. 2010-08-22 22:10:43 -03:00
David Capello
aa0229f950 Fix "paste" command when we paste in an empty spot (layer/frame without a created cel). 2010-08-22 20:51:29 -03:00
David Capello
327f627e60 Added some asserts to check Editor::m_pixelsMovement. 2010-08-17 20:44:40 -03:00
David Capello
cea1e15d91 New version 0.8.2 in progress. 2010-08-17 20:27:33 -03:00
David Capello
46ff10bede Fix background color when we render indexed images.
To render an indexed image we start with color 0 (RGBA) only if there is not a background layer, in other case, when the background exists we clear with the first palette color entry (index=0).
This patch fix commit 3ea39bb211.
2010-08-13 11:49:52 -03:00
David Capello
a8fcc8b0af Patch contributed by Trent Gamblin to compile ASE with Mac OS X. 2010-08-13 11:35:43 -03:00
David Capello
d4eae74a53 Make "Tools Configuration" dialog wider when it is needed. 2010-08-13 11:31:52 -03:00
David Capello
4fc1b7f9f8 Show/hide opacity and tolerance parameters depending if the current tool supports these. 2010-08-13 11:11:21 -03:00
David Capello
78366fa545 Spray settings are hidden when we do not have the Spray tool selected. 2010-08-13 11:04:17 -03:00
David Capello
52db5a6bb3 Rename "fuzziness" parameter to "tolerance" in Replace Color effect (to keep consistency with the new floodfill tolerance parameter). 2010-08-13 10:53:42 -03:00
David Capello
8dac6bdcae Update version to 0.8.1. 2010-08-13 10:47:20 -03:00
David Capello
dec4bbc6a4 Add "Tolerance" parameter for some tools like Magic Wand and Paint Bucket (Trent Gamblin idea). 2010-08-13 10:41:13 -03:00
David Capello
3ea39bb211 Fixed RenderEngine::renderSprite() for indexed images with a non-black color in index=0. 2010-08-13 10:06:13 -03:00
David Capello
d7ff4fe60a Fix bug with onion skinning for frame=0 and frame=frames-1. 2010-08-12 18:48:27 -03:00
David Capello
d9790b3834 Move keyboard shortcuts to change pen size from Editor widget to commands.
* Now +/- keys are configurable because they are defined in gui.xml as calls to the new "change_pen" command.
2010-08-12 17:29:06 -03:00
David Capello
b1e96b8e84 Enable eye-dropper in color-button widget when we drag & drop the mouse button. 2010-08-12 16:48:56 -03:00
David Capello
f8bbc19b22 When we are in pixels-movement loop, drop pixels when the user selects other tool (that is not marquee, lasso, or magic wand). 2010-08-12 00:29:51 -03:00
David Capello
9f68fd459d Move get_shift_from_mask() to clipboard_win32 because this function is used for Windows clipboard. 2010-08-12 00:22:18 -03:00
David Capello
7ba3c5df9d Fix warnings in GCC (unused variables, size_t and int comparisons, unhandled enum cases in switch, etc.). 2010-08-11 23:42:03 -03:00
David Capello
a2325233f9 Fix FileItem::insert_child_sorted call in Linux (now it is insertChildSorted()). 2010-08-11 23:36:41 -03:00
David Capello
c3e2c13f26 Added error message in Launcher if it fails. 2010-08-11 23:21:30 -03:00
David Capello
d09c44888d Add timer to menu items to show the sub-menu with some delay. 2010-08-11 22:52:57 -03:00
David Capello
2eb5022f9a Modify comments in jmenu.cpp to C++ style. 2010-08-11 22:13:33 -03:00
David Capello
f8cd32d07b When the editor's current sprite is set we have to drop the pixels (if the user is moving pixels). 2010-08-11 22:04:18 -03:00
David Capello
7b272f86f7 Add button in status bar to change the transparent color of pixels in movement in the current editor.
* Add Editor::setMaskColorForPixelsMovement() method.
* EDITOR_STATE_MOVING_PIXELS is not a particular state because we can move scroll while we are moving pixels.
* Rename EDITOR_STATE_MOVING_SCROLL to EDITOR_STATE_SCROLLING.
* Add StatusBar::show/hideMovePixelsOptions and StatusBar::getTransparentColor().
2010-08-11 21:48:12 -03:00
David Capello
328fab545c Add PixelsMovement::setMaskColor() method to change the mask color of the pixels in movement. 2010-08-11 21:41:02 -03:00
David Capello
2f38b83ce3 Mask color is used in all routines that draw an image (Indexed, RGB, Grayscale). 2010-08-11 21:39:50 -03:00
David Capello
978f39d721 Do not use app_get_statusbar() inside StatusBar::onProcessMessage(). 2010-08-11 21:28:51 -03:00
David Capello
cc65870800 Rename StatusBar::m_commands_box to m_commandsBox. 2010-08-11 21:28:23 -03:00
David Capello
a6a53bd141 Minor changes in statebar.cpp/h comments. 2010-08-11 21:25:04 -03:00
David Capello
c09842abdf Fix selection tools when the cel is in x<0 and/or y<0. 2010-08-11 00:22:30 -03:00
David Capello
58a3447698 Fix problem in Widget::getPreferredSize() introduced in commit 01c811e726.
Min/max sizes are taken into account when getPreferredSize() calls a customized onPreferredSize() method.
2010-08-10 23:43:19 -03:00
David Capello
88305ec84c Move functions to access file system items (FileItem) in a new IFileItem interface. 2010-08-10 23:30:15 -03:00
David Capello
8877278e0c Fix problems generating a key for a directory which contains a file that has the same name as the directory (e.g. C:\file.png\file.png). 2010-08-10 23:10:21 -03:00
David Capello
4679f8a12a Add more PRINTF() in file_system.cpp to debug problems with PIDLs. 2010-08-10 23:08:56 -03:00
David Capello
3dc5b2b485 Add CMakeLists.txt files. 2010-08-10 21:49:32 -03:00
David Capello
37d5ed3c0e Remove warnings about size_t and int comparisons. 2010-08-06 23:04:31 -03:00
David Capello
4e72997a02 Use Allegro's ASSERT() instead of assert(). 2010-08-03 23:33:44 -03:00
David Capello
8d73ad011a Change Palette class size() from size_t to int type (to avoid all kind of problems using "unsigned int" type). 2010-08-03 23:28:14 -03:00
David Capello
642d4220dc Remove warnings about int and size_t comparisons. 2010-08-03 23:02:16 -03:00
David Capello
7ed71af2ee Remove unused local variable in draw_color() function. 2010-08-03 23:01:33 -03:00
David Capello
01c811e726 Add PreferredSizeEvent and Widget::onPreferredSize to replace JM_REQSIZE message.
There are a lot of widgets in C code, so JM_REQSIZE cannot be removed until all widgets are converted to C++ classes.
2010-08-02 22:57:41 -03:00
David Capello
ec7795fc33 Rename Widget::msg_proc to Widget::onProcessMessage. 2010-08-02 21:29:56 -03:00
David Capello
1fe816d2b3 Change layer numbers (0, 1, 2, ...) with letters (A, B, C, ...) in status-bar. 2010-08-02 20:12:40 -03:00
David Capello
ce2f1379a3 Minor aesthetic modifications to state-bar. 2010-08-01 13:16:02 -03:00
David Capello
638b7bad8d Add "palette" argument in RenderEngine::renderImage method and BlenderHelper<> ctor.
With this change we can show two editors with two different sprites with two different palettes at the same time.
2010-08-01 12:24:35 -03:00
David Capello
5f97043abe Added "Editor::State" name to anonymous enum in Editor class. 2010-07-31 13:18:55 -03:00
David Capello
4c1ac855a5 Removed "record_screen" command. 2010-07-31 13:09:23 -03:00
David Capello
a3f18e5aaf Fixed minor problem with background color in Tabs widget's buttons. 2010-07-31 13:08:13 -03:00
David Capello
a0bbb5dfab Renamed locked_sprite_exception to LockedSpriteException. 2010-07-31 12:28:03 -03:00
David Capello
4b2f341af1 Refactored Command class to contain extensions points (virtual methods) as protected members (except clone() method).
+ Renamed Command::load_params -> onLoadParams
+ Renamed Command::enabled -> onEnabled
+ Renamed Command::checked -> onChecked
+ Renamed Command::execute -> onExecute
+ Added public (non-virtual methods) Command::execute/loadParams/isChecked/isEnabled.
2010-07-31 12:23:45 -03:00
David Capello
3c49d0a1ad Modified "error" by "problem" in exceptions. 2010-07-31 12:15:02 -03:00
David Capello
0fdd544524 Tabs widget is double buffered now. 2010-07-26 16:52:40 -03:00
David Capello
100073f986 Added BITMAP argument in jdraw_text() function. 2010-07-26 00:28:24 -03:00
David Capello
6f7660e0d5 Fixed file description in .rc file. 2010-07-26 00:20:39 -03:00
David Capello
017dca6425 Added width and height arguments to ji_set_screen() function. 2010-07-26 00:20:17 -03:00
David Capello
74962ece67 Added possibility to copy the selected pixels with CTRL key. 2010-07-23 23:27:46 -03:00
David Capello
10a58a35ec Fixed warning about probably uninitialized variables. 2010-07-23 20:02:38 -03:00
David Capello
51fdc7184e Fixed compilation errors in gcc 3.4. 2010-07-23 20:01:52 -03:00
David Capello
712e357ab2 Avoid some compilation warnings and errors with gcc on linux. 2010-07-23 16:51:11 -03:00
David Capello
c1a98a8b06 Added animations to Tabs widget when adding and removing tabs, and scrolling with mouse wheel. 2010-07-20 00:59:52 -03:00
David Capello
ccc2b35ab0 Added Tabs::calcTabWidth() method to replace CALC_TAB_WIDTH macro. 2010-07-19 23:56:12 -03:00
David Capello
e0ff9d5ee8 Removed JI_SIGNAL_REMOVE_CHILD and JI_SIGNAL_NEW_PARENT.
These signals do not make sense when we are removing a widget that is being destroyed.
2010-07-19 18:57:16 -03:00
David Capello
51b0fbdc96 Renamed icon.rc to resources_win32.rc, and added VERSIONINFO resource. 2010-07-18 18:27:42 -03:00
David Capello
04a096d6b9 Modified some comments from C style to C++. 2010-07-18 14:44:21 -03:00
David Capello
f32ce85936 Minor improvement to BlenderHelper<RgbTraits, IndexedTraits> saving the current palette as member. 2010-07-17 20:50:24 -03:00
David Capello
61150ad31e Merged all preview commands (fit screen/tiled/normal) to just one Preview command (F8).
- Improved preview to show checked background as default background for transparent sprites.
- Added RenderEngine::renderImage() and renderCheckedBackground().
- Removed F6 and F7 shortcuts.
2010-07-17 20:49:42 -03:00
David Capello
c8ae9cbf8a Minor changes in comments. 2010-07-17 20:44:51 -03:00
David Capello
1ca29538c0 Added ISettings::getOnionskinOpacityBase/Step() methods. 2010-07-16 18:46:19 -03:00
David Capello
65d1ab6865 Removed usage of color_map in ImageImpl<IndexedTraits>::merge() function. 2010-07-16 18:21:05 -03:00
David Capello
ba1c80831b Added support for onionskin with multiple frames. 2010-07-16 18:20:02 -03:00
David Capello
313b915e63 Implemented onionskin stuff in UISettingsImpl class. 2010-07-16 18:10:04 -03:00
David Capello
fef94477cb Modified render method to use a RGB image for the final result (independently of the current image type).
With this we can draw the background grid (and use onionskin) in indexed images without palette limitations.
2010-07-16 17:52:29 -03:00
David Capello
28b3f7fe8c Minor change: Modified C comments to C++. 2010-07-16 17:48:47 -03:00
David Capello
7fa04dddb2 Moved check_args.cpp from src/core/ to src/. 2010-07-16 17:00:37 -03:00
David Capello
f2f1bb26f2 Replaced old DIRS structure with ResourceFinder class. 2010-07-16 16:56:45 -03:00
David Capello
8812623528 Removed LoadPalette() function. 2010-07-16 16:48:02 -03:00
David Capello
a82d721913 Moved get_pretty_memsize (core.h) to get_pretty_memory_size (mem_utils.h). 2010-07-16 16:05:56 -03:00
David Capello
81fcdb53a3 Modified status bar text when we are dragging pixels in the editor.
+ Added PixelsMovement::getImageBounds() method.
2010-07-14 20:02:18 -03:00
David Capello
3218265eed Fixed dirs.cpp for Mac OS X to behave same as on Unix (with the addition to look for .app directory content). 2010-07-14 19:58:22 -03:00
David Capello
d3fd921f1a Added Launcher::openFile() command for Linux. 2010-07-07 15:10:31 -03:00
David Capello
a6b164d88b Added quotes in Launcher::openFile() to open URLs with '&' character. 2010-07-06 23:45:41 -03:00
David Capello
b2d212f90f Added operating system name and version in CheckUpdates command. 2010-07-06 23:31:54 -03:00
David Capello
eb68ae06e1 Fixed "Quick Reference" command. Documentation is searched in different locations depending the operating system. 2010-07-06 23:31:31 -03:00
David Capello
ff705fce46 Improved Launcher::openFile() method for Windows using ShellExecute() instead of system(). 2010-07-06 23:29:40 -03:00
David Capello
5f670782de Fixed a compilation error in gcc with std::sort(). 2010-07-05 21:48:27 -03:00
David Capello
7f4871c2fb Modified about command to show links to authors' home page. 2010-07-04 23:17:01 -03:00
David Capello
c400ea0cd0 Added CheckUpdates command. 2010-07-04 12:07:38 -03:00
David Capello
b5944202f1 Removed tools.cpp. 2010-07-04 12:04:05 -03:00
David Capello
c4ab208e4b Replaced jwidget_show/hide/is_visible/is_hidden functions with Widget::isVisible/setVisible methods. 2010-07-04 12:03:14 -03:00
David Capello
47aa64efe4 Removed jwidget_enable/disable/is_enabled/is_disabled functions. 2010-07-03 15:26:27 -03:00
David Capello
447f6438a4 Removed jwidget_select/deselect/set_selected/is_selected/is_deselected functions. 2010-07-03 15:03:26 -03:00
David Capello
ee3e04386b Added LinkLabel widget. 2010-07-03 14:33:31 -03:00
David Capello
cb0488b50b Refactored jlabel widget to Label class. 2010-07-03 13:48:14 -03:00
David Capello
449cdd686f Added Donate command. 2010-07-03 13:36:39 -03:00
David Capello
3d89a21e2f Added "Quick Reference" command.
- Added Launcher class to open files and URLs.
2010-07-03 13:34:17 -03:00
David Capello
6351aa1db5 Modified minimum scroll-bar thumb size. 2010-06-25 00:31:40 -03:00
David Capello
d8d66782c8 Added to the file selector dialog the list of recent paths (which is generated from the list of recent files). 2010-06-25 00:27:04 -03:00
David Capello
7b9f3a154f Fixed floodfill algorithm for colors with alpha=0 but different RGB components. 2010-06-24 23:54:40 -03:00
David Capello
4dff5fac85 Converted combobox widget to a class (ComboBox class derived from Widget). 2010-06-24 23:44:59 -03:00
David Capello
bbc16ab0da Now the separator label is drawn with other color. 2010-06-24 23:36:29 -03:00
David Capello
91b6233b48 Now the user can select mask color as foreground or background colors (e.g. now you can erase with right button using brush tool). 2010-06-24 23:25:30 -03:00
David Capello
0467790bcf Added skin to scrollbar. 2010-06-24 00:09:46 -03:00
David Capello
d6def8fcc4 The number of colors in indexed sprites cannot be modified in the beta version yet (it needs more testing). 2010-06-23 23:31:29 -03:00
David Capello
52f94b613b Changed "Discard" to "Don't Save" in the warning dialog when the user wants to close a modified file. 2010-06-23 23:20:16 -03:00
David Capello
2f242e4934 Fixed get_color_for_image() function with color indexes out of range. 2010-06-23 23:18:57 -03:00
David Capello
896fbcc095 Fixed problems in color curve effect using color indexes out of range. 2010-06-23 23:18:22 -03:00
David Capello
548c82adaf Fixed save/load operations of .ase format for sprites with less than 256 colors. 2010-06-23 10:38:07 -03:00
David Capello
ce186c95b3 Avoid using RGB_MAPs with invalid colors (palette index out of range). 2010-06-23 10:36:42 -03:00
David Capello
2b5058f66c Modified "on_color_changed" slot (in palette editor) to avoid using invalid colors. 2010-06-21 22:17:05 -03:00
David Capello
489927528d Fixed a bug calling "palette_editor" with invalid color (index out of range). 2010-06-21 22:16:30 -03:00
David Capello
7d659f1017 Sort command will not be available in the beta version. 2010-06-17 02:28:37 -03:00
David Capello
1de1a263f1 Added undo information to sort command (it is WIP, is not working properly). 2010-06-17 02:17:42 -03:00
David Capello
df03782e0a Now Palette:sort() generates a mapping table. 2010-06-17 02:16:43 -03:00
David Capello
10325873d3 Added undo_remap_palette() function. 2010-06-17 02:14:44 -03:00
David Capello
1320ad7b61 Added Sprite::remapImages(). 2010-06-17 02:13:42 -03:00
David Capello
636b188283 Added possibility to sort a range of palette entries. 2010-06-17 00:34:39 -03:00
David Capello
924fc09a66 Added HSL_Lightness and YUV_Luma palette sort criteria. 2010-06-17 00:21:57 -03:00
David Capello
265896ac07 Now the "More Options" visible status is saved in configuration file. 2010-06-15 19:46:39 -03:00
David Capello
6fb63f71b0 Modified logic to selected the default sort criteria in palette editor. 2010-06-15 19:45:57 -03:00
David Capello
512a6162fe Renamed aseprite.cfg to aseprite.ini (.ini files can be opened in Windows). 2010-06-15 19:44:41 -03:00
David Capello
ec30837631 Added Palette:sort() and SortPalette class.
Implemented "Sort" command in palette editor.
2010-06-14 22:53:30 -03:00
David Capello
a5645bf577 Minor change: eliminated compilation warning. 2010-06-14 22:35:20 -03:00
David Capello
051577f725 Added jlistbox_get_items_count() function. 2010-06-14 21:22:59 -03:00
David Capello
d19321981d Removed not-implemented jlistbox methods. 2010-06-14 20:40:45 -03:00
David Capello
91174456cd Added the missing palette commands: ramp, quantize, load, and save. 2010-06-13 20:04:38 -03:00
David Capello
a0fabbfe18 Fixed makeRectRamp() when "from" index is greater than "to" index. 2010-06-13 19:51:26 -03:00
David Capello
9a550e2301 Added "More Options" panel in palette editor. 2010-06-13 19:35:40 -03:00
David Capello
493bbbd20c Fixed size of palette editor boxes for jguiscale() > 1. 2010-06-13 18:06:11 -03:00
David Capello
0d4851b0fb Removed death code in paledit.cpp. 2010-06-13 18:05:21 -03:00
David Capello
93f7d76715 Converted tabs widget to Tabs class and ITabsHandler interface. 2010-06-13 17:51:22 -03:00
David Capello
b37886b052 Now the status-bar text is cleared when the mouse leave widgets like Editor and ToolBar. 2010-06-11 00:05:53 -03:00
David Capello
c78f467ee4 The color-bar does not show invalid colors in the status-bar anymore. 2010-06-10 23:59:12 -03:00
David Capello
b334706cce Added StatusBar::clearText() member function. 2010-06-10 23:58:48 -03:00
David Capello
ed14c4a31a Now selected colors to draw are checked in Editor::createToolLoopImpl(). 2010-06-10 23:51:22 -03:00
David Capello
07970e8116 Removed app_get_fg/bg_color() functions. 2010-06-10 23:50:10 -03:00
David Capello
c908af4b87 Modified the way invalid colors are drawn. 2010-06-10 23:49:33 -03:00
David Capello
a17a3de4d4 Fixed: now you cannot select invalid colors with the color-bar. 2010-06-01 22:42:20 -03:00
David Capello
2a2effa4ff Fixed color_to_formalstring() for invalid colors. 2010-06-01 22:41:44 -03:00
David Capello
9942cf953c Fixed draw_color() function to draw invalid colors (out of palette range). 2010-06-01 22:41:26 -03:00
David Capello
7e711119e0 Removed a lot of warnings from core/color.cpp 2010-06-01 22:24:24 -03:00
David Capello
4de7f0e7c0 Added BITMAP* parameter in draw_emptyset_symbol() function. 2010-06-01 22:24:07 -03:00
David Capello
c975930fc3 Added color_is_valid() function to know if a color is inside the valid range of palette indices. 2010-06-01 22:03:44 -03:00
David Capello
0a5746bf3b Added the number of colors in "New Sprite" dialog for Indexed sprites. 2010-06-01 20:35:13 -03:00
David Capello
81bafa3595 Added some assertions to access current palette indexes through color_t type. 2010-05-30 10:55:13 -03:00
David Capello
4174c895ae Show the number of colors in sprite properties dialog. 2010-05-30 10:53:22 -03:00
David Capello
399d613a76 Now the palette is created with the given number of colors. 2010-05-30 10:48:37 -03:00
David Capello
018aeffa47 Fixed bug in Palette::toAllegro(): Index out of range. 2010-05-30 10:48:17 -03:00
David Capello
4a9f6cf520 Now Editor::controlInfiniteScroll() is called when the editor's state is MOVING_PIXELS but even when the user is not dragging the pixels (just the mouse captured). 2010-05-06 23:34:30 -03:00
David Capello
e5c7bf34fa Added more methods to handle decorators (still WIP) in Editor class. 2010-05-06 23:33:26 -03:00
David Capello
bffd54bf79 Added Editor::editor_set_zoom_and_center_in_mouse to remove duplicated code. 2010-05-06 22:15:58 -03:00
David Capello
f9aaf0af99 Fixed cursors problem when the user is dragging pixels. 2010-05-06 22:00:22 -03:00
David Capello
8e985a3bd8 Renamed PixelsMovement::m_isCatched (which should be Caught) to m_isDragging. 2010-05-06 21:59:48 -03:00
David Capello
c5c1f45b96 Fixed clipping problems dragging selected pixels when other windows are opened. 2010-05-06 21:58:13 -03:00
David Capello
9902481f51 Improved pixel-movement: Added support for continuos movement even when we release the mouse button.
The mouse is captured by the editor until the user presses a key (e.g. to execute a command) or uses the selection tool to add/subtract chunks of mask. While the mouse is captured we are in the "pixels movement" loop.
2010-05-03 23:01:05 -03:00
David Capello
a98113a92e Fixed problems with cel position alignment in Undoable::clear_mask and paste_image members functions. 2010-05-03 22:55:06 -03:00
David Capello
8b4c4f6a5a Added jmessage_new_copy_without_dests() to copy messages without copying the list of recipients. 2010-05-03 22:40:01 -03:00
David Capello
ea56481314 Updated copyright to 2010. 2010-04-28 23:52:51 -03:00
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