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