26#ifndef DS_PROXY_VIEW_ITEM_H
27#define DS_PROXY_VIEW_ITEM_H
57 const std::map<wxString, wxString>* aProperties );
125 void Show(
int x, std::ostream& st )
const override { }
135 return wxT(
"DS_PROXY_VIEW_ITEM" );
Information pertinent to a Pcbnew printed circuit board.
Store the list of graphic items: rect, lines, polygons and texts to draw/plot the title block and fra...
Non filled rectangle with thick segment.
void SetSheetPath(const std::string &aSheetPath)
Set the sheet path displayed in the title block.
void SetSheetCount(int aSheetCount)
Change the sheet-count number displayed in the title block.
void SetVariantName(const std::string &aVariant)
Set the current variant name and description to be shown on the drawing sheet.
const PROJECT * m_project
std::vector< int > ViewGetLayers() const override
void SetVariantDesc(const std::string &aVariantDesc)
void SetPageNumber(const std::string &aPageNumber)
Change the page number displayed in the title block.
int m_colorLayer
Layer that is used for drawing sheet color (LAYER_DRAWINGSHEET is always used for visibility).
const BOX2I ViewBBox() const override
const TITLE_BLOCK * m_titleBlock
void SetSheetName(const std::string &aSheetName)
Set the sheet name displayed in the title block.
void SetPageBorderColorLayer(int aLayerId)
Override the layer used to pick the color of the page border (normally LAYER_GRID)
~DS_PROXY_VIEW_ITEM() override
const PAGE_INFO & GetPageInfo()
std::string m_variantDesc
const EDA_IU_SCALE & m_iuScale
void SetIsFirstPage(bool aIsFirstPage)
Change if this is first page.
const std::map< wxString, wxString > * m_properties
void AttachToTracker(TEXT_VAR_TRACKER *aTracker)
Register this proxy with aTracker as a dependent on every title-block source variable its current tem...
const TITLE_BLOCK & GetTitleBlock()
bool HitTestDrawingSheetItems(KIGFX::VIEW *aView, const VECTOR2I &aPosition)
TEXT_VAR_TRACKER * m_attachedTracker
Tracker this proxy is currently registered with (null if detached).
void SetFileName(const std::string &aFileName)
Set the file name displayed in the title block.
void ViewDraw(int aLayer, KIGFX::VIEW *aView) const override
DS_PROXY_VIEW_ITEM(const EDA_IU_SCALE &aIuScale, const PAGE_INFO *aPageInfo, const PROJECT *aProject, const TITLE_BLOCK *aTitleBlock, const std::map< wxString, wxString > *aProperties)
void SetColorLayer(int aLayerId)
Can be used to override which layer ID is used for drawing sheet item colors.
std::string m_variantName
void buildDrawList(KIGFX::VIEW *aView, const std::map< wxString, wxString > *aProperties, DS_DRAW_ITEM_LIST *aDrawList) const
virtual wxString GetClass() const override
Get class name.
const PAGE_INFO * m_pageInfo
int m_pageBorderColorLayer
Layer that is used for page border color.
std::vector< TEXT_VAR_REF_KEY > CollectTextVarKeys() const
Walk the current drawing-sheet definition and collect every ${...} reference encountered in its text ...
EDA_ITEM(EDA_ITEM *parent, KICAD_T idType, bool isSCH_ITEM=false, bool isBOARD_ITEM=false)
Abstract interface for drawing on a 2D-surface.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
Describe the page size and margins of a paper page on which to eventually print or plot.
Container for project specific data.
Coordinates the dependency index with change notifications.
Hold the information shown in the lower right corner of a plot, printout, or editing view.
The Cairo implementation of the graphics abstraction layer.
Identifies a single resolvable source that a text item's ${...} reference depends on.
VECTOR2< int32_t > VECTOR2I