KiCad PCB EDA Suite
dialog_edit_line_style_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 BEGIN_EVENT_TABLE( DIALOG_EDIT_LINE_STYLE_BASE, DIALOG_SHIM )
14  EVT_BUTTON( wxID_APPLY, DIALOG_EDIT_LINE_STYLE_BASE::_wxFB_resetDefaults )
15 END_EVENT_TABLE()
16 
17 DIALOG_EDIT_LINE_STYLE_BASE::DIALOG_EDIT_LINE_STYLE_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
18 {
19  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
20 
21  wxBoxSizer* mainSizer;
22  mainSizer = new wxBoxSizer( wxVERTICAL );
23 
24  wxFlexGridSizer* fgSizerGeneral;
25  fgSizerGeneral = new wxFlexGridSizer( 0, 3, 0, 0 );
26  fgSizerGeneral->AddGrowableCol( 1 );
27  fgSizerGeneral->SetFlexibleDirection( wxBOTH );
28  fgSizerGeneral->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
29 
30  m_staticTextWidth = new wxStaticText( this, wxID_ANY, _("Width:"), wxDefaultPosition, wxDefaultSize, 0 );
31  m_staticTextWidth->Wrap( -1 );
32  fgSizerGeneral->Add( m_staticTextWidth, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 );
33 
34  m_lineWidth = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
35  fgSizerGeneral->Add( m_lineWidth, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 );
36 
37  m_staticWidthUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
38  m_staticWidthUnits->Wrap( -1 );
39  m_staticWidthUnits->SetMinSize( wxSize( 40,-1 ) );
40 
41  fgSizerGeneral->Add( m_staticWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 );
42 
43  m_staticTextColor = new wxStaticText( this, wxID_ANY, _("Color:"), wxDefaultPosition, wxDefaultSize, 0 );
44  m_staticTextColor->Wrap( -1 );
45  fgSizerGeneral->Add( m_staticTextColor, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
46 
47  m_colorButton = new wxBitmapButton( this, idColorBtn, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
48 
49  m_colorButton->SetBitmap( wxNullBitmap );
50  fgSizerGeneral->Add( m_colorButton, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 3 );
51 
52 
53  fgSizerGeneral->Add( 0, 0, 1, wxEXPAND, 5 );
54 
55  m_staticTextStyle = new wxStaticText( this, wxID_ANY, _("Style:"), wxDefaultPosition, wxDefaultSize, 0 );
56  m_staticTextStyle->Wrap( -1 );
57  fgSizerGeneral->Add( m_staticTextStyle, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
58 
59  m_typeCombo = new wxBitmapComboBox( this, wxID_ANY, _("Combo!"), wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
60  m_typeCombo->SetMinSize( wxSize( 140,-1 ) );
61 
62  fgSizerGeneral->Add( m_typeCombo, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 );
63 
64 
65  mainSizer->Add( fgSizerGeneral, 1, wxEXPAND|wxALL, 5 );
66 
67  m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
68  mainSizer->Add( m_staticline, 0, wxEXPAND | wxALL, 5 );
69 
70  m_sdbSizer = new wxStdDialogButtonSizer();
71  m_sdbSizerOK = new wxButton( this, wxID_OK );
72  m_sdbSizer->AddButton( m_sdbSizerOK );
73  m_sdbSizerApply = new wxButton( this, wxID_APPLY );
74  m_sdbSizer->AddButton( m_sdbSizerApply );
75  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
76  m_sdbSizer->AddButton( m_sdbSizerCancel );
77  m_sdbSizer->Realize();
78 
79  mainSizer->Add( m_sdbSizer, 0, wxALL|wxALIGN_RIGHT, 5 );
80 
81 
82  this->SetSizer( mainSizer );
83  this->Layout();
84  mainSizer->Fit( this );
85 
86  this->Centre( wxBOTH );
87 }
88 
90 {
91 }
void _wxFB_resetDefaults(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
void _wxFB_onColorButtonClicked(wxCommandEvent &event)
#define NULL
#define _(s)
Definition: 3d_actions.cpp:33
Class DIALOG_EDIT_LINE_STYLE_BASE.