| 
    KiCad PCB EDA Suite
    
   | 
 
#include <properties_panel.h>
  
Public Member Functions | |
| PROPERTIES_PANEL (wxWindow *aParent, EDA_BASE_FRAME *aFrame) | |
| virtual | ~PROPERTIES_PANEL () | 
| virtual void | UpdateData ()=0 | 
| 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 | |
| virtual void | rebuildProperties (const SELECTION &aSelection) | 
| Generates the property grid for a given selection of items.   | |
| virtual wxPGProperty * | createPGProperty (const PROPERTY_BASE *aProperty) const =0 | 
| virtual void | valueChanging (wxPropertyGridEvent &aEvent) | 
| virtual void | valueChanged (wxPropertyGridEvent &aEvent) | 
| 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 | |
| std::vector< PROPERTY_BASE * > | m_displayed | 
| wxPropertyGrid * | m_grid | 
| EDA_BASE_FRAME * | m_frame | 
| 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 39 of file properties_panel.h.
| PROPERTIES_PANEL::PROPERTIES_PANEL | ( | wxWindow * | aParent, | 
| EDA_BASE_FRAME * | aFrame ) | 
Definition at line 44 of file properties_panel.cpp.
References _, KIUI::GetDockedPaneFont(), m_caption, m_frame, m_grid, PGM_BASE::m_PropertyGridInitialized, m_splitter_key_proportion, m_SuppressGridChangeEvents, onCharHook(), OnLanguageChanged(), onShow(), Pgm(), RecalculateSplitterPos(), valueChanged(), valueChanging(), and wxPGGlobalVars.
Referenced by PCB_PROPERTIES_PANEL::PCB_PROPERTIES_PANEL(), and SCH_PROPERTIES_PANEL::SCH_PROPERTIES_PANEL().
      
  | 
  virtual | 
Definition at line 150 of file properties_panel.cpp.
References m_frame, and OnLanguageChanged().
      
  | 
  inlinevirtual | 
Reimplemented in PCB_PROPERTIES_PANEL, and SCH_PROPERTIES_PANEL.
Definition at line 48 of file properties_panel.h.
      
  | 
  protectedpure virtual | 
Implemented in PCB_PROPERTIES_PANEL, and SCH_PROPERTIES_PANEL.
Referenced by rebuildProperties().
      
  | 
  protected | 
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 | 
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().
      
  | 
  inline | 
Definition at line 50 of file properties_panel.h.
References m_grid.
      
  | 
  protected | 
Definition at line 489 of file properties_panel.cpp.
References m_grid.
Referenced by PROPERTIES_PANEL().
      
  | 
  protectedvirtual | 
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().
      
  | 
  protected | 
Definition at line 480 of file properties_panel.cpp.
References UpdateData().
Referenced by PROPERTIES_PANEL().
      
  | 
  inline | 
Definition at line 60 of file properties_panel.h.
References m_displayed.
      
  | 
  inline | 
Definition at line 55 of file properties_panel.h.
References m_displayed.
      
  | 
  protectedvirtual | 
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 189 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().
| void PROPERTIES_PANEL::RecalculateSplitterPos | ( | ) | 
Definition at line 538 of file properties_panel.cpp.
References m_grid, and m_splitter_key_proportion.
Referenced by PROPERTIES_PANEL(), rebuildProperties(), and SetSplitterProportion().
| void PROPERTIES_PANEL::SetSplitterProportion | ( | float | aProportion | ) | 
Definition at line 547 of file properties_panel.cpp.
References m_splitter_key_proportion, and RecalculateSplitterPos().
      
  | 
  inline | 
Definition at line 68 of file properties_panel.h.
References m_splitter_key_proportion.
      
  | 
  pure virtual | 
Implemented in PCB_PROPERTIES_PANEL, and SCH_PROPERTIES_PANEL.
Referenced by OnLanguageChanged(), and onShow().
      
  | 
  inlineprotectedvirtual | 
Reimplemented in PCB_PROPERTIES_PANEL, and SCH_PROPERTIES_PANEL.
Definition at line 82 of file properties_panel.h.
Referenced by PROPERTIES_PANEL().
      
  | 
  inlineprotectedvirtual | 
Reimplemented in PCB_PROPERTIES_PANEL, and SCH_PROPERTIES_PANEL.
Definition at line 81 of file properties_panel.h.
Referenced by PROPERTIES_PANEL().
      
  | 
  protected | 
Definition at line 114 of file properties_panel.h.
Referenced by PROPERTIES_PANEL(), and rebuildProperties().
      
  | 
  protected | 
Definition at line 111 of file properties_panel.h.
Referenced by OnLanguageChanged(), Properties(), PropertiesCount(), and rebuildProperties().
      
  | 
  protected | 
Definition at line 113 of file properties_panel.h.
Referenced by PROPERTIES_PANEL(), rebuildProperties(), and ~PROPERTIES_PANEL().
      
  | 
  protected | 
Definition at line 112 of file properties_panel.h.
Referenced by GetPropertyGrid(), onCharHook(), OnLanguageChanged(), PROPERTIES_PANEL(), rebuildProperties(), and RecalculateSplitterPos().
      
  | 
  protected | 
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().
| int PROPERTIES_PANEL::m_SuppressGridChangeEvents | 
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().