58 for(
size_t i = 0;
i < gridSizes.size();
i++ )
73 wxRealPoint gridSize = gridSizes[ (size_t)
m_choiceGridSize->GetSelection() ].m_Size;
KIGFX::SCH_VIEW * GetView() const override
Function GetView() Returns a pointer to the VIEW instance used in the panel.
bool TransferDataToWindow() override
void FinishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
SCH_SCREEN * GetScreen() const override
Return a pointer to a BASE_SCREEN or one of its derivatives.
GAL * GetGAL() const
Function GetGAL() Returns the GAL this view is using to draw graphical primitives.
DIALOG_SET_GRID(PCB_BASE_FRAME *aParent, const wxArrayString &aGridChoices)
This has no dependencies on calling wxFrame derivative, such as PCB_BASE_FRAME.
Auxiliary rendering target (noncached)
wxChoice * m_choiceGridSize
VECTOR2< double > VECTOR2D
std::vector< GRID_TYPE > GRIDS
bool TransferDataFromWindow() override
void MarkTargetDirty(int aTarget)
Function MarkTargetDirty() Sets or clears target 'dirty' flag.
SCH_DRAW_PANEL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
const GRIDS & GetGrids() const
Function GetGrids().
void SetGridSize(const VECTOR2D &aGridSize)
Set the grid size.
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=NULL) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
void UpdateStatusBar() override
Update the status bar information.
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, CPTREE &aTree)
Function Format outputs a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
void SetLastGridSizeId(int aId)
void OnGridSettings(wxCommandEvent &aEvent) override
Class DIALOG_SET_GRID_BASE.
int SetGrid(const wxRealPoint &size)
set the current grid size m_Grid.
int GetGridCmdId() const
Return the command ID of the currently selected grid.
A shim class between EDA_DRAW_FRAME and several derived classes: LIB_EDIT_FRAME, LIB_VIEW_FRAME,...