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