71 #define MIN_THICKNESS 10*IU_PER_MILS 76 m_minWidth( aParent, m_MinWidthLabel, m_MinWidthCtrl, m_MinWidthUnits, true ),
77 m_gridStyleRotation( aParent, m_staticTextGrindOrient, m_tcGridStyleOrientation, m_staticTextRotUnits,
79 m_gridStyleThickness( aParent, m_staticTextStyleThickness,
80 m_tcGridStyleThickness, m_GridStyleThicknessUnits, false),
81 m_gridStyleGap( aParent, m_staticTextGridGap, m_tcGridStyleGap, m_GridStyleGapUnits, false ),
83 m_cornerRadius( aParent, m_cornerRadiusLabel, m_cornerRadiusCtrl, m_cornerRadiusUnits, true )
163 wxCommandEvent event;
183 if( event.GetColumn() != 0 )
186 int row =
m_layers->ItemToRow( event.GetItem() );
187 bool val =
m_layers->GetToggleValue( row, 0 );
190 m_layers->GetValue( layerID, row, 2 );
245 for(
int ii = 0; ii <
m_layers->GetItemCount(); ++ii )
247 if(
m_layers->GetToggleValue( (
unsigned) ii, 0 ) )
int m_HatchSmoothingLevel
void DisplayError(wxWindow *aParent, const wxString &aText, int aDisplayTime)
Display an error or warning message box with aMessage.
wxSpinCtrl * m_spinCtrlSmoothLevel
wxButton * m_sdbSizerButtonsOK
void OnUpdateUI(wxUpdateUIEvent &) override
wxTextCtrl * m_tcGridStyleOrientation
This file is part of the common library.
double m_HatchSmoothingValue
void SetCornerSmoothingType(int aType)
ZONE_BORDER_DISPLAY_STYLE m_ZoneBorderDisplayStyle
Option to show the zone area (outlines only, short hatches or full hatches.
int InvokeNonCopperZonesEditor(PCB_BASE_FRAME *aParent, ZONE_SETTINGS *aSettings)
Function InvokeNonCopperZonesEditor invokes up a modal dialog window for non-copper zone editing.
int GetCornerSmoothingType() const
wxDataViewListCtrl * m_layers
bool TransferDataToWindow() override
wxTextCtrl * m_tcGridStyleThickness
void SetInitialFocus(wxWindow *aWindow)
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.
unsigned int GetCornerRadius() const
wxChoice * m_cornerSmoothingChoice
wxChoice * m_OutlineDisplayCtrl
UNIT_BINDER m_gridStyleGap
wxTextCtrl * m_tcGridStyleGap
bool TransferDataFromWindow() override
Class DIALOG_NONCOPPER_ZONES_PROPERTIES_BASE.
wxStaticText * m_cornerRadiusLabel
PCB_BASE_FRAME * m_parent
ZONE_SETTINGS handles zones parameters.
void OnStyleSelection(wxCommandEvent &event) override
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
ZONE_FILL_MODE m_FillMode
virtual void SetUnits(EDA_UNITS aUnits)
Normally not needed (as the UNIT_BINDER inherits from the parent frame), but can be used to set to DE...
wxCheckBox * m_ConstrainOpt
virtual bool Validate(double aMin, double aMax, EDA_UNITS aUnits=EDA_UNITS::UNSCALED)
Validate the control against the given range, informing the user of any errors found.
wxChoice * m_GridStyleCtrl
DIALOG_NON_COPPER_ZONES_EDITOR(PCB_BASE_FRAME *aParent, ZONE_SETTINGS *aSettings)
virtual void SetValue(int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
void SetCornerRadius(int aRadius)
UNIT_BINDER m_gridStyleRotation
PCBNEW_SETTINGS * GetPcbNewSettings() const
void OnLayerSelection(wxDataViewEvent &event) override
virtual long long int GetValue()
Return the current value in Internal Units.
void SetupLayersList(wxDataViewListCtrl *aList, PCB_BASE_FRAME *aFrame, bool aShowCopper, bool aFpEditorMode=false)
A helper routine for the various zone dialogs (copper, non-copper, keepout).
UNIT_BINDER m_cornerRadius
wxTextCtrl * m_cornerRadiusCtrl
int m_cornerSmoothingType
UNIT_BINDER m_gridStyleThickness
wxSpinCtrlDouble * m_spinCtrlSmoothValue
static constexpr int Millimeter2iu(double mm)
PCB_LAYER_ID ToLAYER_ID(int aLayer)
double m_HatchOrientation
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.