lyx_mirror/src
Scott Kostyshak 4803c7697b Close a tab on middle-click (#10288)
This is the default behavior of Chromium and Firefox. The main
appeal is that instead of having to precisely click on the 'x' to
close a tab, one can more easily middle-click anywhere in the tab.

The tab is closed if the middle button is pressed on a tab and is
relased on the same tab. After pressing, the user may move the mouse
over other tabs but as long as they move it back to the tab where
they initiated the press before they release, the close will
execute. This is how the feature works in Chromium and Firefox.

Nothing is done if the user middle-clicks on the blank part of the
tab bar. This is consistent with Chromium. Firefox, on the other
hand, opens a new tab. In LyX one can already double-click the blank
part to open a new tab, and in feedback from lyx-users [1] most
expected and desired that nothing be done in this case.

[1] https://www.mail-archive.com/search?l=mid&q=20160720063306.6fyarf3kywexbxvd%40steph
2016-07-21 22:31:29 -04:00
..
client Do not distribute built sources 2016-06-16 21:34:38 +02:00
frontends Close a tab on middle-click (#10288) 2016-07-21 22:31:29 -04:00
graphics Rationalise includes 2016-07-04 02:42:17 +02:00
insets Try to fix #4889 in the right way 2016-07-20 00:24:24 +02:00
mathed Try to fix #4889 in the right way 2016-07-20 00:24:24 +02:00
support Poor man's profiler: add support for cache hit/miss 2016-07-05 15:31:17 +02:00
tests fix make check. 2016-07-04 14:10:30 -07:00
tex2lyx Rationalise includes 2016-07-04 02:42:17 +02:00
.gitignore
AppleSpellChecker.cpp Remove unused include file. 2016-05-29 17:55:45 -04:00
AppleSpellChecker.h Remove ; from end of function definitions 2013-05-12 13:04:18 +02:00
AspellChecker.cpp Fix "dead store" warnings of Xcode analyze tool 2015-10-09 08:16:23 +02:00
AspellChecker.h Remove ; from end of function definitions 2013-05-12 13:04:18 +02:00
Author.cpp GuiChanges: provide feedback when there are no more changes 2016-05-29 17:55:42 -04:00
Author.h GuiChanges: provide feedback when there are no more changes 2016-05-29 17:55:42 -04:00
BiblioInfo.cpp The way this was previously, it had to fail if the GUI language 2016-07-17 22:50:17 -04:00
BiblioInfo.h The way this was previously, it had to fail if the GUI language 2016-07-17 22:50:17 -04:00
boost.cpp
Box.cpp
Box.h
BranchList.cpp
BranchList.h
buffer_funcs.cpp Make newUnnamedFile() threadsafe 2014-07-05 12:58:22 +02:00
buffer_funcs.h
Buffer.cpp Simplify logic a bit. (This was meant to be part of a previous 2016-07-10 01:43:19 -04:00
Buffer.h Rationalise includes 2016-07-04 02:42:17 +02:00
BufferEncodings.cpp Encodings: Make members of CharInfo private 2013-09-29 15:26:20 +02:00
BufferEncodings.h Encodings: Split off the functions that need Buffer 2013-09-29 15:26:18 +02:00
BufferList.cpp Simplifications, mainly removal of boost::function and useless std::bind 2016-07-03 01:39:32 +02:00
BufferList.h Rewrite the BufferList::releaseChild method so that it only checks 2016-01-05 09:59:31 -05:00
BufferParams.cpp Simplify BufferParams::bufferFormat() 2016-07-11 11:18:55 +02:00
BufferParams.h Fix typo 2016-07-13 16:46:52 +01:00
BufferView.cpp Revert "Skip all drawing with NoScreenUpdate strategy" 2016-07-07 14:22:08 +02:00
BufferView.h ScrollbarParameters: clean-up and document 2016-06-13 08:46:15 +01:00
Bullet.cpp Audit all the LASSERT calls, and try to do something sensible at 2013-04-25 17:27:10 -04:00
Bullet.h
Changes.cpp Rationalise includes 2016-07-04 02:42:17 +02:00
Changes.h Rationalise includes 2016-07-04 02:42:17 +02:00
Chktex.cpp Remove boost/format support 2016-05-29 17:55:45 -04:00
Chktex.h Remove boost/format support 2016-05-29 17:55:45 -04:00
Citation.h New \cite_engine_type default. 2013-05-16 20:39:23 +02:00
CMakeLists.txt Cmake build with Qt4: Link lyx executable also to X11 library 2016-07-20 02:10:23 +02:00
CmdDef.cpp
CmdDef.h
Color.cpp support for all default colors of the package xcolor 2015-05-14 22:23:44 +02:00
Color.h
ColorCode.h support for all default colors of the package xcolor 2015-05-14 22:23:44 +02:00
ColorSet.h
Compare.cpp Rationalise includes 2016-07-04 02:42:17 +02:00
Compare.h Slowly going through the suggestion made by our headers script. 2013-05-15 22:02:10 -07:00
CompletionList.h
Converter.cpp Simplify BufferParams::bufferFormat() 2016-07-11 11:18:55 +02:00
Converter.h Rationalise includes 2016-07-04 02:42:17 +02:00
ConverterCache.cpp Fix unitialized members in CacheItem 2015-03-04 22:50:37 +01:00
ConverterCache.h
CoordCache.cpp Improve debug message 2015-11-20 22:43:45 +01:00
CoordCache.h Get rid of ParagraphMetrics::insetDimension 2015-10-19 13:17:16 +02:00
Counters.cpp When a counter is stepped, reset recursively all slaves 2016-05-28 17:43:01 -04:00
Counters.h When a counter is stepped, reset recursively all slaves 2016-05-28 17:43:01 -04:00
Cursor.cpp Rationalise includes 2016-07-04 02:42:17 +02:00
Cursor.h Rename Cursor::setSelection(bool) to selection(bool) 2016-05-29 17:55:46 -04:00
CursorSlice.cpp Move one Text::setCursor instance to CursorSlice 2016-05-29 17:55:46 -04:00
CursorSlice.h Move one Text::setCursor instance to CursorSlice 2016-05-29 17:55:46 -04:00
CutAndPaste.cpp Fix bug #8782: We need to query the cell, not just the inset. 2016-06-29 21:23:39 -04:00
CutAndPaste.h Remove using directives from headers 2016-06-26 18:22:59 +02:00
DepTable.cpp
DepTable.h
Dimension.cpp Fix LASSERT correction 2015-10-10 21:38:17 +02:00
Dimension.h
DispatchResult.h Automatically show the review toolbar if the document has tracked changes 2016-05-29 17:55:42 -04:00
DocIterator.cpp Fix cppcheck initialization warnings 2016-06-06 21:55:39 +02:00
DocIterator.h There does not appear to be any need to update the entire Buffer 2015-12-12 17:19:33 -05:00
DocumentClassPtr.h Replace support/shared_ptr.h and boost::shared_ptr with std::shared_ptr 2016-06-09 15:21:39 +01:00
EnchantChecker.cpp use enchant exception message accessor 2014-11-18 22:06:27 +01:00
EnchantChecker.h Remove ; from end of function definitions 2013-05-12 13:04:18 +02:00
Encoding.cpp Improve \AA and \aa tex2lyx import 2016-01-08 21:06:24 +01:00
Encoding.h Fix a number of other uninitialized members. 2016-06-11 23:59:55 -04:00
ErrorList.cpp
ErrorList.h Remove ; from end of function definitions 2013-05-12 13:04:18 +02:00
Exporter.cpp
Exporter.h
factory.cpp Replace auto_ptr with unique_ptr 2016-06-09 15:21:39 +01:00
factory.h
Floating.cpp Add more Float tags to allow to disable wide and sideways feature 2015-05-22 18:59:17 +02:00
Floating.h Add more Float tags to allow to disable wide and sideways feature 2015-05-22 18:59:17 +02:00
FloatList.cpp Add more Float tags to allow to disable wide and sideways feature 2015-05-22 18:59:17 +02:00
FloatList.h Add more Float tags to allow to disable wide and sideways feature 2015-05-22 18:59:17 +02:00
Font.cpp Rationalise includes 2016-07-04 02:42:17 +02:00
Font.h Slowly going through the suggestion made by our headers script. 2013-05-15 22:02:10 -07:00
FontEnums.h
FontInfo.cpp RefChanger 2016-06-13 08:46:15 +01:00
FontInfo.h RefChanger 2016-06-13 08:46:15 +01:00
FontList.cpp Rewrite setRowHeight using row information 2016-05-30 14:55:41 +02:00
FontList.h Rewrite setRowHeight using row information 2016-05-30 14:55:41 +02:00
Format.cpp Rationalise includes 2016-07-04 02:42:17 +02:00
Format.h Make Format class almost thread-safe 2014-12-21 21:40:25 +01:00
FuncCode.h LFUN to toggle branch inversion status, now available from the 2016-07-12 00:19:40 -04:00
FuncRequest.cpp Whitespace only. 2016-06-27 18:54:14 -04:00
FuncRequest.h This patch does two closely related things. 2016-06-27 18:16:35 -04:00
FuncStatus.cpp
FuncStatus.h
Graph.cpp
Graph.h
HSpace.cpp Audit all the LASSERT calls, and try to do something sensible at 2013-04-25 17:27:10 -04:00
HSpace.h
HunspellChecker.cpp Correct path names were to look for RPM based dictionaries for hunspell on Linux. 2016-05-29 17:55:44 -04:00
HunspellChecker.h
IndicesList.cpp
IndicesList.h
InsetIterator.cpp
InsetIterator.h
InsetList.cpp Fix cppcheck initialization warnings 2016-06-06 21:55:39 +02:00
InsetList.h
Intl.cpp
Intl.h
KeyMap.cpp Add perf comment 2016-06-12 19:17:33 +01:00
KeyMap.h Replace support/shared_ptr.h and boost::shared_ptr with std::shared_ptr 2016-06-09 15:21:39 +01:00
KeySequence.cpp
KeySequence.h
Language.cpp Improve list of available languages for UI l10n. 2015-05-21 10:48:38 +02:00
Language.h typo 2016-01-20 17:40:47 +01:00
LaTeX.cpp Add a comment and FIXME that lualatex can make DVI 2016-06-11 17:05:28 -04:00
LaTeX.h Replace Boost.Signals with Boost.Signals2 2016-06-09 22:25:34 +02:00
LaTeXFeatures.cpp Fix for recent luatex versions. 2016-07-09 16:45:27 +02:00
LaTeXFeatures.h When we use InPremable styles, we want to write as many versions 2016-06-12 00:58:33 -04:00
LaTeXFonts.cpp Rationalise includes 2016-07-04 02:42:17 +02:00
LaTeXFonts.h Fix uninitialized member in LaTexFont constructor 2015-03-04 23:21:34 +01:00
LaTeXPackages.cpp
LaTeXPackages.h
Layout.cpp Layout format update: AddToToc, IsTocCaption, OutlinerName 2015-12-13 19:56:49 +00:00
Layout.h Layout format update: AddToToc, IsTocCaption, OutlinerName 2015-12-13 19:56:49 +00:00
LayoutEnums.h Add layout tag that determines if/when a paragraph can be indented. 2014-05-29 14:10:32 +02:00
LayoutFile.cpp Simplifications, mainly removal of boost::function and useless std::bind 2016-07-03 01:39:32 +02:00
LayoutFile.h Fix bug #4812 (Layout in local directory lost on Save As, Copying) 2015-05-13 22:02:13 +02:00
LayoutModuleList.cpp
LayoutModuleList.h
Length.cpp Mark a number of coverity false positives. 2016-06-11 23:09:30 -04:00
Length.h Fix Length::inBP() 2015-07-12 18:36:19 +02:00
lengthcommon.cpp Remove C-isms in isValidLength 2015-02-20 16:16:31 +01:00
Lexer.cpp Fix cppcheck variable scope warnings 2015-09-20 10:42:35 +02:00
Lexer.h Provide optional trimmed version of Lexer::getString and getDocString 2015-05-19 10:15:34 +02:00
lyx_commit_hash.h.in Autotools: read git commit hash at compile time 2014-11-24 22:00:21 +01:00
LyX.cpp Simplifications, mainly removal of boost::function and useless std::bind 2016-07-03 01:39:32 +02:00
LyX.h Fix bug #9096: Load all the files specified on the command line, and then dispatch whatever commands we are given to those Buffers. 2015-11-29 11:25:21 -05:00
LyXAction.cpp Improve documentation of LFUN_BUFFER_ZOOM_{IN,OUT} 2016-07-19 02:11:27 -04:00
LyXAction.h New LFUN tabular-feature: update prefs2prefs.py 2016-01-27 18:20:53 +01:00
lyxfind.cpp Rationalise includes 2016-07-04 02:42:17 +02:00
lyxfind.h Initialize FindAndReplaceOptions in default constructor 2016-06-09 17:06:21 +02:00
LyXRC.cpp Add feedback in status bar when zooming 2016-07-18 17:03:54 +02:00
LyXRC.h Raise the maxlastfiles cap 2016-05-28 17:42:31 -04:00
LyXVC.cpp Replace boost::scoped_ptr with unique_ptr 2016-06-09 15:21:39 +01:00
LyXVC.h Replace boost::scoped_ptr with unique_ptr 2016-06-09 15:21:39 +01:00
lyxwinres.rc
main.cpp
Makefile.am Do not distribute built sources 2016-06-16 21:34:38 +02:00
MetricsInfo.cpp Match code with comment 2016-07-04 01:26:13 +02:00
MetricsInfo.h Fix compilation with gcc 4.6 part II 2016-06-15 14:42:34 +01:00
ModuleList.cpp Fix indentation 2016-06-26 14:26:35 +02:00
ModuleList.h Remove some header leftovers based on Scott's script hints. 2013-05-02 00:30:16 -07:00
Mover.cpp Centralize replacement of "$$s" 2014-05-14 15:45:20 -04:00
Mover.h
output_docbook.cpp Fix missing includes after change 670efa8f64 2016-07-04 12:11:24 +02:00
output_docbook.h
output_latex.cpp Rationalise includes 2016-07-04 02:42:17 +02:00
output_latex.h Improvements to cursor highlighting in the source panel 2015-10-01 21:51:08 +01:00
output_plaintext.cpp Fix a bunch of small performance issues spotted by cppcheck 2014-07-05 19:13:10 +02:00
output_plaintext.h
output_xhtml.cpp Rename some variables and routines. 2016-07-10 00:00:03 -04:00
output_xhtml.h Rename some variables and routines. 2016-07-10 00:00:03 -04:00
output.cpp
output.h
OutputEnums.h
OutputParams.cpp Fix preview of included files in child documents (bug #9583) 2015-06-02 17:23:52 +02:00
OutputParams.h Replace support/shared_ptr.h and boost::shared_ptr with std::shared_ptr 2016-06-09 15:21:39 +01:00
paper.h Convert remaining C++ files to UTF-8 2015-12-05 19:33:24 +00:00
Paragraph.cpp Revert "Reset beginOfBody() when changing paragraph layout" 2016-07-21 10:15:39 +02:00
Paragraph.h Fix problem with branch handling. The problem was that we were not 2016-07-09 23:58:34 -04:00
ParagraphList.h
ParagraphMetrics.cpp Simplifications, mainly removal of boost::function and useless std::bind 2016-07-03 01:39:32 +02:00
ParagraphMetrics.h Take inset dimension into account in row signature 2016-06-03 11:21:09 +02:00
ParagraphParameters.cpp
ParagraphParameters.h
ParIterator.cpp
ParIterator.h Remove some header leftovers based on Scott's script hints. 2013-05-02 00:30:16 -07:00
PDFOptions.cpp Rationalise includes 2016-07-04 02:42:17 +02:00
PDFOptions.h Add some missing member variable initializations 2015-09-13 19:47:21 +02:00
PersonalWordList.cpp
PersonalWordList.h Fix a bunch of minor issues discovered by the cppcheck script. 2014-04-21 11:52:00 -04:00
PrinterParams.cpp Fix cppcheck initialization warnings 2016-06-06 21:55:39 +02:00
PrinterParams.h
Row.cpp Let getPosNearX take horizontal scrolling into account 2016-05-29 17:55:42 -04:00
Row.h RowPainter const cleanup 2016-05-30 14:55:41 +02:00
RowPainter.cpp When painting only insets, paint also change and language marks 2016-07-20 23:25:17 +02:00
RowPainter.h Change tracking cue: paint over labels in text and prepare for further work 2016-06-13 08:46:15 +01:00
Server.cpp Whitespace only. 2016-06-27 18:54:14 -04:00
Server.h Use iostream instead of sstream and move it from header to cpp-source of LyX-Server 2016-06-12 13:03:06 +02:00
ServerSocket.cpp Fix missing include for file i/o prototypes after header cleanup in change 489dca71cd 2016-07-04 10:30:19 +02:00
ServerSocket.h Replace support/shared_ptr.h and boost::shared_ptr with std::shared_ptr 2016-06-09 15:21:39 +01:00
Session.cpp Prevent crash when attempting to restore a file multiple times. 2015-04-06 09:55:07 +02:00
Session.h
sgml.cpp Fix cppcheck variable scope warnings 2015-09-20 10:42:35 +02:00
sgml.h Fix a bunch of small performance issues spotted by cppcheck 2014-07-05 19:13:10 +02:00
Spacing.cpp
Spacing.h
SpellChecker.h Fix cppcheck initialization warnings 2016-06-06 21:55:39 +02:00
TexRow.cpp Rationalise includes 2016-07-04 02:42:17 +02:00
TexRow.h Rationalise includes 2016-07-04 02:42:17 +02:00
texstream.cpp Amend 670efa8f 2016-07-04 04:43:22 +02:00
texstream.h Amend 670efa8f 2016-07-04 04:43:22 +02:00
Text2.cpp Move one Text::setCursor instance to CursorSlice 2016-05-29 17:55:46 -04:00
Text3.cpp This patch does two closely related things. 2016-06-27 18:16:35 -04:00
Text.cpp Record undo when deleting end of paragraph in change tracking mode 2016-07-05 16:26:11 +02:00
Text.h Move one Text::setCursor instance to CursorSlice 2016-05-29 17:55:46 -04:00
TextClass.cpp Mark a number of coverity false positives. 2016-06-11 23:09:30 -04:00
TextClass.h Fix problem reported by Kornel in this thread: 2016-03-27 16:56:17 -04:00
TextMetrics.cpp Recompute Paragraph::beginOfBody() earlier 2016-07-21 10:21:45 +02:00
TextMetrics.h Split TextMetrics::setRowHeight in three parts 2016-05-30 14:55:41 +02:00
Thesaurus.cpp Make Thesaurus check for more general dictionaries (en-v2.idx) 2015-06-02 17:28:44 +02:00
Thesaurus.h Forbid wrong compiler generated copy constructors 2015-09-20 19:43:06 +02:00
Toc.h Replace support/shared_ptr.h and boost::shared_ptr with std::shared_ptr 2016-06-09 15:21:39 +01:00
TocBackend.cpp Remove tooltips from the data of Toc Items 2016-07-03 17:28:46 +02:00
TocBackend.h Remove tooltips from the data of Toc Items 2016-07-03 17:28:46 +02:00
Trans.cpp Add comment about coverity #23335. 2016-06-11 23:09:30 -04:00
Trans.h Add missing intializations 2015-10-10 21:04:28 +02:00
Undo.cpp Update all paragraphs layouts when undoing bufferparams 2016-01-20 15:20:51 +01:00
Undo.h Repeat after me: into account, into account, into account 2015-09-27 21:38:20 +02:00
update_flags.h
VCBackend.cpp Fix missing includes after change 670efa8f64 2016-07-04 12:11:24 +02:00
VCBackend.h correct whitespace 2016-02-20 06:39:32 +01:00
version.cpp Make builds reproducible 2015-03-26 18:14:45 +01:00
version.h Introduce "inverted" branch insets: These are branches whose content 2016-07-11 23:56:32 -04:00
VSpace.cpp Audit all the LASSERT calls, and try to do something sensible at 2013-04-25 17:27:10 -04:00
VSpace.h
WordLangTuple.h #9496 factor out getting language from LFUN args or cursor position in speller LFUNs 2015-07-16 21:59:15 +02:00
WordList.cpp Remove non-copyable idioms 2016-06-09 19:16:44 +01:00
WordList.h Remove non-copyable idioms 2016-06-09 19:16:44 +01:00