82 void onUpdateUI( wxUpdateUIEvent& event )
override;
wxCheckBox * m_placeAtCheckbox
wxCheckBox * m_rbFixDiscontinuities
wxCheckBox * m_cbGroupItems
DIALOG_IMPORT_GRAPHICS_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)
void onHeightChanged(wxCommandEvent &event) override
std::list< std::unique_ptr< EDA_ITEM > > & GetImportedItems()
std::unique_ptr< GRAPHICS_IMPORT_MGR > m_gfxImportMgr
void updateImageControls()
Show the image controls only when the chosen file is a raster image.
std::unique_ptr< GRAPHICS_IMPORTER_PCBNEW > m_importer
PCB_BASE_FRAME * m_parent
UNIT_BINDER m_importWidth
void onInvertChanged(wxCommandEvent &event) override
void onLockAspectChanged(wxCommandEvent &event) override
bool TransferDataFromWindow() override
bool ShouldFixDiscontinuities()
void onThresholdChanged(wxScrollEvent &event) override
bool TransferDataToWindow() override
void updateSizeControls()
Offer the size fields only when the source has a size to scale.
void scaleFromSize(bool aFromWidth)
Work the scale out from a size the user typed.
void loadSourceFile()
Read the chosen file, which is where the preview and the source size come from.
UNIT_BINDER m_defaultLineWidth
wxString m_filenameOverride
void onBrowseFiles(wxCommandEvent &event) override
void onFilenameChanged(wxCommandEvent &event) override
UNIT_BINDER m_importHeight
wxString m_sourcePath
The file the source size and the preview were taken from.
void SetFilenameOverride(const wxString &aFilenameOverride)
Set the filename override to be applied in TransferDataToWindow.
void sizeFromScale()
Write the scale into the size fields.
void onWidthChanged(wxCommandEvent &event) override
void onScaleChanged(wxCommandEvent &event) override
VECTOR2D m_sourceSizeMM
Size of the source file's contents in mm, (0,0) when it has none to report.
void onUpdateUI(wxUpdateUIEvent &event) override
bool IsPlacementInteractive()
DIALOG_IMPORT_GRAPHICS(PCB_BASE_FRAME *aParent)
Manage vector graphics importers.
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
VECTOR2< double > VECTOR2D