KiCad PCB EDA Suite
dialog_lib_edit_pin_table.h
Go to the documentation of this file.
2 
3 #include "class_library.h"
4 
6 {
17 
18  COL_COUNT // keep as last
19 };
20 
21 
23 
24 
26 {
27 public:
28  DIALOG_LIB_EDIT_PIN_TABLE( wxWindow* parent, LIB_PART* aPart );
29  ~DIALOG_LIB_EDIT_PIN_TABLE() override;
30 
31  bool TransferDataToWindow() override;
32  bool TransferDataFromWindow() override;
33 
34  void OnColSort( wxGridEvent& aEvent );
35  void OnAddRow( wxCommandEvent& event ) override;
36  void OnDeleteRow( wxCommandEvent& event ) override;
37  void OnSize( wxSizeEvent& event ) override;
38  void OnCellEdited( wxGridEvent& event ) override;
39  void OnRebuildRows( wxCommandEvent& event ) override;
40  void OnUpdateUI( wxUpdateUIEvent& event ) override;
41  void OnCancel( wxCommandEvent& event ) override;
42  void OnClose( wxCloseEvent& event ) override;
43 
44 protected:
45 
46  void updateSummary();
47  void adjustGridColumns( int aWidth );
48 
49  wxConfigBase* m_config;
50  bool m_initialized = false;
52  wxString m_columnsShown;
54  LIB_PINS m_pins; // a copy of the pins owned by me
55  bool m_modified;
56 
58 };
void OnClose(wxCloseEvent &event) override
void OnSize(wxSizeEvent &event) override
void OnAddRow(wxCommandEvent &event) override
void OnCellEdited(wxGridEvent &event) override
DIALOG_LIB_EDIT_PIN_TABLE(wxWindow *parent, LIB_PART *aPart)
bool m_modified
true when there are unsaved changes
void OnRebuildRows(wxCommandEvent &event) override
void OnUpdateUI(wxUpdateUIEvent &event) override
Define a library symbol object.
PIN_TABLE_DATA_MODEL * m_dataModel
Class DIALOG_LIB_EDIT_PIN_TABLE_BASE.
std::vector< LIB_PIN * > LIB_PINS
Helper for defining a list of pin object pointers.
Definition: lib_draw_item.h:61
void OnDeleteRow(wxCommandEvent &event) override
void OnColSort(wxGridEvent &aEvent)
Definition for part library class.
void OnCancel(wxCommandEvent &event) override