KiCad PCB EDA Suite
dialog_lib_shape_properties_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Oct 26 2018)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 DIALOG_LIB_SHAPE_PROPERTIES_BASE::DIALOG_LIB_SHAPE_PROPERTIES_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  m_helpLabel = new wxStaticText( this, wxID_ANY, _("Set to 0 to use default values"), wxDefaultPosition, wxDefaultSize, 0 );
40  m_helpLabel->Wrap( 333 );
41  dlgBorderSizer->Add( m_helpLabel, 0, wxALL, 5 );
42 
43  wxString m_fillCtrlChoices[] = { _("Do not fill"), _("Fill with body outline color"), _("Fill with body background color") };
44  int m_fillCtrlNChoices = sizeof( m_fillCtrlChoices ) / sizeof( wxString );
45  m_fillCtrl = new wxRadioBox( this, wxID_ANY, _("Fill Style"), wxDefaultPosition, wxDefaultSize, m_fillCtrlNChoices, m_fillCtrlChoices, 1, wxRA_SPECIFY_COLS );
46  m_fillCtrl->SetSelection( 0 );
47  dlgBorderSizer->Add( m_fillCtrl, 0, wxEXPAND|wxTOP|wxBOTTOM, 10 );
48 
49  m_checkApplyToAllUnits = new wxCheckBox( this, wxID_ANY, _("Common to all &units in symbol"), wxDefaultPosition, wxDefaultSize, 0 );
50  dlgBorderSizer->Add( m_checkApplyToAllUnits, 0, wxALL, 3 );
51 
52  m_checkApplyToAllConversions = new wxCheckBox( this, wxID_ANY, _("Common to all body &styles (De Morgan)"), wxDefaultPosition, wxDefaultSize, 0 );
53  dlgBorderSizer->Add( m_checkApplyToAllConversions, 0, wxALL, 3 );
54 
55 
56  mainSizer->Add( dlgBorderSizer, 1, wxALL|wxEXPAND, 10 );
57 
58  m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
59  mainSizer->Add( m_staticline, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
60 
61  m_sdbSizer = new wxStdDialogButtonSizer();
62  m_sdbSizerOK = new wxButton( this, wxID_OK );
63  m_sdbSizer->AddButton( m_sdbSizerOK );
64  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
65  m_sdbSizer->AddButton( m_sdbSizerCancel );
66  m_sdbSizer->Realize();
67 
68  mainSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
69 
70 
71  this->SetSizer( mainSizer );
72  this->Layout();
73  mainSizer->Fit( this );
74 
75  this->Centre( wxBOTH );
76 }
77 
79 {
80 }
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:82
#define _(s)
DIALOG_LIB_SHAPE_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Drawing Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)