116 SetTitle(
_(
"Legacy Teardrop Properties" ) );
118 if( aConvertSettings )
122 SetTitle(
_(
"Convert to Copper Zone" ) );
170 if( event.GetColumn() != 0 )
173 int row =
m_layers->ItemToRow( event.GetItem() );
175 bool checked =
m_layers->GetToggleValue( row, 0 );
178 m_layers->GetValue( layerID, row, 2 );
int GetCopperLayerCount() const
DIALOG_COPPER_ZONE_BASE(wxWindow *parent, wxWindowID id=ID_DIALOG_COPPER_ZONE_BASE, const wxString &title=_("Copper Zone Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxButton * m_openZoneManager
wxBoxSizer * m_sizerRight
wxDataViewListCtrl * m_layers
bool TransferDataFromWindow() override
ZONE_SETTINGS_BAG m_zoneSettingsBag
bool TransferDataToWindow() override
void OnLayerSelection(wxDataViewEvent &event) override
@ COPPER_ZONE_OPEN_ZONE_MANAGER
DIALOG_COPPER_ZONE(PCB_BASE_FRAME *aParent, ZONE *aZone, ZONE_SETTINGS *aSettings, CONVERT_SETTINGS *aConvertSettings)
PCB_BASE_FRAME * m_Parent
PANEL_ZONE_PROPERTIES * m_panelZoneProperties
void onZoneManager(wxCommandEvent &event) override
PANEL_ZONE_CONVERSION * m_conversionControls
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 AllCuMask(int aCuLayerCount)
Return a mask holding the requested number of Cu PCB_LAYER_IDs.
static TOOL_ACTION zonesManager
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
TEARDROP_TYPE m_TeardropType
A zone outline can be a teardrop zone with different rules priority, smoothed corners,...
void SetupLayersList(wxDataViewListCtrl *aList, PCB_BASE_FRAME *aFrame, LSET aLayers)
A helper routine for the various zone dialogs (copper, non-copper, keepout).
Handle a list of polygons defining a copper zone.
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 InvokeCopperZonesEditor(PCB_BASE_FRAME *aCaller, ZONE *aZone, ZONE_SETTINGS *aSettings, CONVERT_SETTINGS *aConvertSettings)
Invoke a modal dialog window for copper zone editing.
PCB_LAYER_ID ToLAYER_ID(int aLayer)