KiCad PCB EDA Suite
cvpcb/dialogs/dialog_display_options_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version May 10 2016)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_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( wxDefaultSize, wxDefaultSize );
15 
16  wxBoxSizer* bSizerMain;
17  bSizerMain = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* bUpperSizer;
20  bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
21 
22  wxStaticBoxSizer* sbSizerDrawMode;
23  sbSizerDrawMode = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Draw options") ), wxVERTICAL );
24 
25  m_EdgesDisplayOption = new wxCheckBox( sbSizerDrawMode->GetStaticBox(), wxID_ANY, _("Graphic items sketch mode"), wxDefaultPosition, wxDefaultSize, 0 );
26  sbSizerDrawMode->Add( m_EdgesDisplayOption, 0, wxALL, 5 );
27 
28  m_TextDisplayOption = new wxCheckBox( sbSizerDrawMode->GetStaticBox(), wxID_ANY, _("Texts sketch mode"), wxDefaultPosition, wxDefaultSize, 0 );
29  sbSizerDrawMode->Add( m_TextDisplayOption, 0, wxALL, 5 );
30 
31  m_ShowPadSketch = new wxCheckBox( sbSizerDrawMode->GetStaticBox(), ID_PADFILL_OPT, _("Pad sketch mode"), wxDefaultPosition, wxDefaultSize, 0 );
32  sbSizerDrawMode->Add( m_ShowPadSketch, 0, wxEXPAND|wxALL, 5 );
33 
34  m_ShowPadNum = new wxCheckBox( sbSizerDrawMode->GetStaticBox(), wxID_ANY, _("Show pad &number"), wxDefaultPosition, wxDefaultSize, 0 );
35  sbSizerDrawMode->Add( m_ShowPadNum, 0, wxALL|wxEXPAND, 5 );
36 
37 
38  bUpperSizer->Add( sbSizerDrawMode, 1, wxEXPAND|wxALL, 5 );
39 
40  wxStaticBoxSizer* sbSizerViewOpt;
41  sbSizerViewOpt = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Pan and Zoom") ), wxVERTICAL );
42 
43  m_IsZoomNoCenter = new wxCheckBox( sbSizerViewOpt->GetStaticBox(), wxID_ANY, _("Do not center and warp cursor on zoom"), wxDefaultPosition, wxDefaultSize, 0 );
44  m_IsZoomNoCenter->SetToolTip( _("Keep the cursor at its current location when zooming") );
45 
46  sbSizerViewOpt->Add( m_IsZoomNoCenter, 0, wxEXPAND|wxALL, 5 );
47 
48 
49  bUpperSizer->Add( sbSizerViewOpt, 1, wxALL|wxEXPAND, 5 );
50 
51 
52  bSizerMain->Add( bUpperSizer, 1, wxEXPAND, 5 );
53 
54  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
55  bSizerMain->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
56 
57  m_sdbSizer1 = new wxStdDialogButtonSizer();
58  m_sdbSizer1OK = new wxButton( this, wxID_OK );
59  m_sdbSizer1->AddButton( m_sdbSizer1OK );
60  m_sdbSizer1Apply = new wxButton( this, wxID_APPLY );
61  m_sdbSizer1->AddButton( m_sdbSizer1Apply );
62  m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
63  m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
64  m_sdbSizer1->Realize();
65 
66  bSizerMain->Add( m_sdbSizer1, 0, wxEXPAND|wxALL, 5 );
67 
68 
69  this->SetSizer( bSizerMain );
70  this->Layout();
71 
72  // Connect Events
73  m_sdbSizer1Apply->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::OnApplyClick ), NULL, this );
74  m_sdbSizer1Cancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::OnCancelClick ), NULL, this );
75  m_sdbSizer1OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::OnOkClick ), NULL, this );
76 }
77 
79 {
80  // Disconnect Events
81  m_sdbSizer1Apply->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::OnApplyClick ), NULL, this );
82  m_sdbSizer1Cancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::OnCancelClick ), NULL, this );
83  m_sdbSizer1OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::OnOkClick ), NULL, this );
84 
85 }
DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Display Options"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(529, 245), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60