Commit Graph

7399 Commits

Author SHA1 Message Date
Richard Heck
60b1a06ac8 Revert previous commit, which committed too much.
This reverts commit 4369e725b17fede013eb26bfd797e917eaf6f4ea.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38979 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-07 23:52:22 +00:00
Richard Heck
cd2e50a275 Fix problem with static error list.
It's amazing we haven't seen problems with this before. The basic problem is that buf.errorList("whatever") would always return the same global, static error list, if it did not already exist. So, to a significant extent, there was only one global error list!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38978 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-07 23:45:33 +00:00
Richard Heck
bbe40d71d6 Cleanup in expandFormats().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38977 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-07 17:14:38 +00:00
Vincent van Ravesteijn
8968000e16 Move the #if up, because older Qt's can't include QtCore/QPropertyAnimation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38970 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-06 18:14:07 +00:00
Jean-Marc Lasgouttes
1f81d78814 Revert r38963. Compilation is now broken with qt 4.5, but I do not know Qt moc business and do not have time to investigate.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38969 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-06 15:53:43 +00:00
Jean-Marc Lasgouttes
19478f3efa compilation fix for Qt 4.5
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38963 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-06 10:29:30 +00:00
Vincent van Ravesteijn
7559973969 Compile fix for qt versions below 4.6.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38961 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-05 23:24:56 +00:00
Vincent van Ravesteijn
519f74ab61 Add a search box to the Document Settings and Preferences dialog.
Patch from venmo00.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38959 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-05 17:54:27 +00:00
Vincent van Ravesteijn
1744b6f9ed Set svn:eol-style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38958 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-05 17:52:15 +00:00
Vincent van Ravesteijn
cc81d48b18 Add a FancyLineEdit class. This code was taken from QtCreator and modified a little.
Patch from venom00.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38957 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-05 17:51:02 +00:00
Richard Heck
327d2cd5c5 Update status when bullet size is changed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38945 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-04 12:50:39 +00:00
Stephan Witt
af92f60df9 Cocoa based Qt-4.6 needs to paint every character separately to match metrics computation, there is no Qt version dependency
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38934 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-02 20:46:25 +00:00
Richard Heck
15cfbae75b Decimal point --> Decimal separator. As noted by one of our translators,
that is the language we use elsewhere.

Also took the opportunity to fix some shortcuts.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38930 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-02 15:43:21 +00:00
Richard Heck
82d6524298 Fix bug #7540. Patch based upon one added to bug report by Max Funk.
Basically, patch adds routine that calcuates relative paths to parent
rather than child directories.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38915 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-01 13:18:08 +00:00
Pavel Sanda
8bbe99f100 Another glitch ;)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38906 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-31 20:23:06 +00:00
Richard Heck
5f23164e86 Remove XML lines.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38897 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-31 13:44:51 +00:00
Pavel Sanda
325e2575e3 Fix #7598, do not buffer movement keys.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38890 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-29 14:49:58 +00:00
Richard Heck
46498f9f4b Fix string format to match others in this file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38884 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-29 13:43:04 +00:00
Enrico Forestieri
3dfe917a4e Avoid too much verbosity.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38878 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-29 10:29:05 +00:00
Tommaso Cucinotta
e410730dd9 We use the main document's buffer() instead of the current buffer(), so as to catch the citations
defined there, also while using the dialog from the Adv F&R WAs.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38866 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-27 21:54:23 +00:00
Tommaso Cucinotta
5ce93e724e Added method for easy reach of main document buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38865 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-27 21:53:23 +00:00
Richard Heck
35361d7af4 Reinsert newlines.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38864 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-27 21:37:58 +00:00
Richard Heck
73b81b7986 Fix oddly phrased string.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38862 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-27 20:49:44 +00:00
Richard Heck
80cb1f7674 Some cleanup and a fix for a potential crash while investigating #7572.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38858 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-27 19:47:10 +00:00
Tommaso Cucinotta
492d837e62 Use the main document's buffer(), when scanning for citations from within the citation dialog.
This allows to pick and search for citations present in the main document.

This was started to be discussed in a relatively unrelated bug #7581, then the patch
was proposed here: http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg169277.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38847 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-26 17:33:36 +00:00
Richard Heck
6432010065 Fix bug #7576 as suggested there.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38844 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-26 16:01:16 +00:00
Richard Heck
176123afcf Fix tab order for crossref dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38843 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-26 15:50:12 +00:00
Richard Heck
2d6173d810 Fix problem first reported by Diego: If you try to view a child document,
the macros declared in the parent do not work. This is because we were
cloning only the child, which then didn't have a parent.

The solution is to clone the whole structure, starting with the master
document. As a side effect, we only clone each child once.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38837 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-26 13:20:11 +00:00
Enrico Forestieri
ce655c25c2 The time_t type seems to be an unsigned type when compiling with MSVC.
Thus, we can't rely on the returned timestamp being -1 if a pdf doesn't exist.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38835 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-25 13:06:33 +00:00
Julien Rioux
b18e8e7a02 Fix bug #7543: Default Output Format in Preferences
does not contain all the possible options.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38828 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-24 01:26:41 +00:00
Tommaso Cucinotta
466af97c39 Addressing #7581: now I'm copying the document class as well
from the main document WA to the find/replace WAs (in addition
to the language, as required for addressing #6560).
I'm not cloning the whole BufferParams because we learned
from

  http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg168175.html

that, for example, if we inherit the default master by mistake,
then we may run into problems.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38819 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-22 21:09:57 +00:00
Stephan Witt
46d1f8a03c #7564 move the text cursor to the end of the word after replace of the misspelled with suggested text
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38786 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-19 05:54:47 +00:00
Stephan Witt
cec318896c #7564 make the move forward to next match after text replacement optional and suppress it when replace a word by selected suggestion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38781 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-18 20:33:57 +00:00
Richard Heck
605d3121f8 Minor fixups thanks to Vincent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38744 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-13 22:26:35 +00:00
Richard Heck
78a623e3d6 The point of the previous commit: We just need the params here, not
the whole buffer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38743 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-13 19:40:04 +00:00
Richard Heck
5db4b7eb16 Move a bunch of code from Buffer to BufferParams. The point of this
is contained in the next commit.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38742 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-13 19:39:56 +00:00
Enrico Forestieri
f4919265f1 Warn user about the TeX engine detection.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38740 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-13 13:07:25 +00:00
Richard Heck
88cdfb0d42 Fix bugs #7110 and #7160 by reverting r36521.
This was an attempt to fix #2743 without re-working the InsetBibitem
mess. It didn't work, so we have to do that.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38702 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-11 12:44:39 +00:00
Peter Kümmel
897edc10c0 cmake: move CMakeLists.txt into source dir (multiple steps)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38691 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-10 17:44:41 +00:00
Enrico Forestieri
cdb1f9a000 Add tooltips
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38686 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-10 10:08:02 +00:00
Enrico Forestieri
1717ef203c Introduce the possibility of setting a prefix for the TEXINPUTS environment
variable. This is done in the preferences, much like as the PATH prefix.
A single '.' in the paths will get replaced with the current document dir
and also non-absolute paths will be prefixed with that dir.

The default semantics of TEXINPUTS apply, such that, for example, if a
path is terminated with a double slash, all subdirectories will be also
searched by both the TeX engine and ancillary programs such as dvi
previewers or dvips. As an example, if the prefix is set to ".:figs", the
TEXINPUTS variable will be set as ".:<docdir>:<docdir>/figs:$ORIGTEXINPUTS",
where <docdir> is the document directory.

The initial '.' is necessary to address the actual current dir (this will
be the temp dir at preview time), while if TEXINPUTS was initially unset,
such that $ORIGTEXINPUTS is empty, a colon (or semicolon on Windows) will
end the path list. This is very important, because we don't want to replace
the system directories but to complement them and, in order to do that, an
empty element has to be present in the list. Indeed, according to the
TEXINPUTS semantics, an empty element means the standard search path.
This works whether TEXINPUTS is originally set or not, because if the
original TEXINPUTS starts with a colon (meaning that the standard search
path is wanted there) we will have an empty element at that point,
otherwise the final colon will simply serve as a path separator.

Of course, on Windows a ';' has to be used as a path separator. LyX will
take care of transforming the platform path list into one understandable
by the TeX engine. For example, this will be the case for a Cygwin version
of LyX using a native Windows TeX engine or viceversa. I tested all of
this and it works for me.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38681 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-09 23:25:51 +00:00
Tommaso Cucinotta
c23eef3abf Still addressing #6560: instead of cloning the BufferParams, which might cause
a number of unforeseen issues (like the inheritance of the default master, as
pointed out in http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg168225.html),
now we simply set the language into the search & replace buffers.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38647 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 23:51:44 +00:00
Pavel Sanda
84f3f109d3 typo, closing #7427
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38642 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 12:28:54 +00:00
Richard Heck
1493191f77 Fix bug #7500: There is presently no way in the GUI to update local
layout to the current format.

This probably isn't needed for branch, since local layout was a
"hidden feature" prior to 2.0, and one can update local layout by:
  (a) copying to a file
  (b) running layout2layout on that file
  (c) pasting back into LyX
So we should probably just leave this in trunk.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38622 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 00:54:17 +00:00
Pavel Sanda
b90ef20d36 Typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38588 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-05 09:19:34 +00:00
Georg Baum
f0a669014f Exclude generated files from .po string extraction.
Now it is no longer needed to use a tree that was never used for building
for remerging .po files.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38585 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-04 18:51:15 +00:00
Pavel Sanda
371c42d45e Fix #7479
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38469 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-20 20:52:53 +00:00
Tommaso Cucinotta
bfc98a4faa Avoid useless double dispatch of cmd to same buffer (if bv and doc_bv are the same).
This also fixes #7442.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38383 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-14 21:39:47 +00:00
Peter Kümmel
697ffd35d8 #7452, no spellcheck menu needed when no text is below cursor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38369 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-13 18:54:58 +00:00
Stephan Witt
062ad0335f #7429 dismiss spell checker dialog when wrap around is detected
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38361 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-13 11:38:07 +00:00
Pavel Sanda
7c63b4f260 Fix wrongly copy-pasted entries in SpellcheckerUi.ui
Spotted by Jean-Pierre Chretien.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38344 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-11 23:50:40 +00:00
Pavel Sanda
16c2ee1f49 Resave SpellcheckerUi.ui in qt 4.4 designer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38343 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-11 23:50:38 +00:00
Pavel Sanda
16cfd2ba12 Fix #7438, patch from Stephan.
(Sorry for not waiting for you, I wanted to enter freeze ASAP.)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38317 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-08 22:22:52 +00:00
Julien Rioux
3fd236f0cc * GuiDocument.cpp
- unify font handling between TeX and non-TeX fonts
    - show unavailable fonts as 'The Font (not installed)' in the Fonts dialog

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38316 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-08 20:37:17 +00:00
Stephan Witt
c694f6cdf5 Fixes the following issues:
* updateView() should start a spell check only on first call after init
* at the end of document the dialog should hide itself when user said "no" to continue spell check
* when the last word of a note inset is misspelled forward() wrongly think it's the end of doc
* when the user clicks the buttons fast, recursive calls are possible


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38307 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-08 13:26:45 +00:00
Pavel Sanda
9dd47e00d1 Fix #7439.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38303 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-08 12:00:51 +00:00
Stephan Witt
d41dfec5be #7375 correct spell checker widget geometry
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38295 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-06 20:12:44 +00:00
Stephan Witt
01a21a60b5 #7430 add check for first document language for the spell checker and initialize the language combo accordingly on open
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38294 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-06 18:26:50 +00:00
Enrico Forestieri
13dd04602a Generalize check to generic non-editable insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38257 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-05 15:40:00 +00:00
Enrico Forestieri
bd744cac00 Fix bug #7420 (ASSERTION when moving paragraph up in info inset)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38251 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-05 01:00:30 +00:00
Pavel Sanda
2b21503022 Better compile fix from Vincent
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38238 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-04 07:47:21 +00:00
Pavel Sanda
e30ca93785 Temporary fix for compile errors on older Qt's (cf #7375)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38235 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-03 19:21:28 +00:00
Enrico Forestieri
b413c58e78 Make the libreoffice icons the default set, add some missing icons,
and improve the appearance of some other ones.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38182 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-01 17:51:12 +00:00
Enrico Forestieri
89b4af1653 The original icon set was thought for a normal size of 20x20.
New icon sets declare the normal size through an iconsize.png file.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38135 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-29 21:07:46 +00:00
Tommaso Cucinotta
8fd06ad27c Fixed overlapping of both Find Advanced and Spellchecker Dockwidgets (addressing #7375).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38133 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-29 20:51:40 +00:00
Enrico Forestieri
ca15005193 Smash compiler warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38089 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-28 05:49:35 +00:00
Enrico Forestieri
12baf18cfa Automatically set the normal icon size on restart if the the icon set changed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38076 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-27 19:07:09 +00:00
Enrico Forestieri
25fe275430 Replace raw newlines with the html entity "&#x0a;" otherwise lyx_pot.py
won't collect these strings.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38060 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-26 00:57:00 +00:00
Jürgen Spitzmüller
76ec475e87 * GuiPrefs.cpp: default means empty string.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38051 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-25 15:21:35 +00:00
Jürgen Spitzmüller
6e03eb57fa GuiPrefs.{cpp,h}: use text/data interface for icon set ui.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38049 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-25 15:14:52 +00:00
Enrico Forestieri
7a9250df6a Fix compiler warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38048 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-25 14:53:20 +00:00
Enrico Forestieri
36bf758ed9 Move to PrefUi the icon set choice and solve problem with translation
of icon set names.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38046 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-25 14:21:28 +00:00
Enrico Forestieri
c6564028f0 Preferences for choosing the icon set to use. It works on the fly, but
the size of icons may be wrong when switching between sets with different
normal icon size. One needs to save the preferences, restart LyX and choose
"Normal-sized icons" from the toolbar menu to have the real normal size.
A minor glitch is that the name of the icon sets is translatable, but
currently only the translation for "Default" works. The problem is that I
don't know how to ask gettext for an inverse translation when saving the
preferences. Another possibility would be hardcoding the order of the names
in the combo box (such that to not rely on their names), but that is ugly
and prone to errors if/when other sets are added.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38041 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-25 05:01:06 +00:00
Enrico Forestieri
a99340cd10 Infrastructure for choosing different icon sets. This currently works
through the rc setting \icon_set. Preferences dialog will follow shortly.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38038 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-25 01:59:34 +00:00
Stephan Witt
e6f46dd08c #7379 avoid the wrap spell check question when buffer is empty
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38023 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-24 11:49:34 +00:00
Abdelrazak Younes
70c603a1b2 Cleanup the SpellChecker dialog (fixes #7375 and #7379):
* Transform Spellchecker.ui into a simple QWidget
* Pimpl all we can
* Remove progress bar
* Remove Close button (as for all other dock widgets)
* Allow the dialog to stay even for empty document
* Disable the dialog when closing all documents
* always work against the current document Bufferview (as opposed to embedded bufferview).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38018 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-23 23:10:12 +00:00
Enrico Forestieri
64bdffbac4 Let the icon set decide what the normal size is, but bound it to the
range between the hardcoded small and large sizes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38000 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-22 23:41:26 +00:00
Vincent van Ravesteijn
19263a634b Fix bug #7314: Workareas not redrawn. This is caused because the current_workarea doesn't get updated anymore while LyX is busy. However, when LyX stops being busy, the current workarea might have changed, and we are missing out on an update.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37969 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 19:20:42 +00:00
Jürgen Spitzmüller
900b896fdc * Menus.cpp: fix accelerator
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37966 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 16:16:49 +00:00
Vincent van Ravesteijn
75f45e3912 Add mnemonic.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37964 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 14:56:54 +00:00
Vincent van Ravesteijn
2b689dd834 Fix bug #7275: Overcrowding of context menus.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37963 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 14:55:32 +00:00
Vincent van Ravesteijn
49459f6fc4 Fix bug #7345: Crash when right clicking on displayed math with selection
Two things have been fixed here:
1) the selection should not be cleared when the user right clicks a math inset that is part of the selection,
2) the type of context menu should be determined at mouse-press, because that is the moment when the cursor is set. However, we should do it after setting the cursor, because setting the cursor might change the selection status and this influences the choice for the type of context menu.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37961 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 13:14:13 +00:00
Vincent van Ravesteijn
eec88b7e5e Revert wrong previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37959 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 10:34:59 +00:00
Vincent van Ravesteijn
e52af5f897 Simplify logic in InsetRef::latex().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37958 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 10:31:43 +00:00
Georg Baum
d40c9f0548 Fix the reset buttom for the greyed out text color:
Reset to the default greyed out text color, not to the note background color


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37956 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 21:13:05 +00:00
Richard Heck
8eaed90043 Style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37955 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 18:56:05 +00:00
Enrico Forestieri
397c03b433 Fix bug #7361 (Assertion when a latex error occurs in the first (empty) paragraph)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37954 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 17:26:17 +00:00
Jürgen Spitzmüller
d999c98bad * GuiPrefs.cpp: no need to exclude greyedouttext and shaded colors from prefs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37952 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 15:12:03 +00:00
Jürgen Spitzmüller
45b6349139 * GuiDocument.cpp: do not hardcode colors that can be redefined in prefs..
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37949 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 14:40:38 +00:00
Jürgen Spitzmüller
b7ac0ee143 * GuiDocument.cpp: make strings translatable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37948 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 14:11:36 +00:00
Stephan Witt
291c5c91ec #7357 correct the numbers by introducing two modes of word count
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37947 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 12:50:09 +00:00
Richard Heck
2ae247285c Initialize variable. Possibly related to Jurgen's weird crashes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37945 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 01:28:52 +00:00
Pavel Sanda
ed38744b09 Add unused string into tooltip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37923 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-13 23:14:12 +00:00
Pavel Sanda
d83c44d0f2 Resave in older designer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37922 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-13 23:14:11 +00:00
Abdelrazak Younes
c9e4d86b4c Temporally fix #7321 until a better solution is found. The auto scrolling is very bad but at least it does not crash nor assert.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37916 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-13 16:41:47 +00:00
Abdelrazak Younes
00a10facd2 Trying to fix #7321: SyntheticMouseEvent() only works within text.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37913 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-13 16:26:03 +00:00
Vincent van Ravesteijn
aed9e6c3f1 Fix bug #7352: Statusbar of Compare dialog is wrongly placed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37904 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-12 17:02:03 +00:00
Stephan Witt
ad1dc2fd6b now the user has control over the width of the text cursor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37901 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-11 06:11:55 +00:00
Enrico Forestieri
32ea651007 Revert r37801 and r37870. They are superseded by r37894.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37895 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-10 04:10:21 +00:00
Stephan Witt
1c58de4cc7 #7266 drawing of dotted lines with QPen and line width of 0.5 does not work well - restore line width 0 for thin line
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37884 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-08 15:35:24 +00:00