30#include <wx/filedlg.h>
60 wxFileDialog dlg(
this,
_(
"Import Settings From" ), fn.GetPath(), fn.GetFullName(),
62 wxFD_OPEN | wxFD_FILE_MUST_EXIST | wxFD_CHANGE_DIR );
64 if( dlg.ShowModal() == wxID_OK )
73 DisplayError(
this, wxString::Format(
_(
"File not found." ) ) );
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap)
Class DIALOG_SCH_IMPORT_SETTINGS_BASE.
wxCheckBox * m_BomPresetsOpt
STD_BITMAP_BUTTON * m_browseButton
wxTextCtrl * m_filePathCtrl
wxCheckBox * m_NetClassesOpt
wxCheckBox * m_FormattingOpt
wxCheckBox * m_BusAliasesOpt
wxCheckBox * m_FieldNameTemplatesOpt
wxCheckBox * m_SeveritiesOpt
wxCheckBox * m_TextVarsOpt
wxCheckBox * m_BomFmtPresetsOpt
static wxString m_filePath
bool TransferDataToWindow() override
void OnSelectAll(wxCommandEvent &event) override
void OnBrowseClicked(wxCommandEvent &event) override
bool TransferDataFromWindow() override
DIALOG_SCH_IMPORT_SETTINGS(wxWindow *aParent, SCH_EDIT_FRAME *aFrame)
void SetupStandardButtons(std::map< int, wxString > aLabels={})
Schematic editor (Eeschema) main window.
SCHEMATIC & Schematic() const
wxString GetFileName() const
Return the filename corresponding to this sheet.
void DisplayError(wxWindow *aParent, const wxString &aText, int aDisplayTime)
Display an error or warning message box with aMessage.
This file is part of the common library.
static const std::string ProjectFileExtension
static wxString ProjectFileWildcard()
Definition of file extensions used in Kicad.