28#include <wx/spinctrl.h>
30#include <wx/stattext.h>
31#include <wx/bmpbuttn.h>
51 const wxSize& aSize );
68 wxSize
GetPixelSize(
double aWidth,
double aHeight,
double aXResolution,
double aYResolution,
SIZE_UNITS aSizeUnits )
const;
DIALOG_EXPORT_3D_IMAGE(wxWindow *aParent, const wxSize &aSize)
wxSpinCtrlDouble * m_spinWidth
double GetXResolution() const
wxChoice * m_choiceResolutionUnits
EDA_3D_VIEWER_EXPORT_FORMAT m_format
wxStaticText * m_pixelSizeLabel
void OnWidthChange(wxSpinDoubleEvent &aEvent)
void OnXResolutionChange(wxSpinDoubleEvent &aEvent)
void OnLockToggle(wxCommandEvent &aEvent)
void OnHeightChange(wxSpinDoubleEvent &aEvent)
RESOLUTION_UNITS m_resolutionUnits
wxSize GetPixelSize(double aWidth, double aHeight, double aXResolution, double aYResolution, SIZE_UNITS aSizeUnits) const
void OnResolutionUnitChange(wxCommandEvent &aEvent)
void OnYResolutionChange(wxSpinDoubleEvent &aEvent)
wxBitmapButton * m_lockButton
wxSpinCtrlDouble * m_spinYResolution
wxChoice * m_choiceSizeUnits
wxSpinCtrlDouble * m_spinHeight
void ConvertSizeUnits(SIZE_UNITS aFromUnit, SIZE_UNITS aToUnit)
wxSpinCtrlDouble * m_spinXResolution
double GetYResolution() const
void OnSizeUnitChange(wxCommandEvent &aEvent)
void ConvertResolutionUnits(RESOLUTION_UNITS aFromUnit, RESOLUTION_UNITS aToUnit)
bool TransferDataFromWindow() override
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)
Declaration of the eda_3d_viewer class.
EDA_3D_VIEWER_EXPORT_FORMAT