From bdd4202c35a0b96a2942e98d53cf78f237b845d4 Mon Sep 17 00:00:00 2001 From: David N Campo Date: Thu, 7 Feb 2019 14:03:11 -0300 Subject: [PATCH] Add Trim by Grid option in Export Sprite Sheet (#1926) This adds the logic and UI part of Trim by Grid feature, the CLI part is not yet implemented. --- data/pref.xml | 1 + data/strings/en.ini | 1 + data/widgets/export_sprite_sheet.xml | 4 ++++ src/app/commands/cmd_export_sprite_sheet.cpp | 18 ++++++++++++++++++ src/app/doc_exporter.cpp | 18 +++++++++++++++++- src/app/doc_exporter.h | 3 +++ src/app/snap_to_grid.cpp | 9 +++++++++ src/app/snap_to_grid.h | 4 +++- 8 files changed, 56 insertions(+), 2 deletions(-) diff --git a/data/pref.xml b/data/pref.xml index a6a1c7ff3..ec2f52c66 100644 --- a/data/pref.xml +++ b/data/pref.xml @@ -425,6 +425,7 @@