30using namespace std::placeholders;
60 wxArrayString gridsList;
65 while( GetMenuItemCount() > 0 )
66 Delete( FindItemByPosition( 0 ) );
71 for(
const wxString&
grid : gridsList )
74 Append( idx,
grid, wxEmptyString, wxITEM_CHECK )->Check( idx == (
int) current );
92 if( !gridSize.
name.IsEmpty() )
98 aGridsList->Add( msg );
static TOOL_ACTION gridPreset
static TOOL_ACTION gridOrigin
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.
Store the common settings that are saved and loaded for each window / frame.