KiCad PCB EDA Suite
dialog_edit_line_style_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Apr 19 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 )
13  EVT_BUTTON( idColorBtn, DIALOG_EDIT_LINE_STYLE_BASE::_wxFB_onColorButtonClicked )
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  wxBoxSizer* bSizerUpper;
25  bSizerUpper = new wxBoxSizer( wxHORIZONTAL );
26 
27  wxStaticBoxSizer* sbSizerGeneral;
28  sbSizerGeneral = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("General:") ), wxVERTICAL );
29 
30  wxFlexGridSizer* fgSizerGeneral;
31  fgSizerGeneral = new wxFlexGridSizer( 0, 3, 0, 0 );
32  fgSizerGeneral->AddGrowableCol( 1 );
33  fgSizerGeneral->SetFlexibleDirection( wxBOTH );
34  fgSizerGeneral->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
35 
36  m_staticTextWidth = new wxStaticText( sbSizerGeneral->GetStaticBox(), wxID_ANY, _("Width:"), wxDefaultPosition, wxDefaultSize, 0 );
37  m_staticTextWidth->Wrap( -1 );
38  fgSizerGeneral->Add( m_staticTextWidth, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 );
39 
40  m_lineWidth = new wxTextCtrl( sbSizerGeneral->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
41  m_lineWidth->SetMinSize( wxSize( 80,-1 ) );
42 
43  fgSizerGeneral->Add( m_lineWidth, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 );
44 
45  m_staticWidthUnits = new wxStaticText( sbSizerGeneral->GetStaticBox(), wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
46  m_staticWidthUnits->Wrap( -1 );
47  fgSizerGeneral->Add( m_staticWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 1 );
48 
49  m_staticText5 = new wxStaticText( sbSizerGeneral->GetStaticBox(), wxID_ANY, _("Color:"), wxDefaultPosition, wxDefaultSize, 0 );
50  m_staticText5->Wrap( -1 );
51  fgSizerGeneral->Add( m_staticText5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
52 
53  m_colorButton = new wxBitmapButton( sbSizerGeneral->GetStaticBox(), idColorBtn, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
54  fgSizerGeneral->Add( m_colorButton, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
55 
56 
57  sbSizerGeneral->Add( fgSizerGeneral, 3, wxEXPAND, 5 );
58 
59 
60  bSizerUpper->Add( sbSizerGeneral, 3, wxALL|wxEXPAND, 5 );
61 
62  wxString m_lineStyleChoices[] = { _("Solid"), _("Dashed"), _("Dotted"), _("Dash-Dot") };
63  int m_lineStyleNChoices = sizeof( m_lineStyleChoices ) / sizeof( wxString );
64  m_lineStyle = new wxRadioBox( this, wxID_ANY, _("Line Style:"), wxDefaultPosition, wxDefaultSize, m_lineStyleNChoices, m_lineStyleChoices, 4, wxRA_SPECIFY_ROWS );
65  m_lineStyle->SetSelection( 1 );
66  bSizerUpper->Add( m_lineStyle, 2, wxALL|wxEXPAND, 5 );
67 
68 
69  mainSizer->Add( bSizerUpper, 0, wxEXPAND, 5 );
70 
71 
72  mainSizer->Add( 0, 0, 1, wxALL|wxEXPAND, 1 );
73 
74  m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
75  mainSizer->Add( m_staticline, 0, wxEXPAND | wxALL, 5 );
76 
77  m_sdbSizer = new wxStdDialogButtonSizer();
78  m_sdbSizerOK = new wxButton( this, wxID_OK );
79  m_sdbSizer->AddButton( m_sdbSizerOK );
80  m_sdbSizerApply = new wxButton( this, wxID_APPLY );
81  m_sdbSizer->AddButton( m_sdbSizerApply );
82  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
83  m_sdbSizer->AddButton( m_sdbSizerCancel );
84  m_sdbSizer->Realize();
85 
86  mainSizer->Add( m_sdbSizer, 0, wxALL|wxALIGN_RIGHT, 5 );
87 
88 
89  this->SetSizer( mainSizer );
90  this->Layout();
91 
92  this->Centre( wxBOTH );
93 }
94 
96 {
97 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:82
Class DIALOG_EDIT_LINE_STYLE_BASE.