Browse Source

Fixed Kiway problems in SIM_PLOT_FRAME

pull/3/merge
Maciej Suminski 9 years ago
parent
commit
2b1d2d7bd1
  1. 2
      eeschema/eeschema.cpp
  2. 4
      eeschema/sim/sim_plot_frame.cpp
  3. 9
      eeschema/sim/simulate.cpp

2
eeschema/eeschema.cpp

@ -97,7 +97,7 @@ static struct IFACE : public KIFACE_I
case FRAME_SIMULATOR:
{
SIM_PLOT_FRAME_BASE* frame = new SIM_PLOT_FRAME( aKiway, aParent );
SIM_PLOT_FRAME* frame = new SIM_PLOT_FRAME( aKiway, aParent );
return frame;
}
break;

4
eeschema/sim/sim_plot_frame.cpp

@ -94,8 +94,10 @@ private:
SIM_PLOT_FRAME::SIM_PLOT_FRAME( KIWAY* aKiway, wxWindow* aParent )
: SIM_PLOT_FRAME_BASE( aKiway, aParent )
: SIM_PLOT_FRAME_BASE( aParent )
{
SetKiway( this, aKiway );
m_exporter = NULL;
m_simulator = NULL;
m_simThread = NULL;

9
eeschema/sim/simulate.cpp

@ -28,13 +28,8 @@
void SCH_EDIT_FRAME::OnSimulationRun( wxCommandEvent& event )
{
SIM_PLOT_FRAME* simFrame = (SIM_PLOT_FRAME*) Kiway().Player( FRAME_SIMULATOR, false );
if( !simFrame )
{
simFrame = (SIM_PLOT_FRAME*) Kiway().Player( FRAME_SIMULATOR, true );
simFrame->Show( true );
}
SIM_PLOT_FRAME* simFrame = (SIM_PLOT_FRAME*) Kiway().Player( FRAME_SIMULATOR, true );
simFrame->Show( true );
// On Windows, Raise() does not bring the window on screen, when iconized
if( simFrame->IsIconized() )

Loading…
Cancel
Save