KiCad PCB EDA Suite
dialog_sch_edit_sheet_pin_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Jul 2 2017)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 DIALOG_SCH_EDIT_SHEET_PIN_BASE::DIALOG_SCH_EDIT_SHEET_PIN_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( wxSize( -1,-1 ), wxDefaultSize );
15 
16  wxBoxSizer* m_mainSizer;
17  m_mainSizer = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* m_nameSizer;
20  m_nameSizer = new wxBoxSizer( wxHORIZONTAL );
21 
22  wxFlexGridSizer* fgSizer1;
23  fgSizer1 = new wxFlexGridSizer( 4, 3, 0, 0 );
24  fgSizer1->AddGrowableCol( 1 );
25  fgSizer1->SetFlexibleDirection( wxBOTH );
26  fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
27 
28  m_staticText1 = new wxStaticText( this, wxID_ANY, _("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
29  m_staticText1->Wrap( -1 );
30  fgSizer1->Add( m_staticText1, 0, wxALIGN_CENTER_VERTICAL|wxALL, 6 );
31 
32  m_textName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
33  m_textName->SetValidator( wxTextValidator( wxFILTER_EXCLUDE_CHAR_LIST, &m_labelString ) );
34 
35  fgSizer1->Add( m_textName, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 6 );
36 
37 
38  fgSizer1->Add( 0, 0, 1, wxEXPAND, 6 );
39 
40  m_staticText2 = new wxStaticText( this, wxID_ANY, _("Text height:"), wxDefaultPosition, wxDefaultSize, 0 );
41  m_staticText2->Wrap( -1 );
42  fgSizer1->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 6 );
43 
44  m_textHeight = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
45  fgSizer1->Add( m_textHeight, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 6 );
46 
47  m_staticHeightUnits = new wxStaticText( this, wxID_ANY, _("units"), wxDefaultPosition, wxDefaultSize, 0 );
48  m_staticHeightUnits->Wrap( -1 );
49  fgSizer1->Add( m_staticHeightUnits, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 6 );
50 
51  m_staticText5 = new wxStaticText( this, wxID_ANY, _("Text width:"), wxDefaultPosition, wxDefaultSize, 0 );
52  m_staticText5->Wrap( -1 );
53  fgSizer1->Add( m_staticText5, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 6 );
54 
55  m_textWidth = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
56  fgSizer1->Add( m_textWidth, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 6 );
57 
58  m_staticWidthUnits = new wxStaticText( this, wxID_ANY, _("units"), wxDefaultPosition, wxDefaultSize, 0 );
59  m_staticWidthUnits->Wrap( -1 );
60  fgSizer1->Add( m_staticWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 6 );
61 
62  m_staticText3 = new wxStaticText( this, wxID_ANY, _("Connection type:"), wxDefaultPosition, wxDefaultSize, 0 );
63  m_staticText3->Wrap( -1 );
64  fgSizer1->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 6 );
65 
66  wxArrayString m_choiceConnectionTypeChoices;
67  m_choiceConnectionType = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceConnectionTypeChoices, 0 );
68  m_choiceConnectionType->SetSelection( 0 );
69  fgSizer1->Add( m_choiceConnectionType, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 6 );
70 
71 
72  fgSizer1->Add( 0, 0, 1, wxEXPAND, 6 );
73 
74 
75  m_nameSizer->Add( fgSizer1, 1, wxEXPAND, 6 );
76 
77 
78  m_mainSizer->Add( m_nameSizer, 1, wxALL|wxEXPAND, 6 );
79 
80 
81  m_mainSizer->Add( 0, 0, 0, wxALL|wxEXPAND, 3 );
82 
83  m_sdbSizer = new wxStdDialogButtonSizer();
84  m_sdbSizerOK = new wxButton( this, wxID_OK );
85  m_sdbSizer->AddButton( m_sdbSizerOK );
86  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
87  m_sdbSizer->AddButton( m_sdbSizerCancel );
88  m_sdbSizer->Realize();
89 
90  m_mainSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 6 );
91 
92 
93  this->SetSizer( m_mainSizer );
94  this->Layout();
95  m_mainSizer->Fit( this );
96 
97  this->Centre( wxBOTH );
98 
99  // Connect Events
100  m_sdbSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SCH_EDIT_SHEET_PIN_BASE::onOKButton ), NULL, this );
101 }
102 
104 {
105  // Disconnect Events
106  m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SCH_EDIT_SHEET_PIN_BASE::onOKButton ), NULL, this );
107 
108 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:70
virtual void onOKButton(wxCommandEvent &event)
DIALOG_SCH_EDIT_SHEET_PIN_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Sheet Pin Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)