37#define CURVED_OPTION_NONE 0
38#define CURVED_OPTION_ROUND 1
39#define CURVED_OPTION_RECT 2
40#define CURVED_OPTION_TRACK 4
208 if( dlg.ShowModal() != wxID_OK )
225 1000, wxICON_EXCLAMATION );
243 1000, wxICON_EXCLAMATION );
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...
Container for design settings for a BOARD object.
TEARDROP_PARAMETERS_LIST * GetTeadropParamsList()
virtual const BOARD * GetBoard() const
Return the BOARD in which this BOARD_ITEM resides, or NULL if none.
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
static const TOOL_EVENT SelectedItemsModified
Selected items were moved, this can be very high frequency on the canvas, use with care.
static const TOOL_EVENT ConnectivityChangedEvent
Selected item had a property changed (except movement)
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
void RedrawRatsnest()
Return the bounding box of the view that should be used if model is not valid.
The main frame for Pcbnew.
void OnRunTeardropTool(wxCommandEvent &event)
run teardrop tool
void OnRemoveTeardropTool(wxCommandEvent &event)
Remove all teardrops.
Class TEARDROP_DIALOG_BASE.
wxSpinCtrlDouble * m_spTeardropHDPercentRect
wxStaticText * m_stMaxLenRound
wxStaticBitmap * m_bitmapTdTrackInfo
wxSpinCtrlDouble * m_spTeardropSizePercentRect
wxCheckBox * m_cbRoundShapesOnly
wxCheckBox * m_cbOptUseNextTrack
wxRadioBox * m_rbShapeRound
wxCheckBox * m_cbTrack2Track
wxStaticText * m_stMaxLenRect
wxStaticText * m_stMaxLenTrackUnits
wxRadioBox * m_rbShapeTrack
wxStaticText * m_stMaxHeightTrackUnits
wxTextCtrl * m_tcTdMaxLenRect
wxStaticText * m_stMaxHeightRoundUnits
wxTextCtrl * m_tcMaxHeightRect
wxStaticText * m_stMaxLenTrack
wxStaticText * m_stMaxLenRectUnits
wxSpinCtrlDouble * m_spTeardropLenPercentRect
wxTextCtrl * m_tcMaxHeightTrack
wxTextCtrl * m_tcTdMaxLenRound
wxStaticText * m_stTdMaxSizeRound
wxSpinCtrlDouble * m_spTeardropHDPercentRound
wxStaticText * m_stMaxHeightRectUnits
wxRadioBox * m_rbShapeRect
wxCheckBox * m_cbSmdSimilarPads
wxCheckBox * m_cbPadsInZones
wxSpinCtrlDouble * m_spTeardropLenPercentTrack
wxStaticText * m_stTdMaxSizeRect
wxSpinCtrlDouble * m_spTeardropSizePercentRound
wxSpinCtrlDouble * m_spTeardropSizePercentTrack
wxStaticBitmap * m_bitmapTdCircularInfo
wxStaticBitmap * m_bitmapTdRectangularInfo
wxStaticText * m_stMaxLenRoundUnits
wxSpinCtrl * m_spPointCount
wxStaticText * m_stTdMaxSizeTrack
wxTextCtrl * m_tcTdMaxLenTrack
wxSpinCtrlDouble * m_spTeardropLenPercentRound
wxSpinCtrlDouble * m_spTeardropHDPercentTrack
wxTextCtrl * m_tcMaxHeightRound
UNIT_BINDER m_teardropMaxHeightSettingRound
double GetTeardropSizePercentRect()
int GetTeardropMaxHeightTrack()
int GetTeardropMaxLenRect()
UNIT_BINDER m_teardropMaxLenSettingRound
TEARDROP_DIALOG(PCB_EDIT_FRAME *aParent)
UNIT_BINDER m_teardropMaxLenSettingRect
void TransferToParamList()
Copy the settings from dialog to the current board settings.
double GetTeardropLenPercentRect()
double GetTeardropLenPercentRound()
int GetTeardropMaxLenTrack()
UNIT_BINDER m_teardropMaxHeightSettingTrack
int GetTeardropMaxLenRound()
double GetTeardropLenPercentTrack()
UNIT_BINDER m_teardropMaxHeightSettingRect
BOARD_DESIGN_SETTINGS * m_brdSettings
int GetTeardropMaxHeightRect()
UNIT_BINDER m_teardropMaxLenSettingTrack
double GetTeardropSizePercentTrack()
double GetTeardropSizePercentRound()
int GetTeardropMaxHeightRound()
TEARDROP_MANAGER manage and build teardrop areas A teardrop area is a polygonal area (a copper ZONE) ...
int SetTeardrops(BOARD_COMMIT *aCommitter, bool aFollowTracks=true)
Set teardrops on a teardrop free board.
int RemoveTeardrops(BOARD_COMMIT *aCommitter, bool aCommitAfterRemove)
Remove all teardrops.
TEARDROP_PARAMETERS_LIST is a helper class to handle the list of TEARDROP_PARAMETERS needed to build ...
bool m_TargetPadsWithNoHole
True to create teardrops for pads without holes (SMD and others.
int m_CurveSegCount
the number of segments to apprximate a curve (Bezier curve) in a teardrop Must be > 2,...
bool m_TargetViasPads
True to create teardrops for vias and pads with holes.
bool m_UseRoundShapesOnly
True to create teardrops for round shapes only.
bool m_TargetTrack2Track
True to create teardrops at the end of a track connected to the end of another track having a differe...
bool m_TdOnPadsInZones
Pads inside a zone of the same net do not have teardrop added.
bool m_AllowUseTwoTracks
True to create teardrops using 2 track segments if the first in too small.
TEARDROP_PARAMETERS * GetParameters(TARGET_TD aTdType)
TEARDROP_PARAMETARS is a helper class to handle parameters needed to build teardrops for a board thes...
int m_CurveSegCount
number of segments to build the curved sides of a teardrop area must be > 2.
double m_HeightRatio
The height of a teardrop as ratio between height and size of pad/via.
int m_TdMaxHeight
max allowed height for teardrops in IU. <= 0 to disable
int m_TdMaxLen
the type of target for these parameters
double m_WidthtoSizeFilterRatio
The ratio (H/D) between the via/pad size and the track width max value to create a teardrop 1....
double m_LengthRatio
The length of a teardrop as ratio between length and size of pad/via.
virtual long long int GetValue()
Return the current value in Internal Units.
virtual void SetValue(long long int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
void RemoveAllButtons()
Remove all the buttons that have been added by the user.
void ShowMessageFor(const wxString &aMessage, int aTime, int aFlags=wxICON_INFORMATION, MESSAGE_TYPE aType=WX_INFOBAR::MESSAGE_TYPE::GENERIC)
Show the infobar with the provided message and icon for a specific period of time.
void AddCloseButton(const wxString &aTooltip=_("Hide this message."))
Add the default close button to the infobar on the right side.
#define CURVED_OPTION_TRACK
#define CURVED_OPTION_RECT
#define CURVED_OPTION_ROUND
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
std::vector< FAB_LAYER_COLOR > dummy