Commit Graph

6648 Commits

Author SHA1 Message Date
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
Richard Heck
5e0de68db5 Minor cleanup, and some const-ness.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33734 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-13 16:55:59 +00:00
Pavel Sanda
9be4767f27 Fix Error dialog. Patch from Richard and Abdel.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg158649.html
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg158658.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33732 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-13 11:39:50 +00:00
Vincent van Ravesteijn
7d30e34b08 Fix bug #6462: Out-of-bounds index in GuiErrorList::goTo when new buffer is active.
Cache the buffer and errorList in the GuiErrorList dialog. Now, we can check whether the active buffer is also the buffer for which the errors are shown. We switch back to the correct buffer, when one clicks on an item or clicks "View complete log".

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33726 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-12 15:06:13 +00:00
Vincent van Ravesteijn
2ef545a250 Fix bug #6397: use GUIfied strings in the error dialog.
Forward port of r33408 (commit by Juergen).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33725 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-12 13:47:28 +00:00
Uwe Stöhr
1f907d16d1 GuiWorkArea.cpp: remove unused include of MetricsInfo.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33722 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-12 00:27:12 +00:00
Vincent van Ravesteijn
cabde10fa3 Adjust the window settings for MacOSX.
- No more Drawers,
- ProgressView and SourceView are docked at the bottom,
- SpellChecker, FindAndReplace and Outline are floating by default, but dockable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33716 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-11 19:33:08 +00:00
Vincent van Ravesteijn
c5e0708f88 Add Qt version info to the About dialog in the DEVEL_VERSION.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33715 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-11 18:31:01 +00:00
Vincent van Ravesteijn
d8bb69e74e Fix bug #5735: Modifying a keyboard shortcut function entry clashes with its own shortcut key combination definition.
- Trim the saved lfun because there is a space added in the textfield,
- check whether the action has changed before signaling that the shortcut already exists.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33713 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-11 17:34:59 +00:00
Abdelrazak Younes
2a3f27a80c Code simplification.
TocTypeModel is not needed outside TocModel.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33707 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-10 21:00:34 +00:00
Richard Heck
56d89dbff9 This is worth having here anyway.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33703 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-10 18:43:10 +00:00
Richard Heck
0bddd759d7 Another try at #6522. This works here, for the most part, with no ill
effects that I can see. That said, I believe there is still a crash you
could get. I'll explain in a moment.

Since we may run into this kind of thing again, let me explain why this
is necessary. The problem was that resetting the model was causing a
signal to be emitted that the current index had changed, which was
triggering an update of the Buffer, eventually. I'm not sure why this
did not happen in Qt 4.5, but in Qt 4.6, you have to call
beginResetModel() before doing anything, so that the combo box will
remember its previous setting. Then you can change the data; then you
can call endResetModel(). This will attempt to restore the previous
setting. Only if it cannot do so will currentIndexChanged() be emitted.

You can see, therefore, that if whatever the user did caused the current
setting to become invalid---e.g., she deleted the only footnote---then
the signal will be emitted and LyX will still crash. Still, that is a
fair bit better than presently.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33702 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-10 18:41:28 +00:00
Vincent van Ravesteijn
f23a2ccb58 Fix bug #6488: Avoid a null pointer when accessing documentBufferView when there is none.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33692 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-10 14:46:28 +00:00
Richard Heck
42a2a0f289 Cheap fix for #6554. When we save a Buffer to a new location, we check
the included insets and make sure that the files they reference are
still where they are supposed to be.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33686 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-09 03:25:47 +00:00
Richard Heck
d70f91a380 Line length, again.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33683 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 20:48:48 +00:00