KiCad PCB EDA Suite
dialog_global_pads_edition_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Jun 6 2014)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 DIALOG_GLOBAL_PADS_EDITION_BASE::DIALOG_GLOBAL_PADS_EDITION_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* bMainSizer;
17  bMainSizer = new wxBoxSizer( wxHORIZONTAL );
18 
19  wxBoxSizer* bLeftSizer;
20  bLeftSizer = new wxBoxSizer( wxVERTICAL );
21 
22  wxStaticBoxSizer* sbSizer1;
23  sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Pad Filter :") ), wxVERTICAL );
24 
25  m_Pad_Shape_Filter_CB = new wxCheckBox( this, wxID_ANY, _("Do not modify pads having a different shape"), wxDefaultPosition, wxDefaultSize, 0 );
26  sbSizer1->Add( m_Pad_Shape_Filter_CB, 0, wxALL, 5 );
27 
28  m_Pad_Layer_Filter_CB = new wxCheckBox( this, wxID_ANY, _("Do not modify pads having different layers"), wxDefaultPosition, wxDefaultSize, 0 );
29  sbSizer1->Add( m_Pad_Layer_Filter_CB, 0, wxALL, 5 );
30 
31  m_Pad_Orient_Filter_CB = new wxCheckBox( this, wxID_ANY, _("Do not modify pads having a different orientation"), wxDefaultPosition, wxDefaultSize, 0 );
32  sbSizer1->Add( m_Pad_Orient_Filter_CB, 0, wxALL, 5 );
33 
34 
35  bLeftSizer->Add( sbSizer1, 1, wxALL|wxEXPAND, 5 );
36 
37 
38  bMainSizer->Add( bLeftSizer, 1, wxEXPAND, 5 );
39 
40  wxBoxSizer* bRightSizer;
41  bRightSizer = new wxBoxSizer( wxVERTICAL );
42 
43  m_buttonPadEditor = new wxButton( this, ID_CHANGE_GET_PAD_SETTINGS, _("Pad Editor"), wxDefaultPosition, wxDefaultSize, 0 );
44  bRightSizer->Add( m_buttonPadEditor, 0, wxALL|wxEXPAND, 5 );
45 
46 
47  bRightSizer->Add( 10, 10, 0, 0, 5 );
48 
49  m_buttonChangeModule = new wxButton( this, ID_CHANGE_CURRENT_MODULE, _("Change Pads on Footprint"), wxDefaultPosition, wxDefaultSize, 0 );
50  bRightSizer->Add( m_buttonChangeModule, 0, wxALL|wxEXPAND, 5 );
51 
52  m_buttonIdModules = new wxButton( this, ID_CHANGE_ID_MODULES, _("Change Pads on Identical Footprints"), wxDefaultPosition, wxDefaultSize, 0 );
53  bRightSizer->Add( m_buttonIdModules, 0, wxALL|wxEXPAND, 5 );
54 
55  m_buttonCancel = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
56  bRightSizer->Add( m_buttonCancel, 0, wxALL|wxEXPAND, 5 );
57 
58 
59  bMainSizer->Add( bRightSizer, 0, wxALL|wxEXPAND, 5 );
60 
61 
62  this->SetSizer( bMainSizer );
63  this->Layout();
64  bMainSizer->Fit( this );
65 
66  // Connect Events
67  m_buttonPadEditor->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_PADS_EDITION_BASE::InstallPadEditor ), NULL, this );
68  m_buttonChangeModule->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_PADS_EDITION_BASE::PadPropertiesAccept ), NULL, this );
69  m_buttonIdModules->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_PADS_EDITION_BASE::PadPropertiesAccept ), NULL, this );
70  m_buttonCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_PADS_EDITION_BASE::OnCancelClick ), NULL, this );
71 }
72 
74 {
75  // Disconnect Events
76  m_buttonPadEditor->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_PADS_EDITION_BASE::InstallPadEditor ), NULL, this );
77  m_buttonChangeModule->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_PADS_EDITION_BASE::PadPropertiesAccept ), NULL, this );
78  m_buttonIdModules->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_PADS_EDITION_BASE::PadPropertiesAccept ), NULL, this );
79  m_buttonCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_PADS_EDITION_BASE::OnCancelClick ), NULL, this );
80 
81 }
#define ID_CHANGE_GET_PAD_SETTINGS
DIALOG_GLOBAL_PADS_EDITION_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Global Pads Edition"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void PadPropertiesAccept(wxCommandEvent &event)
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
#define ID_CHANGE_ID_MODULES
virtual void OnCancelClick(wxCommandEvent &event)
virtual void InstallPadEditor(wxCommandEvent &event)
#define ID_CHANGE_CURRENT_MODULE