41#define SORTXFIRST 0b000
42#define SORTYFIRST 0b100
43#define ASCENDINGFIRST 0b000
44#define DESCENDINGFIRST 0b010
45#define ASCENDINGSECOND 0b000
46#define DESCENDINGSECOND 0b001
50#define VALIDPREFIX "_-+=/\\"
136 void LogFootprints(
const wxString& aMessage,
const std::vector<REFDES_INFO>& aFootprints );
153 void BuildChangeArray( std::vector<REFDES_INFO>& aFootprints,
unsigned int aStartRefDes,
154 const wxString& aPrefix,
bool aRemovePrefix,
155 std::vector<REFDES_INFO>& aBadRefDes );
Class DIALOG_BOARD_REANNOTATE_BASE.
wxRadioButton * m_Right_Down
wxStaticBitmap * reannotate_left_up_bitmap
wxRadioButton * m_Left_Up
wxStaticBitmap * reannotate_down_right_bitmap
wxRadioButton * m_Down_Left
wxRadioButton * m_Up_Right
wxRadioButton * m_Up_Left
wxStaticBitmap * reannotate_right_up_bitmap
wxRadioButton * m_Left_Down
wxRadioButton * m_AnnotateBack
wxStaticBitmap * reannotate_up_right_bitmap
wxRadioButton * m_AnnotateFront
wxRadioButton * m_Down_Right
wxRadioButton * m_AnnotateSelection
wxStaticBitmap * reannotate_right_down_bitmap
wxRadioButton * m_Right_Up
wxRadioButton * m_AnnotateAll
wxStaticBitmap * reannotate_up_left_bitmap
wxStaticBitmap * reannotate_down_left_bitmap
wxStaticBitmap * reannotate_left_down_bitmap
std::vector< REFDES_CHANGE > m_changeArray
std::vector< wxString > m_excludeArray
bool BuildFootprintList(std::vector< REFDES_INFO > &aBadRefDes)
Build the footprint lists, sort it, filter for excludes, then build the change list.
std::vector< wxRadioButton * > m_scopeRadioButtons
void FilterBackPrefix(wxCommandEvent &event) override
std::vector< wxStaticBitmap * > Bitmaps
void LogFootprints(const wxString &aMessage, const std::vector< REFDES_INFO > &aFootprints)
Create a list of the footprints and their coordinates.
std::vector< REFDES_INFO > m_frontFootprints
wxString CoordTowxString(int aX, int aY)
Convert coordinates to wxString.
void FilterPrefix(wxTextCtrl *aPrefix)
Check to make sure the prefix (if there is one) is properly constructed.
void BuildChangeArray(std::vector< REFDES_INFO > &aFootprints, unsigned int aStartRefDes, const wxString &aPrefix, bool aRemovePrefix, std::vector< REFDES_INFO > &aBadRefDes)
Scan through the footprint arrays and create the from -> to array.
int RoundToGrid(int aCoord, int aGrid)
Round an int coordinate to a suitable grid.
REFDES_PREFIX_INFO * GetOrBuildRefDesInfo(const wxString &aRefDesPrefix, int aStartRefDes=1)
Get the structure representing the information currently held for aRefDesPrefix or create one if it d...
void BuildUnavailableRefsList()
Build list of unavailable references. E.g. unselected footprints or locked footprints.
~DIALOG_BOARD_REANNOTATE()=default
bool TransferDataToWindow() override
void LogChangePlan(void)
Create an audit trail of the changes.
void OnCloseClick(wxCommandEvent &event) override
REFDES_CHANGE * GetNewRefDes(FOOTPRINT *aFootprint)
bool ReannotateBoard(void)
Actually reannotate the board.
void ShowReport(const wxString &aMessage, SEVERITY aSeverity)
Break report into strings separated by and sent to the reporter.
std::vector< REFDES_INFO > m_backFootprints
std::vector< REFDES_PREFIX_INFO > m_refDesPrefixInfos
void OnApplyClick(wxCommandEvent &event) override
std::vector< wxRadioButton * > m_sortButtons
void FilterFrontPrefix(wxCommandEvent &event) override
A logical library item identifier and consists of various portions much like a URI.
The main frame for Pcbnew.
unsigned int LastUsedRefDes
std::set< unsigned int > UnavailableRefs