|
KiCad PCB EDA Suite
|
#include <footprint_wizard_properties_panel.h>
Classes | |
| struct | WIZARD_PARAM_INFO |
Public Member Functions | |
| FOOTPRINT_WIZARD_PROPERTIES_PANEL (wxWindow *aParent, FOOTPRINT_WIZARD_FRAME *aFrame) | |
| ~FOOTPRINT_WIZARD_PROPERTIES_PANEL () override | |
| void | UpdateData () override |
| void | RebuildParameters (FOOTPRINT_WIZARD *aWizard) |
| virtual void | AfterCommit () |
| wxPropertyGrid * | GetPropertyGrid () |
| int | PropertiesCount () const |
| const std::vector< PROPERTY_BASE * > & | Properties () const |
| void | RecalculateSplitterPos () |
| void | SetSplitterProportion (float aProportion) |
| float | SplitterProportion () const |
Public Attributes | |
| int | m_SuppressGridChangeEvents |
Protected Member Functions | |
| wxPGProperty * | createPGProperty (const PROPERTY_BASE *aProperty) const override |
| wxPGProperty * | createPGProperty (WIZARD_PARAMETER *aParam) const |
| void | valueChanged (wxPropertyGridEvent &aEvent) override |
| virtual void | rebuildProperties (const SELECTION &aSelection) |
| Generates the property grid for a given selection of items. | |
| virtual void | valueChanging (wxPropertyGridEvent &aEvent) |
| void | onCharHook (wxKeyEvent &aEvent) |
| void | onShow (wxShowEvent &aEvent) |
| virtual void | OnLanguageChanged (wxCommandEvent &aEvent) |
| virtual 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 property aProperty. | |
| bool | extractValueAndWritability (const SELECTION &aSelection, const wxString &aPropName, wxVariant &aValue, bool &aWritable, wxPGChoices &aChoices) |
| Processes a selection and determines whether the given property should be available or not and what the common value should be for the items in the selection. | |
Static Protected Member Functions | |
| static WIZARD_PARAMETER * | getParamFromEvent (const wxPropertyGridEvent &aEvent) |
Protected Attributes | |
| std::vector< PROPERTY_BASE * > | m_displayed |
| wxPropertyGrid * | m_grid |
| wxStaticText * | m_caption |
| float | m_splitter_key_proportion |
| Proportion of the grid column splitter that is used for the key column (0.0 - 1.0) | |
Private Attributes | |
| FOOTPRINT_WIZARD_FRAME * | m_frame |
| FOOTPRINT_WIZARD * | m_wizard |
| std::vector< std::unique_ptr< WIZARD_PARAM_INFO > > | m_paramInfos |
| PG_UNIT_EDITOR * | m_unitEditorInstance |
| PG_CHECKBOX_EDITOR * | m_checkboxEditorInstance |
| PG_RATIO_EDITOR * | m_ratioEditorInstance |
Definition at line 36 of file footprint_wizard_properties_panel.h.
| FOOTPRINT_WIZARD_PROPERTIES_PANEL::FOOTPRINT_WIZARD_PROPERTIES_PANEL | ( | wxWindow * | aParent, |
| FOOTPRINT_WIZARD_FRAME * | aFrame ) |
Definition at line 34 of file footprint_wizard_properties_panel.cpp.
References PG_UNIT_EDITOR::BuildEditorName(), PG_CHECKBOX_EDITOR::EDITOR_NAME, PG_RATIO_EDITOR::EDITOR_NAME, PROPERTIES_PANEL::m_caption, m_checkboxEditorInstance, m_frame, m_ratioEditorInstance, m_unitEditorInstance, m_wizard, PROPERTIES_PANEL::PROPERTIES_PANEL(), and wxPGGlobalVars.
|
override |
Definition at line 88 of file footprint_wizard_properties_panel.cpp.
References m_unitEditorInstance.
|
inlinevirtualinherited |
Reimplemented in PCB_PROPERTIES_PANEL, and SCH_PROPERTIES_PANEL.
Definition at line 48 of file properties_panel.h.
|
inlineoverrideprotectedvirtual |
Implements PROPERTIES_PANEL.
Definition at line 47 of file footprint_wizard_properties_panel.h.
Referenced by RebuildParameters().
|
protected |
Definition at line 133 of file footprint_wizard_properties_panel.cpp.
References PG_UNIT_EDITOR::BuildEditorName(), WIZARD_PARAMETER::description, WIZARD_PARAMETER::identifier, m_frame, WIZARD_PARAMETER::name, and WIZARD_PARAMETER::type.
|
protectedinherited |
Processes a selection and determines whether the given property should be available or not and what the common value should be for the items in the selection.
| aSelection | is a set of EDA_ITEMs to process |
| aProperty | is the property to look up |
| aValue | will be filled with the value common to the selection, or null if different |
| aWritable | will be set to whether or not the property can be written for the selection |
Definition at line 410 of file properties_panel.cpp.
References PROPERTY_BASE::GetChoices(), getItemValue(), PROPERTY_MANAGER::GetProperty(), PROPERTY_MANAGER::Instance(), PROPERTY_MANAGER::IsAvailableFor(), PROPERTY_MANAGER::IsWriteableFor(), and TYPE_HASH.
Referenced by rebuildProperties().
|
protectedvirtualinherited |
Utility to fetch a property value and convert to wxVariant Precondition: aItem is known to have property aProperty.
Reimplemented in PCB_PROPERTIES_PANEL, and SCH_PROPERTIES_PANEL.
Definition at line 379 of file properties_panel.cpp.
References INSPECTABLE::Get(), KIGFX::VIEW_ITEM::GetClass(), PROPERTY_BASE::HasChoices(), and PROPERTY_BASE::Name().
Referenced by extractValueAndWritability(), PCB_PROPERTIES_PANEL::getItemValue(), and SCH_PROPERTIES_PANEL::getItemValue().
|
staticprotected |
Definition at line 206 of file footprint_wizard_properties_panel.cpp.
Referenced by valueChanged().
|
inlineinherited |
Definition at line 50 of file properties_panel.h.
References m_grid.
|
protectedinherited |
Definition at line 487 of file properties_panel.cpp.
References m_grid.
Referenced by PROPERTIES_PANEL().
|
protectedvirtualinherited |
Reimplemented in SCH_PROPERTIES_PANEL.
Definition at line 160 of file properties_panel.cpp.
References m_displayed, m_grid, and UpdateData().
Referenced by SCH_PROPERTIES_PANEL::OnLanguageChanged(), PROPERTIES_PANEL(), and ~PROPERTIES_PANEL().
|
protectedinherited |
Definition at line 478 of file properties_panel.cpp.
References UpdateData().
Referenced by PROPERTIES_PANEL().
|
inlineinherited |
Definition at line 60 of file properties_panel.h.
References m_displayed.
|
inlineinherited |
Definition at line 55 of file properties_panel.h.
References m_displayed.
| void FOOTPRINT_WIZARD_PROPERTIES_PANEL::RebuildParameters | ( | FOOTPRINT_WIZARD * | aWizard | ) |
Definition at line 100 of file footprint_wizard_properties_panel.cpp.
References createPGProperty(), FOOTPRINT_WIZARD::Info(), PROPERTIES_PANEL::m_grid, WIZARD_PARAMETER::ParameterCategoryName(), WIZARD_INFO::parameters, and PROPERTIES_PANEL::RecalculateSplitterPos().
|
protectedvirtualinherited |
Generates the property grid for a given selection of items.
| aSelection | is a set of items to show properties for. |
Reimplemented in PCB_PROPERTIES_PANEL, and SCH_PROPERTIES_PANEL.
Definition at line 187 of file properties_panel.cpp.
References _, createPGProperty(), dummy, SELECTION::Empty(), extractValueAndWritability(), FRAME_FOOTPRINT_EDITOR, FRAME_PCB_EDITOR, FRAME_SCH, FRAME_SCH_SYMBOL_EDITOR, SELECTION::Front(), PROPERTY_MANAGER::GetDisplayOrder(), EDA_ITEM::GetFriendlyName(), PROPERTY_MANAGER::GetGroupDisplayOrder(), PROPERTY_MANAGER::GetProperties(), PROPERTY_MANAGER::GetProperty(), group, PROPERTY_MANAGER::Instance(), m_caption, m_displayed, m_frame, m_grid, name, RecalculateSplitterPos(), SELECTION::Size(), and TYPE_HASH.
Referenced by PCB_PROPERTIES_PANEL::rebuildProperties(), and SCH_PROPERTIES_PANEL::rebuildProperties().
|
inherited |
Definition at line 536 of file properties_panel.cpp.
References m_grid, and m_splitter_key_proportion.
Referenced by PROPERTIES_PANEL(), FOOTPRINT_WIZARD_PROPERTIES_PANEL::RebuildParameters(), rebuildProperties(), and SetSplitterProportion().
|
inherited |
Definition at line 545 of file properties_panel.cpp.
References m_splitter_key_proportion, and RecalculateSplitterPos().
|
inlineinherited |
Definition at line 68 of file properties_panel.h.
References m_splitter_key_proportion.
|
overridevirtual |
Implements PROPERTIES_PANEL.
Definition at line 95 of file footprint_wizard_properties_panel.cpp.
|
overrideprotectedvirtual |
Reimplemented from PROPERTIES_PANEL.
Definition at line 212 of file footprint_wizard_properties_panel.cpp.
References getParamFromEvent(), and m_frame.
|
inlineprotectedvirtualinherited |
Reimplemented in PCB_PROPERTIES_PANEL, and SCH_PROPERTIES_PANEL.
Definition at line 81 of file properties_panel.h.
Referenced by PROPERTIES_PANEL().
|
protectedinherited |
Definition at line 114 of file properties_panel.h.
Referenced by FOOTPRINT_WIZARD_PROPERTIES_PANEL::FOOTPRINT_WIZARD_PROPERTIES_PANEL(), PROPERTIES_PANEL(), and rebuildProperties().
|
private |
Definition at line 65 of file footprint_wizard_properties_panel.h.
Referenced by FOOTPRINT_WIZARD_PROPERTIES_PANEL().
|
protectedinherited |
Definition at line 111 of file properties_panel.h.
Referenced by OnLanguageChanged(), Properties(), PropertiesCount(), and rebuildProperties().
|
private |
Definition at line 60 of file footprint_wizard_properties_panel.h.
Referenced by createPGProperty(), FOOTPRINT_WIZARD_PROPERTIES_PANEL(), and valueChanged().
|
protectedinherited |
Definition at line 112 of file properties_panel.h.
Referenced by GetPropertyGrid(), onCharHook(), OnLanguageChanged(), PROPERTIES_PANEL(), FOOTPRINT_WIZARD_PROPERTIES_PANEL::RebuildParameters(), rebuildProperties(), and RecalculateSplitterPos().
|
private |
Definition at line 62 of file footprint_wizard_properties_panel.h.
|
private |
Definition at line 66 of file footprint_wizard_properties_panel.h.
Referenced by FOOTPRINT_WIZARD_PROPERTIES_PANEL().
|
protectedinherited |
Proportion of the grid column splitter that is used for the key column (0.0 - 1.0)
Definition at line 117 of file properties_panel.h.
Referenced by PROPERTIES_PANEL(), RecalculateSplitterPos(), SetSplitterProportion(), and SplitterProportion().
|
inherited |
Definition at line 108 of file properties_panel.h.
Referenced by PROPERTIES_PANEL(), PCB_PROPERTIES_PANEL::valueChanged(), SCH_PROPERTIES_PANEL::valueChanged(), PCB_PROPERTIES_PANEL::valueChanging(), and SCH_PROPERTIES_PANEL::valueChanging().
|
private |
Definition at line 64 of file footprint_wizard_properties_panel.h.
Referenced by FOOTPRINT_WIZARD_PROPERTIES_PANEL(), and ~FOOTPRINT_WIZARD_PROPERTIES_PANEL().
|
private |
Definition at line 61 of file footprint_wizard_properties_panel.h.
Referenced by FOOTPRINT_WIZARD_PROPERTIES_PANEL().