KiCad PCB EDA Suite
dlg_3d_pathconfig_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Nov 22 2017)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 DLG_3D_PATH_CONFIG_BASE::DLG_3D_PATH_CONFIG_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( wxSize( -1,-1 ), wxDefaultSize );
15 
16  wxBoxSizer* bSizerMain;
17  bSizerMain = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* bSizer5;
20  bSizer5 = new wxBoxSizer( wxVERTICAL );
21 
22  m_EnvVars = new wxGrid( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
23 
24  // Grid
25  m_EnvVars->CreateGrid( 1, 2 );
26  m_EnvVars->EnableEditing( true );
27  m_EnvVars->EnableGridLines( true );
28  m_EnvVars->EnableDragGridSize( false );
29  m_EnvVars->SetMargins( 0, 0 );
30 
31  // Columns
32  m_EnvVars->SetColSize( 0, 150 );
33  m_EnvVars->SetColSize( 1, 300 );
34  m_EnvVars->EnableDragColMove( false );
35  m_EnvVars->EnableDragColSize( true );
36  m_EnvVars->SetColLabelSize( 30 );
37  m_EnvVars->SetColLabelValue( 0, _("Name") );
38  m_EnvVars->SetColLabelValue( 1, _("Path") );
39  m_EnvVars->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
40 
41  // Rows
42  m_EnvVars->EnableDragRowSize( true );
43  m_EnvVars->SetRowLabelSize( 80 );
44  m_EnvVars->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
45 
46  // Label Appearance
47 
48  // Cell Defaults
49  m_EnvVars->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
50  m_EnvVars->SetMinSize( wxSize( 250,100 ) );
51 
52  bSizer5->Add( m_EnvVars, 1, wxALL|wxEXPAND, 5 );
53 
54  m_btnEnvCfg = new wxButton( this, wxID_ANY, _("Configure Environment Variables"), wxDefaultPosition, wxDefaultSize, 0 );
55  bSizer5->Add( m_btnEnvCfg, 0, wxALIGN_CENTER|wxALL, 5 );
56 
57 
58  bSizerMain->Add( bSizer5, 0, wxEXPAND, 5 );
59 
60  m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
61  bSizerMain->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
62 
63  wxBoxSizer* bSizerGrid;
64  bSizerGrid = new wxBoxSizer( wxHORIZONTAL );
65 
66  m_Aliases = new wxGrid( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
67 
68  // Grid
69  m_Aliases->CreateGrid( 1, 3 );
70  m_Aliases->EnableEditing( true );
71  m_Aliases->EnableGridLines( true );
72  m_Aliases->EnableDragGridSize( false );
73  m_Aliases->SetMargins( 0, 0 );
74 
75  // Columns
76  m_Aliases->SetColSize( 0, 80 );
77  m_Aliases->SetColSize( 1, 300 );
78  m_Aliases->SetColSize( 2, 120 );
79  m_Aliases->EnableDragColMove( false );
80  m_Aliases->EnableDragColSize( true );
81  m_Aliases->SetColLabelSize( 30 );
82  m_Aliases->SetColLabelValue( 0, _("Alias") );
83  m_Aliases->SetColLabelValue( 1, _("Path") );
84  m_Aliases->SetColLabelValue( 2, _("Description") );
85  m_Aliases->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
86 
87  // Rows
88  m_Aliases->AutoSizeRows();
89  m_Aliases->EnableDragRowSize( false );
90  m_Aliases->SetRowLabelSize( 80 );
91  m_Aliases->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
92 
93  // Label Appearance
94 
95  // Cell Defaults
96  m_Aliases->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
97  m_Aliases->SetMinSize( wxSize( -1,150 ) );
98 
99  bSizerGrid->Add( m_Aliases, 1, wxALL|wxEXPAND, 5 );
100 
101 
102  bSizerMain->Add( bSizerGrid, 1, wxEXPAND, 5 );
103 
104  wxBoxSizer* bSizerButtons;
105  bSizerButtons = new wxBoxSizer( wxHORIZONTAL );
106 
107  m_btnAddAlias = new wxButton( this, wxID_ANY, _("Add Alias"), wxDefaultPosition, wxDefaultSize, 0 );
108  bSizerButtons->Add( m_btnAddAlias, 0, wxALL, 5 );
109 
110  m_btnDelAlias = new wxButton( this, wxID_ANY, _("Remove Alias"), wxDefaultPosition, wxDefaultSize, 0 );
111  bSizerButtons->Add( m_btnDelAlias, 0, wxALL, 5 );
112 
113  m_btnMoveUp = new wxButton( this, wxID_ANY, _("Move Up"), wxDefaultPosition, wxDefaultSize, 0 );
114  bSizerButtons->Add( m_btnMoveUp, 0, wxALL, 5 );
115 
116  m_btnMoveDown = new wxButton( this, wxID_ANY, _("Move Down"), wxDefaultPosition, wxDefaultSize, 0 );
117  bSizerButtons->Add( m_btnMoveDown, 0, wxALL, 5 );
118 
119 
120  bSizerMain->Add( bSizerButtons, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
121 
122  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
123  bSizerMain->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
124 
125  m_sdbSizer2 = new wxStdDialogButtonSizer();
126  m_sdbSizer2OK = new wxButton( this, wxID_OK );
127  m_sdbSizer2->AddButton( m_sdbSizer2OK );
128  m_sdbSizer2Cancel = new wxButton( this, wxID_CANCEL );
129  m_sdbSizer2->AddButton( m_sdbSizer2Cancel );
130  m_sdbSizer2Help = new wxButton( this, wxID_HELP );
131  m_sdbSizer2->AddButton( m_sdbSizer2Help );
132  m_sdbSizer2->Realize();
133 
134  bSizerMain->Add( m_sdbSizer2, 0, wxALL|wxEXPAND, 5 );
135 
136 
137  this->SetSizer( bSizerMain );
138  this->Layout();
139  bSizerMain->Fit( this );
140 
141  this->Centre( wxBOTH );
142 
143  // Connect Events
144  m_btnEnvCfg->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnConfigEnvVar ), NULL, this );
145  m_btnAddAlias->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnAddAlias ), NULL, this );
146  m_btnDelAlias->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnDelAlias ), NULL, this );
147  m_btnMoveUp->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnAliasMoveUp ), NULL, this );
148  m_btnMoveDown->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnAliasMoveDown ), NULL, this );
149  m_sdbSizer2Help->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnHelp ), NULL, this );
150 }
151 
153 {
154  // Disconnect Events
155  m_btnEnvCfg->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnConfigEnvVar ), NULL, this );
156  m_btnAddAlias->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnAddAlias ), NULL, this );
157  m_btnDelAlias->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnDelAlias ), NULL, this );
158  m_btnMoveUp->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnAliasMoveUp ), NULL, this );
159  m_btnMoveDown->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnAliasMoveDown ), NULL, this );
160  m_sdbSizer2Help->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnHelp ), NULL, this );
161 
162 }
wxStdDialogButtonSizer * m_sdbSizer2
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:70
virtual void OnAliasMoveUp(wxCommandEvent &event)
virtual void OnAddAlias(wxCommandEvent &event)
DLG_3D_PATH_CONFIG_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("3D Search Path Configuration"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnHelp(wxCommandEvent &event)
virtual void OnAliasMoveDown(wxCommandEvent &event)
virtual void OnDelAlias(wxCommandEvent &event)
virtual void OnConfigEnvVar(wxCommandEvent &event)