Mercurial > octave-nkf
view .gitignore @ 16612:dae674adf045
handle text selection in GUI terminal for Windows
* QWinTerminalImpl.h, QWinTerminalImpl.cpp
(QConsolePrivate::posToCell, QConsolePrivate::getSelection,
QConsolePrivate::updateSelection): QWinTerminalImpl::mouseMoveEvent,
QWinTerminalImpl::mousePressEvent, QWinTerminalImpl::updateSelection
QWinTerminalImpl::mouseReleaseEvent): New functions.
(QConsolePrivate::m_beginSelection, QConsolePrivate::m_endSelection,
QConsolePrivate::m_selection): New variables.
(maybeSwapPoints): New static function.
(QConsolePrivate::QConsolePrivate): Initialize m_beginSelection and
m_endSelection.
(QWinTerminalImpl::viewPaintEvent): Draw an overlay for the
selection.
(QWinTerminalImpl::copyClipboard): Save selection to clipboard.
(QWinTerminalImpl::pasteClipboard): Send clipboard text to terminal.
Thanks to Michael Goffioul for help with this patch, especially the
QConsolePrivate::getSelection function.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 05 May 2013 02:51:49 -0400 |
parents | 5758e0013246 |
children |