47 if( !
IsOK(
this,
_(
"Current data will be lost?" ) ) )
78 msg.Printf(
_(
"Clear layer %d?" ), layer + 1 );
80 if( query && !
IsOK(
this, msg ) )
bool Clear_DrawLayers(bool query)
void DeleteAllImages()
Remove all loaded data in list, and delete all images, freeing the memory.
This file is part of the common library.
void syncLayerBox(bool aRebuildLayerBox=false)
Update the currently "selected" layer within m_SelLayerBox.
void SetPageSettings(const PAGE_INFO &aPageSettings) override
virtual EDA_DRAW_PANEL_GAL * GetCanvas() const
Return a pointer to GAL-based canvas of given EDA draw frame.
void SetActiveLayer(int aLayer, bool doLayerWidgetUpdate=true)
change the currently active layer to aLayer and update the GERBER_LAYER_WIDGET.
void SetBoundingBox(const EDA_RECT &aBox)
May be re-implemented for each derived class in order to handle all the types given by its member dat...
void Erase_Current_DrawLayer(bool query)
void Clear()
Remove all items from the view.
virtual KIGFX::VIEW * GetView() const
Return a pointer to the #VIEW instance used in the panel.
GBR_LAYOUT * GetGerberLayout() const
virtual bool IsContentModified() const
Get if the contents of the frame have been modified since the last save.
const PAGE_INFO & GetPageSettings() const override
int GetActiveLayer() const
Return the active layer.
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
Handle the component boundary box.
void DeleteImage(int aIdx)
Delete the loaded data of image aIdx, freeing the memory.
BASE_SCREEN class implementation.
GERBER_FILE_IMAGE_LIST * GetImagesList() const
Accessors to GERBER_FILE_IMAGE_LIST and GERBER_FILE_IMAGE data.
bool IsOK(wxWindow *aParent, const wxString &aMessage)
Display a yes/no dialog with aMessage and returns the user response.
virtual BASE_SCREEN * GetScreen() const
Return a pointer to a BASE_SCREEN or one of its derivatives.
void ReFillLayerWidget()
Change out all the layers in m_Layers; called upon loading new gerber files.