KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_sync_sheet_pins_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
13{
14 wxBoxSizer* bSizer3;
15 bSizer3 = new wxBoxSizer( wxHORIZONTAL );
16
17 m_panel11 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
18 wxBoxSizer* bSizer41;
19 bSizer41 = new wxBoxSizer( wxVERTICAL );
20
21 wxBoxSizer* bSizer61;
22 bSizer61 = new wxBoxSizer( wxVERTICAL );
23
24 m_labelSymName = new wxStaticText( m_panel11, wxID_ANY, _("Symbol name"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL|wxBORDER_THEME );
25 m_labelSymName->Wrap( -1 );
26 bSizer61->Add( m_labelSymName, 0, wxALL|wxEXPAND, 0 );
27
28 m_viewSheetPins = new wxDataViewCtrl( m_panel11, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_HORIZ_RULES|wxDV_MULTIPLE|wxDV_ROW_LINES|wxDV_VERT_RULES );
29 bSizer61->Add( m_viewSheetPins, 1, wxALL|wxEXPAND, 0 );
30
31 wxBoxSizer* bSizer51;
32 bSizer51 = new wxBoxSizer( wxVERTICAL );
33
34 m_btnAddLabels = new wxButton( m_panel11, wxID_ANY, _("Add Hierarchical Labels"), wxDefaultPosition, wxDefaultSize, 0 );
35 bSizer51->Add( m_btnAddLabels, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
36
37 m_btnRmPins = new wxButton( m_panel11, wxID_ANY, _("Delete Sheet Pins"), wxDefaultPosition, wxDefaultSize, 0 );
38 bSizer51->Add( m_btnRmPins, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
39
40
41 bSizer61->Add( bSizer51, 0, wxEXPAND, 5 );
42
43
44 bSizer41->Add( bSizer61, 1, wxEXPAND, 5 );
45
46
47 m_panel11->SetSizer( bSizer41 );
48 m_panel11->Layout();
49 bSizer41->Fit( m_panel11 );
50 bSizer3->Add( m_panel11, 1, wxEXPAND | wxALL, 5 );
51
52 m_panel1 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
53 wxBoxSizer* bSizer4;
54 bSizer4 = new wxBoxSizer( wxVERTICAL );
55
56 wxBoxSizer* bSizer6;
57 bSizer6 = new wxBoxSizer( wxVERTICAL );
58
59 m_labelSheetName = new wxStaticText( m_panel1, wxID_ANY, _("Sheet name"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL|wxBORDER_THEME );
60 m_labelSheetName->Wrap( -1 );
61 bSizer6->Add( m_labelSheetName, 0, wxALL|wxEXPAND, 0 );
62
63 m_viewSheetLabels = new wxDataViewCtrl( m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_HORIZ_RULES|wxDV_MULTIPLE|wxDV_ROW_LINES|wxDV_VERT_RULES );
64 bSizer6->Add( m_viewSheetLabels, 1, wxALL|wxEXPAND, 0 );
65
66 wxBoxSizer* bSizer5;
67 bSizer5 = new wxBoxSizer( wxVERTICAL );
68
69 m_btnAddSheetPins = new wxButton( m_panel1, wxID_ANY, _("Add Sheet Pins"), wxDefaultPosition, wxDefaultSize, 0 );
70 bSizer5->Add( m_btnAddSheetPins, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
71
72 m_btnRmLabels = new wxButton( m_panel1, wxID_ANY, _("Delete Hierarchical Labels"), wxDefaultPosition, wxDefaultSize, 0 );
73 bSizer5->Add( m_btnRmLabels, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
74
75
76 bSizer6->Add( bSizer5, 0, wxEXPAND, 5 );
77
78
79 bSizer4->Add( bSizer6, 1, wxEXPAND, 5 );
80
81
82 m_panel1->SetSizer( bSizer4 );
83 m_panel1->Layout();
84 bSizer4->Fit( m_panel1 );
85 bSizer3->Add( m_panel1, 1, wxEXPAND | wxALL, 5 );
86
87 m_panel3 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
88 wxBoxSizer* bSizer13;
89 bSizer13 = new wxBoxSizer( wxVERTICAL );
90
91
92 bSizer13->Add( 0, 0, 1, wxEXPAND, 5 );
93
94 m_panel8 = new wxPanel( m_panel3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
95 wxBoxSizer* bSizer14;
96 bSizer14 = new wxBoxSizer( wxVERTICAL );
97
98 m_btnUseLabelAsTemplate = new wxBitmapButton( m_panel8, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
99 m_btnUseLabelAsTemplate->SetToolTip( _("Change sheet pin to hierarchical label") );
100
101 bSizer14->Add( m_btnUseLabelAsTemplate, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
102
103 m_btnUsePinAsTemplate = new wxBitmapButton( m_panel8, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
104 m_btnUsePinAsTemplate->SetToolTip( _("Change hierarchical label to sheet pin") );
105
106 bSizer14->Add( m_btnUsePinAsTemplate, 0, wxALL|wxEXPAND, 5 );
107
108 m_btnUndo = new wxBitmapButton( m_panel8, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
109 m_btnUndo->SetToolTip( _("Break sheet pin and hierarchical label association(s)") );
110
111 bSizer14->Add( m_btnUndo, 0, wxALL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
112
113
114 m_panel8->SetSizer( bSizer14 );
115 m_panel8->Layout();
116 bSizer14->Fit( m_panel8 );
117 bSizer13->Add( m_panel8, 0, wxEXPAND | wxALL, 0 );
118
119
120 bSizer13->Add( 0, 0, 2, wxEXPAND, 5 );
121
122
123 m_panel3->SetSizer( bSizer13 );
124 m_panel3->Layout();
125 bSizer13->Fit( m_panel3 );
126 bSizer3->Add( m_panel3, 0, wxEXPAND | wxALL, 0 );
127
128 m_panel4 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
129 wxBoxSizer* bSizer15;
130 bSizer15 = new wxBoxSizer( wxVERTICAL );
131
132 wxBoxSizer* bSizer16;
133 bSizer16 = new wxBoxSizer( wxVERTICAL );
134
135 m_viewAssociated = new wxDataViewCtrl( m_panel4, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_HORIZ_RULES|wxDV_MULTIPLE|wxDV_ROW_LINES|wxDV_VERT_RULES );
136 bSizer16->Add( m_viewAssociated, 1, wxBOTTOM|wxEXPAND|wxTOP, 5 );
137
138
139 bSizer15->Add( bSizer16, 1, wxEXPAND, 5 );
140
141
142 m_panel4->SetSizer( bSizer15 );
143 m_panel4->Layout();
144 bSizer15->Fit( m_panel4 );
145 bSizer3->Add( m_panel4, 1, wxEXPAND | wxALL, 5 );
146
147
148 this->SetSizer( bSizer3 );
149 this->Layout();
150
151 // Connect Events
152 m_viewSheetPins->Connect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnViewSheetPinCellClicked ), NULL, this );
153 m_btnAddLabels->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnAddLabelsClicked ), NULL, this );
154 m_btnRmPins->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnRmPinsClicked ), NULL, this );
155 m_viewSheetLabels->Connect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnViewSheetLabelCellClicked ), NULL, this );
156 m_btnAddSheetPins->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnAddSheetPinsClicked ), NULL, this );
157 m_btnRmLabels->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnRmLabelsClicked ), NULL, this );
158 m_btnUseLabelAsTemplate->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnUseLabelAsTemplateClicked ), NULL, this );
159 m_btnUsePinAsTemplate->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnUsePinAsTemplateClicked ), NULL, this );
160 m_btnUndo->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnUndoClicked ), NULL, this );
161 m_viewAssociated->Connect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnViewMatchedCellClicked ), NULL, this );
162}
163
165{
166 // Disconnect Events
167 m_viewSheetPins->Disconnect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnViewSheetPinCellClicked ), NULL, this );
168 m_btnAddLabels->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnAddLabelsClicked ), NULL, this );
169 m_btnRmPins->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnRmPinsClicked ), NULL, this );
170 m_viewSheetLabels->Disconnect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnViewSheetLabelCellClicked ), NULL, this );
171 m_btnAddSheetPins->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnAddSheetPinsClicked ), NULL, this );
172 m_btnRmLabels->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnRmLabelsClicked ), NULL, this );
173 m_btnUseLabelAsTemplate->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnUseLabelAsTemplateClicked ), NULL, this );
174 m_btnUsePinAsTemplate->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnUsePinAsTemplateClicked ), NULL, this );
175 m_btnUndo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnUndoClicked ), NULL, this );
176 m_viewAssociated->Disconnect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnViewMatchedCellClicked ), NULL, this );
177
178}
const char * name
Definition: DXF_plotter.cpp:57
virtual void OnBtnUsePinAsTemplateClicked(wxCommandEvent &event)
virtual void OnViewMatchedCellClicked(wxDataViewEvent &event)
virtual void OnBtnUndoClicked(wxCommandEvent &event)
PANEL_SYNC_SHEET_PINS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(666, 414), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
virtual void OnBtnRmPinsClicked(wxCommandEvent &event)
virtual void OnBtnUseLabelAsTemplateClicked(wxCommandEvent &event)
virtual void OnBtnAddLabelsClicked(wxCommandEvent &event)
virtual void OnBtnRmLabelsClicked(wxCommandEvent &event)
virtual void OnBtnAddSheetPinsClicked(wxCommandEvent &event)
virtual void OnViewSheetLabelCellClicked(wxDataViewEvent &event)
virtual void OnViewSheetPinCellClicked(wxDataViewEvent &event)
#define _(s)