Commit Graph

6380 Commits

Author SHA1 Message Date
Abdelrazak Younes
1ec0b390f5 Transfer some general code from GuiSpellchecker to Buffer and DocIterator.
* Buffer::nextWord(): new method to search for next word.
* DocIterator.cpp: new function isLetter() moved from GuiSpellchecker.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28963 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-28 19:02:49 +00:00
Abdelrazak Younes
6ae860a59d Forgot that in previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28962 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-28 17:33:20 +00:00
Abdelrazak Younes
dc1d8af9a2 Painter::wavyHorizontalLine(): new method for inline spellcheck purpose.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28961 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-28 16:37:28 +00:00
Vincent van Ravesteijn
b2e3355bf5 Preferences dialog fixes:
* accelerator clashes,
* missing accelerators, and
* strings (capitalization). 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28960 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-28 13:13:13 +00:00
Jürgen Spitzmüller
5a4e4dec15 Fix bug 5863:
* beamer.layout:
* powerdot.layout:
	- those provide geometry

* BufferParams.cpp:
* GuiDocument.cpp:
	- implement provides("geometry")

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28957 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-28 10:48:16 +00:00
Vincent van Ravesteijn
7ad28349ab Fix bug 4935: Scroll down below document
http://bugzilla.lyx.org/show_bug.cgi?id=4935

* GuiPrefs: Add an option to the Editing dialog.

* BufferView: Scroll below document if the option is set.

* LyXRC: Write/read the option from preferences file.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28947 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 17:41:58 +00:00
Vincent van Ravesteijn
1bbcd403fc Fix bug 4733: Auto popup of math toolbar hides the math editor
http://bugzilla.lyx.org/show_bug.cgi?id=4733

* GuiWorkArea: This adds "buffer_view_->scrollToCursor();" to GuiWorkArea::resizeBufferView() to make sure that the cursor remains visible. 

* BufferView: Make sure that we can call the scrollToCursor function without causing a new repaint.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28946 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 17:27:38 +00:00
Vincent van Ravesteijn
2420f5ed1e Fix bug 4441. GuiRef: Ok button must be default.
See also:
http://www.lyx.org/trac/changeset/28784
http://www.lyx.org/trac/changeset/28726
http://bugzilla.lyx.org/show_bug.cgi?id=5695



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28940 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 13:53:01 +00:00
Jürgen Spitzmüller
88421aaeda Fix bug 5851: Branch definitions not shown in Insert>Branch menu if master is set.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28934 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 11:44:40 +00:00
Jürgen Spitzmüller
5be56b517a Fix bug 5827 (validate date-insert argument):
* src/support/os*.{cpp,h}:
	- new function is_valid_strftime that validates strftime arguments, 
	  OS dependant (win32 differs here)

* src/Text3.cpp:
	- use is_valid_strftime in LFUN_DATE_INSERT status check.

* src/frontends/qt4/GuiPrefs.{cpp, h}:
	- new GUI validator for strftime.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28932 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 11:22:54 +00:00
Jürgen Spitzmüller
e47e1cd751 * PrefPaths.ui:
- fix some "buddies" (accelerators).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28931 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 10:27:45 +00:00
Richard Heck
837661a255 Enhance LyX by fixing bug 5872.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28920 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-26 12:29:54 +00:00
Richard Heck
b0177410b0 Make LFUN_BUFFER_NEXT and _PREVIOUS skip documents that are open
but not shown.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28900 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-25 14:34:42 +00:00
Enrico Forestieri
350e43c482 More Ui tweaks for Qt 4.2.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28879 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-20 15:14:13 +00:00
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
Uwe Stöhr
8a0d98e67e - stdmenus.inc: Phantom can contain other things as well, not only text
- LyXAction.cpp: updates and sorting
- GuiPhantom: a dialog to set the different phantom types (stolen from GuiNote)

The Phantom feature should now be complete. Thanks to all who contributed and helped.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28364 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-05 18:09:36 +00:00
Pavel Sanda
50f4601c20 VCS: add GUI notification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28304 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-31 18:17:36 +00:00
Jürgen Spitzmüller
72b195fa4b * LyXFileDialog.cpp:
- limit workaround for Qt bug that was fixed in Qt 4.3.4 to previous Qt versions
	  (related to bug 4513).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28284 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-27 08:50:19 +00:00
Uwe Stöhr
6a0cdc2a1e revert r28281
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28282 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-25 23:50:54 +00:00
Uwe Stöhr
5ae52b3b6c remove the no longer used GuiNote
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28281 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-25 17:48:38 +00:00
Jürgen Spitzmüller
0f830027a3 * GuiApplication.cpp:
- use the first command in sequence as icon name for command-alternatives.
* lib/ui/stdtoolbars.inc:
	- use command-alternatives for the alignment buttons in the tabular toolbar (bug 5709).
* lib/images/tabular-feature_align-*.png:
* lib/images/tabular-feature_valign-*.png:
	- rename to tabular-feature_m-[v]align-*.png:

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28280 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-25 17:04:57 +00:00
Jürgen Spitzmüller
241ea2fc88 * GuiViewSource.cpp:
- enable widget in read-only mode.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28270 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-24 12:38:05 +00:00
Vincent van Ravesteijn
cf40884454 UI Command Buffer improvements.
* the history is stored in the session file and restored in the next LyX session,
* the lists now disappear when the mouse is released in stead of pressed,
* correct enabling/disabling of the up/down button,
* hide the lists when clicked outside the list. Now using the function event() and check for a mouseButtonPressEvent instead of using mouseReleaseEvent(). The latter is only called when the mouse button is released inside the widget, but we want to use this event to detect a mouseclick outside the list.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28250 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-18 21:50:23 +00:00
Vincent van Ravesteijn
d87030a353 Make the Apply button of the GuiCharacter dialog buffer dependent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28240 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-18 14:43:03 +00:00
Vincent van Ravesteijn
2afc45c538 Make the GuiCharacter dialog use the new ButtonPolicy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28239 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-18 14:41:12 +00:00
Vincent van Ravesteijn
160b0868c9 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28238 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-18 14:37:14 +00:00
Vincent van Ravesteijn
780742b73a New ButtonPolicy for dialogs with an auto-apply option.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28237 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-18 14:33:51 +00:00
Pavel Sanda
31d7519b13 Uncrustify string for translators
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28203 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 13:30:41 +00:00
Jürgen Spitzmüller
933ab5545c * InsetGraphics.{cpp.h}:
- add possibility to count graphics group members.

* GuiGraphics.{cpp, h}:
	- warning message if a deserted group is going to be dissolved

* GraphicsUI.ui:
	- terminology.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28198 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 08:02:52 +00:00
Vincent van Ravesteijn
a5ceef887d Clean up the menus:
* Two new types of menuitems are introduced: Help and Info
* Help messages make sure that the submenu they are in is enabled.
* Empty lists are now represented by a message in brackets.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28188 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-16 20:58:04 +00:00
Pavel Sanda
5a6cdebbf2 Now not needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28186 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-16 15:58:42 +00:00
Jürgen Spitzmüller
be4beae809 * GuiGraphics.cpp:
- remove redundant line.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28185 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-16 15:39:29 +00:00
Jürgen Spitzmüller
c248ed757b * GuiGraphics.{cpp,h}:
* GraphicsUi.ui:
	- polish UI for graphics groups.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28184 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-16 14:54:25 +00:00
Jürgen Spitzmüller
a8516f57ee * GuiAbout.cpp:
- fall back to lyx_release_date, if everything else fails.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28173 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-15 13:56:40 +00:00
Jürgen Spitzmüller
6bb9cf4918 * configure.ac:
- use ISO format for LYX_DATE
* GuiAbout.cpp:
	- make release date translatable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28172 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-15 13:31:05 +00:00
Vincent van Ravesteijn
36a2d521a6 Fix display of label in GuiPref.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28166 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 19:38:21 +00:00
Jürgen Spitzmüller
94442d8b30 * qt_helpers.{cpp,h}:
- get rid of function lengthAutoToWidgets, which was only used by GuiGraphics
	- new variant of lengthToWidgets that takes a docstring

* Validator.{cpp,h}:
	- the auto text in the Auto validators are customizable

* GuiGraphics.cpp:
	- make the "auto" string translatable

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28165 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 17:53:31 +00:00
Jürgen Spitzmüller
5707a39041 * GuiExternal.{cpp,h}:
* ExternalUi.ui:
	- use LengthCombo for width unit.
	- use reliable item data, instead of doing manual recounts.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28164 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 15:47:25 +00:00
Pavel Sanda
82883a05f4 FindAdvSearch. Next patch from Tommaso.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg147338.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28163 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 15:34:56 +00:00
Pavel Sanda
2ae25baf25 oops
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28162 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 15:33:14 +00:00
Pavel Sanda
5701383b40 Add editable combobox for groups in graphics dialogs as discussed in
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg70194.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28160 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 15:10:15 +00:00
Jürgen Spitzmüller
92c30f4294 * GuiBox.cpp:
- remove the useless "none" special length from the combo.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28153 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 14:10:52 +00:00
Jürgen Spitzmüller
5ba20465fe * LengthCombo.{cpp,h}:
- rename [add|remove]Item(unit) to [add|remove]Unit(unit)
	- remove now unnecessary reimplemantations of QComboBox functions
	- new member setCurrentItem(QString)

* GuiBox.cpp:
	- set ItemData for special lengths, which simplifies the logic a lot.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28152 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 12:57:23 +00:00
Jürgen Spitzmüller
18a8d490c7 * LengthCombo.{cpp, h}:
- use model/view infrastructure to store reliable data
	- use real unit name, not i18n strings, for all comparision purposes
	- remove unit "mu" in default contruction (bug 5682)
	- add some helpers to add and remove units

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28146 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 10:20:33 +00:00
Pavel Sanda
da24e05566 Cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28137 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-13 21:09:47 +00:00
Jürgen Spitzmüller
9fba7d7759 * qt_helpers.cpp:
- fix function Length lengthFromWidgets.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28112 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-12 06:48:12 +00:00
Enrico Forestieri
e4eb0f3118 Fix layout of the View Source window when using Qt 4.2.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28091 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-11 12:12:56 +00:00
Pavel Sanda
4ef19a6580 Another round.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28052 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-09 08:44:52 +00:00
Pavel Sanda
42040b7757 Add tooltip to images groupId.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28047 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-09 07:41:31 +00:00
Jürgen Spitzmüller
56f22a330e * GuiView.cpp (insertPlaintextFile):
- set a proper file filter in the file dialog.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28045 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-09 07:35:20 +00:00
Pavel Sanda
c1ca2b89fb Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5648
Patch from Bo.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28043 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-09 07:32:52 +00:00
Jürgen Spitzmüller
4c0dcc4a57 forgot to save ...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28034 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-08 08:00:37 +00:00
Jürgen Spitzmüller
454a2d4832 * GuiDocument.cpp (dispatchParams):
- do not set master buffer and warn if the master does not include child
	- issue warning if the master could not be loaded.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28033 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-08 07:59:37 +00:00
Vincent van Ravesteijn
658cee5ad4 Do not create a new file after 'new from template..' and cancel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28029 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-08 00:29:06 +00:00
Vincent van Ravesteijn
f48e86dedc Fix disabling of submenus that are empty.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28027 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-07 17:59:10 +00:00
Vincent van Ravesteijn
a16fabfb26 Fix disabling of submenus that have only disabled items.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28026 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-07 17:54:29 +00:00
Jürgen Spitzmüller
72dc5352dd * TocWidget: whitespace only.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28024 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-07 14:49:40 +00:00
Vincent van Ravesteijn
78a05e4359 Improved debug message for locating toolbar icons. Patch from Dieter Jurzitza.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28000 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-05 19:05:46 +00:00
Vincent van Ravesteijn
7b659b4ecd Case-insensitive sorting of colors in GuiPrefs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27995 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-05 13:37:46 +00:00
Vincent van Ravesteijn
bd97d99c9a Add comment about r27991.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27992 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-05 09:56:37 +00:00
Vincent van Ravesteijn
cc3b9c61cf Fix crash when no new document can be created.
This occurs frequently when the temporary directory cannot be created because it already exists. The temporary directory can exist as a result of previous crashes of LyX.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27991 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-05 00:00:19 +00:00
Vincent van Ravesteijn
d57b6f315d Safety measure for r27988.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27990 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-04 23:39:12 +00:00
Vincent van Ravesteijn
89034a543b Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5560.
Allow users to paste text from e.g. MS Word. This text can be paste from clipboard both as text and as graphics. LyX should prefer to paste it as text.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27988 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-04 23:31:32 +00:00
Vincent van Ravesteijn
965fdcb46a Allow users to specify toolbar icons for commands with a backslash. This is in the same style as the replacements made for math-insert commands.
See the user's list:
http://thread.gmane.org/gmane.editors.lyx.general/52712

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27977 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-02 01:52:54 +00:00
Abdelrazak Younes
852c5178de FindAndReplace by Tommaso:
- solves some issues related to the dialog set-up
 (overlapping of dialog title with upper sub-widget),
 by "borrowing" the widget structure from
 ViewSource.{h,cpp}
- reduces the default occupation of the dialog (in particular,
 it was "colliding" with the ViewSource itself);
- proposes to introduce a tabbed-panel in the F&R
 dialog, so as to have a "basic" and "advanced" tabs;
 (one option could be to make the dialog even smaller
  by moving all of the replace-related stuff into a separate
  "Replace" tab)

- recovers the eventFilter functionality back, so as to catch
 "Enter" or "Esc" key presses while in the Search Work Area 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27967 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-23 08:18:11 +00:00
Georg Baum
030e249d91 fix potential problems detected by gcc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27956 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 18:18:47 +00:00
Georg Baum
ac1fd9b37f fix bug 2558: hspace support in math
The basic idea was to reuse the corresponding text space inset in the same
fashion as is already done for references. The dialog displays a different
selection for math than for text. If wanted, the additional spaces could
also be enabled for text, but that would be a file format change.
Constructs like \hspace{\mylengthvariable} that are not supported are
treated by the math parser as ERT as before.

For reasons I don't know the context menu does not work, but this is not so
important IMHO (since a left click opens the dialog).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27954 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 18:12:32 +00:00
Jürgen Spitzmüller
739ad5d718 * GuiPrefs.cpp (apply):
- unbind existing shortcuts before binding new ones (bug 5444).
	  Patch submitted and tested by Bennett.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27948 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 10:41:37 +00:00
Pavel Sanda
fd6679bd34 AdvSearch - next patch from Tommaso.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg146966.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27938 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-20 16:00:47 +00:00
Pavel Sanda
d5f2772922 Hopefully better dialog policy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27936 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-20 13:09:36 +00:00
Pavel Sanda
fe5a20a489 Template type can be changed in dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27933 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-20 10:08:15 +00:00
Pavel Sanda
aee1c6c785 Affect only scale box. Thanks Juergen.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27932 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-20 10:06:31 +00:00
Pavel Sanda
05879ba39f Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5628 .
Instant preview of external material uses scaling from latex settings.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27928 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-20 01:30:57 +00:00
Jürgen Spitzmüller
96b062a520 * LaTeXUI.ui:
* UserGuide:
	- Postscript driver -> graphics driver.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27920 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-19 09:57:27 +00:00
Jürgen Spitzmüller
6edb56cf03 * GuiToolbar.cpp (set):
- honour obsoleted styles (part of bug 2607).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27772 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-05 14:02:03 +00:00
Jürgen Spitzmüller
287de0508d * GuiSpellchecker:
- prevent invalid pointer access (spellchecker crash reported by Abdel).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27770 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-05 10:20:26 +00:00
Jürgen Spitzmüller
1e08043e67 Add button to rescan the list of bib/bst files from within the dialogs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27761 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-02 08:46:59 +00:00
Vincent van Ravesteijn
10b88864a8 Add *.lyx16 filter to File->Open..
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27754 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-30 19:14:34 +00:00
Vincent van Ravesteijn
9c9cdd3912 Fix bug 5507: Full screen hangs LyX when no file is opened
http://bugzilla.lyx.org/show_bug.cgi?id=5507

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27744 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-29 17:29:13 +00:00
Vincent van Ravesteijn
c8685184f4 Oops.. compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27728 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-28 23:01:20 +00:00
Vincent van Ravesteijn
85f73a4271 Fix bug 5074: Crash while switching to Word
http://bugzilla.lyx.org/show_bug.cgi?id=5074

In GuiApplication.cpp the function cfFromMime returns an invalid FORMATETC struct with uninitialized members when the mimeType is not emf or wmf. 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27727 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-28 22:48:50 +00:00
Jürgen Spitzmüller
c2bdcc6b63 * Lexer.{cpp,h}:
- implement quoteString for docstring
* Menus.cpp:
	- use it for quoting flex argument.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27703 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-25 14:44:17 +00:00
Vincent van Ravesteijn
cf247233c9 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5567: Enable up button in command buffer widget.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27701 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-25 13:20:54 +00:00
Richard Heck
bf8c0ff40d Wrap flex-insert's argument in quotes, as it could contain spaces. (Do we need to go further, in case it contains quotes? Or do you get what you deserve if you try that?)
Jurgen, OK for branch?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27698 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-24 22:10:38 +00:00
Vincent van Ravesteijn
d6f4fb4944 Some fixes for the buttons of the Document and Preferences dialog:
http://bugzilla.lyx.org/show_bug.cgi?id=5295
- set the bc status to INITIAL when the dialog is initialized, and
- enable the restore button in the Document dialog.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27683 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-23 14:12:39 +00:00
Jürgen Spitzmüller
b394f9998f * GuiErrorList.cpp (showEvent):
- add missing dialog update to fix a problem reported on the users list
	  and here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=506183
	  (missing package error not shown).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27679 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-23 10:55:41 +00:00
Abdelrazak Younes
9062958419 FindAndReplace: more simplification and add a WorkArea for replace (not used yet).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27671 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-22 18:18:51 +00:00
Abdelrazak Younes
6f305f211d FindAndReplace: more simplification.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27669 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-22 17:54:59 +00:00
Abdelrazak Younes
b718b83074 FindAndReplace: more simplification and correct focus handling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27668 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-22 17:35:17 +00:00
Abdelrazak Younes
227dd33f2f Doh!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27667 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-22 17:06:26 +00:00
Abdelrazak Younes
09738dbba4 Transfer more things from FindAndReplace to EmbeddedWorkArea.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27664 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-22 15:21:45 +00:00
Abdelrazak Younes
5b02eaa5e8 Create a new EmbeddedWorkArea for dialog embedding purpose and use that in FindAndReplace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27663 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-22 14:45:47 +00:00
Richard Heck
69e95a3ed9 The comment preceding getValueForField() reflected an earlier implmentation.
There is now no reason not to use operator[] here, which is more natural.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27635 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-19 04:16:12 +00:00
Vincent van Ravesteijn
550f1d9ce8 Do not paint an invisible cursor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27631 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-18 23:57:26 +00:00
Pavel Sanda
45624a5864 Since meeting we have new codename :)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27617 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-18 01:38:18 +00:00
Pavel Sanda
96578ef324 Support gcc 4.4. Patch from Martin Michlmayr.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg146271.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27609 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-17 12:49:47 +00:00
Pavel Sanda
174a4fb8f6 #4430 still not fixed. try better one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27606 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-17 12:30:28 +00:00
Vincent van Ravesteijn
4c1c676e35 Fix some small Tabular UI glitches
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27604 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-17 11:58:14 +00:00
André Pönitz
6192345f60 add Buffer * member to DocIterator
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27603 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-17 11:46:07 +00:00
Jürgen Spitzmüller
90a4256e03 * GuiThesaurus.cpp:
- entry parsing should work for all cases now.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27602 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-17 07:15:44 +00:00
Stefan Schimanski
e66cbe70b6 * fix tab order
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27591 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 21:45:47 +00:00
André Pönitz
af05d3ffa3 remove unneeded "default language" option
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27576 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 19:22:06 +00:00
Jürgen Spitzmüller
df4814e026 Add support for MyThes (i.e., OpenOffice thesauri).
RegExp experts please have a look at the FIXMEs in GuiThesaurus.cpp.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27572 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 18:48:25 +00:00
Stefan Schimanski
ac14102b79 * complete-accept directly completes if the completion is unique
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27564 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 17:02:40 +00:00
André Pönitz
f8f5a7b28d move updateLables to buffer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27562 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 16:43:49 +00:00
Stefan Schimanski
f54ef5c173 * open popup on complete-accept if there is a completion available
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27561 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 16:34:16 +00:00
André Pönitz
ad4f5eec6c even less framing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27556 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 15:32:11 +00:00
André Pönitz
be16d48d5d remove mourning border from workarea
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27551 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 14:36:55 +00:00
André Pönitz
9a9528e86f cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27543 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 13:48:30 +00:00
André Pönitz
8e366b1cab remove spellchecker command and flag telling us whether to use a process or a
library.

Somebody schould create a rc2rc script...



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27531 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 12:22:54 +00:00
Jean-Marc Lasgouttes
9b9b14506d revert r27520 (tr1 stuff)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27528 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 11:51:42 +00:00
Abdelrazak Younes
deef2728c7 The rest of Tommaso patch with some cleanups. Not very clean still but at least it compiles!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27525 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 01:20:34 +00:00
Abdelrazak Younes
3091b7f284 Tommaso patch part 6, FindAndReplace not compiled yet.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27522 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 00:15:51 +00:00
André Pönitz
a287184d72 try using std::tr1::shared_ptr instead of boost::shared_ptr
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27520 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 00:01:41 +00:00
Abdelrazak Younes
f2202da44b compil fix, sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27512 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 23:18:42 +00:00
Abdelrazak Younes
e55abfd359 gcc warning...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27509 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 23:04:43 +00:00
Abdelrazak Younes
0933ba6880 cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27508 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 22:58:19 +00:00
Abdelrazak Younes
0685dfef74 Some cosmetic changes so that GuiWorkArea can be embeddable in a Qt designer dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27499 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 22:34:52 +00:00
André Pönitz
97707102da fix #4430 . initial size of the "view source" window can shrunk now.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27493 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 21:55:17 +00:00
Abdelrazak Younes
57d4b76493 gcc warning fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27492 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 21:21:04 +00:00
André Pönitz
e581e4868f make it acceptable for 4.2wq
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27483 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 19:44:27 +00:00
André Pönitz
8f081b1e74 remove ISpell and PSpell support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27477 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 19:06:17 +00:00
André Pönitz
8e2f971ada remove ispell and pspell
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27472 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 18:47:25 +00:00
André Pönitz
bb12808b20 remove libtool
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27468 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 17:45:55 +00:00
Pavel Sanda
25079068ea Fix fullscreen & settings dialog. Very annoying one.
http://bugzilla.lyx.org/show_bug.cgi?id=5274


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27460 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 16:33:02 +00:00
Stefan Schimanski
f9f5c3baa5 * proper mechanism to dispatch FuncRequests delayed, i.e. when the event loop is idle again
* fixes http://bugzilla.lyx.org/show_bug.cgi?id=5447

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27459 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 16:29:58 +00:00
Abdelrazak Younes
6b6d80212b remove unneeded header.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27441 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 12:55:40 +00:00
André Pönitz
f1cba8ff64 more latin1..utf8 schanges. all of src/* should be utf8 now
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27425 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-14 15:58:50 +00:00
André Pönitz
baa22609da latin1->utf8
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27424 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-14 15:29:47 +00:00
André Pönitz
1fc477efac thrid attempt at changing the naming pattern of the intermediated 'mocced' files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27420 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-14 14:28:50 +00:00
Abdelrazak Younes
7e6af45b0d Fix http://bugzilla.lyx.org/show_bug.cgi?id=5491 without reintroducing http://bugzilla.lyx.org/show_bug.cgi?id=5409 . The first part of r27162 was enough for fixing it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27383 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-11 14:28:44 +00:00
Enrico Forestieri
3fe8463ddf Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5467
(too much C++, I presume :)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27352 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-08 23:44:43 +00:00
Jürgen Spitzmüller
b65ef30b34 * GuiDocument.cpp (formatStrVec):
- module names can have non-ASCII chars.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27274 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-05 18:37:47 +00:00
Stefan Schimanski
5d9b126c96 * Fix for http://bugzilla.lyx.org/show_bug.cgi?id=5387
Gui is not setup yet when the file is opened from clicking on it in Finder
  with a closed LyX. We have to wait until the batch commands are executed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27264 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-05 14:04:37 +00:00
Jürgen Spitzmüller
05a3f9b3f9 * GuiDocument.cpp:
* add some unicode FIXMEs

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27249 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-04 15:44:02 +00:00
Jürgen Spitzmüller
006f5683e0 * GuiDocument.cpp:
* module names and descriptions might contain non-ASCII chars, so
	  we must use translateIfPossible instead of the native _().
	  Alas, some manual conversion is necessary.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27248 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-04 15:38:37 +00:00
Jürgen Spitzmüller
9d2f8a4c34 * GuiCitation.cpp:
- set initial focus (bug 5448).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27245 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-04 07:27:02 +00:00
Jean-Marc Lasgouttes
7f61a18d2b Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5421
* GuiKeySymbol.cpp (print): when asked for Portable representation of
	KeySequences, qt outputs Ctrl+x instead of Command-x. Therefore, we 
	we do it by hand.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27233 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-03 09:55:50 +00:00
Jean-Marc Lasgouttes
e4dea6c076 oops! r27229 was wrong
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27230 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-03 09:03:01 +00:00
Jean-Marc Lasgouttes
24ac7258c5 revert r27209
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27229 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-03 08:59:03 +00:00
Stefan Schimanski
97740523fe * Fix for http://bugzilla.lyx.org/show_bug.cgi?id=5396
On Mac clicking on a LyX file in Finder might open another GuiView which is
  asked to open the file. The reload logic though closes this and the dispatcher
  will run into a current_view_ which is null (until the other GuiView gets the
  focus again).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27228 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-03 08:25:59 +00:00
Stefan Schimanski
4040382f46 * fix for r27091: draw the newly created pixmap. The reordering of the code has removed this case. So much about trivial program transformation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27227 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-03 07:40:18 +00:00
Edwin Leuven
864fd8d7de fix broken layout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27219 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-31 18:21:46 +00:00
Jean-Marc Lasgouttes
53fdda3e7a fix crash when filtering layout combox with non-ascii character
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27207 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-31 09:26:59 +00:00
Pavel Sanda
de7c7ea360 Fix http://bugzilla.lyx.org/show_bug.cgi?id=5430 .
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg145723.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27197 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-30 13:47:41 +00:00
Richard Heck
76c074f19a Fix for 5429 from Vincent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27196 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-30 11:49:18 +00:00
Richard Heck
4fb3e609d0 A little const'ness.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27167 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-28 16:02:33 +00:00
Richard Heck
f7acec3bdc From Vincent:
> Hi all, 
> > 
> > A. 
> > 1. create a new document (doc1),
> > 2. insert a label,
> > 3. insert a cross-ref
> > 4. create a new document (doc2)
> > 5. insert a cross-ref (in doc2)
> > then the labels in the cross-ref dialog are those from doc1.
> > 

This is solved by the attached patch.

We should not restore the last used buffer if the active buffer has
changed. Especially not when you cannot choose the buffer which is now
still the case.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27165 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-28 15:38:28 +00:00
Abdelrazak Younes
0b0f0942c0 Fix http://bugzilla.lyx.org/show_bug.cgi?id=5409
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27162 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-28 06:46:27 +00:00
Pavel Sanda
194f14bf65 Fix the worst part of http://bugzilla.lyx.org/show_bug.cgi?id=5409 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27153 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-27 14:54:53 +00:00
Stefan Schimanski
09399b45f7 * Trivial fix to set the icon size to normal, not 32 as Qt sets it by default on Mac (fixes #5388)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27146 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-27 09:06:50 +00:00
Jürgen Spitzmüller
57e1ab3e63 * GuiDocument.cpp (less_textclass_avail_desc):
- fix bug 5410 (use translateIfPossible() instead of _() for strings that come from
	  layout files).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27133 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-26 09:48:11 +00:00
Richard Heck
70d5f953c9 Fix for another part of 5403, and related bugs, anyway. The InsetLayout
tags should not be so case-dependent, and we ought to use an Enum instead.
of relying upon string comparisons.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27104 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-25 13:32:54 +00:00
Stefan Schimanski
d51c31ca85 * complete fix for #5327: switch back to normal drawing code if the cache
pixmap would have non-positive width or height.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27091 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-24 22:49:17 +00:00
Stefan Schimanski
0334876ca6 * temporary fix for the crash of the pixmap cache on Mac with Qt 4.4.
A better patch will follow soon, but this should go in for rc4.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27065 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-23 20:47:11 +00:00
Stefan Schimanski
e8d264e998 * don't rely on the restartCursor call to update the dialog on fullscreen switch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27064 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-23 20:46:53 +00:00
Stefan Schimanski
df79293cc1 * fix fullscreen TOC switching between dock and drawer mode on Mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27063 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-23 20:46:03 +00:00
Richard Heck
9dfac74265 This patch introduces ProvidesModule and ExcludesModule layout tags.
See http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg145129.html.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27041 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-23 00:27:03 +00:00
Stefan Schimanski
90ea041ada * create global Mac menu just before filling it (fixes #5217)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27023 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-22 18:14:30 +00:00
Stefan Schimanski
eb80fcdf69 * fix crashing special menu items on Mac after preferences have been changed.
* fix duplicated special menu items in Mac (fixed bug #5168)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27022 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-22 18:02:09 +00:00
Edwin Leuven
29f052bc3d make error dialog more comprehensible:
1. selects the 1st error so that the error message shows
2. adds labels to the listwidgets in the dialog
3. adds a tooltip to the error listwidget

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27007 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-21 09:07:15 +00:00
Richard Heck
72721655c5 Remove some indirection leftover from Andre's removal of controllers and such.
When we had GuiDocument and GuiDocumentDialog, there was a separation that required
this kind of thing, but now apply() is only ever called from applyView(), which is
private and only ever calls it with our local params.

This simplifies the forthcoming ProvidesModule, etc, patch a bit.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27000 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-20 21:00:33 +00:00
Richard Heck
afcc0e0490 Code duplication is bad.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26998 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-20 20:38:40 +00:00
Richard Heck
129df0bcd4 Make Abdel happy: Change case of local variables.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26997 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-20 20:31:33 +00:00
Richard Heck
ae339e3ca8 Remove now duplicated code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26996 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-20 19:53:15 +00:00
Richard Heck
67dfff2d37 Update GuiDocument when there are changes to loaded modules.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26994 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-20 19:31:05 +00:00
Pavel Sanda
c509d3d8fc Please Edwin.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26991 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-20 15:55:20 +00:00
Pavel Sanda
1040064133 Put scrollbar back.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26981 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 14:58:33 +00:00
Pavel Sanda
e32aade059 Next round for modules tab
- remove ill vertical spacer in the bottom
- fix max size of description field
- fix min size of the available modules list
- disable the ugly hozizontal scrollbar



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26980 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 14:39:11 +00:00
Jürgen Spitzmüller
54c32f8501 ModulesUI.ui:
-remove unnecessary GoupBox.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26965 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 11:10:35 +00:00
Abdelrazak Younes
6a8219c190 Paragraph:
- constify some parameters
- getFontSettings():
- getFirstFontSettings(): return a const ref instead of a copy. This brings a consistent 4% improvement in LateX generation. Might speedup rtl handling too.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26957 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 07:03:44 +00:00
Pavel Sanda
d579893c5b Towards horizontal size of document pref dialog -
class names make its combo very wide, so reorganize a little bit.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26956 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 01:43:24 +00:00
Pavel Sanda
4861019ae4 Add the missing file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26954 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 01:23:38 +00:00
Pavel Sanda
9d82588e3e Create new Module panel in document settings and decrease vertical
size of the dialog.

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


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26953 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 01:21:59 +00:00
Pavel Sanda
f62116f224 Fix uic erros, these files are no longer part of lyx.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26952 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 00:59:16 +00:00
Abdelrazak Younes
8a916f28a9 Fix part of http://bugzilla.lyx.org/show_bug.cgi?id=5347
Use crc checking in order to decide if the widget needs to be updated or not. This speed up a lot the cursor moving use case.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26946 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-18 14:14:58 +00:00
Jürgen Spitzmüller
575a8dd0cc compile fix 2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26944 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-18 13:51:48 +00:00
Abdelrazak Younes
757f975337 First part of http://bugzilla.lyx.org/show_bug.cgi?id=5347
Disable full source viewing when the dialog is restored.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26941 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-18 13:27:59 +00:00
Abdelrazak Younes
bcbf7c6452 Code shuffling in order to fix http://bugzilla.lyx.org/show_bug.cgi?id=5347
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26940 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-18 13:20:17 +00:00
Richard Heck
5e505119fa OK, I lied. A little more. Just trying to keep the cleanup separate from
the real stuff.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26925 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-16 17:29:01 +00:00
Richard Heck
a940cc3f6b The last bit of cleanup: Make checking for exclusions a bit easier.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26924 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-16 17:21:13 +00:00
Richard Heck
28047741c2 Fix a bug involving module conflicts. We need to check not only that we
do not exclude some used module, but also that no used module excludes us.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26920 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-16 15:04:48 +00:00
Richard Heck
3e41704579 More cleanup prior to real patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26919 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-16 13:41:25 +00:00
Enrico Forestieri
1ad4fd55ea Remove traces of Q_CYGWIN_WIN
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26916 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-15 23:00:42 +00:00
Enrico Forestieri
ed861b720a Simplify
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26914 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-15 22:03:13 +00:00
Abdelrazak Younes
b23058c578 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5319
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26913 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-15 08:42:43 +00:00
Richard Heck
d4136cb652 Correct the order of the tests here. Messed this up in previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26906 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-14 18:06:08 +00:00
Richard Heck
6a5a7d7e20 The last little bit of comment, etc, cleanup here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26905 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-14 17:35:49 +00:00
Richard Heck
b73d5450b7 More cleanup for forthcoming patch. Also fix a copy-paste error.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26904 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-14 17:14:25 +00:00
Richard Heck
9c95358b85 Check for changes to modules before switching text classes. See the removed
FIXME for more.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26903 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-14 17:03:57 +00:00
Richard Heck
c83ae83ebf Remove unnecessary argument to paramsToDialog(). This is again
cleanup prior to a forthcoming patch.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26902 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-14 16:59:28 +00:00
Richard Heck
a707ac75ac Change some vectors to lists. This is preparatory for a real patch later.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26899 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-14 14:04:21 +00:00
Richard Heck
a34c0a8742 Just whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26895 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-14 12:49:05 +00:00
Abdelrazak Younes
22204cda0b Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5355
The mixing of internal and 'normal' buffers turned out to be problematic. This commit just dissociates the two types.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26884 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-13 20:40:58 +00:00
Pavel Sanda
308e2d9df3 Sanitize backreferences in hyperref.
http://bugzilla.lyx.org/show_bug.cgi?id=5340
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg144958.html



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26882 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-13 16:01:02 +00:00
Pavel Sanda
792ece8130 Fix whitespaces so the diff between branches is not so huge.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26881 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-13 11:25:37 +00:00
Richard Heck
de01bc54ff All comments and formatting.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26876 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 22:21:56 +00:00
Richard Heck
50e5a3b796 Remove old and out of date comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26875 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 22:07:47 +00:00
Richard Heck
9c2fa02d4a Add a comment, per Pavel's suggestion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26874 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 22:02:31 +00:00
Richard Heck
a9226314d1 Don't access this directly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26867 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 15:34:08 +00:00
Richard Heck
4ececaf03d Update the modules after we make the document class. This will ensure
that we get any new default modules on board.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26866 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 15:29:54 +00:00
Jürgen Spitzmüller
d45ca67d1d ** fix bug 2114. Fileformat change.
** fix bug 5343 (patch from Richard, prerequisite for the other fix)

* Buffer.cpp:
	- increment format to 343
* src/BufferParams.{cpp,h}:
	- new param \use_default_options that allows to select/deselect
	  the "Other" class options defined in the layout file.
* src/frontends/qt4/GuiDocument.cpp:
* src/frontends/qt4/ui/LaTeXUi.ui:
	- add GUI to set \use_default_options, display predefined options in the dialog
	- update dialog correctly on class change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26860 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 09:36:00 +00:00
Abdelrazak Younes
81a1ae187e MenuDefinition::expandFlexInsert(): simplify a tiny bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26856 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 06:52:26 +00:00
Richard Heck
b03a5823be We don't always want that, just with custom insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26855 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 04:12:37 +00:00
Richard Heck
02e4744ce3 Fix bug 5346.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26854 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 04:04:55 +00:00
Richard Heck
50ef03a245 Revert.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26853 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 03:43:15 +00:00
Richard Heck
3373ec397b Typos.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26852 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 03:40:30 +00:00
Jean-Marc Lasgouttes
15b49036ed X dependency cleanup (2/3)
(inernal|external)LineEnding are only used by the clipboard code. Therefore
move them to the Qt helpers, where the current environment is known.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26824 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-09 07:21:48 +00:00
Jean-Marc Lasgouttes
2759268092 X dependency cleanup (1/3)
Move the special handling of -geometry command option from LyX to GuiApplication, 
where it belongs


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26823 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-09 07:19:34 +00:00
Richard Heck
2078e09e67 The default modules should be kept in order.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26801 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-07 15:53:05 +00:00
Peter Kümmel
9229214eea fix bug 5332: preferences opens wrong folder for keyboard maps when there is no valid map
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26748 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-05 14:11:04 +00:00
Jürgen Spitzmüller
e2fc0d4385 Box fixes from Vincent and me.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26711 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-04 09:24:40 +00:00
Jürgen Spitzmüller
87018001e1 * ListingsUi.ui: polish.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26698 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 16:22:55 +00:00
Abdelrazak Younes
f5b6ca1909 Don't show the dock widget at construction time. This should fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5273
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26697 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 13:45:56 +00:00
Abdelrazak Younes
4873fb9d6c We don't want to restore geometry session for dock widgets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26696 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 13:34:10 +00:00
Abdelrazak Younes
e29edccc3f GuiView::findOrBuild(): hide the dialog if requested and the dialog already exists.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26695 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 13:17:22 +00:00
Abdelrazak Younes
ac55ec0f56 It seems that somebody added the code to show the dockwidget at layout restoration time. This is wrong so I reverted this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26694 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 13:12:58 +00:00
Enrico Forestieri
4ec9b07596 Don't trust designer and manually fix TocUi.ui for Qt 4.2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26692 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 11:51:49 +00:00
Enrico Forestieri
9df450b058 Revert r26686
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26691 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 11:25:38 +00:00
Abdelrazak Younes
4ea899a7af Make sure that the focus is correctly set before closing a window.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26690 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 07:54:32 +00:00
Abdelrazak Younes
d8a6c1fc1e potential bug fix, reported by Richard:
Open LyX. Open a new window. Open a new window. Close the first. Close the second.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26689 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 07:38:51 +00:00
Enrico Forestieri
c68a342d72 Fix TocUi.ui for Qt 4.2.3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26686 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-02 18:08:46 +00:00
Pavel Sanda
0c46365302 Port Enrico's patch for the current version of Toc.ui
so that vsize is stretched even for Qt 4.2.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26685 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-02 15:09:00 +00:00
Pavel Sanda
2ca370b135 Add persistent view switch to the outliner.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg144343.html



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26684 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-02 15:00:43 +00:00
Uwe Stöhr
7382c55fd7 add support for TABs in Listings, fileformat change, fixes http://bugzilla.lyx.org/show_bug.cgi?id=3629 , patch by Vincent, lyx2lyx and UI stuff by me
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26647 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 18:00:02 +00:00
Abdelrazak Younes
5ce39aa8b5 Add a "List of Changes" in the Navigator. The list is updated only when the document structure is reset or when the update button is clicked. Some work is needed to track more finely individual changes as we do for sections.
Changes::addToToc(): New method to insert changes sorted by authors. The symbols 0x2702 and 0x270d are used to represent deletion and insertion.

TocBackend::item(): new method to lookup for a given item.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26639 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 11:06:34 +00:00
Abdelrazak Younes
9388404c88 TocWidget::updateView(): only set the tree depth if there's a model reset. This is to avoid node collapsing when simply editing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26637 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 09:59:33 +00:00
Abdelrazak Younes
7bd33462a0 Avoid a complete Toc reset in case when only a toc item update is needed.
* Buffer: new updateTocItem() signal (with Delegates and GuiView associates).
* TocBackend: take care of the signal emission instead of the Cursor::checkBufferStructure()
* TocModel: new updateTocItem() method.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26636 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 09:50:54 +00:00
Abdelrazak Younes
6bd9b43ce5 cosmetics and doxygen.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26634 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 07:38:34 +00:00
Abdelrazak Younes
5cfe7daadb TocWidget: disable the tree view during an update in order to minimize a bit the flashing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26633 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 07:18:24 +00:00
Jürgen Spitzmüller
3ddfec9ae0 * GuiInclude.cpp:
- prevent assertion (listings parameters can have non-ascii chars)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26632 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 06:51:08 +00:00
André Pönitz
0985bab38e cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26629 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 21:53:24 +00:00
Uwe Stöhr
ce09194e43 GuiDocument.cpp, BufferParams.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5294
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26628 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 19:33:37 +00:00
Abdelrazak Younes
6f798773a5 Dialogs: discourage non const access to lyxview().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26622 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 11:01:53 +00:00
Jean-Marc Lasgouttes
a2ffb1915a remove mutable property
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26621 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 10:56:45 +00:00
Abdelrazak Younes
53acfb8351 Dialogs: discourage non const access to buffer() and bufferview().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26620 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 10:52:17 +00:00
Abdelrazak Younes
aedba73655 constify
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26618 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 10:29:35 +00:00
Abdelrazak Younes
14875e5e31 Properly fix http://bugzilla.lyx.org/show_bug.cgi?id=5285 by using lfun machinery in all cases.
Also fixes dialog view in case of multipar selection.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26617 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 10:18:37 +00:00
Jean-Marc Lasgouttes
0442417d22 constify
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26614 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 09:33:36 +00:00
Abdelrazak Younes
3a0ee2070c Add fall back code to assertion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26609 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 08:42:18 +00:00
Abdelrazak Younes
4b8f0d359c Add a new 'Sort' box to the Navigator so that each list can be optionally sorted.
* TocModel: redesign so that sorted list are available.
* TocWidget/TocUi: handle the new Sort check box.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26602 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-28 17:14:29 +00:00
Pavel Sanda
f88e202e39 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5285 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26583 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-26 21:34:08 +00:00
Jean-Marc Lasgouttes
f3a1cdabe9 for some reason, itemSelectionChanged does not trigger in a reliable way and the error descriptions are bogus
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26545 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-25 16:16:25 +00:00
Jean-Marc Lasgouttes
6cd921678b move code to unify graphics groups from GuiGraphics to InsetGraphics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26540 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-25 13:24:52 +00:00
Jean-Marc Lasgouttes
1db80d4df6 make sure that INSET_APPLY dispatching is inside an undo group
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26539 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-25 13:20:53 +00:00
Richard Heck
b8cf8cbab2 This patch prevents the shortcut dialog from silently over-writing existing bindings. (Indeed, both bindings will show up, prior to this patch, though only one will work.) A better solution would be to ask the user for permission to over-write, and then to take appropriate action. But this will do for now.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26517 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-24 14:56:43 +00:00
Jean-Marc Lasgouttes
efb2fb3e53 create a proper undo group before unifying graphics group (crystal clear, isn t it?)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26508 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-23 21:57:23 +00:00
Richard Heck
6c5efdf25d Read site.bind as well as the user's bind file.
Why is site.bind given special treatment?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26505 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-23 17:04:25 +00:00
Richard Heck
ad0ecf86a7 Move the ItemType enum out of GuiPref and into KeyMap, where it belongs.
This is preparation for multi-LFUN bindings.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26503 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-23 13:53:38 +00:00
Jean-Marc Lasgouttes
76b64cded1 compilation fix from abdel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26496 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-22 11:00:17 +00:00
Abdelrazak Younes
38ecdfd5b7 Pref ui module: add a 'clear session'.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26491 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-22 07:14:30 +00:00
Abdelrazak Younes
475a48b78d GuiView::saveLayout(): Use QSettings::beginGroup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26490 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-22 06:50:35 +00:00
Abdelrazak Younes
305079fb23 X11 compil fix, sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26489 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-22 06:48:08 +00:00
Abdelrazak Younes
ed1122f86b Use QSettings::beginGroup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26487 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-21 22:34:19 +00:00
Abdelrazak Younes
fa36309412 compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26486 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-21 22:11:59 +00:00
Abdelrazak Younes
d6936b4c5d remove debug code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26485 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-21 21:47:47 +00:00
Abdelrazak Younes
8e4d2d66ce Reset the geometry and ui settings whenever a change in the ui files is selected. This commit will destroy any current geometry session. The "view-id/" nodes are converted into "view/id/" nodes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26484 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-21 21:28:37 +00:00
André Pönitz
e5ae1a4b75 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26481 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-21 19:27:20 +00:00
Richard Heck
5ee839c3c8 Fix the tab stops in the paragraph dialog, and improve
the fix last committed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26480 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-21 15:25:04 +00:00
Richard Heck
4197460862 Fix autodefault setting.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26479 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-21 14:49:27 +00:00
André Pönitz
7d3841aae6 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26473 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-21 09:11:21 +00:00
André Pönitz
082b4dbb3f save a few cycles.
[in QObejct::connect() the passed signatures get 'normalized', and 
'Foo const &' is turned into 'Foo' anyway]


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26471 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-21 01:35:43 +00:00
André Pönitz
47821c7a2c fix slip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26468 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-20 13:55:37 +00:00
André Pönitz
fc86915b0c cosmetics. remoe strange dependency of GuiDocument.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26467 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-20 13:44:51 +00:00
André Pönitz
0f6b4e902f save a few cycles
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26466 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-20 12:57:12 +00:00
André Pönitz
e7812d3e26 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26465 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-20 12:17:15 +00:00
André Pönitz
739f890e74 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26464 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-20 12:07:18 +00:00
André Pönitz
ae62ef20f8 cosmetics;
also use QT_NO_CAST_TO_ASCII and QT_NO_STL for better checks on type
conversions


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26463 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-20 11:47:38 +00:00
Abdelrazak Younes
7b8908881c * GuiImage::scale(): simplify.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26459 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-19 14:36:45 +00:00
Abdelrazak Younes
d25c74c0eb Simplify image creation with a new factory function: newImage().
GraphicsImage: now a pure virtual interface.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26457 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-19 12:01:01 +00:00
Abdelrazak Younes
482468dda6 GuiImage: detaching the QImage does not have any good side effect apparently. It just results in some jumps of memory because the QImage data is referenced somewhere else (I don't know where as only the transformed image should be on screen).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26456 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-19 11:42:53 +00:00
Abdelrazak Younes
31c1982677 * GuiImage:
- switch to QImage backend instead of QPixmap. In any case this was done internally by Qt for any image loading or transformation. This should relieve the X11 server a bit for big images.
- try to clear out the memory after a transformation by calling QImage::detach(). Unfortunately there seems to be a bug somewhere in Qt... see (http://bugzilla.lyx.org/show_bug.cgi?id=5002).

* GraphicsImage: get rid of scaledDimension()


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26455 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-19 11:27:24 +00:00
Jürgen Spitzmüller
703756f99c * attempt to fix bug 5189.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26453 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-19 10:04:06 +00:00
Jürgen Spitzmüller
7abd4dac66 * Validator.cpp:
- get rid of unnecessary conversion.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26451 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-19 09:40:14 +00:00
Jean-Marc Lasgouttes
d585528d50 fix properly http://bugzilla.lyx.org/show_bug.cgi?id=2040
* BufferView.cpp (setCursorFromInset): new method, useful to find
	an inset that is known to be in the document.

	* frontends/qt4/GuiView.cpp (dispatch): do a proper recordUndo
	befire appplying changes to an inset. The insets are responsible
	for recording additional undo steps that could be needed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26428 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-17 14:51:27 +00:00
Jean-Marc Lasgouttes
cf7fdf78bb fix a bunch of harmless warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26425 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-16 11:33:07 +00:00
Jürgen Spitzmüller
151da16a74 * TabularUi.ui
- descibe valign even more accurately.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26401 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-14 15:30:37 +00:00
Abdelrazak Younes
f83a38b3de Paragraph::inInset() shall not be used if the owner inset was not initialized. Make this rule clear and unavoidable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26385 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-13 17:01:54 +00:00
Abdelrazak Younes
3f55a73a05 Erase unimplemented methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26384 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-13 15:41:33 +00:00
Jürgen Spitzmüller
53ff578195 * TabularUi.ui
- a hopefully somewhat clearer description of what valign is supposed to do.:

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26382 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-13 14:10:03 +00:00
Pavel Sanda
1d25a38fc1 Cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26362 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 02:21:14 +00:00
Pavel Sanda
0cd57df397 Revert unwanted part
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26361 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 02:11:07 +00:00
Pavel Sanda
9ebf6bf506 Depth slider in Outliner is not automatically set at init and after closing last file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26360 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 02:04:42 +00:00
Pavel Sanda
a6df920f6b Try to fix the rest of bug http://bugzilla.lyx.org/show_bug.cgi?id=5082 .
(Initialize dialogs after lyx launch).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26359 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 02:02:56 +00:00
Richard Heck
bb11f79ca0 I need some sleep.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26358 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-11 21:35:26 +00:00
Richard Heck
7380e914d4 Fix bug: TOC depth slider wasn't reset when switching to empty documents.
This doubly fixes the previous bug, too.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26357 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-11 21:15:45 +00:00
Richard Heck
e2b8ea875d Fix bug reported by Helge. Vincent found the problem, really, which was a
pair of uninitialized variables. The reason the crash doesn't happen when 
you open the User Guide is that they get set in TocModel::populate() before 
the slider's maximum value is fixed. It was setting that value to some huge
number that caused the problem.

I've added an assertion to make sure we don't run into this kind of problem
again. Probably not necessary, but it can't hurt.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26356 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-11 21:02:18 +00:00
Abdelrazak Younes
c1fdb12118 n-th bug fixing patch from Vincent:
Almost all methods in the GuiPainter class have something like
 
if (!isDrawingEnabled())
  return;
 
except GuiPainter::fillRectangle(...) !!
 
Adding this will solve
 
gmane.editors.lyx.devel/109857
gmane.editors.lyx.devel/109859
http://bugzilla.lyx.org/show_bug.cgi?id=4937
http://bugzilla.lyx.org/show_bug.cgi?id=5027
http://bugzilla.lyx.org/show_bug.cgi?id=5235
 
Maybe also:
http://bugzilla.lyx.org/show_bug.cgi?id=5230


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26351 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 21:01:18 +00:00
Jürgen Spitzmüller
a4610848dc * GuiSearch.cpp:
- Texts that are entered in the search and replace fields of the
	   GuiSearch dialog are added to the bottom of the ComboBox. With this
	   patch they are added to the top as it probably most intuitive.
	   (patch from Vincent)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26346 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 13:20:44 +00:00
Jürgen Spitzmüller
8c097556d5 * GuiRef.cpp:
- The GuiRef dialog does not respond to keyboard events if the
	  reference list is empty. This is because the reference list has the
	  focus proxy and is disabled when the list is empty. Therefore I removed
	  the focus proxy from the list if it is disabled.
	  (patch from Vincent)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26345 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 13:18:36 +00:00
Uwe Stöhr
eb963540d4 various listings fixes by Vincent, see http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg143302.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26341 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 21:51:38 +00:00
Pavel Sanda
e6a27a4724 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5234 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26338 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 15:46:23 +00:00
Pavel Sanda
c1173eb11c Coding style
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26335 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 01:18:33 +00:00
Pavel Sanda
4649511c2c Fix for accepting Tab key in shortcut dialog.
Patch from Bo.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26334 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 01:00:58 +00:00
Pavel Sanda
cc5d0478c6 Move code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26332 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 00:27:07 +00:00
Pavel Sanda
375a2e6e1c Add completion-accept lfun.
Fixes first part of http://bugzilla.lyx.org/show_bug.cgi?id=5062 .

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


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26331 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 00:24:47 +00:00
Stefan Schimanski
f6084eaaa9 * LFUNs complete and complete-cancel. No key interception anymore. For now you have to bind the two LFUNs yourself.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26330 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 00:13:55 +00:00
Jürgen Spitzmüller
6875fa60be cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26328 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-07 16:13:24 +00:00
Pavel Sanda
809ed31d54 Fixing inline completion, Vincent strikes back :)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26327 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-07 15:54:06 +00:00
Uwe Stöhr
9a57449f40 GuiWorkArea.cpp: allow to navigate in tables with the Tab key, patch by Vincent
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26320 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-06 21:10:59 +00:00
Abdelrazak Younes
009bd5b8ff GuiApplication::resetGui(): clear out Mac nenubar before deletion, just in case.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26307 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-05 12:42:47 +00:00
Abdelrazak Younes
0595b725f7 GuiApplication::resetGui(): Recreate Mac nenubar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26306 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-05 12:39:43 +00:00
Jürgen Spitzmüller
7950986c87 Some GuiSendto polishing by Vincent and me.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26295 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-04 09:36:44 +00:00
Edwin Leuven
ca2bf82ca9 correct size
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26293 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-03 18:47:12 +00:00
André Pönitz
78767f76fe cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26292 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-03 18:30:05 +00:00
Abdelrazak Younes
37e389baf7 Fix http://bugzilla.lyx.org/show_bug.cgi?id=5191
Patch from Vincent van Ravesteijn

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26291 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-03 12:59:36 +00:00
Jürgen Spitzmüller
2179c671cf better naming for encoding default, as discussed in bug 4971.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26281 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-01 08:39:19 +00:00
Abdelrazak Younes
cc8653b95e potentially fix http://bugzilla.lyx.org/show_bug.cgi?id=5168
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26266 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-30 09:25:55 +00:00
Pavel Sanda
8a478b5ab8 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5093 .
Patch by Vincent.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26249 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-29 00:31:04 +00:00
Pavel Sanda
8b62eb2c64 Silence warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26240 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-27 20:24:18 +00:00
Richard Heck
9c2a1a828a Quick fix for a problem noted by Stefan. The better fix is to migrate this
dialog, and all the others, to the new framework. GuiRef still inherits from
GuiDialog, rather than from DialogView.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26234 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-25 17:38:57 +00:00
Pavel Sanda
a60eee1daf VCS: add notification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26231 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-24 20:36:23 +00:00
André Pönitz
aaff139335 remove superflous lyx:: qualification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26230 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-24 20:29:20 +00:00
Jürgen Spitzmüller
641708ac4b * separate nomencl processing command from index processing command, since nomencl
relies on makeindex (with specific options) [bug 5184].

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26226 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-23 09:44:00 +00:00
Jean-Marc Lasgouttes
d0827e017e Fix crash when the Gui Name of a toolbar is not plain ascii. This
happens for example with fr.po. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26176 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-15 18:43:46 +00:00
Enrico Forestieri
2566c9496d Fix bug 5172: Toolbar names are not translated
http://bugzilla.lyx.org/show_bug.cgi?id=5172


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26171 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-15 10:56:53 +00:00
Richard Heck
419642ad9e Fix citation bug: In certain circumstances, attempts to insert a new citation
would instead change an old one. The problem was that we were hiding the dialog
with hide(), which does not trigger closeEvent(). So we have to implement
hideEvent().

http://marc.info/?l=lyx-devel&m=121278861019829&w=2



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26143 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 14:32:30 +00:00
Richard Heck
1c5003c4ef Make sure that in_show_ is reset to false, even if an exception is thrown
when we're trying to show a dialog.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26142 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 14:25:56 +00:00
Richard Heck
481c24c8eb Remove unintelligible comment. (This seems to have been copied over from Dialog.h.)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26126 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 22:18:21 +00:00
Richard Heck
ea6aed5b8b Remove invalid comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26125 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 21:56:07 +00:00
Richard Heck
8c6ba1dd6c Patch from Vincent. This resets the window title appropriately, after
the last BufferView has been closed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26115 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-11 12:57:02 +00:00
Richard Heck
67f5bf85da Another patch from Vincent. This one fixing the very annoying bug 5138.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26097 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-08 15:41:32 +00:00
Richard Heck
dc9146d250 Patch from Vincent van Ravesteijn.
I noticed that for instance the Hyperlink Dialog loses all information when clicking on the main buffer. The same occurs with the Include Child Document Dialog and probably also others.
Do you agree on this being less intuitive ? If so, I included a small patch that will fix this for the two dialogs mentioned. I just adapted them to the design of the GuiGraphics Dialog. 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26096 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-08 15:29:26 +00:00
Pavel Sanda
c611a1311e Disabling Fullscreen menu feature under X11, until bug
http://bugzilla.lyx.org/show_bug.cgi?id=4888 is fixed.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26059 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-05 13:03:31 +00:00
Richard Heck
5861442f6f Fix for preferences crash by Vincent van Ravesteijn.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26054 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-04 15:50:56 +00:00
Abdelrazak Younes
2856128d20 fix http://bugzilla.lyx.org/show_bug.cgi?id=5114
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26050 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-04 08:08:46 +00:00
Uwe Stöhr
1b03dfa0b5 GuiDocument.cpp: revert r26041
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26046 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-04 00:04:09 +00:00
Bo Peng
4fa66a8d0a Fix a bug where spaces can not be appended tonameLE in the info dialoag
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26043 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-03 22:26:01 +00:00
Uwe Stöhr
78bb4feba1 GuiDocument.cpp: fix two cases of bug 5112
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26041 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-03 21:31:25 +00:00
Richard Heck
cca78e3c8a Change the "empty layout" to the "plain layout", to try to avoid confusion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26025 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-01 20:57:27 +00:00
Abdelrazak Younes
3bbe1facb4 Fix crash with Menu->Edit->Paste recent
As an added bonus, the selection will be adapted to current Buffer (for quites, etc).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26001 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-30 09:09:23 +00:00
Pavel Sanda
d3e62cfe31 Better string.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25978 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 13:25:07 +00:00
Pavel Sanda
432c3b23ce VCS: add some message.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25973 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 11:55:27 +00:00
Pavel Sanda
5719b5be2a typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25968 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 10:43:34 +00:00
Pavel Sanda
23836a6292 then we dont need this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25967 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 10:37:40 +00:00
Abdelrazak Younes
168a26b763 fix critical part of http://bugzilla.lyx.org/show_bug.cgi?id=5082
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25966 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 10:33:02 +00:00
Abdelrazak Younes
4ba5452012 GuiSelection: make sure the initial check is done
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25965 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 10:25:35 +00:00
Abdelrazak Younes
ce9c690503 stupid me.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25964 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 10:21:25 +00:00
Abdelrazak Younes
52d4801f6a simplify.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25963 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 10:20:19 +00:00
Pavel Sanda
26b3fdcc48 not needed now
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25962 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 10:00:11 +00:00
Pavel Sanda
221812b6e0 Let empty() be const.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25961 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 09:53:34 +00:00
Abdelrazak Younes
64e1fc3bf4 BufferList::bufferNum() and getFileNames(): migrate to FileName/FileNameList
Inset.h : fix erroneous forward declaration.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25959 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 08:52:25 +00:00
Abdelrazak Younes
d56faa70c4 BufferList::getBuffer(): migrate to FileName.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25958 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 08:16:09 +00:00
Abdelrazak Younes
b868bf78d2 Fix debug message.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25953 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 07:06:57 +00:00
Abdelrazak Younes
d4113cf8d5 GuiApplication::setGuiLanguage(): ignore qt_trans_ loading failure as this is only for Mac special menus.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25952 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 06:44:49 +00:00
Pavel Sanda
3f21a3de56 upss
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25951 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 02:04:52 +00:00
Pavel Sanda
609878cf00 Towards bug http://bugzilla.lyx.org/show_bug.cgi?id=4830
(selection issues on more LyX instances)

This fixes for me the worst cases. Still some selection
problem appear from time to time and it will be tricky
to get this completely right since the performance 'hacks'
our code uses.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25950 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 01:51:20 +00:00
Pavel Sanda
716626c736 fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25949 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 00:36:07 +00:00
Pavel Sanda
5209aad8de change debugs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25948 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 00:34:15 +00:00
Abdelrazak Younes
8085efd83a Some locale related cleanup. JMarc, please when you come back, review this. It is working fine in all my testings though.
* GuiApplication: delay locale loading until setGuiLanguage() is called.

* Messages: memorize default locale for current environment.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25930 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-28 11:26:46 +00:00
Richard Heck
163d827729 Support for removing "default" modules.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25917 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-27 17:46:27 +00:00
Richard Heck
a28c584064 Move the default module loading from makeDocumentClass() to setBaseClass().
This makes the Document>Settings dialog behave better.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25882 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-25 16:48:48 +00:00
Jürgen Spitzmüller
f4e185a299 * GuiToolbar.cpp:
- do not add "ObsoletedBy" layouts to the combo (bug 5083).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25861 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-24 06:13:43 +00:00
Abdelrazak Younes
0f53077165 Fix http://bugzilla.lyx.org/show_bug.cgi?id=5073
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25853 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-23 14:47:39 +00:00
Abdelrazak Younes
c8a0b97d2e move LyXerr QString specialisation to support/qstring_helpers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25829 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-23 09:21:22 +00:00
Jürgen Spitzmüller
7606318a7f More work on the Shortcuts UI:
-  less stylish, but hopefully more visibly panel style
	   for the shortcut widget.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25790 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-22 09:49:38 +00:00
Jürgen Spitzmüller
6ae7cad09f More work on the Shortcuts UI:
-  modifying a shortcut removes the previous one
	   (if it's not a system shortcut)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25789 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-22 09:35:46 +00:00
Jürgen Spitzmüller
91baeb2c55 More work on the Shortcuts UI:
- add ability to remove a Key from the sequence
	- add ability to modify a sequence without retyping it from scratch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25783 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-22 08:29:50 +00:00
Jürgen Spitzmüller
aa176fd56c Hopefully less confusing shortcut settings UI (bug 5012).
* src/frontends/qt4/CustomizedWidgets{cpp,h}:
	- rename ShortcutLineEdit to ShortcutWidget and build it on
	   top of QLabel instead of QLineEdit
* src/frontends/qt4/GuiPrefs.{cpp,h}:
* src/frontends/qt4/ui/ShortcutUi.ui:
	- improve shortcut editing
	- rename shortcutLE to shortcutWG
	- add/improve tooltips

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25770 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-21 14:54:07 +00:00
Pavel Sanda
6094deee0f Revision control log is not visible after launching, moreover the title didn't
get updated when using Log window for a different functions (eg. LaTeX vs RC log).

I hope this is correct position of updateContents() and it was not intention not
to call update of LaTeX log automatically after displaying.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25742 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-20 22:48:48 +00:00
Pavel Sanda
7565a5934f Another debugs for selection engine.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25737 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-20 20:16:33 +00:00
Abdelrazak Younes
ba7e6e2b03 avoid that the internal Buffer used for cut&paste is visible in View menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25732 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-20 17:55:38 +00:00
Jürgen Spitzmüller
855c185881 * GuiErrorList.cpp:
- fix display of error description for preamble errors (bug 5007).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25728 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-20 17:05:58 +00:00
Jürgen Spitzmüller
38af9ccac5 GuiBox.cpp:
- disable width widgets for framed.sty boxes (bug 5069).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25727 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-20 16:57:37 +00:00
Richard Heck
83f0903b4a Optimize GuiCitation a bit by not checking the cache so often.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25716 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-19 17:23:13 +00:00
Richard Heck
55238f4dfd Don't need to do this check, as getInfo() will return an empty string in this case, anyway.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25715 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-19 16:36:14 +00:00
Jürgen Spitzmüller
89af456100 * GuiView.cpp:
- disable non-working splitting actions (bug 5044).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25712 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-19 13:17:46 +00:00
Abdelrazak Younes
9f433432dd invert crtl+wouse wheel zoom direction
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25684 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-17 08:36:02 +00:00
Jürgen Spitzmüller
eb0e3ff7b1 * GuiToolbar.cpp (updateContents):
- properly disable layout combo (bug 5054)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25677 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 21:35:13 +00:00
Richard Heck
c2a28fa239 Reinstate the commented out check, now that I've figured out how to do it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25673 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 16:05:35 +00:00
Richard Heck
97a9667f6e Clean up the unknown layout stuff some more. Please test to make sure this works with translated layout names, especially when one of them is "unknown". The use of "unknown" with RTL is also wrong, probably, as it will appear on the wrong side. But I'm not sure how to fix that.
BTW, to create a file with an "unknown" layout for testing, just take any LyX file, open it with vi, and replace something like:
\begin_layout Section
with
\begin_layout BlubberStuff
That's probably unknown. ;-)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25671 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 15:52:10 +00:00
Richard Heck
741bd1221a Fix for bug 5053. There are still some serious problems here, though, as (a) "unknown" cannot be translated and (b) the way the code was re-written, it will fail if unknown and translated layout names are used. This is because it completely subverts the use of a multicolumn model. I'll try to fix that, too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25670 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 15:29:00 +00:00
Abdelrazak Younes
5013a5cef9 oups!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25660 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 09:46:07 +00:00
Abdelrazak Younes
79036bcede fix http://bugzilla.lyx.org/show_bug.cgi?id=5002
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25659 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 09:43:46 +00:00
Pavel Sanda
b3cd09dcff We have locale debug level, so put it there.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25625 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 23:54:26 +00:00
Pavel Sanda
9c87bee68d Introduce Debug::SELECTION mainly for copy/paste primary-selection debugging.
Up to now it was hell to debug it, since the selection messages was under different
debug classes and the messages also get completely lost from mouse action events.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25624 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 23:47:54 +00:00
Abdelrazak Younes
79beb91e3a Sanitize LyX singleton access by getting rid of ref() and cref() methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25597 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 08:35:00 +00:00
Abdelrazak Younes
33b75ac079 Fix http://bugzilla.lyx.org/show_bug.cgi?id=5011
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25562 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-11 09:35:05 +00:00
Jürgen Spitzmüller
dcc4d58b66 *** Implement GUI names for encodings (part of bug 4971) ***
* lib/encodings:
	- add new column "GUI names"

* src/Encoding.{cpp,h}:
	- read in and handle GUI names

* src/frontends/qt4/GuiDocument.cpp:
	- display GUI names instead of LaTeX names

* po/lyx_pot.py:
* po/Rules-lyx:
* development/scons/SConstruct:
	- add encoding GUI names to the po files.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25558 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-11 08:56:17 +00:00
Bo Peng
763ef015ce Improve the local layout feature by better handling of unknown textclass, unknown layouts, and switch between textclasses.
* src/TextClass.h[.cpp]: add addLayoutIfNeeded() and createDefaultLayout()
	* src/Layout.h[.cpp]: add unknown_ to mark if a layout is a default layout for an unknown one.
	* src/LayoutFile.cpp: add addDefaultClass and change addLayoutFile to addLocalLayout.
	* src/Text.cpp: add unknown layouts that are not recognizable by a new textclass.
	* src/frontends/qt4/GuiToolbar.cpp: display (unknown) for unknown layouts.
	* src/frontends/qt4/GuiDocument.cpp: restore 'browse layout' button.
	* src/frontends/qt4/ui/LaTeXUi.ui: restore 'browse layout' button.
	* src/CutAndPaste.cpp: do not convert unknown layouts from pasted text
	* src/BufferParams.cpp: add a default textclass when a document with unknown textclass is loaded.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25555 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-11 02:43:02 +00:00
Pavel Sanda
ff705e9b85 Add comment to avoid future clashes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25545 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 22:14:29 +00:00
Richard Heck
780bce0f96 Rename empty layout stuff to plain layout stuff.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25541 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 17:41:52 +00:00
Abdelrazak Younes
11e1821284 Fix crash when tab group is closed while Outline is opened.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25537 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 12:44:50 +00:00
Abdelrazak Younes
ab5a4d4f0f reverting 25454 and fix http://bugzilla.lyx.org/show_bug.cgi?id=4758; again!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25534 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 11:53:57 +00:00
Pavel Sanda
052b9a8874 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4943 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25503 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 23:41:19 +00:00
Jürgen Spitzmüller
939bb2f20c * GraphicsUi.ui: re-save in qt designer 4.1 format.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25473 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 10:17:48 +00:00
Uwe Stöhr
12d7a6d952 GraphicsUi.ui: don't open the dialog always with the Options tab but with the Graphics tab, fixes a regression
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25461 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-06 14:54:54 +00:00
André Pönitz
7934e9c224 wrong editor settings from wrong project...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25460 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-06 10:56:47 +00:00
André Pönitz
6ee64a4812 fix crash.
that's not a proper solution, though.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25459 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-06 10:55:47 +00:00
Peter Kümmel
cb93ae8b61 fix memory leak
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25454 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-05 09:42:30 +00:00
Jürgen Spitzmüller
2c5d1e9ebe * src/frontends/qt4/GuiDocument.cpp:
* src/frontends/qt4/ui/LaTeXUi.ui:
	- hide the "browse local layout" button as discussed on
	  http://bugzilla.lyx.org/show_bug.cgi?id=4812
	  because the local layout feature can result in dataloss.

	  Whether the feature itself should be removed for 1.6.0 has
	  to be discussed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25452 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-05 08:54:48 +00:00
Abdelrazak Younes
639abeae66 Work around bug http://bugzilla.lyx.org/show_bug.cgi?id=4846
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25440 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-04 10:16:54 +00:00
Abdelrazak Younes
66bd5be5fc up-port fixes and cleanups from BRANCH.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25408 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-01 07:28:37 +00:00
Abdelrazak Younes
048efafe3c Fix wheel mouse scrolling bug when speed is set to 'one page at a time'.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25406 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-30 17:18:41 +00:00
Abdelrazak Younes
a54850d762 GuiApplication::resetGui(): reset as many things as possible, including menus and toolbars (not sure about Mac global menubar yet). This means that except for already opened dialog, all ui rc settings are taken into account without the need to restart.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25390 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 18:03:38 +00:00
José Matox
1b2b5726be Fix missing include (QMessageBox) and clean extra whitespaces.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25388 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 15:02:18 +00:00
Abdelrazak Younes
d748af0299 Add a preference combo box for the preferred user interface language. The rc variable gui_language now require a language name and not its code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25387 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 13:32:27 +00:00
Abdelrazak Younes
1c83bf9420 GUI language via RC: some bug corrections.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25386 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 11:10:10 +00:00
Abdelrazak Younes
162b3b3b30 Fix toc and source-view initial showing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25384 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 07:23:30 +00:00
Pavel Sanda
07af8fecb5 * Doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25383 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 23:07:38 +00:00
Jean-Marc Lasgouttes
71860fbc86 suppress warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25374 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 09:52:43 +00:00
Abdelrazak Younes
e9e90558db forgot this in prev commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25339 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 13:36:35 +00:00
Abdelrazak Younes
c75ff524bf Fix ScrollBarAsNeeded
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25338 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 13:29:25 +00:00
Abdelrazak Younes
46cb120300 Fix http://bugzilla.lyx.org/show_bug.cgi?id=4829
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25336 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 12:31:03 +00:00
Abdelrazak Younes
c3727bc147 fix initial outline disabling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25330 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 06:43:43 +00:00
Abdelrazak Younes
efd6dc8a0c One view/doc: more fixes and cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25329 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 06:35:42 +00:00
Abdelrazak Younes
2ab92aba67 retro commit a bit. Should hopefully fix the crashes on Mac.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25328 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 20:48:49 +00:00
Abdelrazak Younes
65b37dfbb8 Some more fixes to multi-windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25327 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 17:30:30 +00:00
Abdelrazak Younes
4441cd8a4a GuiView::on_lastWorkAreaRemoved(): the window closing doesn't have to be delayed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25326 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 15:55:34 +00:00
Abdelrazak Younes
fb47b716d7 Polish the one window per document user experience.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25325 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 15:39:15 +00:00
Abdelrazak Younes
82d467ea6d CreateView(): Simplify id test and add a debug output.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25324 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 14:22:32 +00:00
Abdelrazak Younes
ad68145492 Fix http://bugzilla.lyx.org/show_bug.cgi?id=4941
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25323 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 13:35:19 +00:00
Abdelrazak Younes
26dbfbcf89 Present to Mac users: Session handling per document instead of per window when "open document in tabs" is disabled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25320 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 11:28:11 +00:00
Abdelrazak Younes
312bb47dd5 Some more fixes to icon size and session settings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25317 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 07:40:29 +00:00
Abdelrazak Younes
1009aed25a fix http://bugzilla.lyx.org/show_bug.cgi?id=4957
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25316 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 06:21:04 +00:00
Abdelrazak Younes
a7de101b64 Revert 25234: Even though this is not recommended, using repaint give a much better user experience when dragging the scrollbar slider. So I am changing it back. I've solved the problem leading to rev25234 thanks to the new TocModel anyway.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25305 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 14:15:48 +00:00
Abdelrazak Younes
bd569ada80 Local aware sorting of the toc type.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25304 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 11:35:24 +00:00
André Pönitz
61aa683425 compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25294 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 16:26:43 +00:00
Abdelrazak Younes
cd877a3919 move a loc to where it's useful.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25293 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 15:49:14 +00:00
Abdelrazak Younes
81bc06db34 Navigator:
- some cleanup in TocWidget
- fix Read-only document navigation.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25292 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 15:44:14 +00:00
Abdelrazak Younes
56f7a70e48 delete unused interface.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25291 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 15:18:34 +00:00
Abdelrazak Younes
6ad1b1cd09 General cleanup of the Outline/Navigator:
- Make use the Qt Model/View separation concept, TocWidget is now really just a view of the current toc model.
- the toc type combo now use a model defined in TocModels.
- the models are not deleted at each reset, they are now just cleared out.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25289 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 15:10:03 +00:00
Abdelrazak Younes
b5252b737f Don't close child documents.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25288 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 14:53:08 +00:00
Abdelrazak Younes
8db9fcfcb9 revert 25271 which was problematic. Sorry for the delay.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25283 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 19:51:00 +00:00
Jürgen Spitzmüller
c2d1b2ea82 GuiPrefs.cpp: fix signal.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25280 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 17:16:15 +00:00
Jürgen Spitzmüller
93ab5a427d * src/frontends/qt4/Menus.cpp:
* po/lyx_pot.py:
	- make flex insets in the menus translatable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25276 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 15:19:31 +00:00
Abdelrazak Younes
68fbb326af * GuiWorkArea::addWorkArea(): avoid multiple unneeded drawing.
* GuiWorkArea::on_currentTabChanged(): make sure the bufferView has the correct size.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25271 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 07:23:08 +00:00
Pavel Sanda
a4b76f6605 Make Delimiter dialog stretchable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25257 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 10:06:54 +00:00
Abdelrazak Younes
4a1be58591 - Simplify prefs, graphics and external display options which are now true or false.
- the display combo in the prefs, external and graphics dialogs are gone
- the lyxrc display_graphics option now overrides any local inset display option
- The external template format has a new tag: Preview
- format incremented to 337


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25245 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-13 07:34:55 +00:00
Abdelrazak Younes
d353a6f899 Mac compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25241 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 17:34:01 +00:00
André Pönitz
5791f8a894 cosmetics; compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25239 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 16:46:46 +00:00
Abdelrazak Younes
28b77e4f72 GuiView: Moving updateStatusBar() out of updateDialogs() because this is no end of trouble WRT recursive paintings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25238 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 16:00:36 +00:00
Abdelrazak Younes
825bac4b43 Fix crash on new document.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25237 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 15:43:31 +00:00
Abdelrazak Younes
edd117f27a remove unneeded TocModel::clear() method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25236 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 15:34:12 +00:00
Abdelrazak Younes
6876ffa65b Simplify TocModel by using UserRole data.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25235 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 15:31:10 +00:00
Abdelrazak Younes
f8110b8b60 Fix another recursive repaint problem with Qt4.4 when erasing a section text with backspace while the Outline is opened.
This should in principle not affect drawing but X11 testing with autorepeat key is required.





git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25234 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 15:25:17 +00:00
Abdelrazak Younes
1494e0a687 Fix crash when closing a second lyx window due to a recursive painting (QT4.4 issue). This code was not needed anyway.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25233 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 13:04:59 +00:00
Abdelrazak Younes
158863fd3b TocWidget: Small reorg in order to fix http://bugzilla.lyx.org/show_bug.cgi?id=4940
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25230 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-11 18:13:14 +00:00
Pavel Sanda
07113cf424 LFUN_FONT_FREE_* -> LFUN_TEXSTYLE_*
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg141274.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25225 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-11 08:35:15 +00:00
Jean-Marc Lasgouttes
b4811438e3 typo spotted by JP Chretien
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25221 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-10 08:31:21 +00:00
Abdelrazak Younes
1239d32174 Maybe fix http://bugzilla.lyx.org/show_bug.cgi?id=4939
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25218 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 22:25:51 +00:00
Abdelrazak Younes
fe9de1f1d6 potential fix to outline drawer when leaving full-screen mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25217 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 16:11:47 +00:00
Abdelrazak Younes
efd40b2673 Outline focus fix for mac: Make sure the GuiView is raised and activated before setting the focus.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25216 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 15:33:42 +00:00
Jürgen Spitzmüller
15676a062f proper fix for bug 4936.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25215 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 15:20:38 +00:00
Abdelrazak Younes
16420e5263 Allow the toc and view-source dock widget to be restored if needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25214 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 15:01:45 +00:00
Abdelrazak Younes
42cb86adb9 Fix initial focus problem with outline and view-source panes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25213 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 14:52:38 +00:00
Abdelrazak Younes
f15ede6534 set the object name for all DockView based dialog (fix http://bugzilla.lyx.org/show_bug.cgi?id=4922)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25209 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 14:09:27 +00:00
Abdelrazak Younes
5e6a1a3da8 GuiToc: set the object name for proper state restoration.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25206 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 12:54:14 +00:00
Jürgen Spitzmüller
3b00c86b9d brute fix weird bug 4936.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25203 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 10:41:58 +00:00
Abdelrazak Younes
cd26f796d3 Navigator pane: Switch to dockwidget when working in fullscreen mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25197 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 07:09:29 +00:00
Pavel Sanda
bd1848375e Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4923 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25188 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-07 12:43:44 +00:00
Abdelrazak Younes
39a78a09d2 previous commit: forgot that
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25176 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 22:54:28 +00:00
Abdelrazak Younes
374ec4be57 Simplify and optimize image on screen visualization. Fix one bug or two along the way WRT combined image effects (egg: rotation and grayscale).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25175 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 22:51:11 +00:00
Abdelrazak Younes
87cbf97c91 X-Ref dialog: Hide the buffer combo now that child document labels are integrated within the parent's. This should be re-enables if/when the xr package is supported.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25174 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 22:30:30 +00:00
Richard Heck
7f6721a4e9 Clean up a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25170 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 16:02:52 +00:00
Richard Heck
08d8a8034f Fix citation dialog bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25169 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 15:53:02 +00:00
Abdelrazak Younes
9d00e2ec0a Move loadableImageFormats() to the frontend.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25163 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 12:29:58 +00:00
Abdelrazak Younes
264f32ec37 Simplify image loading on screen which is not asynchronous, never was...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25162 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 11:52:02 +00:00
Abdelrazak Younes
20b45450f6 move GuiImage::loadableFormats() to support/imagetools.{h,cpp} and simplify this whole stuff. What a mess!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25161 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 11:34:49 +00:00
Abdelrazak Younes
5fe7778d28 Fix disconnection on escaped dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25158 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 10:00:33 +00:00
Abdelrazak Younes
fb1d57d24c oups...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25157 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 09:49:09 +00:00
Abdelrazak Younes
81cc98a500 InsetInfo: Some fixes...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25154 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 08:45:58 +00:00
Abdelrazak Younes
062bec11d0 * Dialog::inset(): make it const.
* InsetInfo::validate(): new method for checking dispatch argument. Not implemented yet.

* GuiInfo: remove non working code and rework the dialog following my vision of an ideal info dialog :-) not every thing works yet.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25153 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 08:01:59 +00:00
Bo Peng
3c142cdd47 GuiInfo: display and initialize the information dialog, can not apply yet
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25152 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 04:10:42 +00:00
Abdelrazak Younes
ccea2a5cd9 Move inset lookup to Dialog class as this is generic enough to be reused by other dialogs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25147 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 16:03:08 +00:00
Abdelrazak Younes
6e4494b9b7 InsetInfo::inset(): look also for next inset as InsetInfo cannot be entered with the cursor (yet).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25146 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 15:48:29 +00:00
Abdelrazak Younes
f276338227 Preliminar InsetInfo dialog. This was done as an exercise to show Bo (an others) how easy it is to create a new dialog. This dialog needs to be filled in, right now, there is just an OK button.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25144 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 15:08:46 +00:00
Abdelrazak Younes
cf466ab567 Mac compil fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25143 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 14:40:41 +00:00
Abdelrazak Younes
a1756319b3 Mac compil and warning fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25142 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 13:27:37 +00:00
Abdelrazak Younes
b1002fc32c Provide a generic way to retrieve icons from the frontend.
* Application: new iconName() pure virtual interface.

* GuiApplication: transfer icon searching code from GuiToolbar.cpp.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25139 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 08:31:22 +00:00
Jürgen Spitzmüller
d7eaaba900 ** support for CJK font argument. File Format change **
* src/BufferParams.{cpp,h}:
	- new param fontsCJK (font_cjk).

* src/output_latex.cpp:
	- use fontsCJK param.

* src/Buffer.cpp:
	- increase file format

* src/frontends/qt4/GuiDocument.cpp:
* src/frontends/qt4/ui/FontUi.ui:
	- GUI for the CJK font param

* lib/lyx2lyx/lyx_1_6.py:
	- remove font_cjk param on reversion.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25135 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 06:18:34 +00:00
Dov Feldstern
140958f4a3 this entire method can now be removed (thanks for pointing this out, Bernhard!)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25120 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 21:05:27 +00:00
Dov Feldstern
6fb8b95a28 whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25119 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 19:52:16 +00:00
Dov Feldstern
dba608e1d7 fix completion painting for RTL (inline completion and completion list)
see http://permalink.gmane.org/gmane.editors.lyx.devel/107923 for an 
explanation, though note that this patch is more extensive than the one
attached there


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25118 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 19:45:26 +00:00
Bernhard Roider
0d4ab86261 Fix item delegate for qt 4.2:
In the completion-listbox rtl-Text does not work like it does for newer qt and icons are not displayed for math symbols.
The rtl handling is incorrect atm but now it works the same way for all versions of qt.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25108 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-03 22:00:47 +00:00
Abdelrazak Younes
b5f4c93599 Remove bug work around due to bad event loop startup process in 1.5.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25071 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-02 14:19:39 +00:00
Abdelrazak Younes
2003a50e14 Fix http://bugzilla.lyx.org/show_bug.cgi?id=4904
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25070 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-02 13:59:00 +00:00
Abdelrazak Younes
cebd63f844 Move secondary toolbars to View->Toolbars->Other Toolbars.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25069 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-02 12:51:36 +00:00
Pavel Sanda
ec348c574a Unify LFUN naming.
(LFUN_FLOAT_LIST -> LFUN_FLOAT_LIST_INSERT)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25065 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-02 11:31:03 +00:00
Abdelrazak Younes
655f66b700 Get rid of GuiMath layer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25064 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-02 10:05:29 +00:00
Abdelrazak Younes
f7f385f73b More code removal.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25063 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-02 09:26:27 +00:00
Abdelrazak Younes
19668bf2d6 remove unused code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25062 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-02 09:18:07 +00:00
Bo Peng
87103ddb21 Fix manual update of the viewsource dialog, set default states of the view source checkboxes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25059 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-01 20:03:36 +00:00
André Pönitz
7f678a39cd fix my color cache "improvements"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25029 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-31 22:39:52 +00:00
Abdelrazak Younes
ebcc4db6de Add list of branches.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25011 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-30 13:59:29 +00:00
Abdelrazak Younes
8d93f5173f forgot that one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25009 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-30 12:23:15 +00:00
Abdelrazak Younes
9558962c4f Reset the focus on the work area after using on any navigator gui control.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25008 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-30 12:13:42 +00:00
Abdelrazak Younes
1d3fcde7f7 Code simplification.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25006 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-30 11:59:57 +00:00
Abdelrazak Younes
655f696612 set the focus on the work area after clicking on a navigator item.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25005 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-30 11:33:24 +00:00
André Pönitz
2e968d0661 next try
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25000 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-29 17:57:57 +00:00
Richard Heck
77ed747114 FuncStatus::enabled(bool) --> FuncStatus::setEnabled(bool)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24999 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-29 15:14:00 +00:00
Jürgen Spitzmüller
fb69a2e3e4 * GuiErrorList.{cpp,h}:
- Fix error navigation with the keyboard (bug 4895).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24998 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-29 12:37:22 +00:00
Pavel Sanda
89e93deea2 one string more.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24995 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-29 11:54:29 +00:00
Abdelrazak Younes
1e109a2a3b small updates.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24980 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-28 16:08:14 +00:00
Abdelrazak Younes
5254716219 GuiToolbar::fill(): only once.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24978 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-28 10:30:25 +00:00
Abdelrazak Younes
15b42ccd4a startup optimisation: delay toolbar filling until it is shown on screen.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24977 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-28 10:26:03 +00:00
Richard Heck
c3f7bc6a43 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24968 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 19:00:42 +00:00
Abdelrazak Younes
891cfdda68 bug fix with minibuffer focus.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24966 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 17:29:36 +00:00
Abdelrazak Younes
7e127a496b fix focus problem with minibuffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24964 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 16:15:56 +00:00
Abdelrazak Younes
af442b7369 fullscreen tweaking.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24961 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 13:30:40 +00:00
Abdelrazak Younes
57fb699944 Temptatively fix fullscreen problems on X11.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24960 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 13:16:50 +00:00
Abdelrazak Younes
a2db0e8ed4 Fix crash with multiple windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24959 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 12:33:06 +00:00
Pavel Sanda
cd1cc0b647 Move graphics code from class to namespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24958 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 12:06:34 +00:00
Abdelrazak Younes
5c0c53ccf8 Switch off fullscreen before closing a window.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24957 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 12:01:50 +00:00
Pavel Sanda
0b5323587f Compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24956 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 11:47:50 +00:00
Abdelrazak Younes
1c7f411c10 save/restore toolbars state when toggling fullscreen mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24955 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 11:34:59 +00:00
Abdelrazak Younes
7bb8a5f183 Re-engineer the toolbar support code:
- We now rely more upon Qt features,
- the initial toolbar positioning defined in "lib/ui/default.ui" is now only used if there is no session or if session handling is disabled,
- The session saving/restoring is window dependent.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24954 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 11:15:17 +00:00
Pavel Sanda
0e15b3c036 Oops.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24950 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-26 19:19:56 +00:00
Pavel Sanda
94ce1baddf Change description.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24949 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-26 19:16:41 +00:00
Pavel Sanda
5b99af2237 Fix button enabling for graphics input.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24947 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-26 17:56:48 +00:00
Abdelrazak Younes
114f9755ec Mac compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24944 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-26 13:43:35 +00:00
Jean-Marc Lasgouttes
703eca7670 make display of group list only depend on existence of groups; move the addition of a separator to the ui file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24941 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-26 09:33:08 +00:00
Jürgen Spitzmüller
eaeadeded7 * GuiPrefs.cpp:
- translate Formats.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24934 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-25 09:42:41 +00:00
Abdelrazak Younes
033c3df44c a bunch of toolbar related renaming.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24931 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-25 08:30:06 +00:00
Peter Kümmel
dcd8650998 cleanup export of mime type strings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24930 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-25 07:49:16 +00:00
Abdelrazak Younes
4d188198ba Fix MSVC link error.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24929 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-25 07:22:45 +00:00
Peter Kümmel
3ddfbb8cc0 define mime strings at one place only
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24928 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-24 22:04:58 +00:00
Peter Kümmel
6abce3ec85 remove stupid windows defines
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24927 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-24 21:58:56 +00:00
Abdelrazak Younes
8a7c802ab0 Introduce docstring_list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24924 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-24 10:15:52 +00:00
Abdelrazak Younes
f46e57afa0 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24923 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-24 09:51:17 +00:00
Abdelrazak Younes
ebdd3bc0a4 Get rid of GuiApplication::readMenus().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24922 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-24 09:32:50 +00:00
Abdelrazak Younes
145585dc18 First step towards fixing bug 4588: move the ui file reading and the ToolbarBackend to the frontend.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24921 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-24 09:28:05 +00:00
André Pönitz
bbb9cb65e7 simplify color cache code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24920 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 20:29:48 +00:00
André Pönitz
225e9e5547 slightly more compact code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24918 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 18:09:40 +00:00
Jean-Marc Lasgouttes
e3fb29a66c remove annoying debug information
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24911 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 13:34:16 +00:00
Abdelrazak Younes
5d32aace21 Potential bug fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24907 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 11:16:23 +00:00
Abdelrazak Younes
85d944702f Get rid of GuiApplication::viewCount().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24906 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 11:08:12 +00:00
Abdelrazak Younes
26e8409172 simplify GuiApplication::unregisterView().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24905 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 10:54:34 +00:00
Abdelrazak Younes
d2a96bcdc3 Get rid of GuiApplication::view_ids_
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24904 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 10:45:55 +00:00
Abdelrazak Younes
9f5daec59a * Application: change the signature of getStatus() to reflect the one of GuiView.
* LyXFunc::getStatus(): properly use Application::getStatus()
* LFUN_SET_COLOR: transfer to GuiApplication (and get rid of Application::updateColor()).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24900 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 09:53:27 +00:00
Pavel Sanda
5924ca2831 Compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24897 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 09:32:49 +00:00
Abdelrazak Younes
6186965651 Get rid of Application::initGlobalMenu().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24896 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 08:57:41 +00:00
Abdelrazak Younes
f45523aa7a Pimpl stuff in GuiApplication.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24895 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 08:43:07 +00:00
Abdelrazak Younes
a0ec412cd4 - Move as much platform specific stuff as possible to GuiApplication.cpp
- introduce GuiApplication::Private


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24894 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 07:52:39 +00:00
Enrico Forestieri
44e18e9107 Disable a socket notifier when unregistering it.
This avoids the following Qt warnings when performing a reverse dvi search:

QSocketNotifier: Multiple socket notifiers for same socket 9 and type Read
QSocketNotifier: Invalid socket 15 and type 'Read', disabling...

occurring when using the lyxserver or the lyxclient, respectively.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24890 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-22 21:08:34 +00:00
Abdelrazak Younes
7b2f6ae6ed fix http://bugzilla.lyx.org/show_bug.cgi?id=4870
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24888 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-22 15:20:43 +00:00
Jean-Marc Lasgouttes
b5d3d3b722 * frontends/LyXView.h:
* frontends/qt4/GuiView.h:
	* frontends/qt4/GuiView.cpp (getStatus): change signature to return a 
	bool indicating whether the view knows something about the lfun.

	* LyXFunc.cpp (getStatus): remove knowledge about what lfuns are 
	handled in view. Call LyXView::getStatus() when nothing is known at
	LyXFunc level.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24887 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-22 15:01:36 +00:00
Abdelrazak Younes
956b2cd11d Revert 24816, this didn't not work with the minibuffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24875 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-21 08:25:17 +00:00
Abdelrazak Younes
034cccd008 - Fix crash with clicking on second Listings iten in Navigator (in EmbeddedObject.lyx).
- Fix http://bugzilla.lyx.org/show_bug.cgi?id=4613


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24869 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-20 13:09:35 +00:00
Abdelrazak Younes
c1de549560 revert accidental commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24867 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-20 11:58:34 +00:00
Abdelrazak Younes
b630a55d77 Fix caption numbering of child documents.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24866 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-20 11:54:23 +00:00
André Pönitz
de6483b8ab cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24844 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-19 20:52:24 +00:00
André Pönitz
8bb1c2fc78 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24843 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-19 19:58:05 +00:00
Jürgen Spitzmüller
bcb835953e * src/frontends/qt4/GuiSendto.cpp:
- use translated formats.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24836 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-19 10:12:27 +00:00
Jürgen Spitzmüller
21bd7671ec *** fix bug 2488 (make dynamic formats in menus translatable) ***
* po/lyx_pot.py:
	- new method formats_l10n that parses configure.py for file formats and shortcuts
* po/Makefile.in.in:
* development/scons/SConstruct:
	- call formats_l10n on po update

* src/frontends/qt4/Menus.cpp:
	- handle translated formats

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24833 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-19 09:33:53 +00:00
Abdelrazak Younes
69dd2ac3a7 Ensure the focus is returned to the editing area after a dispatch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24816 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-18 13:59:52 +00:00
Abdelrazak Younes
ef3b045378 add a FIXME.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24813 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-17 17:08:09 +00:00
Abdelrazak Younes
0d61832d22 simplify navigator. Get rid of the selectionModel() based navigation as this was too buggy. The tree now react to 'clicked' and activated signal. Changing a selection with the keyboard won't trigger a cursor jump, the user will have to hit 'Enter' for that. This is a ui change that probably needs to be documented (if it was already).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24812 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-17 17:03:53 +00:00
Pavel Sanda
a985b079de Add dist file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24806 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 18:06:01 +00:00
Pavel Sanda
2d6b03f487 Resurrect make check from dead.
LASSERT was pulling dependency hell for the test.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24805 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 17:14:42 +00:00
Abdelrazak Younes
e8f819f85b Compil fix for Qt4.2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24802 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 14:30:46 +00:00