128        m_cbLayer->ShowNonActivatedLayers( 
true );
 
 
  209    default:                       
m_barcode->SetSelection( 0 ); 
break;
 
  227    wxUpdateUIEvent 
dummy;
 
 
  244    commit.
Push( 
_( 
"Modify barcode" ) );
 
 
  271    if( newAngle != oldAngle )
 
 
constexpr EDA_IU_SCALE pcbIUScale
 
virtual void Push(const wxString &aMessage=wxEmptyString, int aCommitFlags=0) override
Execute the changes.
 
void SetLocked(bool aLocked) override
 
constexpr const Vec & GetOrigin() const
 
constexpr const SizeVec & GetSize() const
 
COMMIT & Modify(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr, RECURSE_MODE aRecurse=RECURSE_MODE::NO_RECURSE)
Modify a given item in the model.
 
DIALOG_BARCODE_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_DIALOG_EDIT_PAD, const wxString &title=_("Barcode Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
 
wxStaticText * m_posXUnits
 
wxStaticText * m_marginXUnits
 
wxStaticText * m_orientationUnits
 
wxStaticText * m_marginXLabel
 
wxTextCtrl * m_marginXCtrl
 
PCB_LAYER_BOX_SELECTOR * m_cbLayer
 
wxStaticText * m_orientationLabel
 
wxStaticText * m_sizeXUnits
 
wxStaticText * m_sizeXLabel
 
wxStaticText * m_sizeYUnits
 
wxTextCtrl * m_textSizeCtrl
 
PCB_DRAW_PANEL_GAL * m_panelShowBarcodeGal
 
wxStaticText * m_sizeYLabel
 
wxTextCtrl * m_marginYCtrl
 
wxStaticText * m_posXLabel
 
wxStaticText * m_posYUnits
 
wxCheckBox * m_cbShowText
 
wxStaticText * m_marginYUnits
 
wxStaticText * m_textSizeLabel
 
wxStaticText * m_textSizeUnits
 
wxRadioBox * m_errorCorrection
 
wxComboBox * m_orientationCtrl
 
wxStaticText * m_posYLabel
 
wxStaticText * m_marginYLabel
 
wxCheckBox * m_cbKnockout
 
DIALOG_BARCODE_PROPERTIES, derived from DIALOG_BARCODE_PROPERTIES_BASE, created by wxFormBuilder.
 
PCB_BARCODE * m_currentBarcode
 
bool TransferDataFromWindow() override
 
UNIT_BINDER m_knockoutMarginX
 
PCB_BASE_FRAME * m_parent
 
void OnUpdateUI(wxUpdateUIEvent &event) override
 
PCB_BARCODE * m_dummyBarcode
 
bool transferDataToBarcode(PCB_BARCODE *aBarcode)
Copy values from dialog field to aBarcode's members.
 
DIALOG_BARCODE_PROPERTIES(PCB_BASE_FRAME *aParent, PCB_BARCODE *aBarcode)
 
UNIT_BINDER m_knockoutMarginY
 
~DIALOG_BARCODE_PROPERTIES()
 
UNIT_BINDER m_orientation
 
void OnValuesChanged(wxCommandEvent &event) override
Update the graphical barcode shown in the panel.
 
bool TransferDataToWindow() override
 
void OnCancel(wxCommandEvent &event) override
 
void OnResize(wxSizeEvent &event)
 
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
 
virtual void SetVisible(bool aVisible)
 
void SetGridSize(const VECTOR2D &aGridSize)
Set the grid size.
 
void SetGridVisibility(bool aVisibility)
Set the visibility setting of the grid.
 
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
 
virtual void SetScale(double aScale, VECTOR2D aAnchor={ 0, 0 })
Set the scaling factor, zooming around a given anchor point.
 
void SetViewport(const BOX2D &aViewport)
Set the visible area of the VIEW.
 
virtual void Add(VIEW_ITEM *aItem, int aDrawPriority=-1)
Add a VIEW_ITEM to the view.
 
virtual void Update(const VIEW_ITEM *aItem, int aUpdateFlags) const
For dynamic VIEWs, inform the associated VIEW that the graphical representation of this item has chan...
 
GAL * GetGAL() const
Return the GAL this view is using to draw graphical primitives.
 
void SetCenter(const VECTOR2D &aCenter)
Set the center point of the VIEW (i.e.
 
PCB_TEXT & Text()
Access the internal PCB_TEXT object used for showing the human-readable text.
 
void SetKind(BARCODE_T aKind)
 
void SetTextSize(int aTextSize)
Change the height of the human-readable text displayed below the barcode.
 
void SetMargin(const VECTOR2I &aMargin)
 
void SetErrorCorrection(BARCODE_ECC_T aErrorCorrection)
Set the error correction level used for QR codes.
 
void SetWidth(int aWidth)
 
void SetHeight(int aHeight)
 
void AssembleBarcode()
Assemble the barcode polygon and text polygons into a single polygonal representation.
 
VECTOR2I GetPosition() const override
Get the position (center) of the barcode in internal units.
 
void SetPosition(const VECTOR2I &aPos) override
 
void SetLayer(PCB_LAYER_ID aLayer) override
Set the drawing layer for the barcode and its text.
 
void SetIsKnockout(bool aEnable) override
 
void Rotate(const VECTOR2I &aRotCentre, const EDA_ANGLE &aAngle) override
Rotate the barcode around a given centre by the given angle.
 
EDA_ANGLE GetAngle() const
 
void SetText(const wxString &aText)
Set the barcode content text to encode.
 
void ShowBarcodePropertiesDialog(PCB_BARCODE *aText)
 
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
 
Represent a set of closed polygons.
 
int OutlineCount() const
Return the number of outlines in the set.
 
const BOX2I BBox(int aClearance=0) const override
Compute a bounding box of the shape, with a margin of aClearance a collision.
 
PCB_LAYER_ID ToLAYER_ID(int aLayer)
 
BARCODE class definition.
 
std::vector< FAB_LAYER_COLOR > dummy
 
constexpr auto to_underlying(E e) noexcept
 
VECTOR2< int32_t > VECTOR2I
 
VECTOR2< double > VECTOR2D