KiCad PCB EDA Suite
dialog_lib_edit_draw_item_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Jul 11 2018)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 DIALOG_LIB_EDIT_DRAW_ITEM_BASE::DIALOG_LIB_EDIT_DRAW_ITEM_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* mainSizer;
17  mainSizer = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* dlgBorderSizer;
20  dlgBorderSizer = new wxBoxSizer( wxVERTICAL );
21 
22  wxBoxSizer* bSizerLineWidth;
23  bSizerLineWidth = new wxBoxSizer( wxHORIZONTAL );
24 
25  m_widthLabel = new wxStaticText( this, wxID_ANY, _("Line width:"), wxDefaultPosition, wxDefaultSize, 0 );
26  m_widthLabel->Wrap( -1 );
27  bSizerLineWidth->Add( m_widthLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 );
28 
29  m_widthCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
30  bSizerLineWidth->Add( m_widthCtrl, 1, wxALIGN_CENTER_VERTICAL|wxALL, 3 );
31 
32  m_widthUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
33  m_widthUnits->Wrap( -1 );
34  bSizerLineWidth->Add( m_widthUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 3 );
35 
36 
37  dlgBorderSizer->Add( bSizerLineWidth, 0, wxEXPAND, 5 );
38 
39  wxString m_fillCtrlChoices[] = { _("Do not fill"), _("Fill with body outline color"), _("Fill with body background color") };
40  int m_fillCtrlNChoices = sizeof( m_fillCtrlChoices ) / sizeof( wxString );
41  m_fillCtrl = new wxRadioBox( this, wxID_ANY, _("Fill Style"), wxDefaultPosition, wxDefaultSize, m_fillCtrlNChoices, m_fillCtrlChoices, 1, wxRA_SPECIFY_COLS );
42  m_fillCtrl->SetSelection( 0 );
43  dlgBorderSizer->Add( m_fillCtrl, 0, wxEXPAND|wxTOP|wxBOTTOM, 10 );
44 
45  m_checkApplyToAllUnits = new wxCheckBox( this, wxID_ANY, _("Common to all &units in component"), wxDefaultPosition, wxDefaultSize, 0 );
46  dlgBorderSizer->Add( m_checkApplyToAllUnits, 0, wxALL, 3 );
47 
48  m_checkApplyToAllConversions = new wxCheckBox( this, wxID_ANY, _("Common to all body &styles (DeMorgan)"), wxDefaultPosition, wxDefaultSize, 0 );
49  dlgBorderSizer->Add( m_checkApplyToAllConversions, 0, wxALL, 3 );
50 
51 
52  mainSizer->Add( dlgBorderSizer, 1, wxALL|wxEXPAND, 10 );
53 
54  m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
55  mainSizer->Add( m_staticline, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
56 
57  m_sdbSizer = new wxStdDialogButtonSizer();
58  m_sdbSizerOK = new wxButton( this, wxID_OK );
59  m_sdbSizer->AddButton( m_sdbSizerOK );
60  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
61  m_sdbSizer->AddButton( m_sdbSizerCancel );
62  m_sdbSizer->Realize();
63 
64  mainSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
65 
66 
67  this->SetSizer( mainSizer );
68  this->Layout();
69 
70  this->Centre( wxBOTH );
71 }
72 
74 {
75 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:82
DIALOG_LIB_EDIT_DRAW_ITEM_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Drawing Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(295, 256), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)