35 #define LAYER_LIST_COLUMN_CHECK 0 36 #define LAYER_LIST_COLUMN_ICON 1 37 #define LAYER_LIST_COLUMN_NAME 2 38 #define LAYER_LIST_ROW_ALL_INNER_LAYERS 1 63 return dlg.ShowModal();
76 m_isFpEditor = dynamic_cast<FOOTPRINT_EDIT_FRAME*>( aParent ) !=
nullptr;
115 if( event.GetColumn() != 0 )
118 int row =
m_layers->ItemToRow( event.GetItem() );
void DisplayError(wxWindow *aParent, const wxString &aText, int aDisplayTime)
Display an error or warning message box with aMessage.
Class DIALOG_RULE_AREA_PROPERTIES_BASE.
wxChoice * m_OutlineDisplayCtrl
const bool GetDoNotAllowFootprints() const
This file is part of the common library.
wxButton * m_sdbSizerButtonsOK
#define LAYER_LIST_COLUMN_CHECK
bool TransferDataToWindow() override
ZONE_BORDER_DISPLAY_STYLE m_ZoneBorderDisplayStyle
Option to show the zone area (outlines only, short hatches or full hatches.
PCB_BASE_FRAME * m_parent
#define LAYER_LIST_COLUMN_NAME
wxCheckBox * m_cbFootprintsCtrl
void SetInitialFocus(wxWindow *aWindow)
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.
void SetDoNotAllowFootprints(bool aEnable)
ZONE_SETTINGS m_zonesettings
the working copy of zone settings
wxCheckBox * m_cbViasCtrl
void SetDoNotAllowVias(bool aEnable)
LSET is a set of PCB_LAYER_IDs.
void SetDoNotAllowPads(bool aEnable)
wxCheckBox * m_cbTracksCtrl
DIALOG_RULE_AREA_PROPERTIES(PCB_BASE_FRAME *aParent, ZONE_SETTINGS *aSettings)
static LSET InternalCuMask()
Return a complete set of internal copper layers which is all Cu layers except F_Cu and B_Cu.
#define LAYER_LIST_ROW_ALL_INNER_LAYERS
wxCheckBox * m_cbPadsCtrl
const bool GetDoNotAllowVias() const
void SetDoNotAllowTracks(bool aEnable)
void SetIsRuleArea(bool aEnable)
const bool GetDoNotAllowTracks() const
int InvokeRuleAreaEditor(PCB_BASE_FRAME *aCaller, ZONE_SETTINGS *aSettings)
Function InvokeRuleAreaEditor invokes up a modal dialog window for copper zone editing.
ZONE_SETTINGS handles zones parameters.
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
const bool GetDoNotAllowPads() const
bool IsType(FRAME_T aType) const
bool TransferDataFromWindow() override
const bool GetDoNotAllowCopperPour() const
PCBNEW_SETTINGS * GetPcbNewSettings() const
void OnLayerSelection(wxDataViewEvent &event) override
wxCheckBox * m_cbCopperPourCtrl
ZONE_SETTINGS * m_ptr
the pointer to the zone settings of the zone to edit
wxDataViewListCtrl * m_layers
void SetDoNotAllowCopperPour(bool aEnable)
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).
wxCheckBox * m_cbConstrainCtrl
PCB_LAYER_ID ToLAYER_ID(int aLayer)
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.