KiCad PCB EDA Suite
|
#include <sch_properties_panel.h>
Public Member Functions | |
SCH_PROPERTIES_PANEL (wxWindow *aParent, SCH_BASE_FRAME *aFrame) | |
virtual | ~SCH_PROPERTIES_PANEL () |
void | UpdateData () override |
void | AfterCommit () override |
wxPropertyGrid * | GetPropertyGrid () |
int | PropertiesCount () const |
const std::vector< PROPERTY_BASE * > & | Properties () const |
void | RecalculateSplitterPos () |
void | SetSplitterProportion (float aProportion) |
float | SplitterProportion () const |
Protected Member Functions | |
wxPGProperty * | createPGProperty (const PROPERTY_BASE *aProperty) const override |
PROPERTY_BASE * | getPropertyFromEvent (const wxPropertyGridEvent &aEvent) const |
void | valueChanging (wxPropertyGridEvent &aEvent) override |
void | valueChanged (wxPropertyGridEvent &aEvent) override |
void | OnLanguageChanged (wxCommandEvent &aEvent) override |
Regenerates caches of font list property. | |
void | updateFontList () |
virtual void | rebuildProperties (const SELECTION &aSelection) |
Generates the property grid for a given selection of items. | |
void | onCharHook (wxKeyEvent &aEvent) |
void | onShow (wxShowEvent &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 property aProperty. | |
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 the common value should be for the items in the selection. | |
Protected Attributes | |
SCH_BASE_FRAME * | m_frame |
PROPERTY_MANAGER & | m_propMgr |
PG_UNIT_EDITOR * | m_unitEditorInstance |
PG_CHECKBOX_EDITOR * | m_checkboxEditorInstance |
PG_COLOR_EDITOR * | m_colorEditorInstance |
wxPGChoices | m_nets |
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) | |
Definition at line 35 of file sch_properties_panel.h.
SCH_PROPERTIES_PANEL::SCH_PROPERTIES_PANEL | ( | wxWindow * | aParent, |
SCH_BASE_FRAME * | aFrame | ||
) |
Definition at line 42 of file sch_properties_panel.cpp.
References PG_UNIT_EDITOR::BuildEditorName(), PG_CHECKBOX_EDITOR::EDITOR_NAME, PG_COLOR_EDITOR::EDITOR_NAME, m_checkboxEditorInstance, m_colorEditorInstance, m_frame, m_propMgr, m_unitEditorInstance, PROPERTY_MANAGER::Rebuild(), updateFontList(), PG_UNIT_EDITOR::UpdateFrame(), and wxPGGlobalVars.
|
virtual |
Definition at line 98 of file sch_properties_panel.cpp.
References m_unitEditorInstance, and PG_UNIT_EDITOR::UpdateFrame().
|
overridevirtual |
Reimplemented from PROPERTIES_PANEL.
Definition at line 114 of file sch_properties_panel.cpp.
References EE_SELECTION_TOOL::GetSelection(), TOOL_MANAGER::GetTool(), TOOLS_HOLDER::GetToolManager(), m_frame, and PROPERTIES_PANEL::rebuildProperties().
Referenced by valueChanged().
|
overrideprotectedvirtual |
Implements PROPERTIES_PANEL.
Definition at line 123 of file sch_properties_panel.cpp.
References COLOR_SETTINGS::GetColor(), SCH_BASE_FRAME::GetColorSettings(), LAYER_SCHEMATIC_BACKGROUND, m_frame, and PGPropertyFactory().
|
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 375 of file properties_panel.cpp.
References PROPERTIES_PANEL::getItemValue(), PROPERTY_MANAGER::Instance(), PROPERTY_MANAGER::IsAvailableFor(), PROPERTY_BASE::IsHiddenFromPropertiesManager(), PROPERTY_MANAGER::IsWriteableFor(), and TYPE_HASH.
Referenced by PROPERTIES_PANEL::rebuildProperties().
|
protectedinherited |
Utility to fetch a property value and convert to wxVariant Precondition: aItem is known to have property aProperty.
Definition at line 350 of file properties_panel.cpp.
References INSPECTABLE::Get(), and PROPERTY_BASE::HasChoices().
Referenced by PROPERTIES_PANEL::extractValueAndWritability().
|
protected |
Definition at line 137 of file sch_properties_panel.cpp.
References PROPERTY_MANAGER::GetProperty(), EE_SELECTION_TOOL::GetSelection(), TOOL_MANAGER::GetTool(), TOOLS_HOLDER::GetToolManager(), m_frame, m_propMgr, and TYPE_HASH.
Referenced by valueChanged(), and valueChanging().
|
inlineinherited |
Definition at line 50 of file properties_panel.h.
References PROPERTIES_PANEL::m_grid.
|
protectedinherited |
Definition at line 432 of file properties_panel.cpp.
References PROPERTIES_PANEL::m_grid.
Referenced by PROPERTIES_PANEL::PROPERTIES_PANEL().
|
overrideprotectedvirtual |
Regenerates caches of font list property.
Reimplemented from PROPERTIES_PANEL.
Definition at line 214 of file sch_properties_panel.cpp.
References PROPERTIES_PANEL::OnLanguageChanged(), and updateFontList().
|
protectedinherited |
Definition at line 423 of file properties_panel.cpp.
References PROPERTIES_PANEL::UpdateData().
Referenced by PROPERTIES_PANEL::PROPERTIES_PANEL().
|
inlineinherited |
Definition at line 60 of file properties_panel.h.
References PROPERTIES_PANEL::m_displayed.
|
inlineinherited |
Definition at line 55 of file properties_panel.h.
References PROPERTIES_PANEL::m_displayed.
|
protectedvirtualinherited |
Generates the property grid for a given selection of items.
aSelection | is a set of items to show properties for. |
Definition at line 169 of file properties_panel.cpp.
References _, copy, PROPERTIES_PANEL::createPGProperty(), SELECTION::Empty(), PROPERTIES_PANEL::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(), PROPERTY_MANAGER::IsAvailableFor(), EDA_BASE_FRAME::IsType(), PROPERTIES_PANEL::m_caption, PROPERTIES_PANEL::m_displayed, PROPERTIES_PANEL::m_frame, PROPERTIES_PANEL::m_grid, PROPERTIES_PANEL::RecalculateSplitterPos(), SELECTION::Size(), and TYPE_HASH.
Referenced by AfterCommit(), PCB_PROPERTIES_PANEL::AfterCommit(), UpdateData(), and PCB_PROPERTIES_PANEL::UpdateData().
|
inherited |
Definition at line 465 of file properties_panel.cpp.
References PROPERTIES_PANEL::m_grid, and PROPERTIES_PANEL::m_splitter_key_proportion.
Referenced by PROPERTIES_PANEL::PROPERTIES_PANEL(), PROPERTIES_PANEL::rebuildProperties(), and PROPERTIES_PANEL::SetSplitterProportion().
|
inherited |
Definition at line 474 of file properties_panel.cpp.
References PROPERTIES_PANEL::m_splitter_key_proportion, and PROPERTIES_PANEL::RecalculateSplitterPos().
|
inlineinherited |
Definition at line 68 of file properties_panel.h.
References PROPERTIES_PANEL::m_splitter_key_proportion.
Referenced by SCH_EDIT_FRAME::SaveSettings(), SYMBOL_EDIT_FRAME::SaveSettings(), FOOTPRINT_EDIT_FRAME::SaveSettings(), and PCB_EDIT_FRAME::SaveSettings().
|
overridevirtual |
Implements PROPERTIES_PANEL.
Definition at line 104 of file sch_properties_panel.cpp.
References EE_SELECTION_TOOL::GetSelection(), TOOL_MANAGER::GetTool(), TOOLS_HOLDER::GetToolManager(), m_frame, and PROPERTIES_PANEL::rebuildProperties().
|
protected |
Definition at line 223 of file sch_properties_panel.cpp.
References _, _HKI, Fontconfig(), fonts, FRAME_SCH, FRAME_SCH_SYMBOL_EDITOR, FRAME_SCH_VIEWER, SYMBOL_EDIT_FRAME::GetCurSymbol(), LIB_SYMBOL::GetEmbeddedFiles(), SCHEMATIC::GetEmbeddedFiles(), EMBEDDED_FILES::GetFontFiles(), EDA_BASE_FRAME::GetFrameType(), PROPERTY_MANAGER::GetProperty(), SCH_BASE_FRAME::GetScreen(), SYMBOL_VIEWER_FRAME::GetSelectedSymbol(), KICAD_FONT_NAME, m_frame, m_propMgr, Pgm(), SCH_SCREEN::Schematic(), PROPERTY_BASE::SetChoices(), TYPE_HASH, and EMBEDDED_FILES::UpdateFontFiles().
Referenced by OnLanguageChanged(), and SCH_PROPERTIES_PANEL().
|
overrideprotectedvirtual |
Reimplemented from PROPERTIES_PANEL.
Definition at line 180 of file sch_properties_panel.cpp.
References _, AfterCommit(), getPropertyFromEvent(), SCH_BASE_FRAME::GetScreen(), EE_SELECTION_TOOL::GetSelection(), TOOL_MANAGER::GetTool(), TOOLS_HOLDER::GetToolManager(), m_frame, COMMIT::Modify(), SCH_COMMIT::Push(), and INSPECTABLE::Set().
|
overrideprotectedvirtual |
Reimplemented from PROPERTIES_PANEL.
Definition at line 155 of file sch_properties_panel.cpp.
References getPropertyFromEvent(), EE_SELECTION_TOOL::GetSelection(), TOOL_MANAGER::GetTool(), TOOLS_HOLDER::GetToolManager(), m_frame, and EDA_BASE_FRAME::ShowInfoBarError().
|
protectedinherited |
Definition at line 111 of file properties_panel.h.
Referenced by PROPERTIES_PANEL::PROPERTIES_PANEL(), and PROPERTIES_PANEL::rebuildProperties().
|
protected |
Definition at line 62 of file sch_properties_panel.h.
Referenced by SCH_PROPERTIES_PANEL().
|
protected |
Definition at line 63 of file sch_properties_panel.h.
Referenced by SCH_PROPERTIES_PANEL().
|
protectedinherited |
Definition at line 108 of file properties_panel.h.
Referenced by PROPERTIES_PANEL::OnLanguageChanged(), PROPERTIES_PANEL::Properties(), PROPERTIES_PANEL::PropertiesCount(), and PROPERTIES_PANEL::rebuildProperties().
|
protected |
Definition at line 59 of file sch_properties_panel.h.
Referenced by AfterCommit(), createPGProperty(), getPropertyFromEvent(), SCH_PROPERTIES_PANEL(), UpdateData(), updateFontList(), valueChanged(), and valueChanging().
|
protectedinherited |
|
protected |
Definition at line 65 of file sch_properties_panel.h.
|
protected |
Definition at line 60 of file sch_properties_panel.h.
Referenced by getPropertyFromEvent(), SCH_PROPERTIES_PANEL(), and updateFontList().
|
protectedinherited |
Proportion of the grid column splitter that is used for the key column (0.0 - 1.0)
Definition at line 114 of file properties_panel.h.
Referenced by PROPERTIES_PANEL::PROPERTIES_PANEL(), PROPERTIES_PANEL::RecalculateSplitterPos(), PROPERTIES_PANEL::SetSplitterProportion(), and PROPERTIES_PANEL::SplitterProportion().
|
protected |
Definition at line 61 of file sch_properties_panel.h.
Referenced by SCH_PROPERTIES_PANEL(), and ~SCH_PROPERTIES_PANEL().