Mercurial > octave
diff gui/src/main-window.cc @ 15106:59175df7dcf6 gui
Created and added debug action icons.
* bp_next.png: Added icon.
* bp_prev.png: Added icon.
* bp_rm_all.png: Added icon.
* bp_toggle.png: Added icon.
* db_cont.png: Added icon.
* db_step.png: Added icon.
* db_step_in.png: Added icon.
* db_step_out.png: Added icon.
* db_stop.png: Added icon.
* file-editor-interface.h: Added method for accessing the editor's toolbar.
* file-editor: Implemented new interface methods. Assigned icons.
* main-window.cc: Now adding debug actions to toolbar.
* resource.qrc: Added new icons to resource file.
author | Jacob Dawid <jacob.dawid@gmail.com> |
---|---|
date | Sat, 04 Aug 2012 20:22:26 +0200 |
parents | d02b229ce693 |
children | bc801a44bb1f |
line wrap: on
line diff
--- a/gui/src/main-window.cc Sat Aug 04 11:18:20 2012 +0200 +++ b/gui/src/main-window.cc Sat Aug 04 20:22:26 2012 +0200 @@ -592,32 +592,37 @@ _debug_menu = menuBar ()->addMenu (tr ("De&bug")); - _debug_step_over = _debug_menu->addAction (tr ("Step")); + _debug_step_over = _debug_menu->addAction (QIcon (":/actions/icons/db_step.png"), tr ("Step")); _debug_step_over->setEnabled (false); _file_editor->debug_menu ()->addAction (_debug_step_over); + _file_editor->toolbar ()->addAction (_debug_step_over); _debug_step_over->setShortcut (Qt::Key_F10); - _debug_step_into = _debug_menu->addAction (tr ("Step in")); + _debug_step_into = _debug_menu->addAction (QIcon (":/actions/icons/db_step_in.png"), tr ("Step in")); _debug_step_into->setEnabled (false); _file_editor->debug_menu ()->addAction (_debug_step_into); + _file_editor->toolbar ()->addAction (_debug_step_into); _debug_step_into->setShortcut (Qt::Key_F11); - _debug_step_out = _debug_menu->addAction (tr ("Step out")); + _debug_step_out = _debug_menu->addAction (QIcon (":/actions/icons/db_step_out.png"), tr ("Step out")); _debug_step_out->setEnabled (false); _file_editor->debug_menu ()->addAction (_debug_step_out); + _file_editor->toolbar ()->addAction (_debug_step_out); _debug_step_out->setShortcut (Qt::ShiftModifier + Qt::Key_F11); - _debug_continue = _debug_menu->addAction (tr ("Continue")); + _debug_continue = _debug_menu->addAction (QIcon (":/actions/icons/db_cont.png"), tr ("Continue")); _debug_continue->setEnabled (false); _file_editor->debug_menu ()->addAction (_debug_continue); + _file_editor->toolbar ()->addAction (_debug_continue); _debug_continue->setShortcut (Qt::Key_F5); _debug_menu->addSeparator (); _file_editor->debug_menu ()->addSeparator (); - _debug_quit = _debug_menu->addAction (tr ("Exit Debug Mode")); + _debug_quit = _debug_menu->addAction (QIcon (":/actions/icons/db_stop.png"), tr ("Exit Debug Mode")); _debug_quit->setEnabled (false); _file_editor->debug_menu ()->addAction (_debug_quit); + _file_editor->toolbar ()->addAction (_debug_quit); _debug_quit->setShortcut (Qt::ShiftModifier + Qt::Key_F5); //QMenu *parallelMenu = menuBar ()->addMenu (tr ("&Parallel"));