KiCad PCB EDA Suite
|
#include <fields_grid_table.h>
Public Member Functions | |
FIELDS_GRID_TABLE (DIALOG_SHIM *aDialog, SCH_BASE_FRAME *aFrame, WX_GRID *aGrid, LIB_SYMBOL *aSymbol) | |
FIELDS_GRID_TABLE (DIALOG_SHIM *aDialog, SCH_EDIT_FRAME *aFrame, WX_GRID *aGrid, SCH_SYMBOL *aSymbol) | |
FIELDS_GRID_TABLE (DIALOG_SHIM *aDialog, SCH_EDIT_FRAME *aFrame, WX_GRID *aGrid, SCH_SHEET *aSheet) | |
FIELDS_GRID_TABLE (DIALOG_SHIM *aDialog, SCH_EDIT_FRAME *aFrame, WX_GRID *aGrid, SCH_LABEL_BASE *aLabel) | |
~FIELDS_GRID_TABLE () override | |
int | GetNumberRows () override |
int | GetNumberCols () override |
wxString | GetColLabelValue (int aCol) override |
bool | IsEmptyCell (int row, int col) override |
bool | CanGetValueAs (int aRow, int aCol, const wxString &aTypeName) override |
bool | CanSetValueAs (int aRow, int aCol, const wxString &aTypeName) override |
wxGridCellAttr * | GetAttr (int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) override |
wxString | GetValue (int aRow, int aCol) override |
bool | GetValueAsBool (int aRow, int aCol) override |
void | SetValue (int aRow, int aCol, const wxString &aValue) override |
void | SetValueAsBool (int aRow, int aCol, bool aValue) override |
wxString | StringFromBool (bool aValue) const |
bool | BoolFromString (wxString aValue) const |
Public Attributes | |
T | elements |
STL member. | |
Protected Member Functions | |
void | initGrid (WX_GRID *aGrid) |
void | onUnitsChanged (wxCommandEvent &aEvent) |
wxGridCellAttr * | enhanceAttr (wxGridCellAttr *aInputAttr, int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) |
Private Attributes | |
SCH_BASE_FRAME * | m_frame |
DIALOG_SHIM * | m_dialog |
KICAD_T | m_parentType |
int | m_mandatoryFieldCount |
LIB_SYMBOL * | m_part |
wxString | m_symbolNetlist |
wxString | m_curdir |
FIELD_VALIDATOR | m_fieldNameValidator |
FIELD_VALIDATOR | m_referenceValidator |
FIELD_VALIDATOR | m_valueValidator |
FIELD_VALIDATOR | m_urlValidator |
FIELD_VALIDATOR | m_nonUrlValidator |
FIELD_VALIDATOR | m_filepathValidator |
wxGridCellAttr * | m_readOnlyAttr |
wxGridCellAttr * | m_fieldNameAttr |
wxGridCellAttr * | m_referenceAttr |
wxGridCellAttr * | m_valueAttr |
wxGridCellAttr * | m_footprintAttr |
wxGridCellAttr * | m_urlAttr |
wxGridCellAttr * | m_nonUrlAttr |
wxGridCellAttr * | m_filepathAttr |
wxGridCellAttr * | m_boolAttr |
wxGridCellAttr * | m_vAlignAttr |
wxGridCellAttr * | m_hAlignAttr |
wxGridCellAttr * | m_orientationAttr |
wxGridCellAttr * | m_netclassAttr |
wxGridCellAttr * | m_fontAttr |
wxGridCellAttr * | m_colorAttr |
std::unique_ptr< NUMERIC_EVALUATOR > | m_eval |
std::map< std::pair< int, int >, wxString > | m_evalOriginal |
Definition at line 78 of file fields_grid_table.h.
FIELDS_GRID_TABLE::FIELDS_GRID_TABLE | ( | DIALOG_SHIM * | aDialog, |
SCH_BASE_FRAME * | aFrame, | ||
WX_GRID * | aGrid, | ||
LIB_SYMBOL * | aSymbol | ||
) |
Definition at line 133 of file fields_grid_table.cpp.
References initGrid().
FIELDS_GRID_TABLE::FIELDS_GRID_TABLE | ( | DIALOG_SHIM * | aDialog, |
SCH_EDIT_FRAME * | aFrame, | ||
WX_GRID * | aGrid, | ||
SCH_SYMBOL * | aSymbol | ||
) |
Definition at line 152 of file fields_grid_table.cpp.
References initGrid().
FIELDS_GRID_TABLE::FIELDS_GRID_TABLE | ( | DIALOG_SHIM * | aDialog, |
SCH_EDIT_FRAME * | aFrame, | ||
WX_GRID * | aGrid, | ||
SCH_SHEET * | aSheet | ||
) |
Definition at line 171 of file fields_grid_table.cpp.
References initGrid().
FIELDS_GRID_TABLE::FIELDS_GRID_TABLE | ( | DIALOG_SHIM * | aDialog, |
SCH_EDIT_FRAME * | aFrame, | ||
WX_GRID * | aGrid, | ||
SCH_LABEL_BASE * | aLabel | ||
) |
Definition at line 189 of file fields_grid_table.cpp.
References initGrid().
|
override |
Definition at line 369 of file fields_grid_table.cpp.
References m_boolAttr, m_colorAttr, m_fieldNameAttr, m_filepathAttr, m_fontAttr, m_footprintAttr, m_frame, m_hAlignAttr, m_netclassAttr, m_nonUrlAttr, m_orientationAttr, m_readOnlyAttr, m_referenceAttr, m_urlAttr, m_vAlignAttr, m_valueAttr, and onUnitsChanged().
bool FIELDS_GRID_TABLE::BoolFromString | ( | wxString | aValue | ) | const |
Definition at line 989 of file fields_grid_table.cpp.
Referenced by SetValue().
|
override |
Definition at line 424 of file fields_grid_table.cpp.
References FDC_ALLOW_AUTOPLACE, FDC_BOLD, FDC_COLOR, FDC_FONT, FDC_H_ALIGN, FDC_ITALIC, FDC_NAME, FDC_ORIENTATION, FDC_POSX, FDC_POSY, FDC_SHOW_NAME, FDC_SHOWN, FDC_TEXT_SIZE, FDC_V_ALIGN, and FDC_VALUE.
Referenced by CanSetValueAs().
|
override |
Definition at line 454 of file fields_grid_table.cpp.
References CanGetValueAs().
|
protectedinherited |
Definition at line 45 of file wx_grid.cpp.
Referenced by SCH_PIN_TABLE_DATA_MODEL::GetAttr(), GetAttr(), PRIVATE_LAYERS_GRID_TABLE::GetAttr(), and PCB_FIELDS_GRID_TABLE::GetAttr().
|
override |
Definition at line 460 of file fields_grid_table.cpp.
References DATASHEET_FIELD, WX_GRID_TABLE_BASE::enhanceAttr(), FDC_ALLOW_AUTOPLACE, FDC_BOLD, FDC_COLOR, FDC_FONT, FDC_H_ALIGN, FDC_ITALIC, FDC_NAME, FDC_ORIENTATION, FDC_POSX, FDC_POSY, FDC_SHOW_NAME, FDC_SHOWN, FDC_TEXT_SIZE, FDC_V_ALIGN, FDC_VALUE, FOOTPRINT_FIELD, TEMPLATES::GetFieldName(), PROJECT::GetProjectFile(), GetValue(), LIB_SYMBOL::IsPower(), m_boolAttr, m_colorAttr, m_fieldNameAttr, m_filepathAttr, m_fontAttr, m_footprintAttr, m_frame, m_hAlignAttr, m_mandatoryFieldCount, m_netclassAttr, m_nonUrlAttr, m_orientationAttr, m_parentType, m_part, m_readOnlyAttr, m_referenceAttr, PROJECT_FILE::m_SchematicSettings, SCHEMATIC_SETTINGS::m_TemplateFieldNames, TEMPLATE_FIELDNAME::m_URL, m_urlAttr, m_vAlignAttr, m_valueAttr, KIWAY_HOLDER::Prj(), REFERENCE_FIELD, SCH_LABEL_LOCATE_ANY_T, SCH_SHEET_T, SCH_SYMBOL_T, SHEETFILENAME, SHEETNAME, and VALUE_FIELD.
|
override |
Definition at line 400 of file fields_grid_table.cpp.
References _, FDC_ALLOW_AUTOPLACE, FDC_BOLD, FDC_COLOR, FDC_FONT, FDC_H_ALIGN, FDC_ITALIC, FDC_NAME, FDC_ORIENTATION, FDC_POSX, FDC_POSY, FDC_SHOW_NAME, FDC_SHOWN, FDC_TEXT_SIZE, FDC_V_ALIGN, and FDC_VALUE.
|
inlineoverride |
Definition at line 92 of file fields_grid_table.h.
References FDC_COUNT.
|
inlineoverride |
Definition at line 91 of file fields_grid_table.h.
Referenced by GetValue(), GetValueAsBool(), DIALOG_LIB_SYMBOL_PROPERTIES::OnMoveDown(), SetValue(), SetValueAsBool(), DIALOG_LABEL_PROPERTIES::TransferDataFromWindow(), DIALOG_LIB_SYMBOL_PROPERTIES::TransferDataFromWindow(), DIALOG_SHEET_PROPERTIES::TransferDataFromWindow(), and DIALOG_LIB_SYMBOL_PROPERTIES::TransferDataToWindow().
|
override |
Definition at line 588 of file fields_grid_table.cpp.
References _, SCH_FIELD::CanAutoplace(), CTX_LINE, DEFAULT_FONT_NAME, DO_TRANSLATE, EscapeString(), FDC_ALLOW_AUTOPLACE, FDC_BOLD, FDC_COLOR, FDC_FONT, FDC_H_ALIGN, FDC_ITALIC, FDC_NAME, FDC_ORIENTATION, FDC_POSX, FDC_POSY, FDC_SHOW_NAME, FDC_SHOWN, FDC_TEXT_SIZE, FDC_V_ALIGN, FDC_VALUE, SCH_FIELD::GetCanonicalName(), SCH_LABEL_BASE::GetDefaultFieldName(), SCH_SHEET::GetDefaultFieldName(), TEMPLATE_FIELDNAME::GetDefaultFieldName(), SCH_FIELD::GetEffectiveHorizJustify(), SCH_FIELD::GetEffectiveVertJustify(), EDA_TEXT::GetFont(), KIFONT::FONT::GetName(), SCH_FIELD::GetName(), GetNumberRows(), EDA_TEXT::GetText(), EDA_TEXT::GetTextAngle(), EDA_TEXT::GetTextColor(), EDA_TEXT::GetTextHeight(), EDA_TEXT::GetTextPos(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_INDETERMINATE, GR_TEXT_H_ALIGN_LEFT, GR_TEXT_H_ALIGN_RIGHT, GR_TEXT_V_ALIGN_BOTTOM, GR_TEXT_V_ALIGN_CENTER, GR_TEXT_V_ALIGN_INDETERMINATE, GR_TEXT_V_ALIGN_TOP, grid, INDETERMINATE_STATE, EDA_TEXT::IsBold(), EDA_ANGLE::IsHorizontal(), EDA_TEXT::IsItalic(), SCH_FIELD::IsNameShown(), EDA_TEXT::IsVisible(), m_evalOriginal, m_frame, m_mandatoryFieldCount, m_parentType, SCH_LABEL_LOCATE_ANY_T, SCH_SHEET_T, SCH_SYMBOL_T, StringFromBool(), UNITS_PROVIDER::StringFromValue(), KIGFX::COLOR4D::ToCSSString(), UnescapeString(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by GetAttr().
|
override |
Definition at line 707 of file fields_grid_table.cpp.
References SCH_FIELD::CanAutoplace(), FDC_ALLOW_AUTOPLACE, FDC_BOLD, FDC_ITALIC, FDC_SHOW_NAME, FDC_SHOWN, GetNumberRows(), EDA_TEXT::IsBold(), EDA_TEXT::IsItalic(), SCH_FIELD::IsNameShown(), and EDA_TEXT::IsVisible().
|
protected |
Definition at line 207 of file fields_grid_table.cpp.
References _, AddFileExtListToFilter(), DEFAULT_FONT_NAME, Fontconfig(), fonts, FRAME_SCH, FRAME_SCH_SYMBOL_EDITOR, FRAME_SCH_VIEWER, LIB_SYMBOL::GetEmbeddedFiles(), SCHEMATIC::GetEmbeddedFiles(), EMBEDDED_FILES::GetFontFiles(), EDA_BASE_FRAME::GetFrameType(), PROJECT::GetProjectFile(), PROJECT::GetProjectPath(), SCH_BASE_FRAME::GetScreen(), UNITS_PROVIDER::GetUserUnits(), KICAD_FONT_NAME, FILEEXT::KiCadSchematicFileExtension, LIB_SYMBOL_T, m_boolAttr, m_colorAttr, m_curdir, m_dialog, m_eval, m_fieldNameAttr, m_fieldNameValidator, m_filepathAttr, m_filepathValidator, m_fontAttr, m_footprintAttr, m_frame, m_hAlignAttr, m_netclassAttr, m_nonUrlAttr, m_nonUrlValidator, m_orientationAttr, m_parentType, m_part, m_readOnlyAttr, m_referenceAttr, m_referenceValidator, m_symbolNetlist, m_urlAttr, m_urlValidator, m_vAlignAttr, m_valueAttr, m_valueValidator, name, PROJECT_FILE::NetSettings(), SCH_FIELD::OnScintillaCharAdded(), onUnitsChanged(), Pgm(), KIWAY_HOLDER::Prj(), SCH_SCREEN::Schematic(), PROJECT_SCH::SchSearchS(), GRID_CELL_TEXT_EDITOR::SetValidator(), EMBEDDED_FILES::UpdateFontFiles(), and VALUE_FIELD.
Referenced by FIELDS_GRID_TABLE().
|
inlineoverride |
Definition at line 96 of file fields_grid_table.h.
|
protected |
Definition at line 391 of file fields_grid_table.cpp.
Referenced by initGrid(), and ~FIELDS_GRID_TABLE().
|
override |
Definition at line 726 of file fields_grid_table.cpp.
References _, ANGLE_HORIZONTAL, ANGLE_VERTICAL, BoolFromString(), CTX_LIBID, DEFAULT_FONT_NAME, EnsureFileExtension(), EscapeString(), FDC_ALLOW_AUTOPLACE, FDC_BOLD, FDC_COLOR, FDC_FONT, FDC_H_ALIGN, FDC_ITALIC, FDC_NAME, FDC_ORIENTATION, FDC_POSX, FDC_POSY, FDC_SHOW_NAME, FDC_SHOWN, FDC_TEXT_SIZE, FDC_V_ALIGN, FDC_VALUE, KIFONT::FONT::GetFont(), GetNumberRows(), EDA_TEXT::GetTextPos(), UNITS_PROVIDER::GetUserUnits(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_LEFT, GR_TEXT_H_ALIGN_RIGHT, GR_TEXT_V_ALIGN_BOTTOM, GR_TEXT_V_ALIGN_CENTER, GR_TEXT_V_ALIGN_TOP, EDA_TEXT::IsBold(), SCH_FIELD::IsHorizJustifyFlipped(), EDA_TEXT::IsItalic(), SCH_FIELD::IsVertJustifyFlipped(), KICAD_FONT_NAME, FILEEXT::KiCadSchematicFileExtension, LIB_SYMBOL_T, m_dialog, m_eval, m_evalOriginal, m_frame, m_parentType, EDA_TEXT::MapHorizJustify(), EDA_TEXT::MapVertJustify(), DIALOG_SHIM::OnModify(), SCH_SHEET_T, EDA_TEXT::SetBold(), SCH_FIELD::SetCanAutoplace(), EDA_TEXT::SetFont(), EDA_TEXT::SetHorizJustify(), EDA_TEXT::SetItalic(), SCH_FIELD::SetName(), SCH_FIELD::SetNameShown(), SCH_FIELD::SetText(), EDA_TEXT::SetTextAngle(), EDA_TEXT::SetTextColor(), EDA_TEXT::SetTextPos(), EDA_TEXT::SetTextSize(), EDA_TEXT::SetVertJustify(), EDA_TEXT::SetVisible(), SHEETFILENAME, UnescapeString(), VALUE_FIELD, UNITS_PROVIDER::ValueFromString(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
override |
Definition at line 894 of file fields_grid_table.cpp.
References FDC_ALLOW_AUTOPLACE, FDC_BOLD, FDC_ITALIC, FDC_SHOW_NAME, FDC_SHOWN, GetNumberRows(), m_dialog, DIALOG_SHIM::OnModify(), EDA_TEXT::SetBold(), SCH_FIELD::SetCanAutoplace(), EDA_TEXT::SetItalic(), SCH_FIELD::SetNameShown(), and EDA_TEXT::SetVisible().
wxString FIELDS_GRID_TABLE::StringFromBool | ( | bool | aValue | ) | const |
Definition at line 980 of file fields_grid_table.cpp.
Referenced by GetValue().
|
inherited |
STL member.
|
private |
Definition at line 143 of file fields_grid_table.h.
Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().
|
private |
Definition at line 149 of file fields_grid_table.h.
Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().
|
private |
Definition at line 126 of file fields_grid_table.h.
Referenced by initGrid().
|
private |
Definition at line 121 of file fields_grid_table.h.
Referenced by initGrid(), SetValue(), and SetValueAsBool().
|
private |
Definition at line 151 of file fields_grid_table.h.
Referenced by initGrid(), and SetValue().
|
private |
Definition at line 152 of file fields_grid_table.h.
Referenced by GetValue(), and SetValue().
|
private |
Definition at line 136 of file fields_grid_table.h.
Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().
|
private |
Definition at line 128 of file fields_grid_table.h.
Referenced by initGrid().
|
private |
Definition at line 142 of file fields_grid_table.h.
Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().
|
private |
Definition at line 133 of file fields_grid_table.h.
Referenced by initGrid().
|
private |
Definition at line 148 of file fields_grid_table.h.
Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().
|
private |
Definition at line 139 of file fields_grid_table.h.
Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().
|
private |
Definition at line 120 of file fields_grid_table.h.
Referenced by GetAttr(), GetValue(), initGrid(), SetValue(), and ~FIELDS_GRID_TABLE().
|
private |
Definition at line 145 of file fields_grid_table.h.
Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().
|
private |
Definition at line 123 of file fields_grid_table.h.
Referenced by GetAttr(), and GetValue().
|
private |
Definition at line 147 of file fields_grid_table.h.
Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().
|
private |
Definition at line 141 of file fields_grid_table.h.
Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().
|
private |
Definition at line 132 of file fields_grid_table.h.
Referenced by initGrid().
|
private |
Definition at line 146 of file fields_grid_table.h.
Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().
|
private |
Definition at line 122 of file fields_grid_table.h.
Referenced by GetAttr(), GetValue(), initGrid(), and SetValue().
|
private |
Definition at line 124 of file fields_grid_table.h.
Referenced by GetAttr(), and initGrid().
|
private |
Definition at line 135 of file fields_grid_table.h.
Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().
|
private |
Definition at line 137 of file fields_grid_table.h.
Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().
|
private |
Definition at line 129 of file fields_grid_table.h.
Referenced by initGrid().
|
private |
Definition at line 125 of file fields_grid_table.h.
Referenced by initGrid().
|
private |
Definition at line 140 of file fields_grid_table.h.
Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().
|
private |
Definition at line 131 of file fields_grid_table.h.
Referenced by initGrid().
|
private |
Definition at line 144 of file fields_grid_table.h.
Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().
|
private |
Definition at line 138 of file fields_grid_table.h.
Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().
|
private |
Definition at line 130 of file fields_grid_table.h.
Referenced by initGrid().