28#include <wx/statline.h>
33#include <magic_enum.hpp>
73#define MIN_THICKNESS 10*pcbIUScale.IU_PER_MILS
91 if( aConvertSettings )
96 wxStaticLine* line =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
97 GetSizer()->Insert( 1, line, 0, wxLEFT|wxRIGHT|wxEXPAND, 10 );
99 SetTitle(
_(
"Convert to Non Copper Zone" ) );
188 wxCommandEvent event;
210 if( event.GetColumn() != 0 )
213 int row =
m_layers->ItemToRow( event.GetItem() );
214 bool val =
m_layers->GetToggleValue( row, 0 );
217 m_layers->GetValue( layerID, row, 2 );
231 m_settings.SetCornerSmoothingType( smoothing );
266 if( !
m_hatchGap.Validate( minThickness, INT_MAX ) )
281 for(
int ii = 0; ii <
m_layers->GetItemCount(); ++ii )
283 if(
m_layers->GetToggleValue( (
unsigned) ii, 0 ) )
constexpr EDA_IU_SCALE pcbIUScale
wxStaticText * m_smoothValueLabel
wxTextCtrl * m_hatchGapCtrl
wxStaticText * m_cornerRadiusUnits
wxStaticText * m_MinWidthUnits
wxStaticText * m_hatchWidthUnits
wxStaticText * m_MinWidthLabel
wxStaticText * m_cornerRadiusLabel
wxStaticText * m_smoothLevelLabel
wxTextCtrl * m_hatchWidthCtrl
wxTextCtrl * m_MinWidthCtrl
wxStaticText * m_staticTextLayerSelection
wxSpinCtrl * m_spinCtrlSmoothLevel
wxSpinCtrlDouble * m_spinCtrlSmoothValue
wxStaticText * m_hatchGapUnits
wxChoice * m_cornerSmoothingChoice
wxTextCtrl * m_cornerRadiusCtrl
wxChoice * m_OutlineDisplayCtrl
wxDataViewListCtrl * m_layers
wxChoice * m_GridStyleCtrl
wxTextCtrl * m_hatchOrientCtrl
wxStaticText * m_hatchOrientLabel
wxStaticText * m_hatchGapLabel
wxStaticText * m_outlineHatchUnits
wxStaticText * m_stBorderHatchPitchText
wxStaticText * m_hatchOrientUnits
DIALOG_NONCOPPER_ZONES_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Non Copper Zone Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxFULL_REPAINT_ON_RESIZE|wxBORDER_SUNKEN)
wxStaticText * m_hatchWidthLabel
wxTextCtrl * m_outlineHatchPitchCtrl
UNIT_BINDER m_cornerRadius
bool TransferDataFromWindow() override
void OnUpdateUI(wxUpdateUIEvent &) override
UNIT_BINDER m_hatchRotation
bool TransferDataToWindow() override
DIALOG_NON_COPPER_ZONES_EDITOR(PCB_BASE_FRAME *aParent, ZONE_SETTINGS *aSettings, CONVERT_SETTINGS *aConvertSettings)
ZONE_SETTINGS::CORNER_SMOOTHING m_cornerSmoothingType
void OnStyleSelection(wxCommandEvent &event) override
PANEL_ZONE_CONVERSION * m_conversionControls
PCB_BASE_FRAME * m_parent
UNIT_BINDER m_outlineHatchPitch
void OnLayerSelection(wxDataViewEvent &event) override
void SetInitialFocus(wxWindow *aWindow)
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.
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...
static LSET AllNonCuMask()
Return a mask holding all layer minus CU layers.
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
void DisplayError(wxWindow *aParent, const wxString &aText)
Display an error or warning message box with aMessage.
This file is part of the common library.
int InvokeNonCopperZonesEditor(PCB_BASE_FRAME *aParent, ZONE_SETTINGS *aSettings, CONVERT_SETTINGS *aConvertSettings)
Invoke a modal dialog window for non-copper zone editing.
PCB_LAYER_ID ToLAYER_ID(int aLayer)
KICOMMON_API wxFont GetStatusFont(wxWindow *aWindow)
Class ZONE_SETTINGS used to handle zones parameters in dialogs.
#define ZONE_BORDER_HATCH_MINDIST_MM
#define ZONE_BORDER_HATCH_MAXDIST_MM