|
|
|
@ -158,7 +158,7 @@ KPicoSim::KPicoSim() : KMainWindow( 0, "KPicoSim" )
|
|
|
|
|
m_serialView = NULL ;
|
|
|
|
|
|
|
|
|
|
statusBar()->insertItem( TQString( "Mode: Edit" ), 0 ) ;
|
|
|
|
|
statusBar()->insertItem( TQString( "tqStatus: Stopped" ), 1 ) ;
|
|
|
|
|
statusBar()->insertItem( TQString( "Status: Stopped" ), 1 ) ;
|
|
|
|
|
statusBar()->insertItem( TQString( "Instructions: 0" ), 2 ) ;
|
|
|
|
|
|
|
|
|
|
m_templateFile = "" ;
|
|
|
|
@ -424,14 +424,14 @@ void KPicoSim::startStop()
|
|
|
|
|
m_debugMenu->changeItem( RUN_ID, "Stop" ) ;
|
|
|
|
|
m_editor->clearExecutionMarker() ;
|
|
|
|
|
m_simulator->run() ;
|
|
|
|
|
statusBar()->changeItem( TQString( "tqStatus: Running" ), 1 ) ;
|
|
|
|
|
statusBar()->changeItem( TQString( "Status: Running" ), 1 ) ;
|
|
|
|
|
m_debugBar->setButton( RUN_ID, true ) ;
|
|
|
|
|
} else {
|
|
|
|
|
m_simulator->stop() ;
|
|
|
|
|
updateViews() ;
|
|
|
|
|
m_debugMenu->changeItem( RUN_ID, "Continue" ) ;
|
|
|
|
|
m_editor->setExecutionMarker( m_simulator->getNextSourceLine() ) ;
|
|
|
|
|
statusBar()->changeItem( TQString( "tqStatus: Stopped" ), 1 ) ;
|
|
|
|
|
statusBar()->changeItem( TQString( "Status: Stopped" ), 1 ) ;
|
|
|
|
|
TQString str ;
|
|
|
|
|
str.sprintf( "Instructions: %u", m_nrInstructions ) ;
|
|
|
|
|
statusBar()->changeItem( str, 2 ) ;
|
|
|
|
|