48 return wxT(
"SCH_TABLE" );
136 if( idx < (
int)
m_cells.size() )
187 const std::vector<KICAD_T>& aScanTypes )
override;
201 bool HitTest(
const VECTOR2I& aPosition,
int aAccuracy = 0 )
const override;
203 bool HitTest(
const BOX2I& aRect,
bool aContained,
int aAccuracy = 0 )
const override;
206 const VECTOR2I& aOffset,
bool aDimmed )
override;
209 const VECTOR2I& offset,
bool aForceNoFill,
bool aDimmed )
override;
212 int aUnit,
int aBodyStyle,
const VECTOR2I& aOffset,
bool aDimmed )
override;
226 void Show(
int nestLevel, std::ostream& os )
const override { ShowDummy( os ); }
BITMAPS
A list of all bitmap identifiers.
The base class for create windows for drawing purpose.
A base class for most all the KiCad significant classes used in schematics and boards.
KICAD_T Type() const
Returns the type of object.
virtual void SetParent(EDA_ITEM *aParent)
EDA_ITEM_FLAGS GetFlags() const
A color representation with 4 components: red, green, blue, alpha.
Base plotter engine class.
Base class for any item which can be embedded within the SCHEMATIC container class,...
void SetBorderWidth(int aWidth)
void SetSeparatorsStyle(const LINE_STYLE aStyle)
LINE_STYLE GetSeparatorsStyle() const
std::vector< int > ViewGetLayers() const override
Return the layers the item is drawn on (which may be more than its "home" layer)
double Similarity(const SCH_ITEM &aOther) const override
Return a measure of how likely the other object is to represent the same object.
bool operator<(const SCH_ITEM &aItem) const override
void Print(const SCH_RENDER_SETTINGS *aSettings, int aUnit, int aBodyStyle, const VECTOR2I &offset, bool aForceNoFill, bool aDimmed) override
Print an item.
void SetRowHeight(int aRow, int aHeight)
std::vector< SCH_TABLECELL * > m_cells
const STROKE_PARAMS & GetSeparatorsStroke() const
std::map< int, int > m_rowHeights
bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
void SwapData(SCH_ITEM *aItem) override
Swap the internal data structures aItem with the schematic item.
const BOX2I GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
void MirrorHorizontally(int aCenter) override
Mirror item horizontally about aCenter.
void SetColCount(int aCount)
bool StrokeExternal() const
virtual wxString GetClass() const override
Return the class name.
void InsertCell(int aIdx, SCH_TABLECELL *aCell)
void SetBorderColor(const COLOR4D &aColor)
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider, bool aFull) const override
Return a user-visible description string of this item.
LINE_STYLE GetBorderStyle() const
void SetSeparatorsColor(const COLOR4D &aColor)
int GetRowHeight(int aRow) const
void SetColWidth(int aCol, int aWidth)
COLOR4D GetSeparatorsColor() const
void SetStrokeHeader(bool aDoStroke)
std::vector< SCH_TABLECELL * > GetCells() const
void MirrorVertically(int aCenter) override
Mirror item vertically about aCenter.
INSPECT_RESULT Visit(INSPECTOR inspector, void *testData, const std::vector< KICAD_T > &aScanTypes) override
May be re-implemented for each derived class in order to handle all the types given by its member dat...
int GetColWidth(int aCol) const
void AddCell(SCH_TABLECELL *aCell)
void SetSeparatorsWidth(int aWidth)
const STROKE_PARAMS & GetBorderStroke() const
VECTOR2I GetCenter() const
void PrintBackground(const SCH_RENDER_SETTINGS *aSettings, int aUnit, int aBodyStyle, const VECTOR2I &aOffset, bool aDimmed) override
Print just the background fills.
VECTOR2I GetPosition() const override
void SetStrokeExternal(bool aDoStroke)
void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList) override
Populate aList of MSG_PANEL_ITEM objects with it's internal state for display purposes.
STROKE_PARAMS m_separatorsStroke
bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const override
Compare the item against the search criteria in aSearchData.
void Plot(PLOTTER *aPlotter, bool aBackground, const SCH_PLOT_OPTS &aPlotOpts, int aUnit, int aBodyStyle, const VECTOR2I &aOffset, bool aDimmed) override
Plot the item to aPlotter.
std::map< int, int > m_colWidths
void SetStrokeColumns(bool aDoStroke)
SCH_TABLECELL * GetCell(int aRow, int aCol) const
int GetSeparatorsWidth() const
bool StrokeColumns() const
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
void SetSeparatorsStroke(const STROKE_PARAMS &aParams)
static bool ClassOf(const EDA_ITEM *aItem)
void SetPosition(const VECTOR2I &aPos) override
STROKE_PARAMS m_borderStroke
void SetStrokeRows(bool aDoStroke)
void SetBorderStroke(const STROKE_PARAMS &aParams)
void SetBorderStyle(const LINE_STYLE aStyle)
COLOR4D GetBorderColor() const
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
bool StrokeHeader() const
bool operator==(const SCH_ITEM &aOther) const override
int GetBorderWidth() const
void Move(const VECTOR2I &aMoveVector) override
Move the item by aMoveVector to a new position.
void Rotate(const VECTOR2I &aCenter, bool aRotateCCW) override
Rotate the item around aCenter 90 degrees in the clockwise direction.
void RunOnChildren(const std::function< void(SCH_ITEM *)> &aFunction) override
Simple container to manage line stroke parameters.
void SetLineStyle(LINE_STYLE aLineStyle)
void SetWidth(int aWidth)
void SetColor(const KIGFX::COLOR4D &aColor)
LINE_STYLE GetLineStyle() const
KIGFX::COLOR4D GetColor() const
const INSPECTOR_FUNC & INSPECTOR
#define STRUCT_DELETED
flag indication structures to be erased
void delete_if(_Container &__c, _Function &&__f)
Deletes all values from __c for which __f returns true.
LINE_STYLE
Dashed line types.
VECTOR2< int32_t > VECTOR2I