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 Mar 28 2015)
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,400 ) );
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 
38  this->Centre( wxBOTH );
39 
40  // Connect Events
41  this->Connect( wxID_ANY, wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK, wxDataViewEventHandler( DIALOG_LIB_EDIT_PIN_TABLE_BASE::OnColumnHeaderRightClicked ) );
42 }
43 
45 {
46  // Disconnect Events
47  this->Disconnect( wxID_ANY, wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK, wxDataViewEventHandler( DIALOG_LIB_EDIT_PIN_TABLE_BASE::OnColumnHeaderRightClicked ) );
48 
49 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
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(431, 304), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnColumnHeaderRightClicked(wxDataViewEvent &event)=0