39#include <wx/stattext.h>
45 bool aIncludeStatus ) :
70 m_preview->ShowScrollbars( wxSHOW_SB_NEVER, wxSHOW_SB_NEVER );
71 m_preview->GetGAL()->SetAxesEnabled(
false );
77 m_preview->GetGAL()->SetGridVisibility(
true );
87 const COLOR4D& backgroundColor = settings->GetBackgroundColor();
88 const COLOR4D& foregroundColor = settings->GetCursorColor();
90 m_preview->GetGAL()->SetClearColor( backgroundColor );
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;
219 if( !
static_cast<const SCH_FIELD*
>( item )->IsVisible() )
223 bBox.
Merge( item->GetBoundingBox() );
wxString m_ColorTheme
Active color theme name.
constexpr BOX2< Vec > & Merge(const BOX2< Vec > &aRect)
Modify the position and size of the rectangle in order to contain aRect.
Color settings are a bit different than most of the settings objects in that there can be more than o...
const wxString & GetSchematicFile() const
static constexpr GAL_TYPE GAL_FALLBACK
@ GAL_TYPE_OPENGL
OpenGL implementation.
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)
A color representation with 4 components: red, green, blue, alpha.
wxColour ToColour() const
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
void LoadColors(const COLOR_SETTINGS *aSettings) override
PGM_BASE & Pgm()
The global program "get" accessor.
COLOR_SETTINGS * GetColorSettings(const wxString &aName)
T * GetAppSettings(const char *aFilename)
VECTOR2< double > VECTOR2D
VECTOR2D ToVECTOR2D(const wxPoint &aPoint)