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