39#include <wx/stattext.h>
44 wxPanel( aParent, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 ),
47 m_statusPanel( nullptr ),
48 m_statusSizer( nullptr ),
49 m_previewItem( nullptr )
70 m_preview->ShowScrollbars( wxSHOW_SB_NEVER, wxSHOW_SB_NEVER );
87 const COLOR4D& backgroundColor = settings->GetBackgroundColor();
88 const COLOR4D& foregroundColor = settings->GetCursorColor();
92 settings->m_ShowPinsElectricalType =
false;
93 settings->m_ShowPinNumbers =
false;
94 settings->m_ShowHiddenPins =
false;
95 settings->m_ShowHiddenFields =
false;
96 settings->m_ShowPinAltIcons =
false;
206 SCH_IO_MGR::SCH_KICAD,
false,
true );
217 if( !
static_cast<const SCH_FIELD*
>( item )->IsVisible() )
221 bBox.
Merge( item->GetBoundingBox() );
wxString m_ColorTheme
Active color theme name.
constexpr size_type GetWidth() const
constexpr Vec Centre() const
constexpr BOX2< Vec > & Merge(const BOX2< Vec > &aRect)
Modify the position and size of the rectangle in order to contain aRect.
constexpr size_type GetHeight() const
const wxString & GetSchematicFile() const
static constexpr GAL_TYPE GAL_FALLBACK
virtual KIGFX::VIEW * GetView() const
Return a pointer to the #VIEW instance used in the panel.
void ForceRefresh()
Force a redraw.
@ GAL_TYPE_OPENGL
OpenGL implementation.
KIGFX::GAL * GetGAL() const
Return a pointer to the GAL instance used in the panel.
void SetStealsFocus(bool aStealsFocus)
Set whether focus is taken on certain events (mouseover, keys, etc).
A base class for most all the KiCad significant classes used in schematics and boards.
static SCHEMATIC * LoadSchematic(const wxString &aFileName, bool aSetActive, bool aForceDefaultProject, PROJECT *aProject=nullptr)
void ReadConfig(COMMON_SETTINGS &aCommonConfig, WINDOW_SETTINGS &aWindowConfig, wxWindow *aWindow)
Read application and common configs.
A color representation with 4 components: red, green, blue, alpha.
wxColour ToColour() const
bool m_forceDisplayCursor
The pixel scale factor (>1 for hi-DPI scaled displays)
void SetAxesEnabled(bool aAxesEnabled)
Enable drawing the axes.
void SetClearColor(const COLOR4D &aColor)
void SetGridVisibility(bool aVisibility)
Set the visibility setting of the grid.
virtual RENDER_SETTINGS * GetSettings()=0
Return a pointer to current settings that are going to be used when drawing items.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
virtual void SetScale(double aScale, VECTOR2D aAnchor={ 0, 0 })
Set the scaling factor, zooming around a given anchor point.
virtual void Add(VIEW_ITEM *aItem, int aDrawPriority=-1)
Add a VIEW_ITEM to the view.
void Clear()
Remove all items from the view.
VECTOR2D ToWorld(const VECTOR2D &aCoord, bool aAbsolute=true) const
Converts a screen space point/vector to a point/vector in world space coordinates.
PAINTER * GetPainter() const
Return the painter object used by the view for drawing #VIEW_ITEMS.
void SetCenter(const VECTOR2D &aCenter)
Set the center point of the VIEW (i.e.
virtual COMMON_SETTINGS * GetCommonSettings() const
virtual SETTINGS_MANAGER & GetSettingsManager() const
SCH_SHEET_PATH & CurrentSheet() const override
Instances are attached to a symbol or sheet and provide a place for the symbol's value,...
void LoadColors(const COLOR_SETTINGS *aSettings) override
EE_RTREE & Items()
Gets the full RTree, usually for iterating.
SCH_SCREEN * LastScreen()
COLOR_SETTINGS * GetColorSettings(const wxString &aName="user")
Retrieves a color settings object that applications can read colors from.
T * GetAppSettings(const wxString &aFilename)
Returns a handle to the a given settings by type If the settings have already been loaded,...
PGM_BASE & Pgm()
The global Program "get" accessor.
VECTOR2D ToVECTOR2D(const wxPoint &aPoint)