KiCad PCB EDA Suite
dialog_global_sym_lib_table_config_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Jul 29 2017)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 DIALOG_GLOBAL_SYM_LIB_TABLE_CONFIG_BASE::DIALOG_GLOBAL_SYM_LIB_TABLE_CONFIG_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* bSizer1;
17  bSizer1 = new wxBoxSizer( wxHORIZONTAL );
18 
19  wxBoxSizer* bSizer2;
20  bSizer2 = new wxBoxSizer( wxVERTICAL );
21 
22  m_staticText1 = new wxStaticText( this, wxID_ANY, _("KiCad has been run for the first time using the new symbol library table for accessing symbol libraries. In order for KiCad to access symbol libraries, you must configure your global symbol library table. Please select from one of the options below. If you are not sure which option to select, please use the default selection."), wxDefaultPosition, wxDefaultSize, 0 );
23  m_staticText1->Wrap( 500 );
24  bSizer2->Add( m_staticText1, 0, wxALL, 5 );
25 
26 
27  bSizer2->Add( 0, 0, 0, wxALL|wxEXPAND, 5 );
28 
29  m_defaultRb = new wxRadioButton( this, wxID_ANY, _("Copy default global symbol library table (recommended)"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
30  m_defaultRb->SetValue( true );
31  m_defaultRb->SetToolTip( _("Select this option if you not sure about configuring the global symbol library table") );
32 
33  bSizer2->Add( m_defaultRb, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
34 
35  m_customRb = new wxRadioButton( this, wxID_ANY, _("Copy custom global symbol library table"), wxDefaultPosition, wxDefaultSize, 0 );
36  m_customRb->SetToolTip( _("Select this option to copy a symbol library table file other than the default") );
37 
38  bSizer2->Add( m_customRb, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
39 
40  m_emptyRb = new wxRadioButton( this, wxID_ANY, _("Create an empty global symbol library table"), wxDefaultPosition, wxDefaultSize, 0 );
41  m_emptyRb->SetToolTip( _("Select this option to define symbol libraries in project specific library tables") );
42 
43  bSizer2->Add( m_emptyRb, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
44 
45 
46  bSizer2->Add( 0, 0, 0, wxALL|wxEXPAND, 5 );
47 
48  m_staticText2 = new wxStaticText( this, wxID_ANY, _("Select global symbol library table file:"), wxDefaultPosition, wxDefaultSize, 0 );
49  m_staticText2->Wrap( -1 );
50  bSizer2->Add( m_staticText2, 0, wxALL, 5 );
51 
52  m_filePicker1 = new wxFilePickerCtrl( this, wxID_ANY, wxEmptyString, _("Select a file"), wxT("*.*"), wxDefaultPosition, wxDefaultSize, wxFLP_DEFAULT_STYLE|wxFLP_FILE_MUST_EXIST|wxFLP_OPEN );
53  m_filePicker1->Enable( false );
54 
55  bSizer2->Add( m_filePicker1, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
56 
57  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
58  bSizer2->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
59 
60  m_sdbSizer1 = new wxStdDialogButtonSizer();
61  m_sdbSizer1OK = new wxButton( this, wxID_OK );
62  m_sdbSizer1->AddButton( m_sdbSizer1OK );
63  m_sdbSizer1->Realize();
64 
65  bSizer2->Add( m_sdbSizer1, 1, wxEXPAND, 5 );
66 
67 
68  bSizer1->Add( bSizer2, 1, wxALL|wxEXPAND, 5 );
69 
70 
71  this->SetSizer( bSizer1 );
72  this->Layout();
73  bSizer1->Fit( this );
74 
75  this->Centre( wxBOTH );
76 
77  // Connect Events
78  m_defaultRb->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_GLOBAL_SYM_LIB_TABLE_CONFIG_BASE::onUpdateDefaultSelection ), NULL, this );
79  m_filePicker1->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_GLOBAL_SYM_LIB_TABLE_CONFIG_BASE::onUpdateFilePicker ), NULL, this );
80 }
81 
83 {
84  // Disconnect Events
85  m_defaultRb->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_GLOBAL_SYM_LIB_TABLE_CONFIG_BASE::onUpdateDefaultSelection ), NULL, this );
86  m_filePicker1->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_GLOBAL_SYM_LIB_TABLE_CONFIG_BASE::onUpdateFilePicker ), NULL, this );
87 
88 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:82
virtual void onUpdateDefaultSelection(wxUpdateUIEvent &event)
DIALOG_GLOBAL_SYM_LIB_TABLE_CONFIG_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Configure Global Symbol Library Table"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER)