85 double max_size_x = page_info.GetWidthIU() * 3.0;
86 double max_size_y = page_info.GetHeightIU() * 3.0;
128 std::shared_ptr< LIB_SYMBOL > parent;
137 LIB_FIELD* field = static_cast< LIB_FIELD* >( &item );
139 wxCHECK2( field,
continue );
141 if( field->
GetText().IsEmpty() )
154 drawnSymbol = parent.get();
void RefreshSelection()
Mark selected items for refresh.
void Hide(VIEW_ITEM *aItem, bool aHide=true)
Temporarily hide the item in the view (e.g.
std::unique_ptr< DS_PROXY_VIEW_ITEM > m_drawingSheet
LIB_SYMBOL_REF & GetParent()
const wxString & GetFileName() const
void ClearHiddenFlags()
Clear the hide flag of all items in the view.
std::unique_ptr< KIGFX::VIEW_GROUP > m_preview
The Cairo implementation of the graphics abstraction layer.
Field object used in symbol libraries.
int GetVirtualPageNumber() const
const TITLE_BLOCK & GetTitleBlock() const
void SetSize(const Vec &size)
Define a library symbol object.
const PAGE_INFO & GetPageSettings() const
WX_VIEW_CONTROLS class definition.
The base class for drawable items used by schematic library symbols.
std::shared_ptr< std::vector< VIEW_ITEM * > > m_allItems
The set of layers that are displayed on the top.
const wxString & GetPageNumber() const
#define TO_UTF8(wxstring)
Convert a wxString to a UTF8 encoded C string for all wxWidgets build modes.
#define MAX_PAGE_SIZE_EESCHEMA_MILS
void DisplaySheet(const SCH_SCREEN *aScreen)
void Clear()
Remove all items from the view.
Describe the page size and margins of a paper page on which to eventually print or plot.
void ResizeSheetWorkingArea(const SCH_SCREEN *aScreen)
LIB_ITEMS_CONTAINER & GetDrawItems()
Return a reference to the draw item list.
void SetScale(double aScale, VECTOR2D aAnchor={ 0, 0 }) override
Set the scaling factor, zooming around a given anchor point.
PROJECT & Prj() const override
Return a reference to the project this schematic is part of.
virtual void SetScale(double aScale, VECTOR2D aAnchor={ 0, 0 })
Set the scaling factor, zooming around a given anchor point.
bool IsType(FRAME_T aType) const
SCHEMATIC * Schematic() const
EE_RTREE & Items()
Gets the full RTree, usually for iterating.
void SetOrigin(const Vec &pos)
SCH_VIEW(bool aIsDynamic, SCH_BASE_FRAME *aFrame)
virtual void Add(VIEW_ITEM *aItem, int aDrawPriority=-1)
Add a VIEW_ITEM to the view.
void DisplaySymbol(LIB_SYMBOL *aSymbol)
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...
Base class for any item which can be embedded within the SCHEMATIC container class,...
virtual const wxString & GetText() const
Return the string associated with the text object.
virtual wxString GetScreenDesc() const