Richard Heck
f1912e1c33
Read the citation formats from a file, rather than hardcoding them. This
...
allows for layout- or module-level customization of the display in the
citation dialog and of the XHTML bibliography output.
There is more of this to come, by the way. The next step is to allow
macros. That will make it easier to deal with translation issues, which
ought to be the final step.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33920 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 18:37:25 +00:00
Vincent van Ravesteijn
111bb60932
Fix bug #2009:'|'-character in headings confuses TOC list in navigate menu.
...
Solution is to search backwards for the last '|' in the string, and to add a '|' to the ones without a shortcut.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33918 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 17:58:00 +00:00
Vincent van Ravesteijn
e4b3e9b7bc
Fix the painting I broke in r33909.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33912 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 16:00:49 +00:00
Vincent van Ravesteijn
6a9f44eaa2
Refactorization: Buffer::changed() can update the metrics as well, so we don't have to do it in scrollToCursor if we call Buffer::changed() anyway.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33909 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 15:29:26 +00:00
Vincent van Ravesteijn
fa0f6cf9be
Allow to assign the shortcut to an action not only if this was an unknown action, but also when it is a no-action.
...
This could be seen by adding a shortcut "Ctrl-R" to accent-acute. Then changing this to "Ctrl-R Ctrl-R". And then changing this back to "Ctrl-R". Now the oldBinding is NOACTION and a warning is issued that "Ctrl-R" was already bound.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33906 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 09:15:27 +00:00
Vincent van Ravesteijn
df1b413587
No need to issue an error if the shortcut binding did not change.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33905 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 09:13:00 +00:00
Vincent van Ravesteijn
520709d2bb
Mark the preferences dialog as changed when a shortcut is removed.
...
(Apparently the signal-slot construction does not work when there is also a on_**_pressed() slot?)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33903 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 06:54:27 +00:00
Edwin Leuven
2fb72fb906
hopefully fix the (re)sizing of the adv search/replace
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33883 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-27 17:37:41 +00:00
Richard Heck
5696be2a66
Allow the use of rich text in citation formats. And use them in the
...
citaton dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33880 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-27 13:54:14 +00:00
Pavel Sanda
a59b92769f
Fix part of 6587 - make backup more safe and delete autosave only after closing.
...
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg159029.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33878 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-26 23:15:37 +00:00
Richard Heck
b4791d97b3
Fix another potential manifestation of bug #6522 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33873 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-26 16:36:29 +00:00
Edwin Leuven
6d78f80c04
harmonize shortcuts
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33872 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-26 15:09:07 +00:00
Edwin Leuven
b768107db9
adv search/replace: move insert regexp to context menu
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33871 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-26 14:46:51 +00:00
Vincent van Ravesteijn
1e4ccc2d22
Fix bug #6617 : Allowing "compressed documents" be the default.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33870 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-26 14:02:56 +00:00
Edwin Leuven
e7b1808827
simplify adv search/replace layout
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33867 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-25 16:57:39 +00:00
Richard Heck
869f6d33c6
Revert r33852 and try something else. The problem here, which can be
...
seen in branch, too, is that if you change the style combo and then do
anything else, such as click on an entry, the combo reverts.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33858 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-24 15:49:06 +00:00
Richard Heck
ffd3b5a6a3
Don't be so picky here.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33857 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-24 15:08:39 +00:00
Richard Heck
0b5ec3d92e
Use selectedIndex rather than currentIndex. The latter can be invalid if
...
the focus has never gotten here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33856 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-24 15:01:50 +00:00
Richard Heck
2455df7cdc
Typo. Bad one.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33855 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-24 14:53:53 +00:00
Richard Heck
625144c193
Block signals to the combo box when we update it. This fixes a problem
...
with flashing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33854 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-24 14:50:20 +00:00
Richard Heck
ebb24e51e1
Take Andre's advice and implement the focus tracking using the event
...
filter.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33853 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-24 14:34:44 +00:00
Richard Heck
a02114dcea
Only restore the last applied style on initialization.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33852 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-24 14:34:05 +00:00
Richard Heck
559da350f0
Fix bug #6486 . Patch inspired by work by John McCabe-Dansted.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33851 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-24 13:51:47 +00:00
Richard Heck
04da0f68fb
This should give us the selected index, not the current index.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33850 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-24 13:00:35 +00:00
Richard Heck
adf858ebcc
Refactor a bit. This will be needed a bit later.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33849 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-24 12:04:24 +00:00
Enrico Forestieri
d95b35dad8
Fix for Qt 4.2 (patch mostly from JMarc).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33848 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-24 08:50:06 +00:00
Edwin Leuven
45b2a000e3
play nice with qt 4.2?
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33847 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-23 21:46:42 +00:00
Edwin Leuven
9360481279
revert r33839 and r33840: does not work on MAC
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33841 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-22 23:02:55 +00:00
Edwin Leuven
9cdc247920
take care of qt 4.2
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33840 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-22 20:59:26 +00:00
Edwin Leuven
55b75cf5c0
set verticalsize policy to ignore until we find a better solution. instead of overlapping dockwidgets we now have a layout where widgets get resized arbitrarily small. in practice this is not an issue since nobody will resize the mainwindow to such small dimension. in the meantime the lyx window will fit nicely on smaller screens. but as said, while looking for something better...
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33839 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-22 20:58:13 +00:00
Edwin Leuven
fdeecd380b
many little layout tweaks
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33828 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-21 20:27:53 +00:00
Edwin Leuven
2f6ec82064
little wiggles for on-the-fly spellcheck
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33827 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-21 20:26:30 +00:00
Edwin Leuven
e70821b32a
fix layout
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33824 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-21 12:36:46 +00:00
Edwin Leuven
ffaf512593
- make the advanced search/replace dialog play nice with size
...
- add frame
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33821 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-21 11:50:13 +00:00
Edwin Leuven
a725704007
tighten layout
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33820 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-21 11:36:32 +00:00
Edwin Leuven
66ffee84f2
hopefully people are happy with this layout..
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33819 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-21 10:50:02 +00:00
Uwe Stöhr
f969d4b87f
revert r33814 but widen the text edit fields instead
...
(reverting things without discussing it is not OK)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33815 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-21 00:54:49 +00:00
Enrico Forestieri
534604d187
Fix PrefLatexUi.ui after r33783.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33814 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-20 23:14:33 +00:00
Richard Heck
8a690ea050
Don't bother bliking the cursor if it isn't on the screen.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33813 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-20 15:11:25 +00:00
Tommaso Cucinotta
57aa866a1c
Fixed issues in backward search in various corner cases ( fixed #6482 and #6596 ).
...
Now, when scope includes multiple documents, the switch_buffer LFUN is only issues if buffer actually changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33812 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-20 13:59:46 +00:00
Richard Heck
d0434b96e8
Since we don't do anything if the cursor isn't in view, do that test
...
first.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33803 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-19 16:11:58 +00:00
Jürgen Spitzmüller
f91cd9d255
fix bug #6513 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33800 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-19 13:35:32 +00:00
Abdelrazak Younes
44fb52d1a2
Fix potential bug affecting export and preview with threads.
...
QThreadPool::maxThreadCount() defaults in general to 2 on single or
dual-processor. This is clearly not enough in a time where we use
threads for document preview and/or export. 20 should be OK.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33790 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-18 12:42:34 +00:00
Tommaso Cucinotta
e74f4b1d8b
No more auto math toolbars while in regexp mode (addressing #6471 ).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33787 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-17 13:37:15 +00:00
Uwe Stöhr
317192fa1f
PrefLatexUi.ui: fix alignment and spacing of the text edit fields
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33783 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-17 01:02:21 +00:00
Uwe Stöhr
96f16d62f8
PrintNomenclUi.ui: fix a typo, spotted by Ignacio
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33775 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-16 21:51:39 +00:00
Abdelrazak Younes
545d7bb431
white space.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33750 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-15 16:26:09 +00:00
Pavel Sanda
21f2ad3701
Parametrize position of version string
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33745 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-15 12:39:06 +00:00
Pavel Sanda
8ffc79cf63
Honour lyxrc.show_banner again
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33744 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-15 12:18:21 +00:00
Jürgen Spitzmüller
c23fe9abfe
* GuiSpellchecker.cpp:
...
- prevent null pointer (bug 6586)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33743 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-15 10:03:02 +00:00