Bring stop, lock, exit, and run icons into XDG compliance

pull/1/head
Timothy Pearson 10 years ago
parent 8b817f720b
commit da2bf89bf4

@ -133,7 +133,7 @@ KPicoSim::KPicoSim() : TDEMainWindow( 0, "KPicoSim" )
m_debugBar = new TDEToolBar( this ) ; m_debugBar = new TDEToolBar( this ) ;
addDockWindow( m_debugBar ) ; addDockWindow( m_debugBar ) ;
m_debugBar->insertButton( UserIcon( "rebuild" ), COMPILE_ID, TQT_SIGNAL( clicked() ), TQT_TQOBJECT(this), TQT_SLOT( compile() ), true, "Compile" ) ; m_debugBar->insertButton( UserIcon( "rebuild" ), COMPILE_ID, TQT_SIGNAL( clicked() ), TQT_TQOBJECT(this), TQT_SLOT( compile() ), true, "Compile" ) ;
m_debugBar->insertButton( "run", START_SIM_ID, TQT_SIGNAL( clicked() ), TQT_TQOBJECT(this), TQT_SLOT( startSim() ), true, "Start/Stop Debug" ) ; m_debugBar->insertButton( "system-run", START_SIM_ID, TQT_SIGNAL( clicked() ), TQT_TQOBJECT(this), TQT_SLOT( startSim() ), true, "Start/Stop Debug" ) ;
m_debugBar->insertSeparator() ; m_debugBar->insertSeparator() ;
m_debugBar->insertButton( UserIcon( "continue" ), RUN_ID, TQT_SIGNAL( clicked() ), TQT_TQOBJECT(this), TQT_SLOT( startStop() ), false, "Continue" ) ; m_debugBar->insertButton( UserIcon( "continue" ), RUN_ID, TQT_SIGNAL( clicked() ), TQT_TQOBJECT(this), TQT_SLOT( startStop() ), false, "Continue" ) ;
@ -211,7 +211,7 @@ void KPicoSim::buildMenu()
m_debugMenu = new TDEPopupMenu( this ) ; m_debugMenu = new TDEPopupMenu( this ) ;
m_debugMenu->insertSeparator() ; m_debugMenu->insertSeparator() ;
m_debugMenu->insertItem( ldr->loadIcon( "rebuild", TDEIcon::Small ), "Compile", TQT_TQOBJECT(this), TQT_SLOT( compile() ), TQKeySequence( "SHIFT+F9" ) ) ; m_debugMenu->insertItem( ldr->loadIcon( "rebuild", TDEIcon::Small ), "Compile", TQT_TQOBJECT(this), TQT_SLOT( compile() ), TQKeySequence( "SHIFT+F9" ) ) ;
m_debugMenu->insertItem( ldr->loadIcon( "run", TDEIcon::Small ), "Start Debug", TQT_TQOBJECT(this), TQT_SLOT( startSim() ), TQKeySequence( "F9" ) , START_SIM_ID ) ; m_debugMenu->insertItem( ldr->loadIcon( "system-run", TDEIcon::Small ), "Start Debug", TQT_TQOBJECT(this), TQT_SLOT( startSim() ), TQKeySequence( "F9" ) , START_SIM_ID ) ;
m_debugMenu->insertSeparator() ; m_debugMenu->insertSeparator() ;
m_debugMenu->insertItem( "Continue", TQT_TQOBJECT(this), TQT_SLOT( startStop() ), TQKeySequence( "F10" ) , RUN_ID ) ; m_debugMenu->insertItem( "Continue", TQT_TQOBJECT(this), TQT_SLOT( startStop() ), TQKeySequence( "F10" ) , RUN_ID ) ;
@ -538,7 +538,7 @@ void KPicoSim::startSim()
if ( !m_simulationMode ) { if ( !m_simulationMode ) {
if ( compile() ) { if ( compile() ) {
setCaption( m_editor->getFilename() + " [Debugging]" ) ; setCaption( m_editor->getFilename() + " [Debugging]" ) ;
m_debugMenu->changeItem( START_SIM_ID, ldr->loadIcon( "stop", TDEIcon::Small ), "Stop Debug" ) ; m_debugMenu->changeItem( START_SIM_ID, ldr->loadIcon( "process-stop", TDEIcon::Small ), "Stop Debug" ) ;
m_debugBar->setButton( START_SIM_ID, true ) ; m_debugBar->setButton( START_SIM_ID, true ) ;
m_simulator->reset() ; m_simulator->reset() ;
@ -548,20 +548,20 @@ void KPicoSim::startSim()
} else { } else {
if ( m_simulator->isRunning() ) if ( m_simulator->isRunning() )
startStop() ; startStop() ;
setCaption( m_editor->getFilename() ) ; setCaption( m_editor->getFilename() ) ;
m_debugMenu->changeItem( START_SIM_ID, ldr->loadIcon( "run", TDEIcon::Small ), "Start Debug" ) ; m_debugMenu->changeItem( START_SIM_ID, ldr->loadIcon( "system-run", TDEIcon::Small ), "Start Debug" ) ;
m_debugBar->setButton( START_SIM_ID, false ) ; m_debugBar->setButton( START_SIM_ID, false ) ;
m_editor->clearExecutionMarker() ; m_editor->clearExecutionMarker() ;
m_simulationMode = FALSE ; m_simulationMode = FALSE ;
} }
if ( m_simulationMode ) { if ( m_simulationMode ) {
statusBar()->changeItem( TQString( "Mode: Debug" ), 0 ) ; statusBar()->changeItem( TQString( "Mode: Debug" ), 0 ) ;
} else { } else {
statusBar()->changeItem( TQString( "Mode: Edit" ), 0 ) ; statusBar()->changeItem( TQString( "Mode: Edit" ), 0 ) ;
} }
m_debugMenu->setItemEnabled( RUN_ID, m_simulationMode ) ; m_debugMenu->setItemEnabled( RUN_ID, m_simulationMode ) ;
m_debugMenu->setItemEnabled( NEXT_ID, m_simulationMode ) ; m_debugMenu->setItemEnabled( NEXT_ID, m_simulationMode ) ;
m_debugMenu->setItemEnabled( INTERRUPT_ID, m_simulationMode ) ; m_debugMenu->setItemEnabled( INTERRUPT_ID, m_simulationMode ) ;

Loading…
Cancel
Save