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