KiCad PCB EDA Suite
dialog_sheet_pin_properties_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Oct 26 2018)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 DIALOG_SHEET_PIN_PROPERTIES_BASE::DIALOG_SHEET_PIN_PROPERTIES_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( wxVERTICAL );
21 
22  wxFlexGridSizer* fgSizer2;
23  fgSizer2 = new wxFlexGridSizer( 2, 2, 4, 0 );
24  fgSizer2->AddGrowableCol( 1 );
25  fgSizer2->SetFlexibleDirection( wxBOTH );
26  fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
27 
28  m_staticText1 = new wxStaticText( this, wxID_ANY, _("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
29  m_staticText1->Wrap( -1 );
30  fgSizer2->Add( m_staticText1, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
31 
32  m_comboName = new wxComboBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
33  fgSizer2->Add( m_comboName, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxTOP, 5 );
34 
35 
36  fgSizer2->Add( 0, 0, 1, wxEXPAND, 5 );
37 
38  m_hyperlink1 = new wxHyperlinkCtrl( this, wxID_ANY, _("Syntax help"), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
39  m_hyperlink1->SetToolTip( _("Show syntax help window") );
40 
41  fgSizer2->Add( m_hyperlink1, 0, wxALIGN_RIGHT|wxRIGHT|wxLEFT, 7 );
42 
43 
44  m_nameSizer->Add( fgSizer2, 0, wxEXPAND, 5 );
45 
46  m_staticline3 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
47  m_nameSizer->Add( m_staticline3, 0, wxEXPAND|wxTOP|wxBOTTOM, 10 );
48 
49  wxFlexGridSizer* fgSizer1;
50  fgSizer1 = new wxFlexGridSizer( 2, 3, 2, 0 );
51  fgSizer1->AddGrowableCol( 1 );
52  fgSizer1->SetFlexibleDirection( wxBOTH );
53  fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
54 
55  m_textSizeLabel = new wxStaticText( this, wxID_ANY, _("Text size:"), wxDefaultPosition, wxDefaultSize, 0 );
56  m_textSizeLabel->Wrap( -1 );
57  fgSizer1->Add( m_textSizeLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
58 
59  m_textSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
60  fgSizer1->Add( m_textSizeCtrl, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
61 
62  m_textSizeUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
63  m_textSizeUnits->Wrap( -1 );
64  fgSizer1->Add( m_textSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
65 
66  m_staticText3 = new wxStaticText( this, wxID_ANY, _("Connection type:"), wxDefaultPosition, wxDefaultSize, 0 );
67  m_staticText3->Wrap( -1 );
68  fgSizer1->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
69 
70  wxArrayString m_choiceConnectionTypeChoices;
71  m_choiceConnectionType = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceConnectionTypeChoices, 0 );
72  m_choiceConnectionType->SetSelection( 0 );
73  m_choiceConnectionType->SetMinSize( wxSize( 160,-1 ) );
74 
75  fgSizer1->Add( m_choiceConnectionType, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
76 
77 
78  fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
79 
80 
81  m_nameSizer->Add( fgSizer1, 0, wxEXPAND, 6 );
82 
83 
84  m_mainSizer->Add( m_nameSizer, 1, wxALL|wxEXPAND, 10 );
85 
86  m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
87  m_mainSizer->Add( m_staticline2, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
88 
89  m_sdbSizer = new wxStdDialogButtonSizer();
90  m_sdbSizerOK = new wxButton( this, wxID_OK );
91  m_sdbSizer->AddButton( m_sdbSizerOK );
92  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
93  m_sdbSizer->AddButton( m_sdbSizerCancel );
94  m_sdbSizer->Realize();
95 
96  m_mainSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 6 );
97 
98 
99  this->SetSizer( m_mainSizer );
100  this->Layout();
101  m_mainSizer->Fit( this );
102 
103  this->Centre( wxBOTH );
104 
105  // Connect Events
106  m_comboName->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( DIALOG_SHEET_PIN_PROPERTIES_BASE::onComboBox ), NULL, this );
107  m_hyperlink1->Connect( wxEVT_COMMAND_HYPERLINK, wxHyperlinkEventHandler( DIALOG_SHEET_PIN_PROPERTIES_BASE::OnSyntaxHelp ), NULL, this );
108  m_sdbSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SHEET_PIN_PROPERTIES_BASE::onOKButton ), NULL, this );
109 }
110 
112 {
113  // Disconnect Events
114  m_comboName->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( DIALOG_SHEET_PIN_PROPERTIES_BASE::onComboBox ), NULL, this );
115  m_hyperlink1->Disconnect( wxEVT_COMMAND_HYPERLINK, wxHyperlinkEventHandler( DIALOG_SHEET_PIN_PROPERTIES_BASE::OnSyntaxHelp ), NULL, this );
116  m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SHEET_PIN_PROPERTIES_BASE::onOKButton ), NULL, this );
117 
118 }
virtual void OnSyntaxHelp(wxHyperlinkEvent &event)
virtual void onComboBox(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:82
DIALOG_SHEET_PIN_PROPERTIES_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)
#define NULL
#define _(s)
virtual void onOKButton(wxCommandEvent &event)