26#ifndef DIALOG_BOARD_REANNOTATE_H
27#define DIALOG_BOARD_REANNOTATE_H
42#define SORTXFIRST 0b000
43#define SORTYFIRST 0b100
44#define ASCENDINGFIRST 0b000
45#define DESCENDINGFIRST 0b010
46#define ASCENDINGSECOND 0b000
47#define DESCENDINGSECOND 0b001
51#define VALIDPREFIX "_-+=/\\"
148 void LogFootprints(
const wxString& aMessage,
const std::vector<REFDES_INFO>& aFootprints );
165 void BuildChangeArray( std::vector<REFDES_INFO>& aFootprints,
unsigned int aStartRefDes,
166 const wxString& aPrefix,
bool aRemovePrefix,
167 std::vector<REFDES_INFO>& aBadRefDes );
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
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
APP_SETTINGS_BASE * m_Config
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
REFDES_TYPE_STR * GetOrBuildRefDesInfo(const wxString &aRefDesPrefix, unsigned int aStartRefDes=0)
Get the structure representing the information currently held for aRefDesPrefix or create one if it d...
std::vector< wxStaticBitmap * > Bitmaps
PCB_SELECTION m_selection
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
std::vector< REFDES_TYPE_STR > m_refDesTypes
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.
~DIALOG_BOARD_REANNOTATE()
int RoundToGrid(int aCoord, int aGrid)
Round an int coordinate to a suitable grid.
wxString m_backPrefixString
void MakeSampleText(wxString &aMessage)
Make the text to summarize what is about to happen.
void BuildUnavailableRefsList()
Build list of unavailable references. E.g. unselected footprints or locked footprints.
wxString m_frontPrefixString
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 InitValues(void)
Copy saved app settings to the dialog.
void ShowReport(const wxString &aMessage, SEVERITY aSeverity)
Break report into strings separated by and sent to the reporter.
std::vector< REFDES_INFO > m_backFootprints
void OnApplyClick(wxCommandEvent &event) override
std::vector< wxRadioButton * > m_sortButtons
APP_SETTINGS_BASE * m_settings
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