Commit Graph

1576 Commits

Author SHA1 Message Date
David Capello
3124a9403f Move TODO.txt to TODO.md (and added some items). 2012-07-08 01:30:50 -03:00
David Capello
594a272c06 Add DocumentUndo to avoid app specific data in the undo library.
The UndoHistory was simplified, m_enabled/label/modification members
were removed because they aren't part of the undo library goal.
Now the "label" field is part of Open/CloseGroup undoers, and all undoers
must be enclosed in a group (this restriction is only for the app, the
undo library doesn't have this restriction). In this way, the
label/modification information is exchanged between an
OpenGroup <-> CloseGroup pair only.
2012-07-08 01:25:26 -03:00
David Capello
160bf5ba0a Change Undoer::getMemSize() to return size_t instead of int and added UndoConfigProvider.
UndoConfigProvider is useful to avoid a direct dependency of undo
library with Allegro.
2012-07-07 16:57:07 -03:00
David Capello
73af9f1c3a Fix issue #130 - converting to grayscale wasn't adding an undoer to revert the new grayscale palette. 2012-07-07 14:20:43 -03:00
David Capello
9b9daca59f Add "LockAxis" key (Shift) to move the selection in X or Y axis only.
Now "Alt" modifier is the key used to snap to grid the selection.
2012-07-06 19:51:40 -03:00
David Capello
11d20a6e33 Add links to README file and Twitter account in Help menu. 2012-07-06 19:26:36 -03:00
David Capello
ebb8d0c5bd Replace deprecated "Monitor" struct from gui module with ui::Timers.
- Added ThumbnailGenerator class to avoid mixing the thumbnail generation
  code with FileList widget.
- Added IFileOpProgress for fop_operate() so we can update the job progress
  when the "file operation" progress changes.
2012-07-06 01:06:00 -03:00
David Capello
09ecf4c588 Remove src/widgets/editor/click.cpp and Editor::editor_click* member functions. 2012-06-17 22:58:31 -03:00
David Capello
51df7a3af6 Rename src/widgets/statebar.[cpp/h] to src/widgets/status_bar.[cpp/h]. 2012-06-17 22:56:40 -03:00
David Capello
55aca8567c Move src/gui/ to src/ui/ 2012-06-17 22:49:58 -03:00
David Capello
14dd4e7ae2 Add GUI library stuff into "ui" namespace (now ui-lib). 2012-06-17 22:02:54 -03:00
David Capello
6f91238264 Add support to load/save GIMP palettes (.gpl files). Issue #112. 2012-06-16 17:50:52 -03:00
David Capello
3835af7ff0 Fix bug with Export Sprite Sheet when the cel is bigger than the sprite's size. 2012-06-16 13:40:13 -03:00
David Capello
57d5748cfe Remove deprecated types (jstream, MessageFunc, JDrawFunc). 2012-06-16 00:51:25 -03:00
David Capello
4afe591c54 Fix TooltipManager: we cannot handle filtered message with the normal Widget::onProcessMessage() handler.
If we use the Widget::onProcessMessage() handler for filtered messages,
key-pressed messages would be handled by the Manager before the
focused widget.
2012-06-16 00:48:29 -03:00
David Capello
42bb192a24 Remove commented code from combobox.cpp. 2012-06-16 00:08:05 -03:00
David Capello
8c13c32ac0 The combobox button isn't a focus stop. 2012-06-16 00:06:54 -03:00
David Capello
a74b9d89a0 Remove JWidget type (replaced with Widget*). 2012-06-16 00:05:01 -03:00
David Capello
fa0bf031e2 Add support to load <textbox> widgets from .xml files. 2012-06-16 00:03:27 -03:00
David Capello
02e8c66da4 Remove signals and hooks in GUI code.
Several refactoring tasks where made:
- Removed the old Widget::id field (JID).
- Renamed Widget::get/setName to get/setId.
- Moved load_widget_from_xmlfile() to app::load_widget and WidgetLoader
  class.
- Removed jhook structure & jwidget_add_hook function. Hooks were replaced
  subclassing widgets.
- Added InitThemeEvent class and Widget::onInitTheme member function.
2012-06-15 23:37:59 -03:00
David Capello
b599f0f85a Fix regression bug introduced in 0.9.2: ENTER/TAB/ESC keys didn't work in ListBox widget. 2012-06-15 22:34:50 -03:00
David Capello
805a0333d7 Fix a problem not showing the "modified" state in tabs correctly after the first DrawingState. 2012-06-15 21:55:32 -03:00
David Capello
3bbf7af991 Rename layer_new_flatten_copy() to create_flatten_layer_copy() and moved to src/flatten.cpp file. 2012-06-08 21:34:53 -03:00
David Capello
1029792a25 Update gui.xml file to 0.9.3-dev. 2012-05-27 21:10:50 -03:00
David Capello
42452c93d2 Rename misc/ to scripts/ 2012-05-20 21:00:44 -03:00
David Capello
3ac0a9db85 Merge branch 'master' of git@github.com:dacap/aseprite.git 2012-05-20 20:55:42 -03:00
David Capello
ba58d839df Add create_dmg.sh script to create .dmg packages. 2012-05-20 20:54:34 -03:00
David Capello
33af9dc5b7 Change to 0.9.3-dev version. 2012-05-20 12:25:05 -03:00
David Capello
b208750112 Add script to upload packages. 2012-05-20 12:07:23 -03:00
David Capello
1c24de00a8 Generate README.html from README.md in dist.sh. 2012-05-20 11:32:13 -03:00
David Capello
5e94f9193c Fix issue #100 - hue is lost when saturation or value is set to 0.
This was fixed only when one entry is selected in the color-bar.
When several entries are selected, as only the modified component
(hue/saturation/value) is set in all selected entries, and the
behaviour specified in the issue can be reproduced.
2012-05-19 18:41:24 -03:00
David Capello
a45253c43e Add OVERRIDE modifier in ColorSliders subclasses. 2012-05-19 18:38:12 -03:00
David Capello
468d9965b9 Improve HexColorEntry so we can paste hex colors with # symbol (like CSS colors #ff0000). 2012-05-19 18:18:56 -03:00
David Capello
ccb4f11cc3 Add file_unittest.cpp with a basic test to load/save .ase file. 2012-05-19 16:22:55 -03:00
David Capello
6c780db89b Minor and non-important changes in read_compressed_image in ase_format.cpp. 2012-05-19 16:22:18 -03:00
David Capello
338a665cb2 Add the possibility to create bigger images (to the limit of WORD size which is the .ase format limit). 2012-05-19 16:18:20 -03:00
David Capello
608a139449 Fix issue #106 - Trim is not working for certain images.
Two pixels with alpha=0 should be treated as the same color (even when
they RGB values are different).
2012-05-19 15:52:55 -03:00
David Capello
fddb323fdd Merge remote-tracking branch 'origin/master' 2012-05-13 15:43:17 -03:00
David Capello
370cf07414 Fix issue #102 - Error loading file (.ase file).
Z_BUF_ERROR (-5) can be returned by inflate() and deflate() in some cases.
2012-05-12 23:35:20 -03:00
David Capello
26f637b839 Add support to call verbose_printf() without an initialized App::instance(). 2012-05-12 23:26:37 -03:00
David Capello
78d3b80df3 Add ScopedAllegro class. 2012-05-12 23:25:36 -03:00
David Capello
5963bb96d9 Fix test.h with the new gui::Manager class. 2012-05-12 23:24:06 -03:00
David Capello
bdce2c8b1f Fix licenses URLs in README.md. 2012-05-03 23:06:45 -03:00
David Capello
bbebb041fe Minor formatting changes in README.md. 2012-05-03 23:05:16 -03:00
David Capello
e6021de616 Move README.html to README.md (more github-friendly). 2012-05-03 23:01:45 -03:00
David Capello
37fd3c1d98 Define SEE_MASK_DEFAULT if it is undefined in launcher.cpp. 2012-05-03 21:31:55 -03:00
David Capello
569451fa01 Include gui/intern.h in files that use _ji_theme_textbox_draw. 2012-05-03 21:24:05 -03:00
David Capello
9bd25d2f57 Improve error handling in ase_file_read_cel_chunk() to continue reading the whole file when an invalid zlib chunk is found.
Related to issue #102.
2012-05-03 00:52:39 -03:00
David Capello
9b4621be31 Add FileHandle to avoid manual FILE handle management. 2012-05-03 00:32:40 -03:00
David Capello
97154d5fbc Avoid opened FILE handlers after exceptions in AseFormat member funtions. 2012-05-03 00:09:31 -03:00