30#include <wx/filedlg.h> 
   71    if( !importButtonEnabled )
 
 
   82    bool buttonEnableState =
 
   91    return buttonEnableState;
 
 
  114    wxFileName fn = 
m_frame->GetBoard()->GetFileName();
 
  116    wxFileDialog dlg( 
this, 
_( 
"Import Settings From" ), fn.GetPath(), fn.GetFullName(),
 
  118                      wxFD_OPEN | wxFD_FILE_MUST_EXIST | wxFD_CHANGE_DIR );
 
  120    if( dlg.ShowModal() == wxID_OK )
 
 
  129        DisplayError( 
this, wxString::Format( 
_( 
"File not found." )  ) );
 
 
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap, int aMinHeight)
 
wxBoxSizer * m_buttonsSizer
 
wxCheckBox * m_CustomRulesOpt
 
wxButton * m_selectAllButton
 
wxCheckBox * m_MaskAndPasteOpt
 
wxCheckBox * m_ConstraintsOpt
 
wxCheckBox * m_ComponentClassesOpt
 
wxCheckBox * m_TuningPatternsOpt
 
STD_BITMAP_BUTTON * m_browseButton
 
wxCheckBox * m_SeveritiesOpt
 
wxCheckBox * m_TextAndGraphicsOpt
 
wxCheckBox * m_TuningProfilesOpt
 
wxCheckBox * m_FormattingOpt
 
wxCheckBox * m_TeardropsOpt
 
DIALOG_IMPORT_SETTINGS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Import Settings"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
 
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)
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.