Add framing tool GUI

* Added under the Resize tool like PR sharpening
* Adds FramingParams and FramingParamsEdited structs
* No parameter read/write implemented
* No support for batch mode
* No adjuster listeners implemented
* Signals and callback functions are defined but do nothing
This commit is contained in:
Daniel Gao
2024-11-04 16:38:43 -05:00
parent 96ad7051cf
commit 03a73eb3a4
14 changed files with 798 additions and 11 deletions

View File

@@ -22,7 +22,6 @@
#include "adjuster.h"
#include "guiutils.h"
#include "guiutils.h"
#include "toolpanel.h"
class Resize final :
@@ -33,6 +32,8 @@ class Resize final :
{
public:
static const Glib::ustring TOOL_NAME;
static constexpr int MAX_SCALE = 16; // 16 to match the main preview max scale of 1600%
static constexpr int MIN_SIZE = 32;
Resize ();
~Resize () override;
@@ -85,6 +86,4 @@ private:
sigc::connection sconn, aconn, wconn, hconn, leconn, seconn;
bool wDirty, hDirty, leDirty, seDirty;
IdleRegister idle_register;
static constexpr int MAX_SCALE = 16; // 16 to match the main preview max scale of 1600%
};