diff --git a/pcbnew/dialogs/dialog_plot_base.cpp b/pcbnew/dialogs/dialog_plot_base.cpp index 5a2b2744b5..9e5890c40f 100644 --- a/pcbnew/dialogs/dialog_plot_base.cpp +++ b/pcbnew/dialogs/dialog_plot_base.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Dec 30 2017) +// C++ code generated with wxFormBuilder (version Jul 11 2018) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -42,7 +42,7 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr bupperSizer->Add( m_outputDirectoryName, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 ); - m_browseButton = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW ); + m_browseButton = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 ); m_browseButton->SetMinSize( wxSize( 29,29 ) ); bupperSizer->Add( m_browseButton, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 ); @@ -352,7 +352,7 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr m_sizerButtons->Add( m_sdbSizer1, 1, wxEXPAND, 5 ); - m_MainSizer->Add( m_sizerButtons, 0, wxALIGN_RIGHT|wxEXPAND|wxALL, 5 ); + m_MainSizer->Add( m_sizerButtons, 0, wxALL|wxEXPAND, 5 ); this->SetSizer( m_MainSizer ); @@ -396,11 +396,11 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr m_buttonDRC->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::onRunDRC ), NULL, this ); m_sdbSizer1Apply->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::CreateDrillFile ), NULL, this ); m_sdbSizer1OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::Plot ), NULL, this ); - this->Connect( m_menuItem1->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnPopUpLayers ) ); - this->Connect( m_menuItem2->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnPopUpLayers ) ); - this->Connect( m_menuItem3->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnPopUpLayers ) ); - this->Connect( m_menuItem4->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnPopUpLayers ) ); - this->Connect( m_menuItem5->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnPopUpLayers ) ); + m_popMenu->Bind(wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnPopUpLayers ), this, m_menuItem1->GetId()); + m_popMenu->Bind(wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnPopUpLayers ), this, m_menuItem2->GetId()); + m_popMenu->Bind(wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnPopUpLayers ), this, m_menuItem3->GetId()); + m_popMenu->Bind(wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnPopUpLayers ), this, m_menuItem4->GetId()); + m_popMenu->Bind(wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnPopUpLayers ), this, m_menuItem5->GetId()); } DIALOG_PLOT_BASE::~DIALOG_PLOT_BASE() @@ -417,11 +417,6 @@ DIALOG_PLOT_BASE::~DIALOG_PLOT_BASE() m_buttonDRC->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::onRunDRC ), NULL, this ); m_sdbSizer1Apply->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::CreateDrillFile ), NULL, this ); m_sdbSizer1OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::Plot ), NULL, this ); - this->Disconnect( ID_LAYER_FAB, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnPopUpLayers ) ); - this->Disconnect( ID_SELECT_COPPER_LAYERS, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnPopUpLayers ) ); - this->Disconnect( ID_DESELECT_COPPER_LAYERS, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnPopUpLayers ) ); - this->Disconnect( ID_SELECT_ALL_LAYERS, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnPopUpLayers ) ); - this->Disconnect( ID_DESELECT_ALL_LAYERS, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnPopUpLayers ) ); delete m_popMenu; } diff --git a/pcbnew/dialogs/dialog_plot_base.fbp b/pcbnew/dialogs/dialog_plot_base.fbp index 33cb087084..81b6f2b4ce 100644 --- a/pcbnew/dialogs/dialog_plot_base.fbp +++ b/pcbnew/dialogs/dialog_plot_base.fbp @@ -1,6 +1,6 @@ - + C++ @@ -14,6 +14,7 @@ dialog_plot_base 1000 none + 1 Dialog_Plot_base @@ -54,13 +55,20 @@ - + + + + + + + + @@ -75,17 +83,23 @@ + + + + + OnRightClick + @@ -135,6 +149,7 @@ 0 wxID_ANY Plot format: + 0 0 @@ -160,7 +175,14 @@ -1 + + + + + + + @@ -247,7 +269,14 @@ + + + + + + + SetPlotFormat @@ -316,6 +345,7 @@ 0 wxID_ANY Output directory: + 0 0 @@ -341,7 +371,14 @@ -1 + + + + + + + @@ -428,7 +465,14 @@ + + + + + + + @@ -479,6 +523,7 @@ 1 1 + 0 0 @@ -492,9 +537,10 @@ 0 0 - wxID_ANY Browse + + 0 0 @@ -509,11 +555,12 @@ protected 1 + + Resizable - 1 - wxBU_AUTODRAW + ; forward_declare 0 @@ -524,8 +571,15 @@ + + + + + + OnOutputDirectoryBrowseClicked + @@ -635,7 +689,14 @@ + + + + + + + @@ -767,7 +828,14 @@ + + + + + + + @@ -858,7 +926,14 @@ + + + + + + + @@ -949,7 +1024,14 @@ + + + + + + + @@ -1040,7 +1122,14 @@ + + + + + + + @@ -1131,7 +1220,14 @@ + + + + + + + @@ -1222,7 +1318,14 @@ + + + + + + + @@ -1313,7 +1416,14 @@ + + + + + + + @@ -1404,7 +1514,14 @@ + + + + + + + @@ -1466,6 +1583,7 @@ 0 wxID_ANY Drill marks: + 0 0 @@ -1491,7 +1609,14 @@ -1 + + + + + + + @@ -1581,7 +1706,14 @@ + + + + + + + @@ -1643,6 +1775,7 @@ 0 wxID_ANY Scaling: + 0 0 @@ -1668,7 +1801,14 @@ -1 + + + + + + + @@ -1758,7 +1898,14 @@ + + + + + + + OnSetScaleOpt @@ -1820,6 +1967,7 @@ 0 wxID_ANY Plot mode: + 0 0 @@ -1845,7 +1993,14 @@ -1 + + + + + + + @@ -1935,7 +2090,14 @@ + + + + + + + @@ -1997,6 +2159,7 @@ 0 wxID_ANY Default line width: + 0 0 @@ -2022,7 +2185,14 @@ -1 + + + + + + + @@ -2112,7 +2282,14 @@ + + + + + + + @@ -2177,6 +2354,7 @@ 0 wxID_ANY mm + 0 0 @@ -2202,7 +2380,14 @@ -1 + + + + + + + @@ -2292,7 +2477,14 @@ + + + + + + + @@ -2383,7 +2575,14 @@ + + + + + + + @@ -2474,7 +2673,14 @@ + + + + + + + @@ -2597,7 +2803,14 @@ + + + + + + + @@ -2688,7 +2901,14 @@ + + + + + + + @@ -2779,7 +2999,14 @@ + + + + + + + @@ -2841,6 +3068,7 @@ 0 wxID_ANY Coordinate format: + 0 0 @@ -2866,7 +3094,14 @@ -1 + + + + + + + @@ -2956,7 +3191,14 @@ + + + + + + + @@ -3047,7 +3289,14 @@ + + + + + + + OnGerberX2Checked @@ -3138,7 +3387,14 @@ + + + + + + + @@ -3214,6 +3470,7 @@ 0 wxID_ANY Default pen size: + 0 0 @@ -3239,7 +3496,14 @@ -1 + + + + + + + @@ -3326,7 +3590,14 @@ + + + + + + + @@ -3388,6 +3659,7 @@ 0 wxID_ANY mm + 0 0 @@ -3413,7 +3685,14 @@ -1 + + + + + + + @@ -3512,6 +3791,7 @@ 0 wxID_ANY X scale factor: + 0 0 @@ -3537,7 +3817,14 @@ -1 + + + + + + + @@ -3624,7 +3911,14 @@ + + + + + + + @@ -3696,6 +3990,7 @@ 0 wxID_ANY Y scale factor: + 0 0 @@ -3721,7 +4016,14 @@ -1 + + + + + + + @@ -3808,7 +4110,14 @@ + + + + + + + @@ -3880,6 +4189,7 @@ 0 wxID_ANY Track width correction: + 0 0 @@ -3905,7 +4215,14 @@ -1 + + + + + + + @@ -3992,7 +4309,14 @@ + + + + + + + @@ -4054,6 +4378,7 @@ 0 wxID_ANY mm + 0 0 @@ -4079,7 +4404,14 @@ -1 + + + + + + + @@ -4168,7 +4500,14 @@ + + + + + + + @@ -4271,7 +4610,14 @@ + + + + + + + OnChangeDXFPlotMode @@ -4359,7 +4705,14 @@ + + + + + + + @@ -4455,7 +4808,14 @@ wxTAB_TRAVERSAL + + + + + + + @@ -4484,7 +4844,7 @@ 5 - wxALIGN_RIGHT|wxEXPAND|wxALL + wxALL|wxEXPAND 0 @@ -4506,25 +4866,31 @@ + 1 0 1 1 + 0 0 + Dock 0 Left 1 1 + 0 0 wxID_ANY Run DRC... + + 0 0 @@ -4539,6 +4905,8 @@ protected 1 + + Resizable 1 @@ -4553,8 +4921,15 @@ + + + + + + onRunDRC + diff --git a/pcbnew/dialogs/dialog_plot_base.h b/pcbnew/dialogs/dialog_plot_base.h index d4a477d942..f208203602 100644 --- a/pcbnew/dialogs/dialog_plot_base.h +++ b/pcbnew/dialogs/dialog_plot_base.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Dec 30 2017) +// C++ code generated with wxFormBuilder (version Jul 11 2018) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -22,10 +22,10 @@ class WX_HTML_REPORT_PANEL; #include #include #include +#include #include #include #include -#include #include #include #include