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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user