21#ifndef __DIALOG_IMPORT_GFX_H__
22#define __DIALOG_IMPORT_GFX_H__
wxCheckBox * m_cbGroupItems
DIALOG_IMPORT_GFX_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Import Graphics File"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxString m_filenameOverride
std::list< std::unique_ptr< EDA_ITEM > > & GetImportedItems()
DIALOG_IMPORT_GFX(EDA_DRAW_FRAME *aParent, std::unique_ptr< GRAPHICS_IMPORTER > aImporter, bool aAllowGrouping)
void sizeFromScale()
Write the scale into the size fields.
bool TransferDataFromWindow() override
void originOptionOnUpdateUI(wxUpdateUIEvent &event) override
UNIT_BINDER m_importWidth
void scaleFromSize(bool aFromWidth)
Work the scale out from a size the user typed.
void updateSizeControls()
Offer the size fields only when the source has a size to scale.
void updateImageControls()
Show the image controls only when the chosen file is a raster image.
bool IsPlacementInteractive()
void onFilenameChanged(wxCommandEvent &event) override
void loadSourceFile()
Read the chosen file, which is where the preview and the source size come from.
EDA_DRAW_FRAME * m_parent
void onAbsolutePlacement(wxCommandEvent &event) override
void onLockAspectChanged(wxCommandEvent &event) override
VECTOR2D m_sourceSizeMM
Size of the source file's contents in mm, (0,0) when it has none to report.
std::unique_ptr< GRAPHICS_IMPORT_MGR > m_gfxImportMgr
bool TransferDataToWindow() override
static bool m_placementInteractive
UNIT_BINDER m_defaultLineWidth
void onInvertChanged(wxCommandEvent &event) override
GRAPHICS_IMPORTER * GetImporter() const
void onThresholdChanged(wxScrollEvent &event) override
void onScaleChanged(wxCommandEvent &event) override
void onBrowseFiles(wxCommandEvent &event) override
wxString m_sourcePath
The file the source size and the preview were taken from.
std::unique_ptr< GRAPHICS_IMPORTER > m_importer
UNIT_BINDER m_importHeight
void onWidthChanged(wxCommandEvent &event) override
void onHeightChanged(wxCommandEvent &event) override
void SetFilenameOverride(const wxString &aFilenameOverride)
Set the filename override to be applied in TransferDataToWindow.
void onInteractivePlacement(wxCommandEvent &event) override
The base class for create windows for drawing purpose.
Interface that creates objects representing shapes for a given data model.
Manage vector graphics importers.
VECTOR2< double > VECTOR2D