KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_board_reannotate.cpp File Reference
#include <algorithm>
#include <base_units.h>
#include <bitmaps.h>
#include <board_commit.h>
#include <confirm.h>
#include <ctype.h>
#include <dialog_board_reannotate.h>
#include <gal/graphics_abstraction_layer.h>
#include <string_utils.h>
#include <kiface_base.h>
#include <pcbnew_settings.h>
#include <refdes_utils.h>
#include <tool/grid_menu.h>
#include <widgets/wx_html_report_panel.h>
#include <wx/valtext.h>

Go to the source code of this file.

Macros

#define SetSortCodes(DirArray, Code)
 

Functions

static bool ChangeArrayCompare (const REFDES_CHANGE &aA, const REFDES_CHANGE &aB)
 Compare function used to compare ChangeArray element for sort.
 
static bool ModuleCompare (const REFDES_INFO &aA, const REFDES_INFO &aB)
 Compare function to sort footprints.
 

Variables

bool SortYFirst
 
bool DescendingFirst
 
bool DescendingSecond
 
int FrontDirectionsArray []
 
int BackDirectionsArray []
 
wxString AnnotateString []
 
wxString ActionMessage []
 

Macro Definition Documentation

◆ SetSortCodes

#define SetSortCodes (   DirArray,
  Code 
)
Value:
{ \
SortYFirst = ( ( DirArray[Code] & SORTYFIRST ) != 0 ); \
DescendingFirst = ( ( DirArray[Code] & DESCENDINGFIRST ) != 0 ); \
DescendingSecond = ( ( DirArray[Code] & DESCENDINGSECOND ) != 0 ); \
}
bool DescendingSecond
bool DescendingFirst
bool SortYFirst
#define DESCENDINGFIRST
#define DESCENDINGSECOND
#define SORTYFIRST

Definition at line 77 of file dialog_board_reannotate.cpp.

Function Documentation

◆ ChangeArrayCompare()

static bool ChangeArrayCompare ( const REFDES_CHANGE aA,
const REFDES_CHANGE aB 
)
static

Compare function used to compare ChangeArray element for sort.

Returns
true is A < B

Definition at line 462 of file dialog_board_reannotate.cpp.

References REFDES_CHANGE::OldRefDesString, and StrNumCmp().

Referenced by DIALOG_BOARD_REANNOTATE::BuildFootprintList().

◆ ModuleCompare()

static bool ModuleCompare ( const REFDES_INFO aA,
const REFDES_INFO aB 
)
static

Compare function to sort footprints.

Returns
true if the first coordinate should be before the second coordinate

Definition at line 470 of file dialog_board_reannotate.cpp.

References DescendingFirst, DescendingSecond, REFDES_INFO::roundedx, REFDES_INFO::roundedy, and SortYFirst.

Referenced by DIALOG_BOARD_REANNOTATE::BuildFootprintList().

Variable Documentation

◆ ActionMessage

wxString ActionMessage[]
Initial value:
= {
"",
_( "Empty" ),
_( "Invalid" ),
_( "Excluded" )
}
#define _(s)

Definition at line 93 of file dialog_board_reannotate.cpp.

Referenced by DIALOG_BOARD_REANNOTATE::LogChangePlan().

◆ AnnotateString

wxString AnnotateString[]
Initial value:
= {
_( "All" ),
_( "Only front" ),
_( "Only back" ),
_( "Only selected" )
}

Definition at line 85 of file dialog_board_reannotate.cpp.

Referenced by DIALOG_BOARD_REANNOTATE::MakeSampleText().

◆ BackDirectionsArray

◆ DescendingFirst

bool DescendingFirst

Definition at line 44 of file dialog_board_reannotate.cpp.

Referenced by ModuleCompare().

◆ DescendingSecond

bool DescendingSecond

Definition at line 45 of file dialog_board_reannotate.cpp.

Referenced by ModuleCompare().

◆ FrontDirectionsArray

◆ SortYFirst

bool SortYFirst

Definition at line 43 of file dialog_board_reannotate.cpp.

Referenced by ModuleCompare().