64    void setter( 
void* obj, wxAny& v )
 override 
   68        if( !v.GetAs( &value ) )
 
 
   86    wxAny 
getter( 
const void* obj )
 const override 
   92            return wxAny( field->
GetText() );
 
 
 
  202            aFallbackSelection.
Clear();
 
  204            return aFallbackSelection;
 
 
  217    return selection.
Empty() ? nullptr : selection.
Front();
 
 
  253            if( field.IsPrivate() )
 
  260    const wxString groupFields = 
_HKI( 
"Fields" );
 
 
  285        colorProp->SetBackgroundColor( bg );
 
 
  306    wxCHECK_MSG( firstItem, 
nullptr,
 
  307                 wxT( 
"getPropertyFromEvent for a property with nothing selected!") );
 
  310                                                     aEvent.GetPropertyName() );
 
  311    wxCHECK_MSG( property, 
nullptr,
 
  312                 wxT( 
"getPropertyFromEvent for a property not found on the selected item!" ) );
 
 
  330        wxVariant newValue = aEvent.GetPropertyValue();
 
  332        if( 
VALIDATOR_RESULT validationFailure = property->Validate( newValue.GetAny(), frontItem ) )
 
  334            wxString errorMsg = wxString::Format( wxS( 
"%s: %s" ), wxGetTranslation( property->Name() ),
 
  335                                                  validationFailure->get()->Format( 
m_frame ) );
 
  336            m_frame->ShowInfoBarError( errorMsg );
 
 
  356    wxVariant   newValue = aEvent.GetPropertyValue();
 
  362    for( 
EDA_ITEM* edaItem : selection )
 
  364        if( !edaItem->IsSCH_ITEM() )
 
  369        wxCHECK2( property, 
continue );
 
  375                && property->Name() == wxT( 
"Text" ) )
 
  378            wxCHECK2( symbol, 
continue );
 
  391        item->
Set( property, newValue );
 
  394            symbol->SyncOtherUnits( symbol->Schematic()->CurrentSheet(), changes, property );
 
  397    changes.
Push( 
_( 
"Edit Properties" ) );
 
  401    for( 
EDA_ITEM* edaItem : selection )
 
  402        m_frame->UpdateItem( edaItem );
 
 
COMMIT & Modify(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr, RECURSE_MODE aRecurse=RECURSE_MODE::NO_RECURSE)
Modify a given item in the model.
 
A base class for most all the KiCad significant classes used in schematics and boards.
 
KICAD_T Type() const
Returns the type of object.
 
EDA_ITEM * GetParent() const
 
virtual const wxString & GetText() const
Return the string associated with the text object.
 
Class that other classes need to inherit from, in order to be inspectable.
 
bool Set(PROPERTY_BASE *aProperty, wxAny &aValue, bool aNotify=true)
 
A color representation with 4 components: red, green, blue, alpha.
 
static const wxString EDITOR_NAME
 
static const wxString EDITOR_NAME
 
static wxString BuildEditorName(EDA_DRAW_FRAME *aFrame)
 
static wxString BuildEditorName(EDA_DRAW_FRAME *aFrame)
 
static wxString BuildEditorName(EDA_DRAW_FRAME *aFrame)
 
PROPERTIES_PANEL(wxWindow *aParent, EDA_BASE_FRAME *aFrame)
 
int m_SuppressGridChangeEvents
 
virtual void OnLanguageChanged(wxCommandEvent &aEvent)
 
virtual void rebuildProperties(const SELECTION &aSelection)
Generates the property grid for a given selection of items.
 
PROPERTY_BASE(const wxString &aName, PROPERTY_DISPLAY aDisplay=PT_DEFAULT, ORIGIN_TRANSFORMS::COORD_TYPES_T aCoordType=ORIGIN_TRANSFORMS::NOT_A_COORD)
< Used to generate unique IDs. Must come up front so it's initialized before ctor.
 
virtual bool Writeable(INSPECTABLE *aObject) const
 
const wxString & Name() const
 
Provide class metadata.Helper macro to map type hashes to names.
 
SCH_SHEET_PATH & CurrentSheet() const
 
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...
 
virtual void Push(const wxString &aMessage=wxT("A commit"), int aCommitFlags=0) override
Execute the changes.
 
void SetText(const wxString &aText) override
 
Base class for any item which can be embedded within the SCHEMATIC container class,...
 
const SYMBOL * GetParentSymbol() const
 
SCHEMATIC * Schematic() const
Search the item hierarchy to find a SCHEMATIC.
 
wxPGProperty * createPGProperty(const PROPERTY_BASE *aProperty) const override
 
PROPERTY_MANAGER & m_propMgr
 
PG_CHECKBOX_EDITOR * m_checkboxEditorInstance
 
PG_FPID_EDITOR * m_fpEditorInstance
 
const SELECTION & getSelection(SELECTION &aFallbackSelection)
Get the current selection from the selection tool.
 
void UpdateData() override
 
void valueChanging(wxPropertyGridEvent &aEvent) override
 
PG_UNIT_EDITOR * m_unitEditorInstance
 
static std::set< wxString > m_currentFieldNames
 
void AfterCommit() override
 
void valueChanged(wxPropertyGridEvent &aEvent) override
 
SCH_PROPERTIES_PANEL(wxWindow *aParent, SCH_BASE_FRAME *aFrame)
 
PG_COLOR_EDITOR * m_colorEditorInstance
 
EDA_ITEM * getFrontItem()
Get the front item of the current selection.
 
PROPERTY_BASE * getPropertyFromEvent(const wxPropertyGridEvent &aEvent) const
 
void OnLanguageChanged(wxCommandEvent &aEvent) override
 
virtual ~SCH_PROPERTIES_PANEL()
 
void rebuildProperties(const SELECTION &aSelection) override
Generates the property grid for a given selection of items.
 
PG_URL_EDITOR * m_urlEditorInstance
 
size_t BaseHash() const override
Return type-id of the Base class.
 
size_t OwnerHash() const override
Return type-id of the Owner class.
 
size_t TypeHash() const override
Return type-id of the property type.
 
wxAny getter(const void *obj) const override
 
SCH_SYMBOL_FIELD_PROPERTY(const wxString &aName)
 
bool Writeable(INSPECTABLE *aObject) const override
 
void setter(void *obj, wxAny &v) override
 
void SetRefProp(const wxString &aRef)
 
void SyncOtherUnits(const SCH_SHEET_PATH &aSourceSheet, SCH_COMMIT &aCommit, PROPERTY_BASE *aProperty)
Keep fields other than the reference, include/exclude flags, and alternate pin assignments in sync in...
 
void GetFields(std::vector< SCH_FIELD * > &aVector, bool aVisibleOnly) const override
Populate a std::vector with SCH_FIELDs, sorted in ordinal order.
 
SCH_FIELD * AddField(const SCH_FIELD &aField)
Add a field to the symbol.
 
SCH_FIELD * GetField(FIELD_T aFieldType)
Return a mandatory field in this symbol.
 
virtual void Add(EDA_ITEM *aItem)
 
virtual void Clear() override
Remove all the stored items from the group.
 
bool Empty() const
Checks if there is anything selected.
 
The symbol library editor main window.
 
LIB_SYMBOL * GetCurSymbol() const
Return the current symbol being edited or NULL if none selected.
 
@ FRAME_SCH_SYMBOL_EDITOR
 
@ LAYER_SCHEMATIC_BACKGROUND
 
wxPGProperty * PGPropertyFactory(const PROPERTY_BASE *aProperty, EDA_DRAW_FRAME *aFrame)
Customized abstract wxPGProperty class to handle coordinate/size units.
 
APIIMPORT wxPGGlobalVarsClass * wxPGGlobalVars
 
std::optional< std::unique_ptr< VALIDATION_ERROR > > VALIDATOR_RESULT
Null optional means validation succeeded.
 
static const wxString MISSING_FIELD_SENTINEL
 
@ USER
The field ID hasn't been set yet; field is invalid.
 
@ FOOTPRINT
Field Name Module PCB, i.e. "16DIP300".
 
@ DATASHEET
name of datasheet
 
@ REFERENCE
Field Reference of part, i.e. "IC21".
 
wxString GetCanonicalFieldName(FIELD_T aFieldType)