34using namespace std::placeholders;
 
   64    wxArrayString      gridsList;
 
   69    while( GetMenuItemCount() > 0 )
 
   70        Delete( FindItemByPosition( 0 ) );
 
   75    for( 
const wxString& 
grid : gridsList )
 
   78        Append( idx, 
grid, wxEmptyString, wxITEM_CHECK )->Check( idx == (
int) current );
 
 
   97        if( !gridSize.
name.IsEmpty() )
 
  103        aGridsList->Add( msg );
 
 
static TOOL_ACTION gridPreset
 
static TOOL_ACTION gridOrigin
 
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
 
The base class for create windows for drawing purpose.
 
void GetUnitPair(EDA_UNITS &aPrimaryUnit, EDA_UNITS &aSecondaryUnits) override
Get the pair or units in current use.
 
const EDA_IU_SCALE & GetIuScale() const
 
std::vector< GRID > grids
 
Common grid settings, available to every frame.
 
wxString MessageText(EDA_IU_SCALE aScale, EDA_UNITS aUnits, bool aDisplayUnits=true) const
Returns a string representation of the grid in specified units.