|
From: Tatsuro M. <tma...@ya...> - 2014-06-22 08:36:30
|
Hello http://gnuplot.10905.n7.nabble.com/Spacebar-does-not-raise-command-window-with-wxt-terminal-td18540.html For qt terminal, this feature seems not to be implemented. (Right?) Although I do not have enough knowledge, I tried to implement it. I looked into qt_term.cpp and QtGnuplotScene.cpp. In QtGnuplotScene.cpp, qt terminal seems to return key information in void QtGnuplotScene::keyPressEvent(QKeyEvent* event) <snip> live = m_eventHandler->postTermEvent(GE_keypress, int(m_lastMousePos.x()), int(m_lastMousePos.y()), key, 0, m_widget); While in qt_term.cpp, /*------------------------------------------------------- * Communication terminal -> gnuplot *-------------------------------------------------------*/ bool qt_processTermEvent(gp_event_t* event) <snip> if ((event->type == GE_keypress) && (paused_for_mouse & PAUSE_KEYSTROKE) && (event->par1 > '\0')) However, 'struct gp_event_t' has no member named 'key' How I do get key information from qt terminal to gnuplot? Thank you in advance. Tatsuro |