92    const auto fillOptionList =
 
   93            [&]( 
UNIT_BINDER& aCombo, 
const std::vector<int>& aPresets, 
const std::vector<int>& aRecentPresets )
 
   95                std::vector<long long int> optionList;
 
   96                optionList.reserve( aPresets.size() + aRecentPresets.size() );
 
   98                for( 
const int val : aPresets )
 
   99                    optionList.push_back( val );
 
  101                for( 
const int val : aRecentPresets )
 
  102                    optionList.push_back( val );
 
  105                std::sort( optionList.begin(), optionList.end() );
 
  106                optionList.erase( std::unique( optionList.begin(), optionList.end() ), optionList.end() );
 
 
  196        m_params.gridRounding = std::nullopt;
 
  203    const auto saveRecentValue =
 
  204            []( std::vector<int>& aRecentValues, 
int aValue )
 
  206                const auto it = std::find( aRecentValues.begin(), aRecentValues.end(), aValue );
 
  209                if( it != aRecentValues.end() )
 
  212                aRecentValues.push_back( aValue );
 
 
constexpr EDA_IU_SCALE pcbIUScale
 
Container for design settings for a BOARD object.
 
int GetLineThickness(PCB_LAYER_ID aLayer) const
Return the default graphic segment thickness from the layer class for the given layer.
 
wxStaticText * m_outsetLabel
 
PCB_LAYER_BOX_SELECTOR * m_LayerSelectionCtrl
 
wxStaticText * m_gridRoundingUnit
 
wxCheckBox * m_roundCorners
 
wxCheckBox * m_deleteSourceItems
 
wxCheckBox * m_roundToGrid
 
wxComboBox * m_gridRoundingEntry
 
wxCheckBox * m_copyWidths
 
wxCheckBox * m_copyLayers
 
wxStaticText * m_gridRoundingLabel
 
wxStaticText * m_lineWidthLabel
 
DIALOG_OUTSET_ITEMS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Outset Items"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
 
wxComboBox * m_lineWidthEntry
 
wxComboBox * m_outsetEntry
 
wxStaticText * m_outsetUnit
 
wxStaticText * m_lineWidthUnit
 
void OnLayerDefaultClick(wxCommandEvent &event) override
 
void OnCopyLayersChecked(wxCommandEvent &event) override
 
PCB_BASE_FRAME & m_parent
 
OUTSET_ROUTINE::PARAMETERS & m_params
 
bool TransferDataFromWindow() override
 
void OnRoundToGridChecked(wxCommandEvent &event) override
 
DIALOG_OUTSET_ITEMS(PCB_BASE_FRAME &aParent, OUTSET_ROUTINE::PARAMETERS &aParams)
 
UNIT_BINDER m_roundingGrid
 
bool TransferDataToWindow() override
 
void SetupStandardButtons(std::map< int, wxString > aLabels={})
 
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
 
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
 
virtual void SetOptionsList(std::span< const long long int > aOptions)
Set the list of options for a combobox control.
 
void DisplayErrorMessage(wxWindow *aParent, const wxString &aText, const wxString &aExtraInfo)
Display an error message with aMessage.
 
This file is part of the common library.
 
static const std::vector< int > s_presetGridRounding
 
static std::vector< int > s_lineWidthRecentValues
 
static std::vector< int > s_gridRoundingRecentValues
 
static int s_gridRoundValuePersist
 
static const std::vector< int > s_presetLineWidths
 
static const std::vector< int > s_outsetPresetValue
Some handy preset values for common outset distances.
 
static std::vector< int > s_outsetRecentValues
 
PCB_LAYER_ID
A quick note on layer IDs:
 
PCB_LAYER_ID ToLAYER_ID(int aLayer)