30#include <wx/filedlg.h>
71 if( !importButtonEnabled )
90 return buttonEnableState;
115 wxFileDialog dlg(
this,
_(
"Import Settings From" ), fn.GetPath(), fn.GetFullName(),
117 wxFD_OPEN | wxFD_FILE_MUST_EXIST | wxFD_CHANGE_DIR );
119 if( dlg.ShowModal() == wxID_OK )
128 DisplayError(
this, wxString::Format(
_(
"File not found." ) ) );
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap)
const wxString & GetFileName() const
Class DIALOG_IMPORT_SETTINGS_BASE.
wxBoxSizer * m_buttonsSizer
wxCheckBox * m_CustomRulesOpt
wxButton * m_selectAllButton
wxCheckBox * m_MaskAndPasteOpt
wxCheckBox * m_ConstraintsOpt
wxCheckBox * m_TuningPatternsOpt
STD_BITMAP_BUTTON * m_browseButton
wxCheckBox * m_SeveritiesOpt
wxCheckBox * m_TextAndGraphicsOpt
wxCheckBox * m_FormattingOpt
wxCheckBox * m_TeardropsOpt
wxTextCtrl * m_filePathCtrl
wxCheckBox * m_TracksAndViasOpt
wxCheckBox * m_NetclassesOpt
void OnSelectAll(wxCommandEvent &event) override
bool UpdateImportSettingsButton()
Enable or disable the "Import Settings" button.
bool TransferDataFromWindow() override
bool TransferDataToWindow() override
DIALOG_IMPORT_SETTINGS(wxWindow *aParent, PCB_EDIT_FRAME *aFrame)
void OnCheckboxClicked(wxCommandEvent &event) override
void OnBrowseClicked(wxCommandEvent &event) override
void UpdateSelectAllButton()
Update "Select All" button label as appropriate.
static wxString m_filePath
bool m_showSelectAllOnBtn
Store state used to toggle button between "Select All" and "Deselect All".
void SetupStandardButtons(std::map< int, wxString > aLabels={})
The main frame for Pcbnew.
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 wxString PcbFileWildcard()
Definition of file extensions used in Kicad.