Commit Graph

8797 Commits

Author SHA1 Message Date
David Capello
66496bdcd2 Replace unique_ptr w/std::optional for optional values in doc::Brush 2022-11-03 08:26:10 -03:00
David Capello
d029efbcc0 Merge branch 'saved-undo-state' (#3578) 2022-11-03 07:53:04 -03:00
David Capello
683954b8fd Enable DeselectMask and MaskAll commands when ENABLE_UI=off 2022-11-02 10:26:51 -03:00
David Capello
38c0400927 Fix Doc::isModified() when we are in a similar UndoState to the saved one
If the current UndoState doesn't modify the "saved state" (e.g. there
is a sequence of undoes/redoes that doesn't modify the saved version
of the sprite compared to the current one), we can indicate that we
are in the saved state anyway (!Doc::isModified).
2022-11-02 09:58:18 -03:00
David Capello
e703de535e Show saved undo state in Edit > Undo History window (fix #3578)
Some extra changes introduced:
* DocUndo & CmdTransaction were simplified: removing the saved
  counter, and storing a specific UndoState pointing to the state that
  matches the version in the disk
* DocUndo::onDeleteUndoState() can generate a
  impossibleToBackToSavedState() if the saved state is deleted. This
  might fix some bugs where a "save changes" dialog weren't displayed
  after undoing and making changes (probably related to #3542, but not
  sure)

Some extra work is needed to avoid showing the "save changes" dialog
if we are close to the saved state and only non-modification undo
states separate us from there. E.g. if we open a file, select the
canvas, and close it, Aseprite now shows the "save changes" dialog,
this wasn't true in previous versions.
2022-11-02 09:57:52 -03:00
David Capello
ebdf535ec8 Remove unused member function Timeline::celBoxSize() 2022-10-31 13:11:57 -03:00
Gaspar Capello
e1caf39887 Fix Marquee Tool becomes invisible in the grayscale mode (fix #3274)
Before this fix, during the action of selecting an area (with any selection tool), the preview of the selection edge in grayscale Color Mode was not displayed (fix #3274).
2022-10-27 15:39:16 -03:00
David Capello
7309c61c86 Update laf module 2022-10-25 16:04:02 -03:00
David Capello
cfa977e195 Fix instructions/paths for CLI tests 2022-10-25 15:57:31 -03:00
David Capello
c7cafca69a Merge remote-tracking branch 'tests/main' 2022-10-25 15:30:38 -03:00
David Capello
9959dc5d75 run-tests.sh requires /bin/bash, not /bin/sh (reported in #9) 2022-10-25 14:56:41 -03:00
David Capello
49e4e10311 Fix bug where Layer > Open Group didn't update the Timeline rows 2022-10-24 17:17:06 -03:00
David Capello
69d3ada204 Avoid setting invalid frame on Editor in certain cases
Playback is still buggy, and we need to fix some test cases, but this
is useful to fix a crash/assert fail if we try to set as active frame
something outside the valid range.
2022-10-24 16:19:25 -03:00
David Capello
82bd4e61dd Add Tag.repeats field 2022-10-24 14:03:54 -03:00
David Capello
b21831561a [lua] Add Tag.repeats field 2022-10-24 14:03:05 -03:00
David Capello
3691b9a16c Merge branch 'repeat-tag' 2022-10-24 11:05:24 -03:00
David Capello
fafaf85b29 Simplify onion skinning ignoring subtags 2022-10-20 16:00:03 -03:00
David Capello
6c2d2f6f79 Fix crash if we remove a tag when we're playing the animation 2022-10-20 14:51:42 -03:00
David Capello
9601c02812 Add option to play/preview with subtags & repetitions 2022-10-20 14:41:24 -03:00
David Capello
e78e1e9a54 Remove current_editor, replace with Editor::activeEditor()
Finally removed src/app/modules/editors.h file.
2022-10-20 12:31:22 -03:00
David Capello
4f96d37b1f Add repeat field to animation tags (#1275, #1740) 2022-10-19 12:25:06 -03:00
David Capello
17a5b3f3fc Replace base::mutex with std::mutex
* Removed base::mutex & base::scoped_lock
* We can use std::lock_guard with deduced template args (as we're
  using C++17 now)
2022-10-18 16:20:34 -03:00
David Capello
616f74ae2d Minor changes when accessing "properties_grid" widget 2022-10-13 09:40:54 -03:00
David Capello
18bbc271a1 Some minor clang-format adjustments
We're not using clang-format yet but there are plans to do it in a
near future.
2022-10-12 16:04:04 -03:00
David Capello
160a3f9a6c Merge branch 'beta-fix-2809' (fix #2809) 2022-10-12 15:00:41 -03:00
Joshua Ogunyinka
ed26fdd806 Add missing language strings in other uncategorized sections 2022-10-12 14:57:23 -03:00
Joshua Ogunyinka
6c55847151 Add more missing language strings for filtering/editing 2022-10-12 14:54:50 -03:00
Joshua Ogunyinka
aaa69a3d81 Add more missing language strings when importing/exporting sprite sheets 2022-10-12 14:40:01 -03:00
Joshua Ogunyinka
a4bc897f76 Add missing language strings for preview editor/new brush/inks/mask by color 2022-10-12 14:36:31 -03:00
Joshua Ogunyinka
3cdb187487 Add more missing language strings for colorbar's wheel properties 2022-10-12 14:24:20 -03:00
Joshua Ogunyinka
a6aa84981f Add more missing language strings when changing sprite's pixel format 2022-10-12 14:23:40 -03:00
Joshua Ogunyinka
05c4326ada Add missing language strings for all components using the status bar 2022-10-12 14:23:30 -03:00
Joshua Ogunyinka
bf88fa2bd1 Add missing language strings when loading/saving components 2022-10-12 14:21:21 -03:00
Joshua Ogunyinka
05ece3fad1 Add missing language strings in sprite size command 2022-10-12 13:49:24 -03:00
Joshua Ogunyinka
9105642dbf Add missing language strings for layer/frame/anidir comboboxes 2022-10-12 13:46:29 -03:00
Joshua Ogunyinka
dd2efe28d2 Add missing language strings for dithering selector 2022-10-12 13:41:19 -03:00
Joshua Ogunyinka
974c13dd33 Add missing language strings in sprite properties & import sprite sheet 2022-10-12 13:38:22 -03:00
Joshua Ogunyinka
6bc0d312d2 Add missing language strings in the layer properties 2022-10-12 13:24:09 -03:00
Joshua Ogunyinka
ab56186d79 Update commands strings when language change 2022-10-12 13:22:26 -03:00
Joshua Ogunyinka
bbfae36d8f Add missing language strings for preference window 2022-10-12 13:20:41 -03:00
Joshua Ogunyinka
de44545930 Add missing language strings for keyboard shortcuts
Co-authored-by: David Capello <david@igara.com>
2022-10-12 13:20:35 -03:00
Joshua Ogunyinka
797f8db2fa Add missing language strings for the file selector 2022-10-12 13:20:23 -03:00
Joshua Ogunyinka
60b5df4030 Add missing language strings for the color bar 2022-10-12 13:19:32 -03:00
Joshua Ogunyinka
3c815ac1bd Add missing language strings for the timeline/context bar 2022-10-12 13:19:20 -03:00
David Capello
c7e4416f95 Merge branch 'beta' 2022-10-11 19:05:46 -03:00
David Capello
d195561b7f Merge branch 'beta' (#3548) 2022-10-11 18:59:39 -03:00
David Capello
178d8e1775 Disable multiple UI windows by default (#3548) 2022-10-11 18:58:32 -03:00
David Capello
a5ac9ada27 Merge branch 'main' into beta 2022-10-11 18:50:09 -03:00
David Capello
c253bfbedd Simplify FilenameInfo initialization 2022-10-06 11:49:05 -03:00
Gaspar Capello
16362cc511 Fix {duration} file format always gives an incorrect number (fix #2998)
Before this fix, the string '{duration}' in the file format gave an incorrect/random and constant number across all frames. This happened in Save-AS, Export File, CLI, Json on Export Sprite Sheet.
2022-10-06 11:28:16 -03:00