KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_assign_netclass_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
13
14DIALOG_ASSIGN_NETCLASS_BASE::DIALOG_ASSIGN_NETCLASS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
15{
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
17
18 wxBoxSizer* bMainSizer;
19 bMainSizer = new wxBoxSizer( wxVERTICAL );
20
21 wxBoxSizer* bUpperSizer;
22 bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
23
24 stPatternLabel = new wxStaticText( this, wxID_ANY, _("Pattern:"), wxDefaultPosition, wxDefaultSize, 0 );
25 stPatternLabel->Wrap( -1 );
26 bUpperSizer->Add( stPatternLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 10 );
27
28 m_patternCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
29 m_patternCtrl->SetMinSize( wxSize( 240,-1 ) );
30
31 bUpperSizer->Add( m_patternCtrl, 1, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
32
33 stNetclassLabel = new wxStaticText( this, wxID_ANY, _("Net class:"), wxDefaultPosition, wxDefaultSize, 0 );
34 stNetclassLabel->Wrap( -1 );
35 bUpperSizer->Add( stNetclassLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 30 );
36
37 m_netclassCtrl = new wxComboBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
38 bUpperSizer->Add( m_netclassCtrl, 0, wxALL, 5 );
39
40
41 bMainSizer->Add( bUpperSizer, 0, wxEXPAND|wxALL, 5 );
42
43 wxBoxSizer* bLowerSizer;
44 bLowerSizer = new wxBoxSizer( wxVERTICAL );
45
46 m_matchingNets = new WX_HTML_REPORT_BOX( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );
47 m_matchingNets->SetMinSize( wxSize( -1,200 ) );
48
49 bLowerSizer->Add( m_matchingNets, 2, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
50
51 m_info = new wxStaticText( this, wxID_ANY, _("Note: complete netclass assignments can be edited in Schematic Setup > Project."), wxDefaultPosition, wxDefaultSize, 0 );
52 m_info->Wrap( -1 );
53 bLowerSizer->Add( m_info, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
54
55
56 bMainSizer->Add( bLowerSizer, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 10 );
57
58 m_sdbSizerStdButtons = new wxStdDialogButtonSizer();
59 m_sdbSizerStdButtonsOK = new wxButton( this, wxID_OK );
61 m_sdbSizerStdButtonsCancel = new wxButton( this, wxID_CANCEL );
63 m_sdbSizerStdButtons->Realize();
64
65 bMainSizer->Add( m_sdbSizerStdButtons, 0, wxALL|wxEXPAND, 5 );
66
67
68 this->SetSizer( bMainSizer );
69 this->Layout();
70 bMainSizer->Fit( this );
71
72 this->Centre( wxBOTH );
73
74 // Connect Events
75 m_patternCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_ASSIGN_NETCLASS_BASE::onPatternText ), NULL, this );
76}
77
79{
80 // Disconnect Events
81 m_patternCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_ASSIGN_NETCLASS_BASE::onPatternText ), NULL, this );
82
83}
virtual void onPatternText(wxCommandEvent &event)
wxStdDialogButtonSizer * m_sdbSizerStdButtons
DIALOG_ASSIGN_NETCLASS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Add Netclass Assignment"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
A slimmed down version of WX_HTML_REPORT_PANEL.
#define _(s)