Commit Graph

2135 Commits

Author SHA1 Message Date
David Capello
c1e26d0ac0 Fix image conversion from Indexed to Indexed mapping colors (related to issue #267 and #195) 2014-03-29 21:31:27 -03:00
David Capello
6262366e91 Fix copy & paste from Indexed to RGB (use the clipboard palette) 2014-03-29 20:55:40 -03:00
David Capello
78ce233756 Fix header of files distributed under the terms of the MIT license 2014-03-29 20:08:05 -03:00
David Capello
f4b2b47a2c Add #pragma once 2014-03-29 19:40:17 -03:00
David Capello
6ed35b733c FileSelector: fix combobox behavior as now ComboBox::onChange() event is generated when the combobox is open 2014-03-29 18:42:17 -03:00
David Capello
7e593e92e1 FileSelector: move navigatin_locked as a member variable 2014-03-29 18:00:19 -03:00
David Capello
a2a4eaae91 FileSelector: fix auto-complete to avoid modifying letter case of user-typed text (issue #247) 2014-03-29 17:26:07 -03:00
David Capello
e777729928 FileSelector: select the whole filename when an item is selected in the list 2014-03-29 17:21:13 -03:00
David Capello
7253fa59c5 Fix combobox widget: fire Change signal when the combobox is selected with the keyboard 2014-03-29 17:17:06 -03:00
David Capello
44d3e228fd Add missing OVERRIDE modifier to Command::clone() overrides
It fixes some invalid clone() overrides without const modifier.
2014-03-29 17:08:40 -03:00
David Capello
b16bf981d0 Implement issue #265 - command/keyboard shortcut for "last export" operation
- Add doc::ExportData with information about the last export operation.
- Add RepeatLastExport command.
- Add SaveFileBaseCommand as base Command class, to accept "filename"
  param.
- Add parameters to ExportSpriteSheet so we can call it without UI
  from "repeat last export".
2014-03-29 16:58:35 -03:00
David Capello
395be62b03 Fix issue #310 - crash on export sprite sheet
The timeline wasn't being added as a Document observer, so it wasn't
getting notifications about layers modifications. In this way the timeline
wasn't able to update its m_layers[] internal field and was accessing to
removed layers/invalid memory.
2014-03-29 16:31:39 -03:00
David Capello
03020d7bcf Remove quickref.odt file 2014-03-29 15:54:21 -03:00
David Capello
ccdbfd1cf5 Remove Ctrl+Q shortcut for Exit (it remains reserved for other purposes in the future) 2014-03-29 15:42:13 -03:00
David Capello
f3bfae7ad5 Fix issue 353: don't show context bar when a new view is activated
Now we have three modes: normal mode (everything is visible), the first
intermediate mode (context bar+sprite editor+timeline), and advanced mode
(sprite editor only).
2014-03-21 23:29:01 -03:00
David Capello
0caf41c5fd Fix compilation warning in cmd_remove_layer.cpp 2014-03-21 23:00:31 -03:00
David Capello
139ecb5604 Fix ReplaceInkProcessing for indexed mode when opacity=255 2014-03-21 22:52:54 -03:00
David Capello
b7ff1d990d "Put alpha" ink behaves as default ink in indexed mode 2014-03-21 22:32:30 -03:00
David Capello
04f3c522ba Replace jwidget_get_text_length/height with Widget::getTextWidth/Height
Renamed Widget::getTextSize to Widget::getTextLength as now getTextSize
returns a gfx::Size() (not the strlen() of the text)
2014-03-21 19:45:35 -03:00
David Capello
04a0845a62 SkinTheme: paint windows using styles 2014-03-21 00:28:01 -03:00
David Capello
5f4f1ff029 Add README.md to src/modules/ 2014-03-20 07:31:34 -03:00
David Capello
1212906d5a Move drop files event to she library 2014-03-20 07:31:19 -03:00
David Capello
be6b98995e Add she::EventQueue to she::Display to get events from she library 2014-03-20 00:01:00 -03:00
David Capello
aa27c0d68a Add dummy src/iff/ directory, this will be the module to load/save docs 2014-03-16 21:58:12 -03:00
David Capello
f4641b3665 Update TODO.md 2014-03-16 21:56:31 -03:00
David Capello
fabb58e0ea Fix crash in "go to" commands, don't access to null layer 2014-03-16 21:56:18 -03:00
David Capello
c4605ad513 Enable "remove layer" command to remove all layers
We can remove all layers anyway from timeline selecting a range of layers.
2014-03-16 19:26:03 -03:00
David Capello
f0802ed766 Trace unknown scancodes in allegro/src/keyboard.c 2014-03-16 19:24:49 -03:00
David Capello
72036f417c Minor change in Editor::drawMaskSafe 2014-03-12 20:40:49 -03:00
David Capello
eb7016bede Fix crash in Editor::drawOneSpriteUnclippedRect() (issue 361)
We've to catch std::bad_alloc exceptions.
2014-03-12 19:35:26 -03:00
David Capello
2a70e750cd Add a basic model layer (doc-lib) 2014-03-12 19:25:09 -03:00
David Capello
15f55c045c wddlock.c: Don't use _al_wd_dirty_lines if it's null
Related to issue 359: Program exits unexpectently after minimizing
and maximizing too fast.

I should find the cause of _al_wd_dirty_lines = NULL, but I wasn't able
to reproduce this bug, so at the moment this is the best I can do to avoid
a crash. (I suppose that it's related to a temporary invalid state because
thread sync issues when the screen/window changes its size.)
2014-03-08 21:34:48 -03:00
David Capello
45f0166508 Fix issue 366: Crash (uncaught exception) on closing application 2014-03-08 21:15:48 -03:00
David Capello
30e26e2a3a Select correct ink type in InkTypeField 2014-03-08 21:00:14 -03:00
David Capello
d780e90784 Fix issue 367: Put alpha drawing mode isn't working 2014-03-08 20:37:43 -03:00
David Capello
f107dd3cbc Fix issue 352: Context Bar Eats Hotkey Input
Avoid capturing keyboard focus in context bar widgets.
2014-03-08 20:31:55 -03:00
David Capello
10ae3a9d28 Fix editor drawing code (issue 355, editor decorators weren't visible outside sprite bounds) 2014-03-03 00:09:14 -03:00
David Capello
1b86d613bf Fix issue 360: Cannot save gif files
* SaveFile and SaveFileAs commands ask for removing read-only attribute
* Fixed base::open_file_descriptor_with_exception() to create new files
* Added internal base::Win32Exception
* Added unit tests for the creation of file descriptors
* Added base::delete_file, has_readonly_attr, remove_readonly_attr functions
2014-03-02 20:47:34 -03:00
David Capello
6cfcdc23e1 Fix bug in ColorPicker::pickColor() getting colors outside the image bounds 2014-03-02 20:07:11 -03:00
David Capello
77cd0e9cc6 Fix a bug with invalid m_ptr in image iterators when we merge down layers (fix issue 358)
The ImageIteratorT implementation was simplified to avoid invalid m_ptrs.
2014-03-02 17:02:03 -03:00
David Capello
316223cee9 Save [Options]/CheckedBgZoom as bool value 2014-03-01 18:53:00 -03:00
David Capello
6023c62fa0 Update config.h location in create_dmg.sh script 2014-02-24 10:06:45 -03:00
David Capello
da9f9dfd47 Change Mac OS X dmg package name 2014-02-24 09:18:31 -03:00
David Capello
d7125f9cae Remove scripts to upload files 2014-02-24 09:18:14 -03:00
David Capello
28cb389ac8 Update config.h location on scripts/ folder 2014-02-24 09:17:12 -03:00
David Capello
72a4fbd7e1 Add support for WinXP on create_release.sh 2014-02-24 09:05:20 -03:00
David Capello
1d7b51d8f9 Disable inks as they are confusing and shading mode is not done yet 2014-02-24 08:53:46 -03:00
David Capello
c558d664e8 Don't use C++11 enum class style yet 2014-02-24 08:31:02 -03:00
David Capello
d72a7a4dee Fix compilations errors on gcc 2014-02-24 08:30:43 -03:00
David Capello
3b23184c15 Fix compilation error in ui/clipboard_none.h 2014-02-24 08:23:04 -03:00