Mercurial > octave-nkf
view .hgignore @ 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 | 70bf9b6d47af |
children | dc76e3909d36 |
line wrap: on
line source
syntax: regexp # The recurrent (^|/) idiom in the regexps below should be understood # to mean "at any directory" while the ^ idiom means "from the # project's top-level directory". # gnulib makes these silly backup files .~$ # This directory gets created by gnulib during the build. # It contains no Octave files. ^libgnu/* # This directory mostly contains cruft during build time, but it does # contain some Octave code, so we gotta be a bit more careful about # what we ignore here ^m4/(?!ax_).+\.m4$ # Emacs tools create these (^|/)TAGS$ (^|/)semantic.cache$ (/|^)Makefile\.in$ ^INSTALL$ ^aclocal\.m4$ ^build-.*($|/) ^configure$ ^autom4te\.cache($|/) ^config\.h\.in$ # e.g. doc/faq/OctaveFAQ.info # doc/interpreter/octave.info-4 ^doc/.*\.info(-\d)?$ ^doc/\w*/stamp-vti$ ^doc/\w*/version\.texi$ ^doc/interpreter/images\.mk$ # e.g. liboctave/operators/smx-op-inc.mk ^liboctave/operators/\w+-op-\w+\.mk$ ^libinterp/dldfcn/module\.mk$