David Capello
c681edbc38
Fix Mask::byColor()
...
Bug introduced in commit e5ba8e0922
2013-11-10 18:42:34 -03:00
David Capello
5c74e59e0e
Fix typo in TODO.md
2013-11-10 18:36:21 -03:00
David Capello
2173da9fcd
Move src/app/dialogs/maskcol.cpp to src/app/commands/cmd_mask_by_color.cpp
...
Finally src/app/dialogs directory is gone.
2013-11-10 18:34:52 -03:00
David Capello
23fd6f5a0f
Minor fix in TODO
2013-11-10 18:27:22 -03:00
David Capello
b0cd01b425
Add the old "Animation Editor" as a timeline at the bottom of sprite editors (Workspace)
...
- Renamed AnimationEditor (dialogs/aniedit.h) to Timeline
class (app/ui/timeline.h)
- Renamed FilmEditor command to Timeline
2013-11-10 18:27:11 -03:00
David Capello
e6450877bb
Minor change: Make Splitter::getPosition() inlined
2013-11-10 18:02:20 -03:00
David Capello
60602f78a8
Show an error if we cannot create a ToolLoopImpl
...
The main issue at the moment is that a std::bad_alloc exception can be
thrown if there isn't enough memory available when the user click the
sprite editor to start drawing.
2013-11-10 16:20:20 -03:00
David Capello
efbb3e52e2
Fix bug where dirty bounds are out of the image bounds
2013-11-10 16:09:46 -03:00
David Capello
13946b310c
Improve creation of Dirty() instance (fix issue #239 )
...
Now Dirty() ctor receives the bounds, so we don't need to iterate over
the whole image to find/shrink the modified region.
2013-11-10 15:54:36 -03:00
David Capello
ba4937ab07
Update TODO.md
2013-11-10 14:50:37 -03:00
David Capello
5b8d000171
Improve put/get_pixel_fast() functions to avoid virtual function call
2013-11-10 14:49:06 -03:00
David Capello
48864b440b
Add ImageBuffer class
...
It tries to mitigate issue #239 , but it's not a full fix yet. A good
possibility would be to change the internal structure of images, creating
tiles. So we don't need to allocate/copy/clear/etc. huge images in each
step.
2013-11-10 13:26:48 -03:00
David Capello
5db38c4a87
Specialize ImageImpl::clear for Indexed and Bitmap images
2013-11-10 13:20:28 -03:00
David Capello
38c64d5460
Avoid calling Image::getPixelAddress() (virtual function) in several ImageImpl functions
2013-11-10 13:19:49 -03:00
David Capello
e3b594fc67
Fix warnings using Win32 Unicode functions instead of ANSI functions in curl lib
2013-11-10 12:36:26 -03:00
David Capello
01d79ddf9b
Merge branch 'dev' of git@github.com:dacap/aseprite.git into dev
2013-11-09 20:00:16 -03:00
David Capello
e5ba8e0922
Encapsulate Image implementation (private members, accessors, iterators, etc.)
...
- Rename _rgba/_graya to raster::rgba()/graya()
- Add raster::color_t type (alias for uint32_t)
- Rename raster::GfxObj to Object. And GfxObj::getType() to Object::type()
- Move conversion from raster::Image/Palette to Allegro BITMAP/RGB
to raster/conversion_alleg.h file
- Add raster/color_scales.h
- Rename image_* functions to raster/primitives.h
- Reimplement ink processing with templates instead of macros
2013-11-09 19:59:05 -03:00
David Capello
dbf4d0d490
Replace JRect/jrect struct with gfx::Rect
...
- Replaced Widget::rc -> Widget::m_bounds private member.
- Added Widget::offsetWidgets() method.
- Removed View::displaceWidgets().
2013-10-26 12:50:55 -03:00
David Capello
7657461162
Merge branch 'dev' of git@github.com:dacap/aseprite.git into dev
2013-10-14 20:06:00 -03:00
David Capello
d9910f8210
Merge branch 'dev' of git@github.com:dacap/aseprite.git into dev
2013-10-14 19:58:48 -03:00
David Capello
5b252c30f5
Add support for Unicode file names on Windows
...
- Fixed issue #46 : open .png files with Unicode chars
- Fixed issue #150 : ability to uncompress program in folders w/Unicode chars
- Added base::utf8_iterator
- Added base::FileHandle
- Added base::get_app_path()
- Modified ui::KeyMessage::ascii() -> unicodeChar()
- Removed JI_NOTEXT flag
- Added app::XmlDocumentRef class and app::open_xml() function
- Added support for Unicode text exchange with Win32 clipboard
2013-10-14 19:58:11 -03:00
David Capello
092ae7b2d6
Fix warning: Remove AL_CONST modifier from free_config_entries() function
2013-09-30 19:57:49 -03:00
David Capello
63c3a62e00
Change PACKAGE name to Aseprite
2013-09-30 19:57:16 -03:00
David Capello
0d182b95af
Fix issue #264 , widgets aren't loaded
...
This error appeared after a huge refactor of classes
(src/widgets/ to app/ui/ directory).
2013-09-30 12:07:40 -03:00
David Capello
251e651cbd
Fix ui::Manager::pumpQueue() error when compiling in debug mode
2013-09-28 17:13:17 -03:00
David Capello
5d0c25b0da
Modify base::convert_to() undefined implementation
...
GCC shows divide-by-zero warnings, so it is better in this way.
2013-09-21 20:40:54 -03:00
David Capello
d91b05667b
Fix compilation errors detected with gcc
2013-08-20 00:51:37 -03:00
David Capello
cde54f3682
Change BSD license to MIT in sublibraries and fix headers
2013-08-08 21:01:20 -03:00
David Capello
a06faeddac
Change README.md to see dependencies between (...)
2013-08-05 22:58:07 -03:00
David Capello
3afd20f6ac
Update src/README.md
2013-08-05 22:40:48 -03:00
David Capello
9eebfc5812
Remove dependency of "undo" library with "base"
2013-08-05 22:11:54 -03:00
David Capello
c88f9b172b
Refactor: Move app files to src/app subdirectory inside app namespace
...
- Add HAVE_CONFIG_H wrapper to #include "config.h"
- Removed widgets namespace (it's in app now)
- Move some functions from src/file/file.h to src/base/cfile.h
- Move Vector2d to base library
- Rename MenuItem2 to AppMenuItem
2013-08-05 21:20:19 -03:00
David Capello
5bd57061c6
Merge branch 'dev' of git@github.com:dacap/aseprite.git into dev
2013-07-28 21:17:54 -03:00
David Capello
1614786408
Convert ui::Message union to a class hierarchy
...
+ Add ui::KeyScancode enum and ui::KeyModifiers flags.
+ Add ui::MouseButtons enum.
2013-07-28 21:17:07 -03:00
David Capello
406b4a1410
Fix VS2005 compilation problem
2013-06-26 13:08:17 -03:00
David Capello
11d148c533
Remove unused attribute Context::m_activeDocument
2013-06-24 17:33:48 -03:00
David Capello
6022278260
Remove (unused) MessageSetPos struct
2013-06-02 19:19:01 -03:00
David Capello
2919bbc972
Add "Put Alpha" ink (to draw with the exact opacity value as Alpha)
2013-05-23 00:48:24 -03:00
David Capello
9259dd49d1
Fix issue #237 : fix pen size for square shape
...
+ Add Pen::getBounds().
+ Add options to increment/decrement angle with ChangePen command.
+ Add App:PenAngleBefore/AfterChange signals.
2013-05-22 23:58:32 -03:00
David Capello
e90f86727b
Remove jwidget_get_rect() and jwidget_get_child_rect() functions
...
+ Added Widget::getClientChildrenBounds()
+ Replaced all member functions in Theme::draw_x() to Theme::paintX()
+ Move code to draw tabs from Tabs::onProcessMessage() to Tabs::onPaint().
2013-05-20 20:40:18 -03:00
David Capello
01dfe4d52e
Replace kResizeMessage message with ResizeEvent and Widget::onResize()
...
- Remove jwidget_set_rect() function.
2013-05-11 17:56:27 -03:00
David Capello
3dbf6518f9
Replace all JM_ macros with ui::MessageType enum and add ui::RegisterMessage class to register new UI messages
2013-04-04 21:53:29 -03:00
David Capello
6e62bcb82f
Add ui::WidgetType enum to replace JI_WIDGET macros
2013-04-03 22:07:24 -03:00
David Capello
fd6e4ccc21
Add support for transparent background color for ui::Slider to draw ui::IntEntry popup window without background
2013-04-03 21:17:12 -03:00
David Capello
eba1508473
Fix bug in import sprite sheet
...
The editor must be released before we destroy the document. (The document
destroys all its views now.)
2013-04-03 20:31:49 -03:00
David Capello
b45dcf7d0d
Use ui::ListItem in ui::ComboBox widget
2013-04-03 20:31:02 -03:00
David Capello
1d76e0d545
When a widget is removed (through Widget::removeChild) we've to remove it from its ui::Manager
...
A widget without parent, cannot be part of the Manager (e.g. cannot be
the capture widget, or focused, or the widget with mouse).
2013-04-03 19:54:40 -03:00
David Capello
dcd8627406
Separate ui::ListBox::Item into ui::ListItem class
2013-04-02 21:34:30 -03:00
David Capello
b8c3d39c35
Add shading ink (for indexed images only) and color swatches (no UI yet)
2013-04-02 21:02:18 -03:00
David Capello
6cbe1fa5a0
Hide ink combobox for tools that doesn't make sense to change the ink
...
For example, eyedropper, selection, etc. are special tools that shouldn't
be allowed to change the ink (to avoid confusion).
2013-04-01 21:05:33 -03:00