Formatting.
This commit is contained in:
parent
3be6d5c5de
commit
f3d5d4afdd
|
@ -28,7 +28,6 @@
|
||||||
#include <pcb_base_frame.h>
|
#include <pcb_base_frame.h>
|
||||||
#include <widgets/panel_footprint_chooser.h>
|
#include <widgets/panel_footprint_chooser.h>
|
||||||
#include <3d_canvas/eda_3d_canvas.h>
|
#include <3d_canvas/eda_3d_canvas.h>
|
||||||
#include <common_ogl/ogl_attr_list.h>
|
|
||||||
#include <board.h>
|
#include <board.h>
|
||||||
#include <project_pcb.h>
|
#include <project_pcb.h>
|
||||||
#include <board_design_settings.h>
|
#include <board_design_settings.h>
|
||||||
|
@ -130,14 +129,14 @@ DIALOG_FOOTPRINT_CHOOSER::DIALOG_FOOTPRINT_CHOOSER( PCB_BASE_FRAME* aParent,
|
||||||
|
|
||||||
// Connect Events
|
// Connect Events
|
||||||
m_grButton3DView->Connect( wxEVT_COMMAND_BUTTON_CLICKED ,
|
m_grButton3DView->Connect( wxEVT_COMMAND_BUTTON_CLICKED ,
|
||||||
wxCommandEventHandler( DIALOG_FOOTPRINT_CHOOSER::on3DviewReq ),
|
wxCommandEventHandler( DIALOG_FOOTPRINT_CHOOSER::on3DviewReq ),
|
||||||
NULL, this );
|
nullptr, this );
|
||||||
m_grButtonFpView->Connect( wxEVT_COMMAND_BUTTON_CLICKED ,
|
m_grButtonFpView->Connect( wxEVT_COMMAND_BUTTON_CLICKED ,
|
||||||
wxCommandEventHandler( DIALOG_FOOTPRINT_CHOOSER::onFpViewReq ),
|
wxCommandEventHandler( DIALOG_FOOTPRINT_CHOOSER::onFpViewReq ),
|
||||||
NULL, this );
|
nullptr, this );
|
||||||
|
|
||||||
this->Connect( FP_SELECTION_EVENT, // custom event fired by a PANEL_FOOTPRINT_CHOOSER
|
Connect( FP_SELECTION_EVENT, wxCommandEventHandler( DIALOG_FOOTPRINT_CHOOSER::onFpChanged ),
|
||||||
wxCommandEventHandler( DIALOG_FOOTPRINT_CHOOSER::onFpChanged ), NULL, this );
|
nullptr, this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -148,12 +147,14 @@ DIALOG_FOOTPRINT_CHOOSER::~DIALOG_FOOTPRINT_CHOOSER()
|
||||||
|
|
||||||
// Disconnect Events
|
// Disconnect Events
|
||||||
m_grButton3DView->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED,
|
m_grButton3DView->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED,
|
||||||
wxCommandEventHandler( DIALOG_FOOTPRINT_CHOOSER::on3DviewReq ), NULL, this );
|
wxCommandEventHandler( DIALOG_FOOTPRINT_CHOOSER::on3DviewReq ),
|
||||||
|
nullptr, this );
|
||||||
m_grButtonFpView->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED,
|
m_grButtonFpView->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED,
|
||||||
wxCommandEventHandler( DIALOG_FOOTPRINT_CHOOSER::onFpViewReq ), NULL, this );
|
wxCommandEventHandler( DIALOG_FOOTPRINT_CHOOSER::onFpViewReq ),
|
||||||
|
nullptr, this );
|
||||||
|
|
||||||
this->Disconnect( FP_SELECTION_EVENT,
|
Disconnect( FP_SELECTION_EVENT, wxCommandEventHandler( DIALOG_FOOTPRINT_CHOOSER::onFpChanged ),
|
||||||
wxCommandEventHandler( DIALOG_FOOTPRINT_CHOOSER::onFpChanged ), NULL, this );
|
nullptr, this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue