void ofxTLDepthImageSequence::keyPressed(ofKeyEventArgs& args){ if(hasFocus()){ if(args.key == OF_KEY_LEFT){ selectFrame(MAX(getSelectedFrame()-1, 0)); } else if(args.key == OF_KEY_RIGHT){ selectFrame(MIN(getSelectedFrame()+1, depthImageSequence->getImageArray().size()-1)); } } }
/*! * \brief StackFramesWidget::stackItemDoubleClicked * Slot activated when itemDoubleClicked signal of StackFramesTreeWidget is raised. * Sends the -stack-list-variables command. * \param pQTreeWidgetItem * \return */ void StackFramesWidget::stackItemDoubleClicked(QTreeWidgetItem *pQTreeWidgetItem) { StackFrameItem *pStackFrameItem = dynamic_cast<StackFrameItem*>(pQTreeWidgetItem); if (pStackFrameItem && !pStackFrameItem->isDisabled()) { mpStackFramesTreeWidget->setCurrentStackFrame(pStackFrameItem); QByteArray cmd = CommandFactory::stackListVariables(getSelectedThread(), getSelectedFrame(), "--simple-values"); mpMainWindow->getGDBAdapter()->postCommand(cmd, &GDBAdapter::stackListVariablesCB); /* Get the stack frame location and mark the line highlighted. */ mpMainWindow->findFileAndGoToLine(pStackFrameItem->getFile(), pStackFrameItem->getLine()); } }