This was a similar problem as for bug #5796 in r30807. There I made sure that the position that is used for the context menu is set at mousepress. That was because also the cursor was set at mousepress and we want to get the context menu at the place where the mousebutton was pressed, and not where the mousebutton was released.
However, in this case, the position of the context menu is stored on mousepress, but we don't take into account that the cursor might move afterwards due to the DEPM.
So, the solution is not to save the position of the mouseclick, but to save the name of the context menu we requested.
PS. Perhaps we could save the cursor position, but this seems to work too.
see r37669.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37688 a592a061-630c-0410-9148-cb99ea01b6c8
This should have been done by qt, but we can override qt by adapting the style on the windows platform.
see r37678.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37686 a592a061-630c-0410-9148-cb99ea01b6c8
The column width field was not cleared for non-fixed columns, leading to unwanted width applications.
I wonder why this bug was never reported.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37371 a592a061-630c-0410-9148-cb99ea01b6c8
This also fixes the crash reported at #7180.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37105 a592a061-630c-0410-9148-cb99ea01b6c8
Changes:
- let filenames to be longer in window title (see r36950);
- when hovering the lastfiles menu, the full file names are shown in the statusbar (see r37083);
- when hovering the tabs, the longer name is shown as a tooltip (see r37101).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37102 a592a061-630c-0410-9148-cb99ea01b6c8
see r37075--r37079.
(I think this commit doesn't need a separate status log message as it fits well in the one committed in r37079.)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37080 a592a061-630c-0410-9148-cb99ea01b6c8
When applying the preference we need to save the full session information, because when this information is not yet saved, we will lose it forever. We can enter the preferences without a saved state when we start LyX with a modified default.ui.
see also: r37077, r37075 and r37076.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37078 a592a061-630c-0410-9148-cb99ea01b6c8
When creating the QFontMetrics object, we should specify a QPaintDevice. 0 is a paint device which is screen-compatible or pixmap-compatible. This makes sure that the correct DPI is used in font metrics calculations.
see r37030, and http://bugreports.qt.nokia.com/browse/QTBUG-16331.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37036 a592a061-630c-0410-9148-cb99ea01b6c8
Do not allow to put the cursor in an InsetInfo. Instead, a context menu item is added to facilitate copying of the contents.
see r33285, r34216 and r34223.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@36589 a592a061-630c-0410-9148-cb99ea01b6c8
A hidden document does not have an associated Cursor. So, each time we create a new workArea, we should restore the cursor position.
see r35811.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@35849 a592a061-630c-0410-9148-cb99ea01b6c8
This backport contains most of Vincents suggestions, but not his own changes in r35784.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@35793 a592a061-630c-0410-9148-cb99ea01b6c8
- do not allow to change a format's short name if the format is used by a converter (fixes crash issue #6815).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@35083 a592a061-630c-0410-9148-cb99ea01b6c8
Fix the warning message "TocModel?.cpp: type not found" when (re-)loading a file.
see r34571.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@34695 a592a061-630c-0410-9148-cb99ea01b6c8
No status entry needed, since this was already fixed in 1.6.6.1.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@34567 a592a061-630c-0410-9148-cb99ea01b6c8
part 1: Notes, Footnotes, and Marginals are unnecessarily truncated.
part 2: Add tooltips to the outliner.
see r34286, r34287.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@34555 a592a061-630c-0410-9148-cb99ea01b6c8
Solution is to search backwards for the last '|' in the string, and to add a '|' to the ones without a shortcut.
see r33918.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@34552 a592a061-630c-0410-9148-cb99ea01b6c8