| 
    KiCad PCB EDA Suite
    
   | 
 
#include <pcb_properties_panel.h>
  
Public Member Functions | |
| PCB_PROPERTIES_PANEL (wxWindow *aParent, PCB_BASE_EDIT_FRAME *aFrame) | |
| virtual | ~PCB_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 | 
Public Attributes | |
| int | m_SuppressGridChangeEvents | 
Protected Member Functions | |
| void | rebuildProperties (const SELECTION &aSelection) override | 
| Generates the property grid for a given selection of items.   | |
| 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 | 
| Regenerates caches storing layer and net names.   | |
| void | updateLists (const BOARD *aBoard) | 
| const SELECTION & | getSelection (SELECTION &aFallbackSelection) | 
| Get the current selection from the selection tool.   | |
| EDA_ITEM * | getFrontItem () | 
| Get the front item of the current selection.   | |
| void | onCharHook (wxKeyEvent &aEvent) | 
| void | onShow (wxShowEvent &aEvent) | 
| virtual void | OnLanguageChanged (wxCommandEvent &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, 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.   | |
Protected Attributes | |
| PCB_BASE_EDIT_FRAME * | m_frame | 
| PROPERTY_MANAGER & | m_propMgr | 
| PG_UNIT_EDITOR * | m_unitEditorInstance | 
| PG_CHECKBOX_EDITOR * | m_checkboxEditorInstance | 
| PG_RATIO_EDITOR * | m_ratioEditorInstance | 
| PG_NET_SELECTOR_EDITOR * | m_netSelectorEditorInstance | 
| PG_FPID_EDITOR * | m_fpEditorInstance | 
| PG_URL_EDITOR * | m_urlEditorInstance | 
| 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)   | |
Static Protected Attributes | |
| static std::set< wxString > | m_currentFieldNames | 
Definition at line 40 of file pcb_properties_panel.h.
| PCB_PROPERTIES_PANEL::PCB_PROPERTIES_PANEL | ( | wxWindow * | aParent, | 
| PCB_BASE_EDIT_FRAME * | aFrame ) | 
Definition at line 187 of file pcb_properties_panel.cpp.
References PG_FPID_EDITOR::BuildEditorName(), PG_UNIT_EDITOR::BuildEditorName(), PG_URL_EDITOR::BuildEditorName(), PG_CHECKBOX_EDITOR::EDITOR_NAME, PG_NET_SELECTOR_EDITOR::EDITOR_NAME, PG_RATIO_EDITOR::EDITOR_NAME, m_checkboxEditorInstance, m_fpEditorInstance, m_frame, m_netSelectorEditorInstance, m_propMgr, m_ratioEditorInstance, m_unitEditorInstance, m_urlEditorInstance, PROPERTIES_PANEL::PROPERTIES_PANEL(), and wxPGGlobalVars.
Referenced by getPropertyFromEvent().
      
  | 
  virtual | 
Definition at line 278 of file pcb_properties_panel.cpp.
References m_fpEditorInstance, m_unitEditorInstance, and m_urlEditorInstance.
      
  | 
  overridevirtual | 
Reimplemented from PROPERTIES_PANEL.
Definition at line 330 of file pcb_properties_panel.cpp.
References getSelection(), and rebuildProperties().
Referenced by valueChanged().
      
  | 
  overrideprotectedvirtual | 
Implements PROPERTIES_PANEL.
Definition at line 372 of file pcb_properties_panel.cpp.
References PG_FPID_EDITOR::BuildEditorName(), PG_URL_EDITOR::BuildEditorName(), PROPERTY_BASE::Choices(), DATASHEET, FOOTPRINT, GetCanonicalFieldName(), PROPERTY_BASE::HasChoices(), m_frame, PROPERTY_BASE::Name(), PGPropertyFactory(), ToLAYER_ID(), TYPE_HASH, and PROPERTY_BASE::TypeHash().
      
  | 
  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 412 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().
      
  | 
  protected | 
Get the front item of the current selection.
If the selection is empty and we're in the footprint editor, returns the footprint instead.
Definition at line 308 of file pcb_properties_panel.cpp.
References SELECTION::Empty(), SELECTION::Front(), and getSelection().
Referenced by getPropertyFromEvent(), and valueChanging().
      
  | 
  protectedinherited | 
Utility to fetch a property value and convert to wxVariant Precondition: aItem is known to have property aProperty.
Definition at line 381 of file properties_panel.cpp.
References INSPECTABLE::Get(), KIGFX::VIEW_ITEM::GetClass(), PROPERTY_BASE::HasChoices(), and PROPERTY_BASE::Name().
Referenced by extractValueAndWritability().
      
  | 
  protected | 
Definition at line 417 of file pcb_properties_panel.cpp.
References getFrontItem(), KIGFX::VIEW_ITEM::IsBOARD_ITEM(), m_propMgr, PCB_PROPERTIES_PANEL(), and TYPE_HASH.
Referenced by valueChanged(), and valueChanging().
      
  | 
  inlineinherited | 
Definition at line 50 of file properties_panel.h.
References m_grid.
Get the current selection from the selection tool.
If the selection is empty and we're in the footprint editor, returns the footprint instead.
| aSelection | [out] reference to a SELECTION pointer that will be set to the selection | 
| aFallbackSelection | [out] local SELECTION object for fallback footprint selection | 
Definition at line 286 of file pcb_properties_panel.cpp.
References SELECTION::Add(), SELECTION::Clear(), FRAME_FOOTPRINT_EDITOR, PCB_SELECTION_TOOL::GetSelection(), and m_frame.
Referenced by AfterCommit(), getFrontItem(), UpdateData(), and valueChanged().
      
  | 
  protectedinherited | 
Definition at line 489 of file properties_panel.cpp.
References m_grid.
Referenced by PROPERTIES_PANEL().
      
  | 
  protectedvirtualinherited | 
Reimplemented in SCH_PROPERTIES_PANEL.
Definition at line 156 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 480 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.
      
  | 
  overrideprotectedvirtual | 
Generates the property grid for a given selection of items.
| aSelection | is a set of items to show properties for. | 
Reimplemented from PROPERTIES_PANEL.
Definition at line 339 of file pcb_properties_panel.cpp.
References _HKI, FOOTPRINT::GetFields(), m_currentFieldNames, m_propMgr, name, PCB_FOOTPRINT_T, PROPERTIES_PANEL::rebuildProperties(), and TYPE_HASH.
Referenced by AfterCommit(), and UpdateData().
      
  | 
  inherited | 
Definition at line 538 of file properties_panel.cpp.
References m_grid, and m_splitter_key_proportion.
Referenced by PROPERTIES_PANEL(), rebuildProperties(), and SetSplitterProportion().
      
  | 
  inherited | 
Definition at line 547 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 317 of file pcb_properties_panel.cpp.
References GetBoard(), getSelection(), m_frame, rebuildProperties(), and updateLists().
      
  | 
  protected | 
Definition at line 544 of file pcb_properties_panel.cpp.
References _HKI, LSET::AllCuMask(), fonts, BOARD::GetEnabledLayers(), BOARD::GetNetInfo(), m_propMgr, LSET::Name(), NETINFO_LIST::NetsByNetcode(), TYPE_HASH, LSET::UIOrder(), and UnescapeString().
Referenced by UpdateData().
      
  | 
  overrideprotectedvirtual | 
Regenerates caches storing layer and net names.
Reimplemented from PROPERTIES_PANEL.
Definition at line 463 of file pcb_properties_panel.cpp.
References _, _HKI, AfterCommit(), delta, FRAME_PCB_EDITOR, BOARD_ITEM::GetParent(), getPropertyFromEvent(), getSelection(), m_frame, m_propMgr, PROPERTIES_PANEL::m_SuppressGridChangeEvents, COMMIT::Modify(), FOOTPRINT::Move(), NO_RECURSE, pad, PCB_GENERATOR_T, PCB_PAD_T, PCB_TABLECELL_T, BOARD_COMMIT::Push(), RECURSE, EVENTS::SelectedEvent, INSPECTABLE::Set(), EDA_ITEM::Type(), TYPE_HASH, VECTOR2< T >::x, and VECTOR2< T >::y.
      
  | 
  overrideprotectedvirtual | 
Reimplemented from PROPERTIES_PANEL.
Definition at line 437 of file pcb_properties_panel.cpp.
References getFrontItem(), getPropertyFromEvent(), m_frame, and PROPERTIES_PANEL::m_SuppressGridChangeEvents.
      
  | 
  protectedinherited | 
Definition at line 114 of file properties_panel.h.
Referenced by PROPERTIES_PANEL(), and rebuildProperties().
      
  | 
  protected | 
Definition at line 85 of file pcb_properties_panel.h.
Referenced by PCB_PROPERTIES_PANEL().
      
  | 
  staticprotected | 
Definition at line 91 of file pcb_properties_panel.h.
Referenced by rebuildProperties().
      
  | 
  protectedinherited | 
Definition at line 111 of file properties_panel.h.
Referenced by OnLanguageChanged(), Properties(), PropertiesCount(), and rebuildProperties().
      
  | 
  protected | 
Definition at line 88 of file pcb_properties_panel.h.
Referenced by PCB_PROPERTIES_PANEL(), and ~PCB_PROPERTIES_PANEL().
      
  | 
  protected | 
Definition at line 82 of file pcb_properties_panel.h.
Referenced by createPGProperty(), getSelection(), PCB_PROPERTIES_PANEL(), UpdateData(), valueChanged(), and valueChanging().
      
  | 
  protectedinherited | 
Definition at line 112 of file properties_panel.h.
Referenced by GetPropertyGrid(), onCharHook(), OnLanguageChanged(), PROPERTIES_PANEL(), rebuildProperties(), and RecalculateSplitterPos().
      
  | 
  protected | 
Definition at line 92 of file pcb_properties_panel.h.
      
  | 
  protected | 
Definition at line 87 of file pcb_properties_panel.h.
Referenced by PCB_PROPERTIES_PANEL().
      
  | 
  protected | 
Definition at line 83 of file pcb_properties_panel.h.
Referenced by getPropertyFromEvent(), PCB_PROPERTIES_PANEL(), rebuildProperties(), updateLists(), and valueChanged().
      
  | 
  protected | 
Definition at line 86 of file pcb_properties_panel.h.
Referenced by PCB_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().
      
  | 
  protected | 
Definition at line 84 of file pcb_properties_panel.h.
Referenced by PCB_PROPERTIES_PANEL(), and ~PCB_PROPERTIES_PANEL().
      
  | 
  protected | 
Definition at line 89 of file pcb_properties_panel.h.
Referenced by PCB_PROPERTIES_PANEL(), and ~PCB_PROPERTIES_PANEL().