KiCad PCB EDA Suite
dialog_bom_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Mar 22 2016)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
8 #include "dialog_bom_base.h"
9 
11 
12 BEGIN_EVENT_TABLE( DIALOG_BOM_BASE, DIALOG_SHIM )
13  EVT_LISTBOX( wxID_ANY, DIALOG_BOM_BASE::_wxFB_OnPluginSelected )
14  EVT_TEXT( IN_NAMELINE, DIALOG_BOM_BASE::_wxFB_OnNameEdited )
15  EVT_BUTTON( ID_CREATE_BOM, DIALOG_BOM_BASE::_wxFB_OnRunPlugin )
16  EVT_BUTTON( wxID_CANCEL, DIALOG_BOM_BASE::_wxFB_OnCancelClick )
17  EVT_BUTTON( ID_HELP, DIALOG_BOM_BASE::_wxFB_OnHelp )
18  EVT_BUTTON( ID_ADD_PLUGIN, DIALOG_BOM_BASE::_wxFB_OnAddPlugin )
19  EVT_BUTTON( ID_REMOVEL_PLUGIN, DIALOG_BOM_BASE::_wxFB_OnRemovePlugin )
20  EVT_BUTTON( wxID_ANY, DIALOG_BOM_BASE::_wxFB_OnEditPlugin )
21  EVT_TEXT( ID_CMDLINE, DIALOG_BOM_BASE::_wxFB_OnCommandLineEdited )
22  EVT_CHECKBOX( wxID_ANY, DIALOG_BOM_BASE::_wxFB_OnShowConsoleChanged )
23 END_EVENT_TABLE()
24 
25 DIALOG_BOM_BASE::DIALOG_BOM_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
26 {
27  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
28 
29  wxBoxSizer* bMainSizer;
30  bMainSizer = new wxBoxSizer( wxVERTICAL );
31 
32  wxBoxSizer* bUpperSizer;
33  bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
34 
35  wxBoxSizer* bLeftSizer;
36  bLeftSizer = new wxBoxSizer( wxVERTICAL );
37 
38  m_staticTextPluginTitle = new wxStaticText( this, wxID_ANY, _("Plugins"), wxDefaultPosition, wxDefaultSize, 0 );
39  m_staticTextPluginTitle->Wrap( -1 );
40  bLeftSizer->Add( m_staticTextPluginTitle, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
41 
42  m_lbPlugins = new wxListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
43  bLeftSizer->Add( m_lbPlugins, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
44 
45  m_staticTextName = new wxStaticText( this, wxID_ANY, _("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
46  m_staticTextName->Wrap( -1 );
47  bLeftSizer->Add( m_staticTextName, 0, wxRIGHT|wxLEFT, 5 );
48 
49  m_textCtrlName = new wxTextCtrl( this, IN_NAMELINE, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
50  bLeftSizer->Add( m_textCtrlName, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
51 
52 
53  bUpperSizer->Add( bLeftSizer, 1, wxEXPAND, 5 );
54 
55  wxBoxSizer* bRightSizer;
56  bRightSizer = new wxBoxSizer( wxVERTICAL );
57 
58  m_buttonNetlist = new wxButton( this, ID_CREATE_BOM, _("Generate"), wxDefaultPosition, wxDefaultSize, 0 );
59  m_buttonNetlist->SetDefault();
60  bRightSizer->Add( m_buttonNetlist, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
61 
62  m_buttonCancel = new wxButton( this, wxID_CANCEL, _("Close"), wxDefaultPosition, wxDefaultSize, 0 );
63  bRightSizer->Add( m_buttonCancel, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
64 
65  m_buttonHelp = new wxButton( this, ID_HELP, _("Help"), wxDefaultPosition, wxDefaultSize, 0 );
66  bRightSizer->Add( m_buttonHelp, 0, wxALL|wxEXPAND, 5 );
67 
68  m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
69  bRightSizer->Add( m_staticline2, 0, wxEXPAND|wxALL, 5 );
70 
71  m_buttonAddPlugin = new wxButton( this, ID_ADD_PLUGIN, _("Add Plugin"), wxDefaultPosition, wxDefaultSize, 0 );
72  bRightSizer->Add( m_buttonAddPlugin, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
73 
74  m_buttonDelPlugin = new wxButton( this, ID_REMOVEL_PLUGIN, _("Remove Plugin"), wxDefaultPosition, wxDefaultSize, 0 );
75  bRightSizer->Add( m_buttonDelPlugin, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
76 
77  m_buttonEdit = new wxButton( this, wxID_ANY, _("Edit Plugin File"), wxDefaultPosition, wxDefaultSize, 0 );
78  bRightSizer->Add( m_buttonEdit, 0, wxALL|wxEXPAND, 5 );
79 
80 
81  bUpperSizer->Add( bRightSizer, 0, wxALIGN_CENTER_VERTICAL, 5 );
82 
83 
84  bMainSizer->Add( bUpperSizer, 1, wxEXPAND, 5 );
85 
86  wxBoxSizer* bbottomSizer;
87  bbottomSizer = new wxBoxSizer( wxVERTICAL );
88 
89  m_staticTextCmd = new wxStaticText( this, wxID_ANY, _("Command line:"), wxDefaultPosition, wxDefaultSize, 0 );
90  m_staticTextCmd->Wrap( -1 );
91  bbottomSizer->Add( m_staticTextCmd, 0, wxRIGHT|wxLEFT, 5 );
92 
93  m_textCtrlCommand = new wxTextCtrl( this, ID_CMDLINE, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
94  m_textCtrlCommand->SetMinSize( wxSize( 380,-1 ) );
95 
96  bbottomSizer->Add( m_textCtrlCommand, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
97 
98  m_checkBoxShowConsole = new wxCheckBox( this, wxID_ANY, _("Show console window"), wxDefaultPosition, wxDefaultSize, 0 );
99  m_checkBoxShowConsole->Hide();
100  m_checkBoxShowConsole->SetToolTip( _("By default, command line runs with hidden console window and output is redirected to \"Plugin info\" field. Set this option to show the window of the running command.") );
101 
102  bbottomSizer->Add( m_checkBoxShowConsole, 0, wxBOTTOM|wxLEFT, 5 );
103 
104 
105  bMainSizer->Add( bbottomSizer, 0, wxEXPAND, 5 );
106 
107  m_staticTextInfo = new wxStaticText( this, wxID_ANY, _("Plugin Info:"), wxDefaultPosition, wxDefaultSize, 0 );
108  m_staticTextInfo->Wrap( -1 );
109  bMainSizer->Add( m_staticTextInfo, 0, wxRIGHT|wxLEFT, 5 );
110 
111  m_Messages = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
112  bMainSizer->Add( m_Messages, 1, wxALL|wxEXPAND, 5 );
113 
114 
115  this->SetSizer( bMainSizer );
116  this->Layout();
117 
118  this->Centre( wxBOTH );
119 }
120 
122 {
123 }
EVT_CHECKBOX(ID_CURRENT_FORMAT_IS_DEFAULT, NETLIST_DIALOG::SelectDefaultNetlistType) NETLIST_PAGE_DIALOG
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
Class DIALOG_BOM_BASE.