KiCad PCB EDA Suite
dialog_lib_edit_pin_table_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Nov 22 2017)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 DIALOG_LIB_EDIT_PIN_TABLE_BASE::DIALOG_LIB_EDIT_PIN_TABLE_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
13 {
14  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15 
16  wxBoxSizer* top_sizer;
17  top_sizer = new wxBoxSizer( wxVERTICAL );
18 
19  m_Pins = new wxDataViewCtrl( this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxDV_HORIZ_RULES|wxDV_MULTIPLE|wxDV_ROW_LINES|wxDV_VERT_RULES );
20  m_Pins->SetMinSize( wxSize( 400,300 ) );
21 
22  top_sizer->Add( m_Pins, 1, wxALL|wxEXPAND, 5 );
23 
24  m_Summary = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY|wxNO_BORDER );
25  top_sizer->Add( m_Summary, 0, wxALL|wxEXPAND, 5 );
26 
27  m_Buttons = new wxStdDialogButtonSizer();
28  m_ButtonsOK = new wxButton( this, wxID_OK );
29  m_Buttons->AddButton( m_ButtonsOK );
30  m_Buttons->Realize();
31 
32  top_sizer->Add( m_Buttons, 0, wxEXPAND|wxALL, 5 );
33 
34 
35  this->SetSizer( top_sizer );
36  this->Layout();
37  top_sizer->Fit( this );
38 
39  this->Centre( wxBOTH );
40 
41  // Connect Events
42  m_Pins->Connect( wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK, wxDataViewEventHandler( DIALOG_LIB_EDIT_PIN_TABLE_BASE::OnColumnHeaderRightClicked ), NULL, this );
43 }
44 
46 {
47  // Disconnect Events
48  m_Pins->Disconnect( wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK, wxDataViewEventHandler( DIALOG_LIB_EDIT_PIN_TABLE_BASE::OnColumnHeaderRightClicked ), NULL, this );
49 
50 }
DIALOG_LIB_EDIT_PIN_TABLE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Pin Table"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:70
virtual void OnColumnHeaderRightClicked(wxDataViewEvent &event)=0