----------------------------------------------------------------------------
| 923 | } |
| 924 | //---------------------------------------------------------------------------- |
| 925 | QToolBar *ConsoleDebugger::buildToolBar(void) |
| 926 | { |
| 927 | QAction *act; |
| 928 | |
| 929 | QToolBar *toolBar = new QToolBar(this); |
| 930 | |
| 931 | //----------------------------------------------------------------------- |
| 932 | // Tool Bar Setup Start |
| 933 | //----------------------------------------------------------------------- |
| 934 | |
| 935 | // File -> Go to Address |
| 936 | act = new QAction(tr("&Go to Address"), this); |
| 937 | //act->setShortcut( QKeySequence(tr("Ctrl+A") )); |
| 938 | act->setStatusTip(tr("&Go to Address")); |
| 939 | //act->setIcon( QIcon(":icons/find.png") ); |
| 940 | act->setIcon( QIcon(":icons/JumpTarget.png") ); |
| 941 | connect(act, SIGNAL(triggered()), this, SLOT(openGotoAddrDialog(void)) ); |
| 942 | |
| 943 | toolBar->addAction(act); |
| 944 | |
| 945 | toolBar->addSeparator(); |
| 946 | |
| 947 | // Debug -> Run |
| 948 | dbgRunAct[1] = act = new QAction(tr("&Run (F5)"), this); |
| 949 | //act->setShortcut(QKeySequence( tr("F5") ) ); |
| 950 | act->setStatusTip(tr("Run")); |
| 951 | //act->setIcon( style()->standardIcon( QStyle::SP_MediaPlay ) ); |
| 952 | act->setIcon( QIcon(":icons/debug-run.png") ); |
| 953 | connect( act, SIGNAL(triggered()), this, SLOT(debugRunCB(void)) ); |
| 954 | |
| 955 | toolBar->addAction(act); |
| 956 | |
| 957 | // Debug -> Pause |
| 958 | dbgPauseAct[1] = act = new QAction(tr("&Pause (F6)"), this); |
| 959 | //act->setShortcut(QKeySequence( tr("F6") ) ); |
| 960 | act->setStatusTip(tr("Pause")); |
| 961 | //act->setIcon( style()->standardIcon( QStyle::SP_MediaPause ) ); |
| 962 | act->setIcon( QIcon(":icons/debug-pause.png") ); |
| 963 | connect( act, SIGNAL(triggered()), this, SLOT(debugStepIntoCB(void)) ); |
| 964 | |
| 965 | toolBar->addAction(act); |
| 966 | |
| 967 | // Debug -> Step Back |
| 968 | stepBackToolAct = act = new QAction(tr("Step &Back (F9)"), this); |
| 969 | //act->setShortcut(QKeySequence( tr("F9") ) ); |
| 970 | act->setStatusTip(tr("Step Back")); |
| 971 | act->setIcon( QIcon(":icons/StepBack.png") ); |
| 972 | act->setEnabled(false); |
| 973 | connect( act, SIGNAL(triggered()), this, SLOT(debugStepBackCB(void)) ); |
| 974 | |
| 975 | toolBar->addAction(act); |
| 976 | |
| 977 | // Debug -> Step Into |
| 978 | act = new QAction(tr("Step &Into (F11)"), this); |
| 979 | //act->setShortcut(QKeySequence( tr("F11") ) ); |
| 980 | act->setStatusTip(tr("Step Into")); |
| 981 | act->setIcon( QIcon(":icons/StepInto.png") ); |
| 982 | connect( act, SIGNAL(triggered()), this, SLOT(debugStepIntoCB(void)) ); |
nothing calls this directly
no test coverage detected