KiCad PCB EDA Suite
|
Panel that renders a single footprint via Cairo GAL, meant to be exported through Kiface. More...
#include <footprint_preview_panel.h>
Public Types | |
enum | GAL_TYPE { GAL_TYPE_UNKNOWN = -1 , GAL_TYPE_NONE = 0 , GAL_TYPE_OPENGL , GAL_TYPE_CAIRO , GAL_TYPE_LAST } |
enum | HOLDER_TYPE { DIALOG , FRAME , PANEL } |
Public Member Functions | |
virtual | ~FOOTPRINT_PREVIEW_PANEL () |
void | SetUserUnits (EDA_UNITS aUnits) override |
void | SetPinFunctions (const std::map< wxString, wxString > &aPinFunctions) override |
Set the pin functions from the symbol's netlist. | |
bool | DisplayFootprint (const LIB_ID &aFPID) override |
Set the currently displayed footprint. | |
void | DisplayFootprints (std::shared_ptr< FOOTPRINT > aFootprintA, std::shared_ptr< FOOTPRINT > aFootprintB) override |
Display a pair of footprints. | |
const KIGFX::COLOR4D & | GetBackgroundColor () const override |
Get the colors to use in a preview widget to match the preview panel. | |
const KIGFX::COLOR4D & | GetForegroundColor () const override |
EDA_DRAW_PANEL_GAL * | GetCanvas () override |
Get the GAL canvas. | |
BOARD * | GetBoard () override |
void | RefreshAll () override |
Force the redrawing of all contents. | |
FOOTPRINT * | GetCurrentFootprint () const |
void | ClearViewAndData () |
void | DisplayBoard (BOARD *aBoard, PROGRESS_REPORTER *aReporter=nullptr) |
Add all items from the current board to the VIEW, so they can be displayed by GAL. | |
void | SetDrawingSheet (DS_PROXY_VIEW_ITEM *aDrawingSheet) |
Sets (or updates) drawing-sheet used by the draw panel. | |
DS_PROXY_VIEW_ITEM * | GetDrawingSheet () const |
void | UpdateColors () |
Update the color settings in the painter and GAL. | |
virtual void | SetHighContrastLayer (int aLayer) override |
SetHighContrastLayer(), with some extra smarts for PCB. | |
void | SetHighContrastLayer (PCB_LAYER_ID aLayer) |
Move the selected layer to the top, so it is displayed above all others. | |
virtual void | SetTopLayer (int aLayer) override |
SetTopLayer(), with some extra smarts for PCB. | |
void | SetTopLayer (PCB_LAYER_ID aLayer) |
void | SyncLayersVisibility (const BOARD *aBoard) |
Update "visibility" property of each layer of a given BOARD. | |
void | GetMsgPanelInfo (EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList) override |
Called when the window is shown for the first time. | |
void | OnShow () override |
Called when the window is shown for the first time. | |
bool | SwitchBackend (GAL_TYPE aGalType) override |
Force refresh of the ratsnest visual representation. | |
void | RedrawRatsnest () |
Return the bounding box of the view that should be used if model is not valid. | |
BOX2I | GetDefaultViewBBox () const override |
Return the bounding box of the view that should be used if model is not valid. | |
virtual KIGFX::PCB_VIEW * | GetView () const override |
Return a pointer to the #VIEW instance used in the panel. | |
void | SetFocus () override |
bool | StatusPopupHasFocus () |
void | SetStatusPopup (wxWindow *aPopup) |
GAL_TYPE | GetBackend () const |
Return the type of backend currently used by GAL canvas. | |
KIGFX::GAL * | GetGAL () const |
Return a pointer to the GAL instance used in the panel. | |
KIGFX::VIEW_CONTROLS * | GetViewControls () const |
Return a pointer to the #VIEW_CONTROLS instance used in the panel. | |
virtual void | Refresh (bool aEraseBackground=true, const wxRect *aRect=nullptr) override |
void | ForceRefresh () |
Force a redraw. | |
void | RequestRefresh () |
Make sure a refresh gets done on the next idle event if it hasn't already. | |
void | SetEventDispatcher (TOOL_DISPATCHER *aEventDispatcher) |
Set a dispatcher that processes events and forwards them to tools. | |
void | StartDrawing () |
Begin drawing if it was stopped previously. | |
void | StopDrawing () |
Prevent the GAL canvas from further drawing until it is recreated or StartDrawing() is called. | |
EDA_DRAW_FRAME * | GetParentEDAFrame () const |
Returns parent EDA_DRAW_FRAME, if available or NULL otherwise. | |
bool | IsDialogPreview () const |
void | SetStealsFocus (bool aStealsFocus) |
Set whether focus is taken on certain events (mouseover, keys, etc). | |
void | SetCurrentCursor (KICURSOR aCursor) |
Set the current cursor shape for this panel. | |
void | OnEvent (wxEvent &aEvent) |
Used to forward events to the canvas from popups, etc. | |
bool | DoRePaint () |
Repaint the canvas, and fix scrollbar cursors. | |
std::shared_ptr< KIGFX::VIEW_OVERLAY > | DebugOverlay () |
Create an overlay for rendering debug graphics. | |
void | ClearDebugOverlay () |
Clear the contents of the debug overlay and removes it from the VIEW. | |
HOLDER_TYPE | GetType () const |
KIWAY & | Kiway () const |
Return a reference to the KIWAY that this object has an opportunity to participate in. | |
bool | HasKiway () const |
Safety check before asking for the Kiway reference. | |
PROJECT & | Prj () const |
Return a reference to the PROJECT associated with this KIWAY. | |
void | SetKiway (wxWindow *aDest, KIWAY *aKiway) |
It is only used for debugging, since "this" is not a wxWindow*. | |
Static Public Member Functions | |
static FOOTPRINT_PREVIEW_PANEL * | New (KIWAY *aKiway, wxWindow *aParent, UNITS_PROVIDER *aUnitsProvider) |
static KIGFX::VC_SETTINGS | GetVcSettings () |
Gets a populated View Controls settings object dervived from our program settings. | |
static FOOTPRINT_PREVIEW_PANEL_BASE * | Create (wxWindow *aParent, KIWAY &aKiway) |
Return a footprint preview panel instance via Kiface. | |
Public Attributes | |
bool | m_MouseCapturedLost |
used on wxMSW: true after a wxEVT_MOUSE_CAPTURE_LOST was received false after the mouse is recaptured. | |
std::unique_ptr< PROF_COUNTER > | m_PaintEventCounter |
Static Public Attributes | |
static constexpr GAL_TYPE | GAL_FALLBACK = GAL_TYPE_CAIRO |
Protected Member Functions | |
void | setDefaultLayerOrder () |
< Reassign layer order to the initial settings. | |
void | setDefaultLayerDeps () |
virtual void | onPaint (wxPaintEvent &WXUNUSED(aEvent)) |
void | onSize (wxSizeEvent &aEvent) |
void | onEnter (wxMouseEvent &aEvent) |
void | onLostFocus (wxFocusEvent &aEvent) |
void | onIdle (wxIdleEvent &aEvent) |
void | onRefreshTimer (wxTimerEvent &aEvent) |
void | onShowEvent (wxShowEvent &aEvent) |
Protected Attributes | |
std::unique_ptr< DS_PROXY_VIEW_ITEM > | m_drawingSheet |
Currently used drawing-sheet. | |
std::unique_ptr< RATSNEST_VIEW_ITEM > | m_ratsnest |
Ratsnest view item. | |
wxWindow * | m_parent |
Pointer to the parent window. | |
EDA_DRAW_FRAME * | m_edaFrame |
Parent EDA_DRAW_FRAME (if available) | |
wxLongLong | m_lastRepaintStart |
Timestamp of the last repaint start. | |
wxLongLong | m_lastRepaintEnd |
Timestamp of the last repaint end. | |
wxTimer | m_refreshTimer |
Timer to prevent too-frequent refreshing. | |
std::mutex | m_refreshMutex |
Blocks multiple calls to the draw. | |
bool | m_drawing |
True if GAL is currently redrawing the view. | |
bool | m_drawingEnabled |
Flag that determines if VIEW may use GAL for redrawing the screen. | |
bool | m_needIdleRefresh |
True when canvas needs to be refreshed from idle handler. | |
KIGFX::GAL * | m_gal |
Interface for drawing objects on a 2D-surface. | |
KIGFX::VIEW * | m_view |
Stores view settings (scale, center, etc.) and items to be drawn. | |
std::unique_ptr< KIGFX::PAINTER > | m_painter |
Contains information about how to draw items using GAL. | |
KIGFX::WX_VIEW_CONTROLS * | m_viewControls |
Control for VIEW (moving, zooming, etc.) | |
GAL_TYPE | m_backend |
Currently used GAL. | |
KIGFX::GAL_DISPLAY_OPTIONS & | m_options |
TOOL_DISPATCHER * | m_eventDispatcher |
Processes and forwards events to tools. | |
bool | m_lostFocus |
Flag to indicate that focus should be regained on the next mouse event. | |
bool | m_stealsFocus |
Flag to indicate whether the panel should take focus at certain times (when moused over, and on various mouse/key events) | |
wxWindow * | m_statusPopup |
std::shared_ptr< KIGFX::VIEW_OVERLAY > | m_debugOverlay |
Optional overlay for drawing transient debug objects. | |
Private Member Functions | |
FOOTPRINT_PREVIEW_PANEL (KIWAY *aKiway, wxWindow *aParent, UNITS_PROVIDER *aUnitsProvider, std::unique_ptr< KIGFX::GAL_DISPLAY_OPTIONS > aOpts, GAL_TYPE aGalType) | |
Create a new panel. | |
void | renderFootprint (std::shared_ptr< FOOTPRINT > aFootprint) |
void | fitToCurrentFootprint () |
Private Attributes | |
std::unique_ptr< BOARD > | m_dummyBoard |
std::unique_ptr< KIGFX::GAL_DISPLAY_OPTIONS > | m_displayOptions |
EDA_UNITS | m_userUnits |
std::map< wxString, wxString > | m_pinFunctions |
std::shared_ptr< FOOTPRINT > | m_currentFootprint |
std::shared_ptr< FOOTPRINT > | m_otherFootprint |
KIWAY * | m_kiway |
HOLDER_TYPE | m_type |
Panel that renders a single footprint via Cairo GAL, meant to be exported through Kiface.
Definition at line 49 of file footprint_preview_panel.h.
|
inherited |
Enumerator | |
---|---|
GAL_TYPE_UNKNOWN | not specified: a GAL engine must be set by the client |
GAL_TYPE_NONE | GAL not used (the legacy wxDC engine is used) |
GAL_TYPE_OPENGL | OpenGL implementation. |
GAL_TYPE_CAIRO | Cairo implementation. |
GAL_TYPE_LAST | Sentinel, do not use as a parameter. |
Definition at line 63 of file class_draw_panel_gal.h.
|
inherited |
Enumerator | |
---|---|
DIALOG | |
FRAME | |
PANEL |
Definition at line 41 of file kiway_holder.h.
|
virtual |
Definition at line 76 of file footprint_preview_panel.cpp.
References ClearViewAndData().
|
private |
Create a new panel.
aKiway | the connected KIWAY |
aParent | the owning WX window |
aOpts | the GAL options (ownership is assumed) |
aGalType | the displayed GAL type |
Definition at line 50 of file footprint_preview_panel.cpp.
References FPHOLDER, UNITS_PROVIDER::GetUserUnits(), KIWAY_HOLDER::KIWAY_HOLDER(), m_displayOptions, m_dummyBoard, m_userUnits, move, KIWAY_HOLDER::PANEL, PCB_DRAW_PANEL_GAL::PCB_DRAW_PANEL_GAL(), EDA_DRAW_PANEL_GAL::SetStealsFocus(), EDA_DRAW_PANEL_GAL::StartDrawing(), PCB_DRAW_PANEL_GAL::SyncLayersVisibility(), and PCB_DRAW_PANEL_GAL::UpdateColors().
Referenced by New().
|
inherited |
Clear the contents of the debug overlay and removes it from the VIEW.
Definition at line 697 of file draw_panel_gal.cpp.
References m_debugOverlay, and m_view.
void FOOTPRINT_PREVIEW_PANEL::ClearViewAndData | ( | ) |
Definition at line 82 of file footprint_preview_panel.cpp.
References KIGFX::VIEW::Clear(), PCB_DRAW_PANEL_GAL::GetView(), m_currentFootprint, m_dummyBoard, m_otherFootprint, and KIGFX::PCB_VIEW::Remove().
Referenced by FOOTPRINT_CHOOSER_FRAME::~FOOTPRINT_CHOOSER_FRAME(), and ~FOOTPRINT_PREVIEW_PANEL().
|
staticinherited |
Return a footprint preview panel instance via Kiface.
May return null if Kiway is not available or there is any error on load.
Definition at line 150 of file footprint_preview_widget.cpp.
References KIWAY::FACE_PCB, FRAME_FOOTPRINT_PREVIEW, KIWAY::KiFACE(), and kiface().
Referenced by FOOTPRINT_PREVIEW_WIDGET::FOOTPRINT_PREVIEW_WIDGET(), and GetForegroundColor().
|
inherited |
Create an overlay for rendering debug graphics.
Definition at line 685 of file draw_panel_gal.cpp.
References m_debugOverlay, and m_view.
|
inherited |
Add all items from the current board to the VIEW, so they can be displayed by GAL.
aBoard | is the PCB to be loaded. |
Definition at line 446 of file pcb_draw_panel_gal.cpp.
References BOARD::BoardOutline(), BOARD::CacheTriangulation(), BOARD::Drawings(), BOARD::Footprints(), BOARD::Generators(), BOARD::GetConnectivity(), BOARD::GetFileName(), BOARD::IsFootprintHolder(), m_drawingSheet, m_ratsnest, EDA_DRAW_PANEL_GAL::m_view, BOARD::Markers(), BOARD::Points(), TO_UTF8, BOARD::Tracks(), BOARD::UpdateBoardOutline(), and BOARD::Zones().
Referenced by PCB_BASE_FRAME::OnFpChangeDebounceTimer(), PCB_EDIT_FRAME::RebuildAndRefresh(), PCB_BASE_EDIT_FRAME::SetBoard(), FOOTPRINT_EDIT_FRAME::UpdateView(), DISPLAY_FOOTPRINTS_FRAME::updateView(), FOOTPRINT_VIEWER_FRAME::updateView(), and FOOTPRINT_WIZARD_FRAME::updateView().
|
overridevirtual |
Set the currently displayed footprint.
Any footprint passed in here MUST have been passed to CacheFootprint before.
Implements FOOTPRINT_PREVIEW_PANEL_BASE.
Definition at line 166 of file footprint_preview_panel.cpp.
References KIGFX::VIEW::Clear(), FOOTPRINT::Duplicate(), fitToCurrentFootprint(), EDA_DRAW_PANEL_GAL::ForceRefresh(), FP_LIB_TABLE::GetEnumeratedFootprint(), LIB_ID::GetLibItemName(), LIB_ID::GetLibNickname(), PCB_DRAW_PANEL_GAL::GetView(), IGNORE_PARENT_GROUP, m_currentFootprint, m_dummyBoard, PROJECT_PCB::PcbFootprintLibs(), KIWAY_HOLDER::Prj(), KIGFX::PCB_VIEW::Remove(), and renderFootprint().
Referenced by FP_TREE_SYNCHRONIZING_ADAPTER::ShowPreview().
|
overridevirtual |
Display a pair of footprints.
(Normally used for diff'ing.)
Implements FOOTPRINT_PREVIEW_PANEL_BASE.
Definition at line 203 of file footprint_preview_panel.cpp.
References KIGFX::VIEW::Clear(), fitToCurrentFootprint(), PCB_DRAW_PANEL_GAL::GetView(), m_currentFootprint, m_dummyBoard, m_otherFootprint, KIGFX::PCB_VIEW::Remove(), and renderFootprint().
|
inherited |
Repaint the canvas, and fix scrollbar cursors.
Usually called by a OnPaint event.
Because it does not use a wxPaintDC, it can be called outside a wxPaintEvent.
Definition at line 200 of file draw_panel_gal.cpp.
References _, DisplayErrorMessage(), DisplayInfoMessage(), GAL_FALLBACK, GAL_TYPE_OPENGL, KIGFX::RENDER_SETTINGS::GetBackgroundColor(), KIGFX::VIEW::GetCenter(), KIGFX::RENDER_SETTINGS::GetCursorColor(), KIGFX::RENDER_SETTINGS::GetGridColor(), GetParentEDAFrame(), EDA_DRAW_FRAME::GetScreen(), GetView(), IsDialogPreview(), KI_TRACE, m_backend, m_drawing, m_drawingEnabled, m_gal, m_lastRepaintEnd, m_lastRepaintStart, m_painter, m_parent, m_refreshMutex, BASE_SCREEN::m_ScrollCenter, m_view, m_viewControls, Pgm(), PROF_TIMER::Start(), StartDrawing(), PROF_TIMER::Stop(), StopDrawing(), SwitchBackend(), KIGFX::TARGET_NONCACHED, KIGFX::TARGET_OVERLAY, PROF_TIMER::to_string(), traceDrawPanel, and traceGalProfile.
Referenced by ForceRefresh(), onPaint(), and Refresh().
|
private |
Definition at line 148 of file footprint_preview_panel.cpp.
References BOX2< Vec >::GetOrigin(), BOX2< Vec >::GetSize(), PCB_DRAW_PANEL_GAL::GetView(), m_currentFootprint, Refresh(), KIGFX::VIEW::SetScale(), KIGFX::VIEW::SetViewport(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by DisplayFootprint(), and DisplayFootprints().
|
inherited |
Force a redraw.
Definition at line 406 of file draw_panel_gal.cpp.
References DoRePaint(), m_drawingEnabled, m_gal, m_refreshTimer, onIdle(), and onPaint().
Referenced by BOARD_EDITOR_CONTROL::AssignNetclass(), FOOTPRINT_EDIT_FRAME::CommonSettingsChanged(), FOOTPRINT_VIEWER_FRAME::CommonSettingsChanged(), GERBVIEW_FRAME::CommonSettingsChanged(), PCB_EDIT_FRAME::CommonSettingsChanged(), PL_EDITOR_FRAME::CommonSettingsChanged(), SCH_EDIT_FRAME::CommonSettingsChanged(), SYMBOL_EDIT_FRAME::CommonSettingsChanged(), SYMBOL_VIEWER_FRAME::CommonSettingsChanged(), FOOTPRINT_PREVIEW_PANEL::DisplayFootprint(), PAD_TOOL::ExitPadEditMode(), FOOTPRINT_EDIT_FRAME::HardRedraw(), SCH_BASE_FRAME::HardRedraw(), SCH_EDIT_FRAME::HardRedraw(), PCB_EDIT_FRAME::OnCrossProbeFlashTimer(), SCH_EDIT_FRAME::OnCrossProbeFlashTimer(), onRefreshTimer(), DIALOG_FP_EDIT_PAD_TABLE::OnSelectCell(), POSITION_RELATIVE_TOOL::PositionRelativeInteractively(), FOOTPRINT_PREVIEW_PANEL::RefreshAll(), DIALOG_FP_EDIT_PAD_TABLE::RestoreOriginalPadState(), FOOTPRINT_EDITOR_CONTROL::Save(), FOOTPRINT_EDITOR_CONTROL::SaveAs(), and COMMON_TOOLS::ToggleBoundingBoxes().
|
inlineinherited |
Return the type of backend currently used by GAL canvas.
Definition at line 114 of file class_draw_panel_gal.h.
References m_backend.
Referenced by EDA_DRAW_FRAME::CommonSettingsChanged(), DIALOG_SYMBOL_REMAP::OnRemapSymbols(), EDA_DRAW_FRAME::SwitchCanvas(), GERBVIEW_FRAME::UpdateXORLayers(), GERBVIEW_FRAME::~GERBVIEW_FRAME(), PCB_BASE_FRAME::~PCB_BASE_FRAME(), PL_EDITOR_FRAME::~PL_EDITOR_FRAME(), and SCH_EDIT_FRAME::~SCH_EDIT_FRAME().
|
overridevirtual |
Get the colors to use in a preview widget to match the preview panel.
Implements FOOTPRINT_PREVIEW_PANEL_BASE.
Definition at line 99 of file footprint_preview_panel.cpp.
References KIGFX::PCB_RENDER_SETTINGS::GetBackgroundColor(), KIGFX::VIEW::GetPainter(), KIGFX::PAINTER::GetSettings(), and PCB_DRAW_PANEL_GAL::GetView().
|
inlineoverridevirtual |
Implements FOOTPRINT_PREVIEW_PANEL_BASE.
Definition at line 71 of file footprint_preview_panel.h.
References m_dummyBoard.
|
inlineoverridevirtual |
Get the GAL canvas.
Implements FOOTPRINT_PREVIEW_PANEL_BASE.
Definition at line 70 of file footprint_preview_panel.h.
References EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL().
|
inline |
Definition at line 77 of file footprint_preview_panel.h.
References m_currentFootprint.
Referenced by FOOTPRINT_CHOOSER_FRAME::GetModel(), and PANEL_FOOTPRINT_CHOOSER::onFootprintSelected().
|
overridevirtualinherited |
Return the bounding box of the view that should be used if model is not valid.
For example, the drawing sheet bounding box for an empty PCB
Reimplemented from EDA_DRAW_PANEL_GAL.
Definition at line 840 of file pcb_draw_panel_gal.cpp.
References LAYER_DRAWINGSHEET, m_drawingSheet, and EDA_DRAW_PANEL_GAL::m_view.
Referenced by PANEL_ZONE_GAL::ZoomFitScreen().
|
inlineinherited |
Definition at line 62 of file pcb_draw_panel_gal.h.
References m_drawingSheet.
Referenced by EDIT_TOOL::Properties().
|
overridevirtual |
Implements FOOTPRINT_PREVIEW_PANEL_BASE.
Definition at line 108 of file footprint_preview_panel.cpp.
References F_Fab, KIGFX::RENDER_SETTINGS::GetLayerColor(), KIGFX::VIEW::GetPainter(), KIGFX::PAINTER::GetSettings(), and PCB_DRAW_PANEL_GAL::GetView().
|
inlineinherited |
Return a pointer to the GAL instance used in the panel.
Definition at line 121 of file class_draw_panel_gal.h.
References m_gal.
Referenced by FOOTPRINT_EDIT_FRAME::ActivateGalCanvas(), GERBVIEW_FRAME::ActivateGalCanvas(), SCH_BASE_FRAME::CommonSettingsChanged(), SYMBOL_VIEWER_FRAME::CommonSettingsChanged(), GERBVIEW_FRAME::DisplayGridMsg(), GERBVIEW_DRAW_PANEL_GAL::GERBVIEW_DRAW_PANEL_GAL(), EDA_DRAW_FRAME::GetNearestGridPosition(), EDA_DRAW_FRAME::GetNearestHalfGridPosition(), FOOTPRINT_PREVIEW_PANEL::New(), EDA_DRAW_FRAME::OnMove(), EDA_DRAW_FRAME::OnUpdateSelectZoom(), PL_DRAW_PANEL_GAL::PL_DRAW_PANEL_GAL(), PCB_EDIT_FRAME::RebuildAndRefresh(), PCB_BASE_EDIT_FRAME::SetBoard(), GERBVIEW_FRAME::SetGridColor(), PCB_EDIT_FRAME::SetGridColor(), EDA_DRAW_FRAME::SetGridVisibility(), FP_TREE_SYNCHRONIZING_ADAPTER::ShowPreview(), GERBVIEW_DRAW_PANEL_GAL::SwitchBackend(), PL_DRAW_PANEL_GAL::SwitchBackend(), FOOTPRINT_EDIT_FRAME::SwitchCanvas(), and SYMBOL_EDIT_FRAME::SwitchCanvas().
|
overridevirtualinherited |
Called when the window is shown for the first time.
Reimplemented from EDA_DRAW_PANEL_GAL.
Definition at line 728 of file pcb_draw_panel_gal.cpp.
References _, BOARD::Footprints(), GetBoard(), BOARD::GetConnectivity(), EDA_DRAW_PANEL_GAL::GetParentEDAFrame(), CONNECTIVITY_DATA::GetUnconnectedCount(), pad, PCB_VIA_T, and BOARD::Tracks().
|
inlineinherited |
Returns parent EDA_DRAW_FRAME, if available or NULL otherwise.
Definition at line 192 of file class_draw_panel_gal.h.
References m_edaFrame.
Referenced by DoRePaint(), GERBVIEW_DRAW_PANEL_GAL::GERBVIEW_DRAW_PANEL_GAL(), PCB_DRAW_PANEL_GAL::GetMsgPanelInfo(), GERBVIEW_DRAW_PANEL_GAL::OnShow(), PCB_DRAW_PANEL_GAL::OnShow(), SCH_DRAW_PANEL::OnShow(), onSize(), PCB_DRAW_PANEL_GAL::PCB_DRAW_PANEL_GAL(), SCH_DRAW_PANEL::SCH_DRAW_PANEL(), GERBVIEW_DRAW_PANEL_GAL::SwitchBackend(), and PCB_DRAW_PANEL_GAL::UpdateColors().
|
inlineinherited |
Definition at line 48 of file kiway_holder.h.
References m_type.
Referenced by DIALOG_SHIM::DIALOG_SHIM(), EDA_3D_CONTROLLER::Main(), and PANEL_PREVIEW_3D_MODEL::onModify().
|
staticinherited |
Gets a populated View Controls settings object dervived from our program settings.
Definition at line 707 of file draw_panel_gal.cpp.
References COMMON_SETTINGS::INPUT::auto_pan, COMMON_SETTINGS::INPUT::auto_pan_acceleration, COMMON_SETTINGS::INPUT::center_on_zoom, COMMON_SETTINGS::INPUT::drag_left, COMMON_SETTINGS::INPUT::drag_middle, COMMON_SETTINGS::INPUT::drag_right, COMMON_SETTINGS::INPUT::focus_follow_sch_pcb, PGM_BASE::GetCommonSettings(), COMMON_SETTINGS::INPUT::horizontal_pan, KIGFX::VC_SETTINGS::m_autoPanAcceleration, KIGFX::VC_SETTINGS::m_autoPanSettingEnabled, KIGFX::VC_SETTINGS::m_dragLeft, KIGFX::VC_SETTINGS::m_dragMiddle, KIGFX::VC_SETTINGS::m_dragRight, KIGFX::VC_SETTINGS::m_focusFollowSchPcb, KIGFX::VC_SETTINGS::m_horizontalPan, COMMON_SETTINGS::m_Input, KIGFX::VC_SETTINGS::m_motionPanModifier, KIGFX::VC_SETTINGS::m_scrollModifierPanH, KIGFX::VC_SETTINGS::m_scrollModifierPanV, KIGFX::VC_SETTINGS::m_scrollModifierZoom, KIGFX::VC_SETTINGS::m_scrollReversePanH, KIGFX::VC_SETTINGS::m_scrollReverseZoom, KIGFX::VC_SETTINGS::m_warpCursor, KIGFX::VC_SETTINGS::m_zoomAcceleration, KIGFX::VC_SETTINGS::m_zoomSpeed, KIGFX::VC_SETTINGS::m_zoomSpeedAuto, COMMON_SETTINGS::INPUT::motion_pan_modifier, Pgm(), COMMON_SETTINGS::INPUT::reverse_scroll_pan_h, COMMON_SETTINGS::INPUT::reverse_scroll_zoom, COMMON_SETTINGS::INPUT::scroll_modifier_pan_h, COMMON_SETTINGS::INPUT::scroll_modifier_pan_v, COMMON_SETTINGS::INPUT::scroll_modifier_zoom, COMMON_SETTINGS::INPUT::zoom_acceleration, COMMON_SETTINGS::INPUT::zoom_speed, and COMMON_SETTINGS::INPUT::zoom_speed_auto.
Referenced by EDA_3D_VIEWER_FRAME::applySettings(), EDA_3D_VIEWER_FRAME::configureCanvas(), and SwitchBackend().
|
overridevirtualinherited |
Return a pointer to the #VIEW instance used in the panel.
Reimplemented from EDA_DRAW_PANEL_GAL.
Definition at line 945 of file pcb_draw_panel_gal.cpp.
References EDA_DRAW_PANEL_GAL::m_view.
Referenced by FOOTPRINT_EDIT_FRAME::Clear_Pcb(), PCB_EDIT_FRAME::Clear_Pcb(), FOOTPRINT_PREVIEW_PANEL::ClearViewAndData(), FOOTPRINT_EDIT_FRAME::CommonSettingsChanged(), PCB_BASE_FRAME::CommonSettingsChanged(), PCB_EDIT_FRAME::CommonSettingsChanged(), FOOTPRINT_PREVIEW_PANEL::DisplayFootprint(), FOOTPRINT_PREVIEW_PANEL::DisplayFootprints(), PCB_EDIT_FRAME::Edit_Zone_Params(), PAD_TOOL::enterPadEditMode(), EVT_GRID_CMD_CELL_CHANGED(), PAD_TOOL::ExitPadEditMode(), PCB_SELECTION_TOOL::FindItem(), FOOTPRINT_PREVIEW_PANEL::fitToCurrentFootprint(), PCB_BASE_FRAME::FocusOnItems(), FOOTPRINT_PREVIEW_PANEL::GetBackgroundColor(), FOOTPRINT_PREVIEW_PANEL::GetForegroundColor(), PCB_TUNING_PATTERN::GetPreviewItems(), API_HANDLER_PCB::handleSetBoardEditorAppearanceSettings(), PCB_BASE_FRAME::HideSolderMask(), PCB_EDIT_FRAME::ImportSpecctraSession(), DISPLAY_FOOTPRINTS_FRAME::InitDisplay(), PCB_EDIT_FRAME::LoadProjectSettings(), PCB_BASE_FRAME::LoadSettings(), FOOTPRINT_PREVIEW_PANEL::New(), PCB_EDIT_FRAME::OnBoardLoaded(), PCB_EDIT_FRAME::OnNetlistChanged(), DIALOG_FP_EDIT_PAD_TABLE::OnSelectCell(), PCB_BASE_EDIT_FRAME::PutDataInPreviousState(), PCB_EDIT_FRAME::RebuildAndRefresh(), PCB_EDIT_FRAME::redrawNetnames(), ZONE_FILLER_TOOL::refresh(), FOOTPRINT_PREVIEW_PANEL::RefreshAll(), DISPLAY_FOOTPRINTS_FRAME::ReloadFootprint(), FOOTPRINT_PREVIEW_PANEL::renderFootprint(), PCB_EDIT_FRAME::ResolveDRCExclusions(), PCB_BASE_EDIT_FRAME::RestoreCopyFromRedoList(), PCB_BASE_EDIT_FRAME::RestoreCopyFromUndoList(), DIALOG_FP_EDIT_PAD_TABLE::RestoreOriginalPadState(), PCB_BASE_EDIT_FRAME::RollbackFromUndo(), PCB_EDIT_FRAME::SaveProjectLocalSettings(), PCB_EDIT_FRAME::saveProjectSettings(), DISPLAY_FOOTPRINTS_FRAME::SaveSettings(), FOOTPRINT_VIEWER_FRAME::SaveSettings(), FOOTPRINT_EDIT_FRAME::SetActiveLayer(), PCB_EDIT_FRAME::SetActiveLayer(), PCB_BASE_EDIT_FRAME::SetBoard(), PCB_BASE_FRAME::SetBoard(), PCB_BASE_FRAME::SetDisplayOptions(), PCB_EDIT_FRAME::SetElementVisibility(), PCB_BASE_FRAME::SetPlotSettings(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), PCB_EDIT_FRAME::setupUIConditions(), PCB_EDIT_FRAME::ShowBoardSetupDialog(), PCB_BASE_EDIT_FRAME::ShowReferenceImagePropertiesDialog(), PCB_BASE_FRAME::ShowSolderMask(), FOOTPRINT_EDIT_FRAME::updateEnabledLayers(), PCB_EDIT_FRAME::UpdateUserInterface(), GLOBAL_EDIT_TOOL::ZonesManager(), DISPLAY_FOOTPRINTS_FRAME::~DISPLAY_FOOTPRINTS_FRAME(), FOOTPRINT_VIEWER_FRAME::~FOOTPRINT_VIEWER_FRAME(), and PCB_BASE_EDIT_FRAME::~PCB_BASE_EDIT_FRAME().
|
inlineinherited |
Return a pointer to the #VIEW_CONTROLS instance used in the panel.
Definition at line 135 of file class_draw_panel_gal.h.
References m_viewControls.
Referenced by PCB_BASE_FRAME::ActivateGalCanvas(), FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), EDA_DRAW_FRAME::CommonSettingsChanged(), FOOTPRINT_EDITOR_CONTROL::CreateFootprint(), EVT_GRID_CMD_CELL_CHANGED(), EDA_DRAW_FRAME::FocusOnLocation(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromBoard(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromLibrary(), FOOTPRINT_EDITOR_CONTROL::NewFootprint(), FOOTPRINT_EDIT_FRAME::OpenProjectFiles(), SCH_BASE_FRAME::RedrawScreen(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), GERBVIEW_FRAME::UpdateStatusBar(), PCB_BASE_FRAME::UpdateStatusBar(), PL_EDITOR_FRAME::UpdateStatusBar(), and SCH_BASE_FRAME::UpdateStatusBar().
|
inlineinherited |
Safety check before asking for the Kiway reference.
Definition at line 65 of file kiway_holder.h.
References m_kiway.
Referenced by DIALOG_SHIM::DIALOG_SHIM(), and DIALOG_SHIM::~DIALOG_SHIM().
|
inlineinherited |
Definition at line 194 of file class_draw_panel_gal.h.
References m_edaFrame, and m_parent.
Referenced by DoRePaint(), PCB_DRAW_PANEL_GAL::OnShow(), and PCB_DRAW_PANEL_GAL::PCB_DRAW_PANEL_GAL().
|
inlineinherited |
Return a reference to the KIWAY that this object has an opportunity to participate in.
A KIWAY_HOLDER is not necessarily a KIWAY_PLAYER.
Definition at line 55 of file kiway_holder.h.
References m_kiway.
Referenced by PROJECT_TREE_ITEM::Activate(), FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), IMPORT_PROJ_HELPER::addLocalLibraries(), SYMBOL_EDITOR_CONTROL::AddSymbolToSchematic(), CVPCB_MAINFRAME::BuildLibrariesList(), KICAD_MANAGER_FRAME::CloseProject(), CVPCB_MAINFRAME::CVPCB_MAINFRAME(), KIWAY_PLAYER::Destroy(), DIALOG_LIST_HOTKEYS::DIALOG_LIST_HOTKEYS(), DIALOG_RESCUE_EACH::DIALOG_RESCUE_EACH(), DIALOG_SHIM::DIALOG_SHIM(), BOARD_EDITOR_CONTROL::EditFpInFpEditor(), SCH_EDITOR_CONTROL::EditWithSymbolEditor(), EDA_DRAW_FRAME::IsScriptingConsoleVisible(), KICAD_MANAGER_FRAME::language_change(), KIWAY_PLAYER::language_change(), DIALOG_CHANGE_SYMBOLS::launchMatchIdSymbolBrowser(), DIALOG_CHANGE_SYMBOLS::launchNewIdSymbolBrowser(), PGM_SINGLE_TOP::MacOpenFile(), PCB_CALCULATOR_FRAME::OnExit(), SIMULATOR_FRAME::onExit(), EDA_3D_CANVAS::OnLeftDown(), KIGFX::WX_VIEW_CONTROLS::onMotion(), DIALOG_SYMBOL_REMAP::OnRemapSymbols(), DIALOG_FIELD_PROPERTIES::OnTextValueSelectButtonClick(), PCB_DESIGN_BLOCK_PREVIEW_WIDGET::PCB_DESIGN_BLOCK_PREVIEW_WIDGET(), Prj(), SCH_INSPECTION_TOOL::RunSimulation(), CVPCB_MAINFRAME::SaveFootprintAssociation(), EDA_DRAW_FRAME::ScriptingConsoleEnableDisable(), CVPCB_MAINFRAME::SendComponentSelectionToSch(), BOARD_EDITOR_CONTROL::ShowEeschema(), CVPCB_CONTROL::ShowFootprintViewer(), showFrame(), EDA_BASE_FRAME::ShowPreferences(), SCH_EDITOR_CONTROL::SimProbe(), SCH_EDITOR_CONTROL::SimTune(), KICAD_MANAGER_FRAME::UnarchiveFiles(), DIALOG_EXCHANGE_FOOTPRINTS::ViewAndSelectFootprint(), and DIALOG_SHIM::~DIALOG_SHIM().
|
static |
Definition at line 240 of file footprint_preview_panel.cpp.
References EDA_UNIT_UTILS::UI::DoubleValueFromString(), FOOTPRINT_PREVIEW_PANEL(), SETTINGS_MANAGER::GetAppSettings(), PGM_BASE::GetCommonSettings(), EDA_DRAW_PANEL_GAL::GetGAL(), PGM_BASE::GetSettingsManager(), PCB_DRAW_PANEL_GAL::GetView(), WINDOW_SETTINGS::grid, GRID_SETTINGS::grids, GRID_SETTINGS::last_size_idx, APP_SETTINGS_BASE::m_Window, MILS, OFF, pcbIUScale, Pgm(), KIGFX::GAL::SetGridSize(), KIGFX::GAL::SetGridVisibility(), KIGFX::RENDER_SETTINGS::SetHighlight(), GRID_SETTINGS::show, and PCB_DRAW_PANEL_GAL::UpdateColors().
Referenced by PCB::IFACE::CreateKiWindow(), PANEL_PCBNEW_COLOR_SETTINGS::createSwatches(), PCB_DESIGN_BLOCK_PREVIEW_WIDGET::PCB_DESIGN_BLOCK_PREVIEW_WIDGET(), and FP_TREE_SYNCHRONIZING_ADAPTER::ShowPreview().
|
protectedinherited |
Definition at line 613 of file draw_panel_gal.cpp.
References KIUI::IsInputControlFocused(), KIUI::IsModalDialogFocused(), KIPLATFORM::UI::IsWindowActive(), m_edaFrame, m_stealsFocus, and SetFocus().
Referenced by EDA_DRAW_PANEL_GAL().
|
inherited |
Used to forward events to the canvas from popups, etc.
Definition at line 585 of file draw_panel_gal.cpp.
References KIUI::IsInputControlFocused(), KIUI::IsModalDialogFocused(), KIPLATFORM::UI::IsWindowActive(), m_edaFrame, m_eventDispatcher, m_lastRepaintEnd, m_lastRepaintStart, m_lostFocus, m_stealsFocus, Refresh(), RequestRefresh(), and SetFocus().
Referenced by EDA_DRAW_PANEL_GAL(), and STATUS_POPUP::onCharHook().
|
protectedinherited |
Definition at line 638 of file draw_panel_gal.cpp.
References m_needIdleRefresh, and Refresh().
Referenced by ForceRefresh(), and StopDrawing().
|
protectedinherited |
Definition at line 628 of file draw_panel_gal.cpp.
References m_lostFocus, and m_viewControls.
Referenced by EDA_DRAW_PANEL_GAL().
|
protectedvirtualinherited |
Reimplemented in SCH_DRAW_PANEL, and SCH_PREVIEW_PANEL.
Definition at line 194 of file draw_panel_gal.cpp.
References DoRePaint().
Referenced by ForceRefresh(), SCH_DRAW_PANEL::onPaint(), SCH_PREVIEW_PANEL::onPaint(), and StopDrawing().
|
protectedinherited |
Definition at line 650 of file draw_panel_gal.cpp.
References ForceRefresh().
Referenced by EDA_DRAW_PANEL_GAL().
|
overridevirtualinherited |
Called when the window is shown for the first time.
Reimplemented from EDA_DRAW_PANEL_GAL.
Definition at line 768 of file pcb_draw_panel_gal.cpp.
References PCB_BASE_FRAME::ActivateGalCanvas(), DisplayError(), EDA_DRAW_PANEL_GAL::GAL_FALLBACK, PCB_BASE_FRAME::GetActiveLayer(), PCB_BASE_FRAME::GetDisplayOptions(), EDA_DRAW_PANEL_GAL::GetParentEDAFrame(), PCB_BASE_FRAME::GetPcbNewSettings(), KIGFX::PCB_PAINTER::GetSettings(), EDA_DRAW_PANEL_GAL::IsDialogPreview(), KIGFX::PCB_RENDER_SETTINGS::LoadDisplayOptions(), EDA_DRAW_PANEL_GAL::m_backend, PCBNEW_SETTINGS::m_Display, KIGFX::PCB_RENDER_SETTINGS::m_ForceShowFieldsWhenFPSelected, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_ForceShowFieldsWhenFPSelected, EDA_DRAW_PANEL_GAL::m_view, SetTopLayer(), and SwitchBackend().
|
protectedinherited |
Definition at line 656 of file draw_panel_gal.cpp.
References m_gal, and OnShow().
Referenced by EDA_DRAW_PANEL_GAL(), and ~EDA_DRAW_PANEL_GAL().
|
protectedinherited |
Definition at line 355 of file draw_panel_gal.cpp.
References EDA_BASE_FRAME::GetInfoBar(), GetParentEDAFrame(), WX_INFOBAR::IsLocked(), m_gal, m_view, KIGFX::TARGET_CACHED, KIGFX::TARGET_NONCACHED, and ToVECTOR2I().
Referenced by EDA_DRAW_PANEL_GAL().
|
inherited |
Return a reference to the PROJECT associated with this KIWAY.
Definition at line 36 of file kiway_holder.cpp.
References Kiway(), and KIWAY::Prj().
Referenced by DESIGN_BLOCK_TREE_MODEL_ADAPTER::AddLibraries(), FP_TREE_MODEL_ADAPTER::AddLibraries(), SYMBOL_TREE_MODEL_ADAPTER::AddLibraries(), AskSaveBoardFileName(), DIALOG_SYMBOL_REMAP::backupProject(), CVPCB_MAINFRAME::buildEquivalenceList(), CVPCB_MAINFRAME::BuildLibrariesList(), PCB_BASE_FRAME::canCloseWindow(), SIMULATOR_FRAME::canCloseWindow(), KICAD_MANAGER_FRAME::CloseProject(), PCB_BASE_FRAME::CreateNewFootprint(), DIALOG_SYMBOL_REMAP::createProjectSymbolLibTable(), DIALOG_ANNOTATE::DIALOG_ANNOTATE(), DIALOG_BOARD_REANNOTATE::DIALOG_BOARD_REANNOTATE(), DIALOG_BOARD_SETUP::DIALOG_BOARD_SETUP(), DIALOG_BOARD_STATISTICS::DIALOG_BOARD_STATISTICS(), DIALOG_CHANGE_SYMBOLS::DIALOG_CHANGE_SYMBOLS(), DIALOG_CONFIG_EQUFILES::DIALOG_CONFIG_EQUFILES(), DIALOG_EXCHANGE_FOOTPRINTS::DIALOG_EXCHANGE_FOOTPRINTS(), DIALOG_GEN_FOOTPRINT_POSITION::DIALOG_GEN_FOOTPRINT_POSITION(), DIALOG_IBIS_PARSER_REPORTER::DIALOG_IBIS_PARSER_REPORTER(), DIALOG_IMPORT_NETLIST::DIALOG_IMPORT_NETLIST(), DIALOG_PAGES_SETTINGS::DIALOG_PAGES_SETTINGS(), DIALOG_PLOT::DIALOG_PLOT(), DIALOG_PLOT_SCHEMATIC::DIALOG_PLOT_SCHEMATIC(), DIALOG_SCHEMATIC_SETUP::DIALOG_SCHEMATIC_SETUP(), DIALOG_SIM_MODEL< T >::DIALOG_SIM_MODEL(), DIALOG_SYMBOL_FIELDS_TABLE::DIALOG_SYMBOL_FIELDS_TABLE(), DIALOG_SYMBOL_REMAP::DIALOG_SYMBOL_REMAP(), DIALOG_UPDATE_FROM_PCB::DIALOG_UPDATE_FROM_PCB(), DIALOG_UPDATE_PCB::DIALOG_UPDATE_PCB(), FOOTPRINT_PREVIEW_PANEL::DisplayFootprint(), CVPCB_MAINFRAME::DisplayStatus(), DIALOG_TABLE_PROPERTIES::getContextualTextVars(), DIALOG_TABLECELL_PROPERTIES::getContextualTextVars(), DIALOG_TEXT_PROPERTIES::getContextualTextVars(), EDA_3D_VIEWER_FRAME::getExportFileName(), PCB_BASE_FRAME::GetLibraryItemsForListDialog(), SCH_BASE_FRAME::GetLibraryItemsForListDialog(), DIALOG_SYMBOL_REMAP::getLibsNotInGlobalSymbolLibTable(), SCH_BASE_FRAME::GetLibSymbol(), DIALOG_PLOT_SCHEMATIC::getOutputPath(), KICAD_MANAGER_FRAME::GetProjectFileName(), API_HANDLER_PCB::handleRevertDocument(), FIELDS_GRID_TABLE::initGrid(), PCB_BASE_FRAME::loadFootprint(), CVPCB_MAINFRAME::LoadFootprintFiles(), KICAD_MANAGER_FRAME::LoadProject(), SIMULATOR_FRAME::LoadSettings(), SIMULATOR_FRAME::LoadSimulator(), EDA_BASE_FRAME::LoadWindowState(), EDA_3D_VIEWER_FRAME::NewDisplay(), DIALOG_SIM_MODEL< T >::onBrowseButtonClick(), DIALOG_EXPORT_2581::onBrowseClicked(), DIALOG_EXPORT_ODBPP::onBrowseClicked(), DIALOG_EXPORT_STEP::onBrowseClicked(), DIALOG_GENCAD_EXPORT_OPTIONS::onBrowseClicked(), DIALOG_IMPORT_NETLIST::onBrowseNetlistFiles(), DIALOG_EDIT_SYMBOLS_LIBID::onClickOrphansButton(), DIALOG_SYMBOL_FIELDS_TABLE::OnExport(), DIALOG_EXPORT_STEP::onExportButton(), PCB_BASE_FRAME::OnFpChangeDebounceTimer(), DIALOG_GENDRILL::onGenReportFile(), KICAD_MANAGER_FRAME::OnIdle(), DIALOG_CONFIG_EQUFILES::OnOkClick(), KICAD_MANAGER_FRAME::OnOpenFileInTextEditor(), DIALOG_PLOT::onOpenOutputDirectory(), DIALOG_GEN_FOOTPRINT_POSITION::onOutputDirectoryBrowseClicked(), DIALOG_GENDRILL::onOutputDirectoryBrowseClicked(), DIALOG_PLOT::onOutputDirectoryBrowseClicked(), DIALOG_PLOT_SCHEMATIC::onOutputDirectoryBrowseClicked(), DIALOG_SYMBOL_FIELDS_TABLE::OnOutputFileBrowseClicked(), DIALOG_BOARD_SETUP::onPageChanged(), DIALOG_SCHEMATIC_SETUP::onPageChanged(), DIALOG_SYMBOL_REMAP::OnRemapSymbols(), DIALOG_DRC::OnSaveReport(), DIALOG_ERC::OnSaveReport(), SCH_BASE_FRAME::OnSymChange(), PANEL_FOOTPRINT_CHOOSER::PANEL_FOOTPRINT_CHOOSER(), PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL(), EDA_DRAW_FRAME::PrintDrawingSheet(), KICAD_MANAGER_FRAME::PrintPrjInfo(), KICAD_MANAGER_FRAME::ProjectChanged(), CVPCB_MAINFRAME::readNetListAndFpFiles(), EDA_3D_VIEWER_FRAME::ReloadRequest(), SIMULATOR_FRAME::ReloadSimulator(), DIALOG_SYMBOL_REMAP::remapSymbolToLibTable(), SAVE_AS_DIALOG::SAVE_AS_DIALOG(), SAVE_SYMBOL_AS_DIALOG::SAVE_SYMBOL_AS_DIALOG(), KICAD_MANAGER_FRAME::SaveOpenJobSetsToLocalSettings(), DIALOG_BOARD_STATISTICS::saveReportClicked(), EDA_BASE_FRAME::SaveSettings(), SIMULATOR_FRAME::SaveSettings(), SCH_BASE_FRAME::saveSymbolLibTables(), SCH_BASE_FRAME::SelectLibrary(), PCB_BASE_FRAME::setFPWatcher(), GERBVIEW_FRAME::SetPageSettings(), SCH_BASE_FRAME::setSymWatcher(), DIALOG_LIB_FIELDS_TABLE::SetupColumnProperties(), DIALOG_SYMBOL_FIELDS_TABLE::SetupColumnProperties(), BOARD_EDITOR_CONTROL::ShowEeschema(), DIALOG_EDIT_SYMBOLS_LIBID::TransferDataFromWindow(), DIALOG_EXPORT_2581::TransferDataFromWindow(), DIALOG_EXPORT_NETLIST::TransferDataFromWindow(), DIALOG_SIM_MODEL< T >::TransferDataFromWindow(), DIALOG_EXPORT_2581::TransferDataToWindow(), KICAD_MANAGER_FRAME::UnarchiveFiles(), DIALOG_PAGES_SETTINGS::UpdateDrawingSheetExample(), SIMULATOR_FRAME::UpdateTitle(), DIALOG_FOOTPRINT_PROPERTIES::~DIALOG_FOOTPRINT_PROPERTIES(), and EDA_3D_VIEWER_FRAME::~EDA_3D_VIEWER_FRAME().
|
inherited |
Return the bounding box of the view that should be used if model is not valid.
For example, the drawing sheet bounding box for an empty PCB
Definition at line 833 of file pcb_draw_panel_gal.cpp.
References m_ratsnest, and EDA_DRAW_PANEL_GAL::m_view.
Referenced by PCB_EDIT_FRAME::HardRedraw(), BOARD_COMMIT::Push(), PCB_CONTROL::RatsnestModeCycle(), PCB_BASE_FRAME::rebuildConnectivity(), ZONE_FILLER_TOOL::rebuildConnectivity(), PCB_CONTROL::ToggleRatsnest(), and GLOBAL_EDIT_TOOL::ZonesManager().
|
overridevirtualinherited |
Reimplemented in SCH_PREVIEW_PANEL.
Definition at line 399 of file draw_panel_gal.cpp.
References DoRePaint(), and RequestRefresh().
Referenced by PCB_EDIT_FRAME::ActivateGalCanvas(), SCH_EDIT_FRAME::AnnotateSymbols(), GERBVIEW_CONTROL::ClearAllLayers(), FOOTPRINT_WIZARD_FRAME::ClickOnPageList(), SYMBOL_EDIT_FRAME::CommonSettingsChanged(), PCB_BASE_EDIT_FRAME::configureToolbars(), FOOTPRINT_EDITOR_CONTROL::CreateFootprint(), COMMON_TOOLS::doCenter(), COMMON_TOOLS::doZoomFit(), GERBVIEW_FRAME::Erase_Current_DrawLayer(), PCB_EDIT_FRAME::ExecuteRemoteCommand(), PCB_BASE_FRAME::FocusOnItems(), PL_EDITOR_FRAME::GetLayoutFromRedoList(), PL_EDITOR_FRAME::GetLayoutFromUndoList(), PCB_VIEWER_TOOLS::GraphicOutlines(), API_HANDLER_PCB::handleSetBoardEditorAppearanceSettings(), PL_EDITOR_FRAME::HardRedraw(), GERBVIEW_CONTROL::HighlightControl(), DISPLAY_FOOTPRINTS_FRAME::InitDisplay(), SCH_EDIT_FRAME::KiwayMailIn(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromBoard(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromLibrary(), GERBVIEW_FRAME::LoadListOfGerberAndDrillFiles(), SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic(), GERBVIEW_CONTROL::LoadZipfile(), PCB_VIEWER_TOOLS::MeasureTool(), FOOTPRINT_EDIT_FRAME::OnEditItemRequest(), PANEL_COMPONENT_CLASS_ASSIGNMENT::OnHighlightItemsClick(), SCH_EDIT_FRAME::OnModify(), PCB_EDIT_FRAME::OnNetlistChanged(), SCH_EDIT_FRAME::onNetNavigatorSelection(), DIALOG_SYMBOL_REMAP::OnRemapSymbols(), GERBVIEW_FRAME::OnSelectActiveDCode(), GERBVIEW_FRAME::OnSelectActiveLayer(), PL_EDITOR_FRAME::OnSelectCoordOriginCorner(), PL_EDITOR_FRAME::OnSelectPage(), GERBVIEW_CONTROL::OpenJobFile(), FOOTPRINT_EDIT_FRAME::OpenProjectFiles(), GERBVIEW_CONTROL::OpenZipFile(), PCB_VIEWER_TOOLS::PadDisplayMode(), ROUTER_TOOL::performRouting(), POSITION_RELATIVE_TOOL::PositionRelativeInteractively(), ROUTER_TOOL::prepareInteractive(), PCB_CONTROL::RatsnestModeCycle(), PCB_EDIT_FRAME::RebuildAndRefresh(), SYMBOL_EDIT_FRAME::RebuildView(), SYMBOL_VIEWER_FRAME::ReCreateLibList(), FOOTPRINT_VIEWER_FRAME::ReCreateLibraryList(), FOOTPRINT_WIZARD_FRAME::ReCreatePageList(), SCH_BASE_FRAME::RedrawScreen(), SCH_PREVIEW_PANEL::Refresh(), ZONE_FILLER_TOOL::refresh(), EDA_DRAW_FRAME::RefreshCanvas(), FOOTPRINT_WIZARD_FRAME::RegenerateFootprint(), POSITION_RELATIVE_TOOL::RelativeItemSelectionMove(), DISPLAY_FOOTPRINTS_FRAME::ReloadFootprint(), GERBVIEW_FRAME::RemapLayers(), PCB_BASE_EDIT_FRAME::RestoreCopyFromRedoList(), PCB_BASE_EDIT_FRAME::RestoreCopyFromUndoList(), FOOTPRINT_EDIT_FRAME::RevertFootprint(), PCB_BASE_EDIT_FRAME::RollbackFromUndo(), PL_EDITOR_FRAME::RollbackFromUndo(), SCH_EDIT_FRAME::RollbackSchematicFromUndo(), FOOTPRINT_VIEWER_FRAME::SelectAndViewFootprint(), FOOTPRINT_EDIT_FRAME::SetActiveLayer(), GERBVIEW_FRAME::SetActiveLayer(), PCB_EDIT_FRAME::SetActiveLayer(), SYMBOL_EDIT_FRAME::SetCurSymbol(), PCB_BASE_FRAME::SetDisplayOptions(), EDA_DRAW_FRAME::SetGridVisibility(), GERBVIEW_FRAME::SetLayerDrawPrms(), PCB_BASE_FRAME::SetPlotSettings(), SYMBOL_VIEWER_FRAME::SetSelectedLibrary(), PCB_EDIT_FRAME::ShowBoardSetupDialog(), SYMBOL_EDIT_FRAME::ShowChangedLanguage(), PCB_EDIT_FRAME::ShowFootprintPropertiesDialog(), PCB_VIEWER_TOOLS::ShowPadNumbers(), SCH_EDIT_FRAME::ShowSchematicSetupDialog(), PCB_BASE_FRAME::SwitchLayer(), PCB_EDIT_FRAME::SwitchLayer(), PCB_VIEWER_TOOLS::TextOutlines(), PCB_CONTROL::ToggleRatsnest(), PCB_CONTROL::TrackDisplayMode(), SYMBOL_VIEWER_FRAME::updatePreviewSymbol(), PANEL_ASSIGN_COMPONENT_CLASSES::Validate(), PCB_CONTROL::ViaDisplayMode(), and PCB_CONTROL::ZoneDisplayMode().
|
overridevirtual |
Force the redrawing of all contents.
Implements FOOTPRINT_PREVIEW_PANEL_BASE.
Definition at line 233 of file footprint_preview_panel.cpp.
References EDA_DRAW_PANEL_GAL::ForceRefresh(), PCB_DRAW_PANEL_GAL::GetView(), KIGFX::REPAINT, and KIGFX::VIEW::UpdateAllItems().
|
private |
Definition at line 117 of file footprint_preview_panel.cpp.
References KIGFX::PCB_VIEW::Add(), KIGFX::ALL, CONTINUE, KIGFX::VIEW::GetPainter(), KIGFX::PAINTER::GetSettings(), PCB_DRAW_PANEL_GAL::GetView(), KIGFX::PCB_RENDER_SETTINGS::m_ContrastModeDisplay, m_dummyBoard, m_pinFunctions, NORMAL, pad, PCB_DIM_ALIGNED_T, PCB_DIM_CENTER_T, PCB_DIM_LEADER_T, PCB_DIM_ORTHOGONAL_T, PCB_DIM_RADIAL_T, KIGFX::VIEW::SetVisible(), and KIGFX::PCB_VIEW::Update().
Referenced by DisplayFootprint(), and DisplayFootprints().
|
inherited |
Make sure a refresh gets done on the next idle event if it hasn't already.
Definition at line 393 of file draw_panel_gal.cpp.
References m_needIdleRefresh.
|
inherited |
Set the current cursor shape for this panel.
Definition at line 665 of file draw_panel_gal.cpp.
References DPI_SCALING_COMMON::GetContentScaleFactor(), m_gal, and m_parent.
Referenced by EDIT_TOOL::doMoveSelection(), PAD_TOOL::EnumeratePads(), PCB_VIEWER_TOOLS::MeasureTool(), and SwitchBackend().
|
protectedinherited |
Definition at line 849 of file pcb_draw_panel_gal.cpp.
References BITMAP_LAYER_FOR, CLEARANCE_LAYER_FOR, GAL_LAYER_ORDER, EDA_DRAW_PANEL_GAL::GAL_TYPE_OPENGL, GetNetnameLayer(), IsCopperLayer(), IsNetnameLayer(), IsNonCopperLayer(), LAYER_ANCHOR, LAYER_BOARD_OUTLINE_AREA, LAYER_CONFLICTS_SHADOW, LAYER_DRAWINGSHEET, LAYER_DRC_ERROR, LAYER_DRC_EXCLUSION, LAYER_DRC_SHAPES, LAYER_DRC_WARNING, LAYER_GP_OVERLAY, LAYER_GRID, LAYER_LOCKED_ITEM_SHADOW, LAYER_MARKER_SHADOWS, LAYER_NON_PLATEDHOLES, LAYER_PAD_HOLEWALLS, LAYER_PAD_NETNAMES, LAYER_PAD_PLATEDHOLES, LAYER_PADS, LAYER_RATSNEST, LAYER_SELECT_OVERLAY, LAYER_UI_END, LAYER_UI_START, LAYER_VIA_BBLIND, LAYER_VIA_HOLES, LAYER_VIA_HOLEWALLS, LAYER_VIA_MICROVIA, LAYER_VIA_NETNAMES, LAYER_VIA_THROUGH, LAYER_VIAS, EDA_DRAW_PANEL_GAL::m_backend, EDA_DRAW_PANEL_GAL::m_view, PAD_COPPER_LAYER_FOR, POINT_LAYER_FOR, KIGFX::TARGET_CACHED, KIGFX::TARGET_NONCACHED, KIGFX::TARGET_OVERLAY, VIA_COPPER_LAYER_FOR, KIGFX::VIEW::VIEW_MAX_LAYERS, and ZONE_LAYER_FOR.
Referenced by PCB_DRAW_PANEL_GAL(), and SwitchBackend().
|
protectedinherited |
< Reassign layer order to the initial settings.
Set rendering targets & dependencies for layers.
Definition at line 807 of file pcb_draw_panel_gal.cpp.
References GAL_LAYER_ORDER, LAYER_BITMAP_END, LAYER_BITMAP_START, EDA_DRAW_PANEL_GAL::m_view, KIGFX::VIEW::TOP_LAYER_MODIFIER, and KIGFX::VIEW::VIEW_MAX_LAYERS.
Referenced by PCB_DRAW_PANEL_GAL(), and SetTopLayer().
|
inherited |
Sets (or updates) drawing-sheet used by the draw panel.
aDrawingSheet | is the drawing-sheet to be used. The object is then owned by PCB_DRAW_PANEL_GAL. |
Definition at line 494 of file pcb_draw_panel_gal.cpp.
References m_drawingSheet, and EDA_DRAW_PANEL_GAL::m_view.
Referenced by PCB_EDIT_FRAME::SetPageSettings().
|
inherited |
Set a dispatcher that processes events and forwards them to tools.
#DRAW_PANEL_GAL does not take over the ownership. Passing NULL disconnects all event handlers from the #DRAW_PANEL_GAL and parent frame.
aEventDispatcher | is the object that will be used for dispatching events. |
Definition at line 431 of file draw_panel_gal.cpp.
References m_eventDispatcher.
Referenced by GERBVIEW_FRAME::ActivateGalCanvas(), PCB_BASE_FRAME::ActivateGalCanvas(), FOOTPRINT_EDIT_FRAME::doCloseWindow(), EVT_GRID_CMD_CELL_CHANGED(), FOOTPRINT_CHOOSER_FRAME::FOOTPRINT_CHOOSER_FRAME(), FOOTPRINT_EDIT_FRAME::setupTools(), PL_EDITOR_FRAME::setupTools(), SCH_EDIT_FRAME::setupTools(), SYMBOL_EDIT_FRAME::setupTools(), and SYMBOL_VIEWER_FRAME::setupTools().
|
overrideinherited |
Definition at line 186 of file draw_panel_gal.cpp.
References KIPLATFORM::UI::ImeNotifyCancelComposition(), and m_lostFocus.
Referenced by ZONE_CREATE_HELPER::createNewZone(), onEnter(), OnEvent(), PCB_EDIT_FRAME::OpenProjectFiles(), SCH_DRAW_PANEL::SCH_DRAW_PANEL(), SCH_PREVIEW_PANEL::SCH_PREVIEW_PANEL(), FOOTPRINT_EDIT_FRAME::SetActiveLayer(), GERBVIEW_FRAME::SetActiveLayer(), PCB_EDIT_FRAME::SetActiveLayer(), PCB_EDIT_FRAME::ShowBoardSetupDialog(), ZONE_FILLER_TOOL::singleShotRefocus(), PCB_EDIT_FRAME::ToggleSearch(), and PCB_EDIT_FRAME::Tracks_and_Vias_Size_Event().
|
inlineoverridevirtualinherited |
SetHighContrastLayer(), with some extra smarts for PCB.
Reimplemented from EDA_DRAW_PANEL_GAL.
Definition at line 71 of file pcb_draw_panel_gal.h.
References SetHighContrastLayer().
Referenced by FOOTPRINT_EDIT_FRAME::SetActiveLayer(), PCB_EDIT_FRAME::SetActiveLayer(), and SetHighContrastLayer().
|
inherited |
Move the selected layer to the top, so it is displayed above all others.
Definition at line 522 of file pcb_draw_panel_gal.cpp.
References B_Cu, BITMAP_LAYER_FOR, KIGFX::RENDER_SETTINGS::ClearHighContrastLayers(), F_Cu, GetNetnameLayer(), IsCopperLayer(), LAYER_ANCHOR, LAYER_CONFLICTS_SHADOW, LAYER_CURSOR, LAYER_DRC_ERROR, LAYER_DRC_EXCLUSION, LAYER_DRC_SHAPES, LAYER_DRC_WARNING, LAYER_FOOTPRINTS_BK, LAYER_FOOTPRINTS_FR, LAYER_GP_OVERLAY, LAYER_LOCKED_ITEM_SHADOW, LAYER_MARKER_SHADOWS, LAYER_NON_PLATEDHOLES, LAYER_PAD_BK_NETNAMES, LAYER_PAD_FR_NETNAMES, LAYER_PAD_HOLEWALLS, LAYER_PAD_NETNAMES, LAYER_PAD_PLATEDHOLES, LAYER_RATSNEST, LAYER_SELECT_OVERLAY, LAYER_UI_END, LAYER_UI_START, LAYER_VIA_BBLIND, LAYER_VIA_HOLES, LAYER_VIA_HOLEWALLS, LAYER_VIA_MICROVIA, LAYER_VIA_NETNAMES, LAYER_VIA_THROUGH, EDA_DRAW_PANEL_GAL::m_view, PAD_COPPER_LAYER_FOR, POINT_LAYER_FOR, KIGFX::RENDER_SETTINGS::SetActiveLayer(), KIGFX::RENDER_SETTINGS::SetLayerIsHighContrast(), SetTopLayer(), VIA_COPPER_LAYER_FOR, and ZONE_LAYER_FOR.
|
inherited |
It is only used for debugging, since "this" is not a wxWindow*.
"this" is a KIWAY_HOLDER mix-in.
aDest | is the recipient of aKiway pointer. |
aKiway | is often from a parent window or from KIFACE::CreateKiWindow(). |
Definition at line 43 of file kiway_holder.cpp.
References ignore_unused(), m_kiway, and name.
Referenced by PCB::IFACE::CreateKiWindow(), DIALOG_SHIM::DIALOG_SHIM(), InvokePcbLibTableEditor(), and InvokeSchEditSymbolLibTable().
|
inlineoverridevirtual |
Set the pin functions from the symbol's netlist.
This allows us to display them in the corresponding pads.
aPinFunctions | a map from pin_number to pin_function |
Implements FOOTPRINT_PREVIEW_PANEL_BASE.
Definition at line 58 of file footprint_preview_panel.h.
References m_pinFunctions.
|
inlineinherited |
Definition at line 99 of file class_draw_panel_gal.h.
References m_statusPopup.
Referenced by PAD_TOOL::EnumeratePads(), POSITION_RELATIVE_TOOL::PositionRelativeInteractively(), PCB_PICKER_TOOL::SelectItemInteractively(), and PCB_PICKER_TOOL::SelectPointInteractively().
|
inlineinherited |
Set whether focus is taken on certain events (mouseover, keys, etc).
This should be true (and is by default) for any primary canvas, but can be false to make well behaved preview panes and the like.
Definition at line 207 of file class_draw_panel_gal.h.
References m_stealsFocus.
Referenced by SYMBOL_VIEWER_FRAME::ClickOnSymbolList(), FOOTPRINT_PREVIEW_PANEL::FOOTPRINT_PREVIEW_PANEL(), and SYMBOL_VIEWER_FRAME::SetSelectedLibrary().
|
inlineoverridevirtualinherited |
SetTopLayer(), with some extra smarts for PCB.
Reimplemented from EDA_DRAW_PANEL_GAL.
Definition at line 80 of file pcb_draw_panel_gal.h.
References SetTopLayer().
Referenced by OnShow(), SetHighContrastLayer(), and SetTopLayer().
|
inherited |
Definition at line 580 of file pcb_draw_panel_gal.cpp.
References B_Adhes, B_CrtYd, B_Cu, B_Fab, B_Mask, B_Paste, B_SilkS, BITMAP_LAYER_FOR, CLEARANCE_LAYER_FOR, F_Adhes, F_CrtYd, F_Cu, F_Fab, F_Mask, F_Paste, F_SilkS, GetNetnameLayer(), IsBackLayer(), IsCopperLayer(), IsFrontLayer(), LAYER_CONFLICTS_SHADOW, LAYER_DRC_ERROR, LAYER_DRC_EXCLUSION, LAYER_DRC_SHAPES, LAYER_DRC_WARNING, LAYER_GP_OVERLAY, LAYER_MARKER_SHADOWS, LAYER_NON_PLATEDHOLES, LAYER_PAD_BK_NETNAMES, LAYER_PAD_FR_NETNAMES, LAYER_PAD_HOLEWALLS, LAYER_PAD_NETNAMES, LAYER_PAD_PLATEDHOLES, LAYER_RATSNEST, LAYER_SELECT_OVERLAY, LAYER_UI_END, LAYER_UI_START, LAYER_VIA_BBLIND, LAYER_VIA_HOLES, LAYER_VIA_HOLEWALLS, LAYER_VIA_MICROVIA, LAYER_VIA_NETNAMES, LAYER_VIA_THROUGH, EDA_DRAW_PANEL_GAL::m_view, NETNAMES_LAYER_INDEX, PAD_COPPER_LAYER_FOR, PCB_LAYER_ID_COUNT, POINT_LAYER_FOR, setDefaultLayerOrder(), VIA_COPPER_LAYER_FOR, and ZONE_LAYER_FOR.
|
inlineoverridevirtual |
Implements FOOTPRINT_PREVIEW_PANEL_BASE.
Definition at line 57 of file footprint_preview_panel.h.
References m_userUnits.
|
inherited |
Begin drawing if it was stopped previously.
Definition at line 437 of file draw_panel_gal.cpp.
References m_refreshTimer.
Referenced by EDA_DRAW_FRAME::ActivateGalCanvas(), GERBVIEW_FRAME::ActivateGalCanvas(), PCB_BASE_FRAME::ActivateGalCanvas(), DoRePaint(), FOOTPRINT_PREVIEW_PANEL::FOOTPRINT_PREVIEW_PANEL(), PANEL_ZONE_GAL::PANEL_ZONE_GAL(), SCH_DRAW_PANEL::SCH_DRAW_PANEL(), and SCH_PREVIEW_PANEL::SCH_PREVIEW_PANEL().
|
inlineinherited |
Definition at line 94 of file class_draw_panel_gal.h.
References m_statusPopup.
|
inherited |
Prevent the GAL canvas from further drawing until it is recreated or StartDrawing() is called.
Definition at line 444 of file draw_panel_gal.cpp.
References m_drawingEnabled, m_refreshTimer, onIdle(), and onPaint().
Referenced by FOOTPRINT_EDIT_FRAME::doCloseWindow(), FOOTPRINT_VIEWER_FRAME::doCloseWindow(), GERBVIEW_FRAME::doCloseWindow(), PCB_EDIT_FRAME::doCloseWindow(), SCH_BASE_FRAME::doCloseWindow(), DoRePaint(), SwitchBackend(), DISPLAY_FOOTPRINTS_FRAME::~DISPLAY_FOOTPRINTS_FRAME(), ~EDA_DRAW_PANEL_GAL(), FOOTPRINT_VIEWER_FRAME::~FOOTPRINT_VIEWER_FRAME(), and FOOTPRINT_WIZARD_FRAME::~FOOTPRINT_WIZARD_FRAME().
|
overridevirtualinherited |
Force refresh of the ratsnest visual representation.
Reimplemented from EDA_DRAW_PANEL_GAL.
Definition at line 824 of file pcb_draw_panel_gal.cpp.
References EDA_DRAW_PANEL_GAL::m_gal, setDefaultLayerDeps(), and EDA_DRAW_PANEL_GAL::SwitchBackend().
Referenced by OnShow().
|
inherited |
Update "visibility" property of each layer of a given BOARD.
aBoard | contains layers visibility settings to be applied. |
Definition at line 675 of file pcb_draw_panel_gal.cpp.
References GAL_LAYER_ID_END, GAL_LAYER_ID_START, BOARD::IsElementVisible(), BOARD::IsLayerVisible(), LAYER_BITMAP_END, LAYER_BITMAP_START, LAYER_CLEARANCE_END, LAYER_CLEARANCE_START, LAYER_DRC_SHAPES, LAYER_GP_OVERLAY, LAYER_MARKER_SHADOWS, LAYER_NON_PLATEDHOLES, LAYER_PAD_COPPER_END, LAYER_PAD_COPPER_START, LAYER_PAD_HOLEWALLS, LAYER_PAD_PLATEDHOLES, LAYER_POINT_END, LAYER_POINT_START, LAYER_RATSNEST, LAYER_SELECT_OVERLAY, LAYER_UI_END, LAYER_UI_START, LAYER_VIA_BBLIND, LAYER_VIA_COPPER_END, LAYER_VIA_COPPER_START, LAYER_VIA_HOLES, LAYER_VIA_HOLEWALLS, LAYER_VIA_MICROVIA, LAYER_VIA_THROUGH, LAYER_ZONE_END, LAYER_ZONE_START, EDA_DRAW_PANEL_GAL::m_view, NETNAMES_LAYER_ID_END, NETNAMES_LAYER_ID_START, and PCB_LAYER_ID_COUNT.
Referenced by PCB_BASE_EDIT_FRAME::ActivateGalCanvas(), FOOTPRINT_PREVIEW_PANEL::FOOTPRINT_PREVIEW_PANEL(), API_HANDLER_PCB::handleSetVisibleLayers(), PCB_EDIT_FRAME::OnBoardLoaded(), and PCB_EDIT_FRAME::RebuildAndRefresh().
|
inherited |
Update the color settings in the painter and GAL.
Take care of display settings for the given layer to be displayed in high contrast mode.
Definition at line 501 of file pcb_draw_panel_gal.cpp.
References DEFAULT_THEME, GetAppSettings(), COLOR_SETTINGS::GetColor(), GetColorSettings(), PCB_BASE_FRAME::GetColorSettings(), EDA_DRAW_PANEL_GAL::GetParentEDAFrame(), LAYER_CURSOR, LAYER_GRID, LAYER_GRID_AXES, KIGFX::PCB_RENDER_SETTINGS::LoadColors(), EDA_DRAW_PANEL_GAL::m_gal, and EDA_DRAW_PANEL_GAL::m_view.
Referenced by PCB_EDIT_FRAME::ActivateGalCanvas(), FOOTPRINT_PREVIEW_PANEL::FOOTPRINT_PREVIEW_PANEL(), FOOTPRINT_PREVIEW_PANEL::New(), PCB_BASE_FRAME::OnFpChangeDebounceTimer(), PANEL_ZONE_GAL::PANEL_ZONE_GAL(), PCB_BASE_EDIT_FRAME::SetBoard(), FOOTPRINT_EDIT_FRAME::UpdateView(), DISPLAY_FOOTPRINTS_FRAME::updateView(), FOOTPRINT_VIEWER_FRAME::updateView(), and FOOTPRINT_WIZARD_FRAME::updateView().
|
staticconstexprinherited |
Definition at line 75 of file class_draw_panel_gal.h.
Referenced by DISPLAY_FOOTPRINTS_FRAME::DISPLAY_FOOTPRINTS_FRAME(), DoRePaint(), EVT_GRID_CMD_CELL_CHANGED(), EVT_UPDATE_UI_RANGE(), PCB_DRAW_PANEL_GAL::OnShow(), SCH_DRAW_PANEL::OnShow(), EDA_DRAW_FRAME::resolveCanvasType(), FOOTPRINT_EDIT_FRAME::resolveCanvasType(), SCH_DESIGN_BLOCK_PREVIEW_WIDGET::SCH_DESIGN_BLOCK_PREVIEW_WIDGET(), SwitchBackend(), and SYMBOL_PREVIEW_WIDGET::SYMBOL_PREVIEW_WIDGET().
|
protectedinherited |
Currently used GAL.
Definition at line 304 of file class_draw_panel_gal.h.
Referenced by DoRePaint(), EDA_DRAW_PANEL_GAL(), GetBackend(), PCB_DRAW_PANEL_GAL::OnShow(), SCH_DRAW_PANEL::OnShow(), GERBVIEW_DRAW_PANEL_GAL::setDefaultLayerDeps(), PCB_DRAW_PANEL_GAL::setDefaultLayerDeps(), SCH_DRAW_PANEL::setDefaultLayerDeps(), and SwitchBackend().
|
private |
Definition at line 105 of file footprint_preview_panel.h.
Referenced by ClearViewAndData(), DisplayFootprint(), DisplayFootprints(), fitToCurrentFootprint(), and GetCurrentFootprint().
|
protectedinherited |
Optional overlay for drawing transient debug objects.
Definition at line 321 of file class_draw_panel_gal.h.
Referenced by ClearDebugOverlay(), and DebugOverlay().
|
private |
Definition at line 102 of file footprint_preview_panel.h.
Referenced by FOOTPRINT_PREVIEW_PANEL().
|
protectedinherited |
True if GAL is currently redrawing the view.
Definition at line 283 of file class_draw_panel_gal.h.
Referenced by DoRePaint(), EDA_DRAW_PANEL_GAL(), and ~EDA_DRAW_PANEL_GAL().
|
protectedinherited |
Flag that determines if VIEW may use GAL for redrawing the screen.
Definition at line 286 of file class_draw_panel_gal.h.
Referenced by DoRePaint(), EDA_DRAW_PANEL_GAL(), ForceRefresh(), and StopDrawing().
|
protectedinherited |
Currently used drawing-sheet.
Definition at line 119 of file pcb_draw_panel_gal.h.
Referenced by DisplayBoard(), GetDefaultViewBBox(), GetDrawingSheet(), and SetDrawingSheet().
|
private |
Definition at line 101 of file footprint_preview_panel.h.
Referenced by ClearViewAndData(), DisplayFootprint(), DisplayFootprints(), FOOTPRINT_PREVIEW_PANEL(), GetBoard(), and renderFootprint().
|
protectedinherited |
Parent EDA_DRAW_FRAME (if available)
Definition at line 274 of file class_draw_panel_gal.h.
Referenced by PL_DRAW_PANEL_GAL::DisplayDrawingSheet(), EDA_DRAW_PANEL_GAL(), GetParentEDAFrame(), IsDialogPreview(), onEnter(), and OnEvent().
|
protectedinherited |
Processes and forwards events to tools.
Definition at line 308 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL(), OnEvent(), and SetEventDispatcher().
|
protectedinherited |
Interface for drawing objects on a 2D-surface.
Definition at line 292 of file class_draw_panel_gal.h.
Referenced by DoRePaint(), EDA_DRAW_PANEL_GAL(), ForceRefresh(), GERBVIEW_DRAW_PANEL_GAL::GERBVIEW_DRAW_PANEL_GAL(), GetGAL(), SCH_DRAW_PANEL::onPaint(), onShowEvent(), onSize(), PANEL_ZONE_GAL::PANEL_ZONE_GAL(), PCB_DRAW_PANEL_GAL::PCB_DRAW_PANEL_GAL(), PL_DRAW_PANEL_GAL::PL_DRAW_PANEL_GAL(), SCH_DRAW_PANEL::SCH_DRAW_PANEL(), SCH_PREVIEW_PANEL::SCH_PREVIEW_PANEL(), SetCurrentCursor(), SwitchBackend(), PCB_DRAW_PANEL_GAL::SwitchBackend(), SCH_DRAW_PANEL::SwitchBackend(), PCB_DRAW_PANEL_GAL::UpdateColors(), and ~EDA_DRAW_PANEL_GAL().
|
privateinherited |
Definition at line 86 of file kiway_holder.h.
Referenced by HasKiway(), Kiway(), KIWAY_HOLDER(), and SetKiway().
|
protectedinherited |
Timestamp of the last repaint end.
Definition at line 277 of file class_draw_panel_gal.h.
Referenced by DoRePaint(), EDA_DRAW_PANEL_GAL(), and OnEvent().
|
protectedinherited |
Timestamp of the last repaint start.
Definition at line 276 of file class_draw_panel_gal.h.
Referenced by DoRePaint(), EDA_DRAW_PANEL_GAL(), and OnEvent().
|
protectedinherited |
Flag to indicate that focus should be regained on the next mouse event.
It is a workaround for cases when the panel loses keyboard focus, so it does not react to hotkeys anymore.
Definition at line 312 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL(), OnEvent(), onLostFocus(), and SetFocus().
|
inherited |
used on wxMSW: true after a wxEVT_MOUSE_CAPTURE_LOST was received false after the mouse is recaptured.
Used to avoid calling twice a CaptureMouse(), not accepted by wxMSW
Definition at line 260 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL().
|
protectedinherited |
True when canvas needs to be refreshed from idle handler.
Definition at line 289 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL(), onIdle(), and RequestRefresh().
|
protectedinherited |
Definition at line 305 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL(), and SwitchBackend().
|
private |
Definition at line 106 of file footprint_preview_panel.h.
Referenced by ClearViewAndData(), and DisplayFootprints().
|
protectedinherited |
Contains information about how to draw items using GAL.
Definition at line 298 of file class_draw_panel_gal.h.
Referenced by DoRePaint(), EDA_DRAW_PANEL_GAL(), GERBVIEW_DRAW_PANEL_GAL::GERBVIEW_DRAW_PANEL_GAL(), SCH_PREVIEW_PANEL::GetRenderSettings(), PANEL_ZONE_GAL::PANEL_ZONE_GAL(), PCB_DRAW_PANEL_GAL::PCB_DRAW_PANEL_GAL(), PL_DRAW_PANEL_GAL::PL_DRAW_PANEL_GAL(), SCH_DRAW_PANEL::SCH_DRAW_PANEL(), SCH_PREVIEW_PANEL::SCH_PREVIEW_PANEL(), and SwitchBackend().
|
inherited |
Definition at line 262 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL().
|
protectedinherited |
Pointer to the parent window.
Definition at line 273 of file class_draw_panel_gal.h.
Referenced by DoRePaint(), EDA_DRAW_PANEL_GAL(), IsDialogPreview(), SetCurrentCursor(), and SwitchBackend().
|
private |
Definition at line 104 of file footprint_preview_panel.h.
Referenced by renderFootprint(), and SetPinFunctions().
|
protectedinherited |
Ratsnest view item.
Definition at line 120 of file pcb_draw_panel_gal.h.
Referenced by DisplayBoard(), and RedrawRatsnest().
|
protectedinherited |
Blocks multiple calls to the draw.
Definition at line 280 of file class_draw_panel_gal.h.
Referenced by DoRePaint().
|
protectedinherited |
Timer to prevent too-frequent refreshing.
Definition at line 278 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL(), ForceRefresh(), StartDrawing(), and StopDrawing().
|
protectedinherited |
Definition at line 318 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL(), SetStatusPopup(), and StatusPopupHasFocus().
|
protectedinherited |
Flag to indicate whether the panel should take focus at certain times (when moused over, and on various mouse/key events)
Definition at line 316 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL(), onEnter(), OnEvent(), and SetStealsFocus().
|
privateinherited |
Definition at line 87 of file kiway_holder.h.
Referenced by GetType(), and KIWAY_HOLDER().
|
private |
Definition at line 103 of file footprint_preview_panel.h.
Referenced by FOOTPRINT_PREVIEW_PANEL(), and SetUserUnits().
|
protectedinherited |
Stores view settings (scale, center, etc.) and items to be drawn.
Definition at line 295 of file class_draw_panel_gal.h.
Referenced by PANEL_ZONE_GAL::ActivateSelectedZone(), ClearDebugOverlay(), DebugOverlay(), PCB_DRAW_PANEL_GAL::DisplayBoard(), PL_DRAW_PANEL_GAL::DisplayDrawingSheet(), DoRePaint(), EDA_DRAW_PANEL_GAL(), GERBVIEW_DRAW_PANEL_GAL::GERBVIEW_DRAW_PANEL_GAL(), GERBVIEW_DRAW_PANEL_GAL::GetDefaultViewBBox(), PCB_DRAW_PANEL_GAL::GetDefaultViewBBox(), GetView(), PCB_DRAW_PANEL_GAL::GetView(), SCH_DRAW_PANEL::GetView(), PANEL_ZONE_GAL::OnLayerSelected(), GERBVIEW_DRAW_PANEL_GAL::OnShow(), PCB_DRAW_PANEL_GAL::OnShow(), SCH_DRAW_PANEL::OnShow(), onSize(), PANEL_ZONE_GAL::PANEL_ZONE_GAL(), PCB_DRAW_PANEL_GAL::PCB_DRAW_PANEL_GAL(), PL_DRAW_PANEL_GAL::PL_DRAW_PANEL_GAL(), PCB_DRAW_PANEL_GAL::RedrawRatsnest(), SCH_DRAW_PANEL::SCH_DRAW_PANEL(), SCH_PREVIEW_PANEL::SCH_PREVIEW_PANEL(), GERBVIEW_DRAW_PANEL_GAL::setDefaultLayerDeps(), PCB_DRAW_PANEL_GAL::setDefaultLayerDeps(), PL_DRAW_PANEL_GAL::setDefaultLayerDeps(), SCH_DRAW_PANEL::setDefaultLayerDeps(), SCH_PREVIEW_PANEL::setDefaultLayerDeps(), PCB_DRAW_PANEL_GAL::setDefaultLayerOrder(), SCH_DRAW_PANEL::setDefaultLayerOrder(), SCH_PREVIEW_PANEL::setDefaultLayerOrder(), GERBVIEW_DRAW_PANEL_GAL::SetDrawingSheet(), PCB_DRAW_PANEL_GAL::SetDrawingSheet(), SetHighContrastLayer(), GERBVIEW_DRAW_PANEL_GAL::SetHighContrastLayer(), PCB_DRAW_PANEL_GAL::SetHighContrastLayer(), SetTopLayer(), GERBVIEW_DRAW_PANEL_GAL::SetTopLayer(), PCB_DRAW_PANEL_GAL::SetTopLayer(), PL_DRAW_PANEL_GAL::SetTopLayer(), SwitchBackend(), GERBVIEW_DRAW_PANEL_GAL::SwitchBackend(), PCB_DRAW_PANEL_GAL::SyncLayersVisibility(), PCB_DRAW_PANEL_GAL::UpdateColors(), SCH_PREVIEW_PANEL::view(), PANEL_ZONE_GAL::ZoomFitScreen(), and ~EDA_DRAW_PANEL_GAL().
|
protectedinherited |
Control for VIEW (moving, zooming, etc.)
Definition at line 301 of file class_draw_panel_gal.h.
Referenced by DoRePaint(), EDA_DRAW_PANEL_GAL(), GERBVIEW_DRAW_PANEL_GAL::GERBVIEW_DRAW_PANEL_GAL(), GetViewControls(), onLostFocus(), PCB_DRAW_PANEL_GAL::PCB_DRAW_PANEL_GAL(), PL_DRAW_PANEL_GAL::PL_DRAW_PANEL_GAL(), SCH_DRAW_PANEL::SCH_DRAW_PANEL(), SCH_PREVIEW_PANEL::SCH_PREVIEW_PANEL(), and ~EDA_DRAW_PANEL_GAL().