Commit Graph

3959 Commits

Author SHA1 Message Date
Jürgen Spitzmüller
c04601e471 * src/frontends/qt4/ui/PrintUi.ui:
- fix bug 4345.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22007 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 10:24:21 +00:00
Pavel Sanda
f248b6faff Source highlighting of comments (by Bernhard Reiter)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21973 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-05 20:59:11 +00:00
Jürgen Spitzmüller
2aee7c7b38 * src/support/docstring.h: include <cstring>
* src/frontends/qt4/TocModel.cpp: include <climits>
	- both needed on Mac OS 10.5.1/Xtools 3.0 (reported by Roger McMurtrie)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21936 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-03 07:08:58 +00:00
Jürgen Spitzmüller
6cf125e841 * src/frontends/qt4/GuiApplication.cpp:
- backport rev. 20419 and rev. 20531 from trunk (part of bug 4385):
	   http://www.lyx.org/trac/changeset/20419:
		GuiApplication::notify(): don't crash with abort() but exit gracefully 
		when an exception is caught. try to catch LyX specific exceptions.
	   http://www.lyx.org/trac/changeset/20531:
		Gives the user some information about the crash.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21914 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 11:28:29 +00:00
Jean-Marc Lasgouttes
1ae45c1a8c make sure that moc files are removed on "make clean"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21675 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-19 11:14:30 +00:00
Jürgen Spitzmüller
452d7e28c0 * src/frontends/qt4/QSpellchecker.cpp:
- fix bug 2218 (spellchecher skips first word)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21470 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 13:46:52 +00:00
Abdelrazak Younes
035078cc87 The wide() removal patch!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21428 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 08:04:20 +00:00
Abdelrazak Younes
43b0d5f626 Fix compilation for Qt < 4.3 (using 4.2.1).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21412 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 22:23:45 +00:00
Jürgen Spitzmüller
0f1b6903a8 * src/LyXRC.{cpp,h}:
- new RC_USE_PIXMAP_CACHE
* src/frontends/qt4/QlPainter.{cpp,h}:
	- use rc.use_pixmap_cache
* src/frontends/qt4/QPrefs.cpp:
* src/frontends/qt4/ui/QPref.ui:
	- implement rc.use_pixmap_cache

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21368 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 11:14:28 +00:00
Jürgen Spitzmüller
fd4fa37926 * src/frontends/qt4/QErrorList.cpp:
- do not close the dialog on double click (bug 4090).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21349 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 17:48:14 +00:00
Jürgen Spitzmüller
147e31bff5 * src/frontends/controllers/ControlSpellchecker.cpp:
- update screen after checking the last word (bug 3586).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21348 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 17:45:39 +00:00
Jürgen Spitzmüller
11be446d51 * src/frontends/qt4/QSearch.{cpp, h}:
- implement update_contents() and move selection-setting of the find input widget there
	  (fixes bug 3999).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21288 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 14:52:42 +00:00
Jürgen Spitzmüller
0d7a465f33 * src/frontends/qt4/ui/ParagraphUi.ui:
- fix several duplicated accelerators (bug 4277)
* src/frontends/qt4/QParagraph.cpp:
	- use the original string from the dialog for the alignDefaultRB
	  widget, in order to display the accelerator.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21143 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 07:49:07 +00:00
Bo Peng
492c3a1cde Add Erlang support for listings (bug 4263)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20957 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-13 20:55:33 +00:00
Abdelrazak Younes
fd69063e00 clear the pixmap cache and the font metrics cache in case of zoom or dpi changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20868 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-09 16:22:24 +00:00
Jürgen Spitzmüller
22561386d0 * src/frontends/qt4/IconPalette.cpp (updateParent): listen to André
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20651 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-02 05:54:36 +00:00
Jürgen Spitzmüller
d49e986892 * src/frontends/qt4/IconPalette.cpp (updateParent):
- extent simplification done in r20630 also to math popup menus,
	   by Edwin.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20636 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-01 13:02:29 +00:00
Jürgen Spitzmüller
1b1132bd94 * src/frontends/qt4/IconPalette.cpp (updateParent): Oops ...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20631 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-01 10:46:18 +00:00
Jürgen Spitzmüller
91f82566e8 * src/frontends/qt4/IconPalette.cpp (updateParent):
- don't check any single action, but only one for all (performance workaround),
	   by Edwin.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20630 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-01 10:40:47 +00:00
Jürgen Spitzmüller
fac4864d5a * src/frontends/qt4/QLToolbar.cpp (update):
- only update visible toolbars (performance fix).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20627 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-01 09:20:21 +00:00
Abdelrazak Younes
5dbee2a3f4 Fix slowness issue related to Clipboard and Selection under X11 platforms:
- GuiClipboard: Cache the Clipboard status when the data is changed.
- GuiSelection: Cache the Selection status when the data is changed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20624 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-01 09:03:17 +00:00
Abdelrazak Younes
3ab50efe1f Rework 'dbg painting' to be in line with trunk.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20568 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-28 12:24:20 +00:00
Uwe Stöhr
c79cc07cbc QBox.cpp: fix bug 4233 http://bugzilla.lyx.org/show_bug.cgi?id=4233
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20461 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-24 11:55:16 +00:00
Abdelrazak Younes
309e9a5516 Fix bug 4211.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20370 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-20 06:47:39 +00:00
Abdelrazak Younes
0175b39db0 Fix crash with math inset with empty string.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20286 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-15 13:12:21 +00:00
Enrico Forestieri
23456280af Fix crash with old versions (earlier than 2.2.92) of fontconfig.
* src/frontends/qt4/GuiFontLoader.{cpp,h}
	(GuiFontLoader::GuiFontLoader): don't store font IDs anymore,
	as we are not going to clean up after ourselves.
	(GuiFontLoader::~GuiFontLoader): make it virtual again and
	do nothing (avoids a crash with fontconfig < 2.2.92).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20247 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-12 19:08:04 +00:00
Richard Heck
99f97be8f4 Port change at 19867 by Abdel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20222 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-11 20:38:25 +00:00
Jürgen Spitzmüller
33384ba6b2 Backport revision 19747:
* src/frontends/qt4/GuiView.h:
	- Delete include of config.h. This was needed only for the qt3 port.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20205 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-11 06:21:53 +00:00
Enrico Forestieri
f6b585d311 Register math fonts with Qt 4.2 or higher. Using Qt 4.1, the old
xft-fonts package is still required. However, on *nix there seem
to be no way to tell fontconfig to prefer our fonts instead of
others matching the requirements, so, in case of conflict, the
fontconfig files should be manually adjusted, or some existing
font package used (note that the quality of the bakoma fonts is
better than that of the xft ones). There is no such problem on
Windows where our private fonts are always preferred over the
installed ones (and I hope the same holds true for Mac).

	* src/LyX.cpp
	(LyX::exec): don't call addFontResources() and restoreFontResources()
	anymore, as the frontend code will do the job.

	* src/frontends/qt4/GuiFontLoader.{cpp,h}
	(GuiFontLoader::GuiFontLoader): register math fonts with Qt.
	(GuiFontLoader::~GuiFontLoader): unregister math fonts.

	* src/support/os.h
	* src/support/os_unix.cpp
	* src/support/os_win32.cpp
	* src/support/os_cygwin.cpp:
	remove code dealing with fonts.

	* configure.ac: don't check for fontconfig headers anymore.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20148 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-08 17:35:21 +00:00
Martin Vermeer
b75e3a7a16 Fix ambiguity in translation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20110 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-06 18:06:14 +00:00
Richard Heck
484ce8eba7 Fix bug 3999: Highlight search text.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19917 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-30 15:06:14 +00:00
Abdelrazak Younes
d0b8f24cc2 Backport the pixmap cache from trunk. Disabled for X11 and for Qt < 4.2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19829 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-27 11:10:28 +00:00
Abdelrazak Younes
8fd3e3ecbc New 'Save all on shutdown or cancel' feature from Stephan Witt (Fix bug 1656).
* GuiApplication::commitData(): implement.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19825 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-27 07:13:05 +00:00
Richard Heck
896b797e05 Make LYX_ALIGN_LAYOUT always be available. (Trunk committed at r19332).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19810 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-26 19:55:46 +00:00
Abdelrazak Younes
2d8a0710eb Bugfix: the current cursor font was not reset when going to a bookmark.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19770 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-24 13:53:45 +00:00
Abdelrazak Younes
920be91bec Fix bug 4123: crash when closing LyX window with document tabs
http://bugzilla.lyx.org/show_bug.cgi?id=4123 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19688 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-21 08:10:54 +00:00
Richard Heck
f7756c3020 Fix bug 4121. The cause was the empty on_available_entered method. Not sure why
that caused the bug, but it does.
Also fix some other UI bugs, relating to resets of the selection models. These
look gratuitous and cause problems in the current code. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19531 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-13 23:37:45 +00:00
Bo Peng
5d9a2cc241 Listings ui changes from Pavel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19385 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-09 21:19:17 +00:00
Jean-Marc Lasgouttes
013d04ac96 [the "translation" patch series] Part 4: translating the LyX menu on the mac
* development/MacOSX/Makefile.am: when installing, create bogus 
	language directories to allow translation through Qt.

	* src/frontends/qt4/GuiApplication.cpp (MenuTranslator): new class, 
	redirects some Qt translation requests to gettext.
	(GuiApplication): install the MenuTranslator.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19351 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-07 20:57:01 +00:00
Bo Peng
b08540d0d8 Fix loading non-lyx child documents with relative path names, change Load to Edit in the child document dialog. (Bug 4107 and 4111)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19345 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-07 18:37:33 +00:00
Richard Heck
02fb80e579 Fix bug 4096. Don't disconnect the buffer until we're ready to connect again.
Also, clean up the code a little.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19288 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-03 14:10:02 +00:00
Bo Peng
775d93c837 src/frontends/qt4/GuiApplication.cpp: fix a bug that prevents translator of languages with long names to be loaded
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19261 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-31 17:18:44 +00:00
Jürgen Spitzmüller
63c587190f * src/frontends/controllers/frontend_helpers.{cpp,h}:
- new function getSortedColors
* src/frontends/qt4/QPrefs.cpp:
	- use that to sort the colors (bug 2571)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19235 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-30 13:48:01 +00:00
Bo Peng
7fd53d7148 Fix Bug 4053: Update other controls allows invalid listings parameters to be passed in listings-related dialogs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19223 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-27 17:55:31 +00:00
José Matox
54eeca1c0a revert locale sorting since it gives problems with gcc 3.x (see bug 2738)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19198 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-24 22:50:46 +00:00
Abdelrazak Younes
cdb91bc50b const fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19129 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-19 06:21:28 +00:00
Jürgen Spitzmüller
52e5755c84 * src/frontends/qt4/qlkey.h: add AltGr as modifier key (fix bug 4026)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19119 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-18 16:52:52 +00:00
Abdelrazak Younes
1007714d2e Properly fix bug 3258.
* InsetTabular: 
  - remove the is_deleted_ boolean
  - dispatch(): remove the call to updateDialog at the end

* ControlTabular::initialiseParams(): connect to the current tabular if found.

* QTabular::update_contents(): initialiseParams() each time.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19112 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-18 09:55:33 +00:00
Abdelrazak Younes
d3b4961e16 With or without multiview, a crash can happen randomly if the statusbar timer times out after the view is closed. Two reason for that:
1) LyXFunc::lyx_view_ is not set to 0
2) quiting is not set to true.

This patch add safe guards when closing a view and/or exiting.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19095 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-17 09:21:52 +00:00
Abdelrazak Younes
4863cfdf78 Fix this bug:
1) create a doc
2) insert an ert inset
3) right-click the inset
4) new window
5) delete the ert inset: BOOM! 

This commit replace the static hideDialog signal which was in effect shared by all views with a direct call to Dialog::hide().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19094 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-17 09:20:39 +00:00