24#ifndef PROPERTIES_PANEL_H
25#define PROPERTIES_PANEL_H
28#include <wx/propgrid/propgrid.h>
81 virtual void valueChanging( wxPropertyGridEvent& aEvent ) { aEvent.Skip(); }
82 virtual void valueChanged( wxPropertyGridEvent& aEvent ) { aEvent.Skip(); }
84 void onShow( wxShowEvent& aEvent );
105 wxVariant& aValue,
bool& aWritable );
The base frame for deriving all KiCad main window classes.
A base class for most all the KiCad significant classes used in schematics and boards.
virtual ~PROPERTIES_PANEL()
float m_splitter_key_proportion
Proportion of the grid column splitter that is used for the key column (0.0 - 1.0)
virtual void valueChanging(wxPropertyGridEvent &aEvent)
bool extractValueAndWritability(const SELECTION &aSelection, PROPERTY_BASE *aProperty, wxVariant &aValue, bool &aWritable)
Processes a selection and determines whether the given property should be available or not and what t...
float SplitterProportion() const
const std::vector< PROPERTY_BASE * > & Properties() const
void RecalculateSplitterPos()
wxPropertyGrid * GetPropertyGrid()
void SetSplitterProportion(float aProportion)
int PropertiesCount() const
std::vector< PROPERTY_BASE * > m_displayed
virtual void AfterCommit()
virtual void OnLanguageChanged(wxCommandEvent &aEvent)
virtual void UpdateData()=0
virtual void valueChanged(wxPropertyGridEvent &aEvent)
bool getItemValue(EDA_ITEM *aItem, PROPERTY_BASE *aProperty, wxVariant &aValue)
Utility to fetch a property value and convert to wxVariant Precondition: aItem is known to have prope...
virtual void rebuildProperties(const SELECTION &aSelection)
Generates the property grid for a given selection of items.
void onCharHook(wxKeyEvent &aEvent)
virtual wxPGProperty * createPGProperty(const PROPERTY_BASE *aProperty) const =0
void onShow(wxShowEvent &aEvent)