21#ifndef DIALOG_IMPORTED_LAYERS_H
22#define DIALOG_IMPORTED_LAYERS_H
31 DIALOG_MAP_LAYERS( wxWindow* aParent,
const std::vector<INPUT_LAYER_DESC>& aLayerDesc );
46 static std::map<wxString, PCB_LAYER_ID>
RunModal( wxWindow* aParent,
47 const std::vector<INPUT_LAYER_DESC>& aLayerDesc );
56 void DeleteListItems(
const wxArrayInt& aRowsToDelete, wxListCtrl* aListCtrl );
60 static wxString
WrapRequired(
const wxString& aLayerName );
Class DIALOG_IMPORTED_LAYERS_BASE.
std::vector< wxString > GetUnmappedRequiredLayers() const
Return a list of layers names that are required, but they are not mapped.
const INPUT_LAYER_DESC * GetLayerDescription(const wxString &aLayerName) const
void RemoveMappings(int aStatus)
void OnAutoMatchLayersClicked(wxCommandEvent &event) override
std::vector< INPUT_LAYER_DESC > m_input_layers
void OnRemoveAllClicked(wxCommandEvent &event) override
std::vector< wxString > m_unmatched_layer_names
static wxString UnwrapRequired(const wxString &aLayerName)
void OnUnMatchedDoubleClick(wxListEvent &event) override
std::map< wxString, PCB_LAYER_ID > m_matched_layers_map
void OnAddClicked(wxCommandEvent &event) override
PCB_LAYER_ID GetSelectedLayerID()
static std::map< wxString, PCB_LAYER_ID > RunModal(wxWindow *aParent, const std::vector< INPUT_LAYER_DESC > &aLayerDesc)
Create and show a dialog (modal) and returns the data from it after completion.
void OnMatchedDoubleClick(wxListEvent &event) override
PCB_LAYER_ID GetAutoMatchLayerID(const wxString &aInputLayerName)
void OnRemoveClicked(wxCommandEvent &event) override
static wxString WrapRequired(const wxString &aLayerName)
void DeleteListItems(const wxArrayInt &aRowsToDelete, wxListCtrl *aListCtrl)
PCB_LAYER_ID
A quick note on layer IDs: