Implement ProcEvents for framing tool

* Add new events to ProcEvents
* Add new events to refresh map under RESIZE category
* Add new strings for displaying events in history panel
* Hook up GUI events with emitting ProcEvents
This commit is contained in:
Daniel Gao
2024-11-07 22:31:41 -05:00
parent 757a0a032a
commit 29945f4a35
6 changed files with 162 additions and 3 deletions

View File

@@ -2014,12 +2014,15 @@ struct FramingParams {
SHORT // Use short side of image
};
// Indicates to use the image aspect ratio for border
static constexpr double AS_IMAGE_ASPECT_RATIO = 0.0;
FramingParams();
bool enabled;
FramingMethod framingMethod;
double aspectRatio; // 0 - Use aspect ratio of image
double aspectRatio;
Orientation orientation;
int framedWidth;
int framedHeight;