David Capello
58a515c3ae
Win32: If we receive a WM_NCMOUSEMOVE message, we can generate a Event::MouseLeave if needed
2014-08-10 00:48:18 -03:00
David Capello
8cf25c49a7
Win32: Fix bug where the mouse capture isn't released
2014-08-10 00:12:33 -03:00
David Capello
4d4958bf35
Move capture/release mouse function to she layer
2014-08-09 22:32:05 -03:00
David Capello
33706ce6ff
Fix issue 408 saving the Import Sprite Sheet window position
2014-08-09 21:54:12 -03:00
David Capello
303595689f
Use generated widget app::gen::NewSprite in NewFileCommand
2014-08-09 21:45:07 -03:00
David Capello
df0d39ed87
Timeline: draw clipboard range after the selection outline
2014-08-09 21:35:23 -03:00
David Capello
2c675bfc4f
Fix crash in PreviewCommand
...
We cannot use the ui::Graphics internal surface directly when we use
raster::convert_image_to_surface() (it expects an Rgba surface).
2014-08-09 21:33:38 -03:00
David Capello
93c6967409
Show mini editor window again after PlayAnimationCommand
2014-08-09 18:37:23 -03:00
David Capello
a5d6af7d87
Fix issue 426: The user should not be able to change cel opacity in Indexed images
2014-08-09 18:04:53 -03:00
David Capello
ff493552aa
Capture mouse in PreviewCommand
2014-08-09 17:31:22 -03:00
David Capello
1e84c63042
Use ui::Window to show the animation playback instead of a custom event loop
2014-08-09 17:14:56 -03:00
David Capello
d23fa2230b
Implement option to generate one optimized palette for all frames when we save a .gif file
2014-08-09 12:51:11 -03:00
David Capello
8dff8a979d
Copy the background layer as background when a document is duplicated
2014-08-09 12:45:04 -03:00
David Capello
7632e83046
Don't show selection handles in the MiniEditor
2014-08-09 12:24:04 -03:00
David Capello
3bbdb80461
Fix Image::getRowStrideSize() function (fixes crash reported in issue 443)
2014-08-09 12:10:48 -03:00
David Capello
7faf8a1bb7
Fix crash in ClearCommand removing empty cels
2014-08-09 11:25:40 -03:00
David Capello
a6933b2c7a
Rename ui::jmouse_poll to ui::_internal_poll_mouse
2014-08-09 11:16:54 -03:00
David Capello
b1b4ed8b39
Don't block Menu::showPopup() with a customized event loop
...
We must call Menu::showPopup() in ui::kMouseUpMessage message.
2014-08-09 11:13:51 -03:00
David Capello
67f9354b3d
Update about dialog
2014-08-09 11:05:13 -03:00
David Capello
bebc129a4d
Remove rounded corners to minifont.png to make it more readable
2014-08-09 10:45:06 -03:00
David Capello
6ccd95e22d
Use a desktop Window in PreviewCommand to avoid a special events loop
2014-08-09 10:37:51 -03:00
David Capello
dfaf097b88
Rename base/compiler_specific.h to base/override.h
2014-08-09 08:08:20 -03:00
David Capello
ae974b544b
Include <stdexcept> in app/util/clipboard.cpp (needed for gcc)
2014-08-08 10:52:21 -03:00
David Capello
5b5a2cfd9f
Add support to copy and paste layers between different documents
2014-08-08 10:33:45 -03:00
David Capello
1391afb694
Fix gcc compilation error
2014-08-08 01:00:22 -03:00
David Capello
626ec1d2ba
Add MoveTaskCommand: now you can move the selection with Shift+arrow keys
2014-08-08 01:00:02 -03:00
David Capello
6d1602f278
Minor change in gui.xml
2014-08-07 20:26:02 -03:00
David Capello
9fd60f1119
Move Timeline logic to drag-and-drop ranges to app::DocumentRange/move_range/copy_range
...
This fixes issue 433.
2014-08-07 20:19:31 -03:00
David Capello
0f99c78174
Win32: Return HTCLIENT when the mouse is above scrollbars but inside the client area
2014-08-07 08:45:51 -03:00
David Capello
0d2b3d1d68
Don't show Win32 scrollbar popup when the window is right-clicked in the scrollbars area
2014-08-07 08:44:30 -03:00
David Capello
7db6ea53c3
Add "Contiguous" option/checkbox for the paint bucket tool (true by default)
2014-08-07 00:07:24 -03:00
David Capello
d74944c885
Updated NES palettes (issue 411 for details and authors)
2014-08-06 08:57:41 -03:00
David Capello
fcfaacd4d7
Update version to 1.0.3-dev
2014-08-06 00:50:35 -03:00
David Capello
a856cdf8bd
Add support for command key in Mac OS X platform
...
Other change:
- Fixed ui::Message::onlyCtrl/Shift/AltPressed() member functions
2014-08-06 00:42:50 -03:00
David Capello
c104b4812d
Add doc::Settings to get the undo limit (or other settings that will be in the logic/doc layer)
2014-07-31 00:19:58 -03:00
David Capello
21e9078fd7
Fix asserts in file/gif_tests
2014-07-30 01:45:59 -03:00
David Capello
91b0c2d071
Refactor: Remove "get" part for member functions that act like a simple getter
...
Additional change:
- Added Cel::image() to get the related image of the cel directly
2014-07-30 01:28:15 -03:00
David Capello
03a085d1e5
Fix problem deleting app::Document that are inside a Context
2014-07-29 01:29:04 -03:00
David Capello
81ffb0c5bd
Refactor: Create doc::Context and move some logic from app::Document to doc::Document
...
The objective of these changes is to create a more testable doc/logic API.
Included changes:
- Added doc::Context, doc::Documents (the old app::Documents),
and doc::Sprites (and observers for each)
- Added raster::Sprite::createBasicSprite()
- Added doc::ColorMode (equal to raster::PixelFormat)
- Added some methods to doc::Document: context(), sprites(), sprite()
(to replace app::Document::getSprite()), width/height(), colorMode(),
name(), and close()
- Moved app::DocumentObserver/Event to doc::DocumentObserver/Event
- Replaced app::ContextObserver with doc::DocumentsObserver and a couple
of signals.
- Renamed app::Context::getActiveDocument() with
doc::Context::activeDocument()
- Renamed app::Context::getActiveLocation() with
app::Context::activeLocation()
- Removed app::ContextObserverList
- Removed app::DocumentId (now we can use doc::ObjectId)
- Removed app::Context::getSettings()
2014-07-29 00:53:24 -03:00
David Capello
a20bb2d4d7
Change Timeline logic to work with LayerIndex instead of inverted UI indexes
...
This is a work-in-progress, dropRange() must be reimplemented. Now that
the Timeline uses LayerIndex, we could change Timeline::Range to
DocumentRange and create unit tests for the logic side.
2014-07-24 23:50:45 -03:00
David Capello
9bea45f4ec
Add UI to fix issue 433 (we cannot drop frames at the end or layers at the bottom)
...
The logic is not ready.
2014-07-21 22:59:45 -03:00
David Capello
8e55432cca
Avoid warning about undefined dtor for UniquePtr<Resource>
2014-07-21 22:49:59 -03:00
David Capello
ce77a38303
Fix base::Observers impl: Copy the whole list of observers before we start iterating them (fix issue 427)
...
There are cases where we need to modify the list of observers of certain
entity when we are in a notification loop (i.e. iterating its observers).
E.g. A general update notification about the current document to all its
observers could create the mini editor, which is a DocumentObserver, so
a new observer is added to the list in the same notification loop.
Anyway, as we cannot modify the observer list (std::vector) when we are
notifying them (any modification in the std::vector invalidates
its iterators), the fix is quite easy (but not optimal): we can create
a copy of the observers list so we can iterate the list.
Note: If we have performance issues about this, we could try a std::list,
but at the moment this fix is quite enough.
2014-07-21 01:39:01 -03:00
David Capello
411ceda0e7
Add options to save GIF files (how to quantize palettes mainly)
...
* Added "context" parameter to save/load routines so we can test them.
2014-07-19 22:01:39 -03:00
David Capello
b9a1fa8e17
Put batck the "Pixel perfect" checkbox in the contextbar
...
The new UI will be available in v1.1, and it's better if we don't modify
the v1.0 interface too much at this moment.
2014-07-17 09:54:04 -03:00
David Capello
31e565a2b0
Add "gen" utility to generate UI widget wrappers from XML files
2014-07-13 13:24:57 -03:00
David Capello
958d8f922f
Merge branch 'next' into dev
2014-07-11 01:15:30 -03:00
David Capello
e09bb7d3f2
Fix file_tests
2014-07-06 22:10:48 -03:00
David Capello
c004fb6bcd
Set palette when the frame of the current editor changes
2014-07-06 22:10:30 -03:00
David Capello
4a17ee351c
Minor changes in cmd_goto_frame.cpp
2014-07-06 21:48:46 -03:00