Commit Graph

5816 Commits

Author SHA1 Message Date
Enrico Forestieri
9925d1f88a Fix reference dialog layout for Qt 4.2.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28877 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-20 14:14:50 +00:00
Jürgen Spitzmüller
8d8462afaf * GuiView.cpp (closeEvent):
- store child documents in session.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28874 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-20 09:31:02 +00:00
Enrico Forestieri
aba488dea8 Fix display of release date with Qt 4.2.
In Qt 4.2, QLocale::toString(QDate, ...) returns an invalid but not empty date
when QDate is invalid. So, check whether QDate is valid before conversion.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28862 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 23:17:33 +00:00
Jean-Marc Lasgouttes
8bb055a973 fix "make check" with gcc 4.3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28860 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 22:49:51 +00:00
Richard Heck
22e1e85c8e Fix bug 1492.
Please let me know if this doesn't work right with various langauges, makes things worse, or what have you. I posted a note to devel about this but didn't get any response, so I'm guessing it's OK. If not, we'll revert it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28856 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 18:47:42 +00:00
Jürgen Spitzmüller
629e2073fc please Lars.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28799 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 15:53:17 +00:00
Vincent van Ravesteijn
cdfc9575a9 * GuiCommandBuffer: Fix bad programming.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28794 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 13:20:15 +00:00
Jürgen Spitzmüller
53877ef28f * GuiDelimiter.cpp:
- do not auto-apply if "match" is not chosen (bug 5789).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28792 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 13:15:24 +00:00
Vincent van Ravesteijn
d3cca37860 Fix bug 5695. Now for the Include dialog.
http://bugzilla.lyx.org/show_bug.cgi?id=5695

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28784 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-14 19:29:03 +00:00
Richard Heck
3aecc2c4ff Use an enum to make things a little clearer here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28756 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-12 20:02:12 +00:00
Vincent van Ravesteijn
8988dffe7c Remove black box around GuiWorkarea which is visible with Qt4.5.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28747 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 22:29:02 +00:00
Vincent van Ravesteijn
8768fa7251 Proper fix to avoid an infinite loop with Qt4.5.
see: 
http://www.qtsoftware.com/developer/faqs/why-does-qstring-indexof-qregexp-cause-a-crash-or-hang-in-qt-4.5

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28746 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 19:54:47 +00:00
Vincent van Ravesteijn
e7e4f9fd55 Revert cs 28742:28744 to prepare for a proper fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28745 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 19:47:46 +00:00
Richard Heck
ea0ed17421 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28744 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 19:12:02 +00:00
Abdelrazak Younes
500add162b Stupid me.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28743 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 17:59:17 +00:00
Abdelrazak Younes
2cefb12b22 Avoid infinite loop with Qt4.5 (asserts instead).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28742 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 17:38:35 +00:00
Vincent van Ravesteijn
8e633570bf Fix bug 5357: Close tab possible without close tab icon
http://bugzilla.lyx.org/show_bug.cgi?id=5357

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28727 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-08 10:21:33 +00:00
Vincent van Ravesteijn
8bb4c7bfe9 Fix bug 5695: Default button in GuiHyperlink must be "OK"
http://bugzilla.lyx.org/show_bug.cgi?id=5695

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28726 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-08 09:42:16 +00:00
Jürgen Spitzmüller
d7601a684b fix bug 5833
* Buffer.{cpp, h}:
	- new method getChildren() that returns included (and sub-included) files

* GuiView.cpp (closeEvent):
	- do not just close dirty child documents.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28712 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-07 16:33:03 +00:00
Vincent van Ravesteijn
2e78ca5a47 Fix bug 5819: Close button of tabbar closes wrong document
http://bugzilla.lyx.org/show_bug.cgi?id=5819.

If no call to setCurrentIndex is made, we should make sure ourselves that the currentWorkArea switches to the clicked TabWorkArea.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28641 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-28 13:56:41 +00:00
Vincent van Ravesteijn
3919eeafe4 Fix warning similar to bug 5799: http://bugzilla.lyx.org/show_bug.cgi?id=5799.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28625 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-26 20:52:47 +00:00
Pavel Sanda
303177ad81 Case-insensitive reference sorting.
Patch from Manoj Rajagopalan.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg147931.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28593 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-24 22:56:57 +00:00
Vincent van Ravesteijn
1907b28770 Fix bug 5769: http://bugzilla.lyx.org/show_bug.cgi?id=5769.
Copy content vanishes on Quit.

The work-around to clear the clipboard was needed to work around bug 4846. This bug has been resolved by the fix for bug 5472, so the work-around isn't needed anymore.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28589 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-23 19:06:43 +00:00
Vincent van Ravesteijn
92d90a0be3 Fix bug 5799. Warning when opening the document settings dialog. http://bugzilla.lyx.org/show_bug.cgi?id=5799.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28584 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-22 23:02:35 +00:00
Peter Kümmel
f0edb3dfb3 fix merge build
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28581 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-22 12:42:10 +00:00
Vincent van Ravesteijn
3373aa588c Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28562 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 19:41:41 +00:00
Vincent van Ravesteijn
90258a0dd3 Remove the GuiRef::sort_ member. It was a relic of the old days.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28561 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 19:24:42 +00:00
Vincent van Ravesteijn
c85e24b066 Fix bug 5785: http://bugzilla.lyx.org/show_bug.cgi?id=5785.
Reference dialog update crash for read-only documents.

Comments:
* -1 is a valid return of bufferCO->currentIndex() so we need to test for it.
* set the correct enabling of the button in case no call to updateContents follows.
* remove unneeded call to setFocusProxy. The widget is either disabled or the focus proxy is set in updateRefs.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28547 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-18 23:45:00 +00:00
Jean-Marc Lasgouttes
53dc4ae015 compilation warning: add exta braces around assignment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28512 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-16 10:08:18 +00:00
Jean-Marc Lasgouttes
f1c6bfdc9d compilation warning: scale is unsigned
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28511 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-16 10:07:16 +00:00
Jean-Marc Lasgouttes
22e13587b3 compilation warning: comparison of two char *
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28510 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-16 10:06:24 +00:00
Jean-Marc Lasgouttes
29117ed909 compilation warning: unused parameter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28509 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-16 10:05:40 +00:00
Richard Heck
08d7f7885a Next step: LayoutModuleList is now a thin wrapper around a list<string>.
It'll get its own methods later.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28468 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-12 15:07:22 +00:00
Richard Heck
9bf18ee38e Squash warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28466 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-12 14:30:29 +00:00
Uwe Stöhr
a12e81fe06 GuiTabular.cpp, InsetTabular.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5773
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28464 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-12 03:02:34 +00:00
Jean-Marc Lasgouttes
209f2167f0 fix compilation with external boost
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28444 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-11 14:27:42 +00:00
Uwe Stöhr
e029b216b7 GuiTabular, InsetTabular: fix http://bugzilla.lyx.org/show_bug.cgi?id=5752
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28437 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-10 18:08:09 +00:00
Jürgen Spitzmüller
0c3109e2d3 * TocWidget.cpp:
- improve performance with Outliner open with Qt >= 4.3 by using native methods instead of home-brewn code.
	  This should especially pay off on the Mac, if the Outliner shows as a drawer (bug 4443).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28432 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-10 08:32:34 +00:00
Pavel Sanda
7cfe885af1 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5082
(Outliner uninitialized after lyx launch)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28428 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-10 00:10:45 +00:00
André Pönitz
20d5148dca move ColorSet to a header of its own to reduce #include dependencies
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28426 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 23:30:24 +00:00
Vincent van Ravesteijn
c912d253f2 Fix bug 5711: http://bugzilla.lyx.org/show_bug.cgi?id=5711.
Add button in Citation dialog grayed out when key matches the start of an already selected key.

One parameter of match() was forgotten, so the MatchFlags were basically ignored, i.e. the standard flags were used always.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28425 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 23:20:52 +00:00
Vincent van Ravesteijn
a37eaf4f0b Use the new Color class (see r28420) in the Painter code.
See:
http://thread.gmane.org/gmane.editors.lyx.devel/114189

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28421 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 20:10:11 +00:00
Vincent van Ravesteijn
2e7698c4e6 Add a new Color class. This class makes it possible to specify a color as a merging of two other colors. The actual computation of the new color is done in ColorCache::get.
See:
http://thread.gmane.org/gmane.editors.lyx.devel/114189

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28420 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 20:00:31 +00:00
Vincent van Ravesteijn
71c44aa9d0 Add a comment for r28404.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28408 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 09:14:38 +00:00
Uwe Stöhr
ff12fcb01b GuiTabular.cpp: a whitespace fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28406 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 00:06:32 +00:00
Pavel Sanda
887ba34eeb Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5767
(disabled keep&sort buttons on ToC in readonly mode)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28405 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-08 23:45:17 +00:00
Vincent van Ravesteijn
adac53cbb2 Prevent assertion when closing LyX with GuiTabular open.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28404 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-08 19:44:53 +00:00
Vincent van Ravesteijn
814a8411eb Reverse unwanted commits.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28388 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-08 01:11:27 +00:00
Vincent van Ravesteijn
f694cf7135 * InsetMathNest.cpp: Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28387 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-08 01:01:15 +00:00
Jean-Marc Lasgouttes
26751d83ee Move the half baked code that guesses whether to default on metric or
imperial units in only one place (instead of thousands of slightly different
copies). Functionally equivalent.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28380 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-06 21:24:13 +00:00