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 
8 #include "widgets/color_swatch.h"
9 
11 
13 
14 BEGIN_EVENT_TABLE( DIALOG_EDIT_LINE_STYLE_BASE, DIALOG_SHIM )
15  EVT_BUTTON( wxID_APPLY, DIALOG_EDIT_LINE_STYLE_BASE::_wxFB_resetDefaults )
16 END_EVENT_TABLE()
17 
18 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 )
19 {
20  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
21 
22  wxBoxSizer* mainSizer;
23  mainSizer = new wxBoxSizer( wxVERTICAL );
24 
25  wxFlexGridSizer* fgSizerGeneral;
26  fgSizerGeneral = new wxFlexGridSizer( 0, 3, 0, 0 );
27  fgSizerGeneral->AddGrowableCol( 1 );
28  fgSizerGeneral->SetFlexibleDirection( wxBOTH );
29  fgSizerGeneral->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
30 
31  m_staticTextWidth = new wxStaticText( this, wxID_ANY, _("Width:"), wxDefaultPosition, wxDefaultSize, 0 );
32  m_staticTextWidth->Wrap( -1 );
33  fgSizerGeneral->Add( m_staticTextWidth, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 3 );
34 
35  m_lineWidth = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
36  fgSizerGeneral->Add( m_lineWidth, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 3 );
37 
38  m_staticWidthUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
39  m_staticWidthUnits->Wrap( -1 );
40  m_staticWidthUnits->SetMinSize( wxSize( 40,-1 ) );
41 
42  fgSizerGeneral->Add( m_staticWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 3 );
43 
44  m_staticTextColor = new wxStaticText( this, wxID_ANY, _("Color:"), wxDefaultPosition, wxDefaultSize, 0 );
45  m_staticTextColor->Wrap( -1 );
46  fgSizerGeneral->Add( m_staticTextColor, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
47 
48  m_panel1 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
49  wxBoxSizer* bSizer2;
50  bSizer2 = new wxBoxSizer( wxVERTICAL );
51 
52  m_colorSwatch = new COLOR_SWATCH( m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
53  bSizer2->Add( m_colorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
54 
55 
56  m_panel1->SetSizer( bSizer2 );
57  m_panel1->Layout();
58  bSizer2->Fit( m_panel1 );
59  fgSizerGeneral->Add( m_panel1, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 2 );
60 
61 
62  fgSizerGeneral->Add( 0, 0, 1, wxEXPAND, 5 );
63 
64  m_staticTextStyle = new wxStaticText( this, wxID_ANY, _("Style:"), wxDefaultPosition, wxDefaultSize, 0 );
65  m_staticTextStyle->Wrap( -1 );
66  fgSizerGeneral->Add( m_staticTextStyle, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
67 
68  m_typeCombo = new wxBitmapComboBox( this, wxID_ANY, _("Combo!"), wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
69  m_typeCombo->SetMinSize( wxSize( 240,-1 ) );
70 
71  fgSizerGeneral->Add( m_typeCombo, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 3 );
72 
73 
74  mainSizer->Add( fgSizerGeneral, 1, wxEXPAND|wxALL, 10 );
75 
76  m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
77  mainSizer->Add( m_staticline, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
78 
79  m_sdbSizer = new wxStdDialogButtonSizer();
80  m_sdbSizerOK = new wxButton( this, wxID_OK );
81  m_sdbSizer->AddButton( m_sdbSizerOK );
82  m_sdbSizerApply = new wxButton( this, wxID_APPLY );
83  m_sdbSizer->AddButton( m_sdbSizerApply );
84  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
85  m_sdbSizer->AddButton( m_sdbSizerCancel );
86  m_sdbSizer->Realize();
87 
88  mainSizer->Add( m_sdbSizer, 0, wxALL|wxALIGN_RIGHT, 5 );
89 
90 
91  this->SetSizer( mainSizer );
92  this->Layout();
93  mainSizer->Fit( this );
94 
95  this->Centre( wxBOTH );
96 }
97 
99 {
100 }
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
#define NULL
#define _(s)
Definition: 3d_actions.cpp:33
Class representing a simple color swatch, of the kind used to set layer colors.
Definition: color_swatch.h:53
Class DIALOG_EDIT_LINE_STYLE_BASE.