Add width/height adjustment to reference image

Allows setting specific width or height on a reference image instead of
just scale

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18567
This commit is contained in:
Seth Hillbrand
2025-08-26 11:22:32 -07:00
parent 2db8c6eca0
commit 29c4d9b197
9 changed files with 524 additions and 12 deletions
+6
View File
@@ -26,6 +26,7 @@
#include <panel_image_editor_base.h>
#include <widgets/unit_binder.h>
#include <math/vector2d.h>
#include <memory>
@@ -43,6 +44,11 @@ public:
bool TransferDataToWindow() override;
bool TransferDataFromWindow() override;
double GetScale() const;
void SetScale( double aScale );
VECTOR2I GetImageSize() const;
wxTextCtrl* GetScaleCtrl() const { return m_textCtrlScale; }
/**
* Copy edited image to \a aItem.
*/