Commit Graph

13902 Commits

Author SHA1 Message Date
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
f29a8f54a4 Fix initial cursor visibility problem.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25322 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 13:10:25 +00:00
Pavel Sanda
963b2c48d4 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25321 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 11:45:20 +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
Enrico Forestieri
ab9a074f20 Trust Andre'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25319 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 09:17:57 +00:00
Enrico Forestieri
c691839abe Fix bug 4687
http://bugzilla.lyx.org/show_bug.cgi?id=4687


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25318 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 09:16:05 +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
Pavel Sanda
467281b334 No need to fit cursor here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25313 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 23:26:25 +00:00
Pavel Sanda
be9587f9d9 Comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25312 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 23:03:29 +00:00
Pavel Sanda
5d66da8887 markDirty is automatic.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25311 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 22:51:12 +00:00
Pavel Sanda
8018bef22b Some hints from JMarc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25310 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 22:37:35 +00:00
Pavel Sanda
dcc50a2454 Fix include orderings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25309 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 18:54:31 +00:00
Pavel Sanda
7267b4bef2 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25308 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 18:27:45 +00:00
Pavel Sanda
1f1951e210 Add LFUN_NOTES_MUTATE for global change of note insets type.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg141339.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25306 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 18:16:50 +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
Pavel Sanda
ca1f3d29b5 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25299 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 23:44:00 +00:00
Pavel Sanda
faa41bfdf2 Delete LFUN_MATH_IMPORT_SELECTION.
This lfun is just duplicate of LFUN_MATH_MODE now.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25296 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 19:44:10 +00:00
André Pönitz
5dd5d98473 make _GLIBCXX_DEBUG_PEDASSERT happy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25295 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 16:33:19 +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
Enrico Forestieri
e224ef029b Implement the suggestion by Andre'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25287 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 11:10:43 +00:00
Pavel Sanda
d25aa0ad38 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25286 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 23:01:14 +00:00
Enrico Forestieri
01398327df Ops
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25285 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 20:39:40 +00:00
Enrico Forestieri
4781794e4e The mode changing math insets already provide the needed info, so
this is definitely better.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25284 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 20:25:44 +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
Enrico Forestieri
aace605564 Avoid 11 from_ascii calls
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25282 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 18:52:54 +00:00
André Pönitz
6a56be232d save a few allocations in from_ascii.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25281 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 18:27:11 +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
Pavel Sanda
162e176006 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25275 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 15:13:47 +00:00
Enrico Forestieri
31713932b2 Use a helper method in order to avoid code repetition.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25273 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 14:32:51 +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
Enrico Forestieri
90837aaf6e Fix bug 1527
http://bugzilla.lyx.org/show_bug.cgi?id=1527

* src/mathed/*.cpp:
	- Track mode (math or text) when outputting latex code and
	  properly wrap commands that are in the wrong mode with
	  either \ensuremath or \lyxmathsym.

* src/mathed/MathParser.cpp:
	- Parse \ensuremath and \lyxmathsym, such that exported latex
	  produces the same result when imported back.
	- Replace latex commands with corresponding unicode symbols.

* src/Encoding.cpp:
	- Implement Encodings::fromLaTeXCommand() for converting either
	  a single or a sequence of latex commands to unicode symbols.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25270 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 01:21:17 +00:00
Pavel Sanda
4044737b8d Cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25269 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 22:56:45 +00:00
Stefan Schimanski
978a357864 * doxygen for LFUN_MATH_MACRO
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25268 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 22:42:45 +00:00
Pavel Sanda
389d2f99c0 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25267 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 22:22:47 +00:00
Pavel Sanda
8ab36ddef7 Let LFUN_MATH_SPACE use various spaces we support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25266 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 22:12:40 +00:00
Jürgen Spitzmüller
483e1fcd19 ExternalTemplate.cpp:
- sort Lexer table.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25262 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 14:23:45 +00:00
Enrico Forestieri
593e06989a Fix bug 4951
http://bugzilla.lyx.org/show_bug.cgi?id=4951


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25261 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 14:21:53 +00:00
Pavel Sanda
61e2044d22 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25258 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 10:19:39 +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
Pavel Sanda
58ad19a232 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25251 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 00:44:17 +00:00
Pavel Sanda
cb5ce8348b Ressurect LFUN_MATH_SIZE, set toolbars accordingly.
http://thread.gmane.org/gmane.editors.lyx.devel/108469


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25250 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-14 18:38:14 +00:00
Pavel Sanda
5e603f5703 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25249 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-14 18:25:21 +00:00
Pavel Sanda
ce2380135b * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25248 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-13 14:15:13 +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
Pavel Sanda
2c44c3d031 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25244 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-13 00:03:36 +00:00
Pavel Sanda
87a64de1e7 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25243 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 20:16:51 +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
Pavel Sanda
dc4f254726 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25232 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 11:10:47 +00:00
Pavel Sanda
74fa517035 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25231 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-11 23:24:28 +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
ed12154445 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25228 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-11 09:49:43 +00:00
Pavel Sanda
154fe36eb2 Old, unused and handled elsewhere.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25227 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-11 09:05:46 +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
Pavel Sanda
d708dfe1fd * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25224 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-10 21:37:40 +00:00
Pavel Sanda
4315b23d61 cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25223 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-10 11:50:04 +00:00
Pavel Sanda
95b509baef * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25222 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-10 11:46:40 +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
Pavel Sanda
08b0aaea54 oops.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25220 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 22:34:50 +00:00
Pavel Sanda
6c9f298fa1 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25219 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 22:31:22 +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
7f4247e718 createLyXTmpDir(): Don't hardcode /tmp, use package().system_temp_dir() insetad.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25212 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 14:33:31 +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
430296f4af Hopefully fix http://bugzilla.lyx.org/show_bug.cgi?id=4918
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25207 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 13:05:24 +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
Pavel Sanda
b37f9a379e * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25204 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 11:54:35 +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
af7b5b5e26 More sensible error messages.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25202 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 09:57:10 +00:00
Abdelrazak Younes
48cd43fd51 First part of http://bugzilla.lyx.org/show_bug.cgi?id=4918
Prevent deletion of LyX temporary directory is this is not a LyX created directory.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25199 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 09:34:11 +00:00
Edwin Leuven
dbc07ef630 fix http://bugzilla.lyx.org/show_bug.cgi?id=4778
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25198 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 08:11:46 +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
fbcca09cf9 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25196 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 01:00:14 +00:00
Pavel Sanda
57c7833415 Next easy target.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25194 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-08 15:18:57 +00:00
Pavel Sanda
174511105c * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25193 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-08 14:35:43 +00:00
Pavel Sanda
6de6a69775 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25192 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-07 22:16:03 +00:00
Pavel Sanda
4f81608f6f * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25189 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-07 14:28:43 +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
Pavel Sanda
93b0edfc81 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25185 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-07 11:01:17 +00:00
Abdelrazak Younes
435e223f7c Fix http://bugzilla.lyx.org/show_bug.cgi?id=4933
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25182 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-07 09:06:18 +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
Pavel Sanda
8eec505ac9 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25172 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 18:24:16 +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
Jean-Marc Lasgouttes
3b99db73e4 Remove our in tree gettext version and replace with a mechanism to import it.
* autogen.sh: use autopoint to poulate the gettext code; simplify.

	* po/Rules-lyx: move the LyX-specific code of the Makefile here.

	* configure.ac: add magic incantation telling autopoint to import 
	gettext 0.16.1. Generate config.h in toplevel directory to please 
	gettext.

	* src/tex2lyx/Makefile.am:
	* src/client/Messages.cpp: compile fix

	* remove all files that came from a gettext distribution.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25167 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 15:25:55 +00:00
Abdelrazak Younes
896cb74fe2 Optimize the graphics loader: don't put the image in the queue if it is directly loadable and no conversion is needed. No more temporary preview image, yeah!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25166 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 13:30:38 +00:00
Abdelrazak Younes
e4a5278060 start image loading at metrics time.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25165 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 12:39:43 +00:00
Abdelrazak Younes
21f59b816b RenderGraphic::metrics(): return early.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25164 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 12:34:27 +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
Pavel Sanda
c6ecad82c9 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25160 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 11:06:23 +00:00
Pavel Sanda
ed1ca813ef LFUN_ERROR_NEXT removal.
http://www.nabble.com/LFUN_ERROR_NEXT-td17667485.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25159 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 10:29:14 +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
af050ab1b0 Some polish.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25156 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 09:33:24 +00:00
Abdelrazak Younes
b4213b9fe5 LFUN_INFO_INSERT: avoid static_cast.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25155 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 09:01:55 +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
Bo Peng
f5101ebec8 InsetInfo: allow select and copy of text inside InsetInfo, trigger the info dialog correctly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25151 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 03:25:36 +00:00
Richard Heck
95a5be2891 Prevent a crash when destroying insets whose Buffers have been closed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25150 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 03:11:56 +00:00
Jürgen Spitzmüller
0f07e83733 Wrap figures can also have subfloats. I simply forgot that when implementing subfloat support.
Well, here it is. Fixes one part of bug 4927. There's a remaining problem on conversion of onld subfigs with LaTeX content (e.g. \label). I'll fix that in a second step.

There's 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25148 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 16:05:52 +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
34739e59f7 The inset connection is not needed as the dialog will retrieve the inset from the cursor location.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25145 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 15:28:27 +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
Pavel Sanda
e327d63c91 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25141 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 12:24:27 +00:00
Abdelrazak Younes
e060218986 * InsetInfo: use Application::iconName().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25140 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 08:49:19 +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
Richard Heck
f65bb20bfe Forgot this bit.
The only remaining problem here is that, if you edit the TEXT that goes with
an InsetBibitem, then the information in the citation will not get updated
until something else invalidates the cache.  The only way to fix this, given
the existing system, would seem to be to check, every time anything gets 
edited, whether we're in a Bibliography environment or not, and if so to
invalidate the cache. I'm not sure that is worth it. Really, it points to a
more general issue with InsetBibitem, IMHO: It ought to be a kind of combined
inset, a hybrid of sorts between an InsetCollapsable and an InsetCommand. But
that would be for 1.7.x at least.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25138 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 06:59:35 +00:00
Richard Heck
8a64579d9c More cache fixing. Similar fix as for InsetBibtex, and I've renamed the key routine.
Unfortunately, we can't do a one-short fix for InsetCommand, requiring that it take
a Buffer & in the constructor, due to problems in mathed, specifically, here:
void InsetMathHull::label(row_type row, docstring const & label)
{
...
label_[row] = new InsetLabel(p);
if (buffer_)
label_[row]->setBuffer(buffer());
}
If InsetLabel has to have a Buffer, then buffer_ has to be set, which means InsetMathHull needs a Buffer. But then truckloads of these are created in Parser, where we don't really seem to have access to a Buffer.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25137 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 06:55:34 +00:00
Richard Heck
2ea039ba99 Fix some of the BibTeX cache issues. We need to be able to invalidate the cache when
InsetBibtex's get created and destroyed, or modified.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25136 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 06:42:53 +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
Richard Heck
45a8fed1d5 Fix bug 4899. My bad.
There are still some problems here, also related to the cache.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25134 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 05:46:49 +00:00
Richard Heck
ad76cb5c5f Give an error message here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25133 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 05:39:48 +00:00
Richard Heck
96fbd90e92 Typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25132 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 05:39:19 +00:00
Bo Peng
c6565b4209 Add InsetInfo::SHORTCUTS_INFO and ICON_INFO
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25129 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 03:41:35 +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
Pavel Sanda
8cc2f84269 Doxy - these are similar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25117 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 18:40:07 +00:00
Pavel Sanda
f1ab9fa147 Last rites for LFUN_BREAK_PARAGRAPH_SKIP, LFUN_DELETE_BACKWARD_SKIP, LFUN_DELETE_FORWARD_SKIP.
Closing bug http://bugzilla.lyx.org/show_bug.cgi?id=4492 .
Closing bug http://bugzilla.lyx.org/show_bug.cgi?id=4525 .



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25116 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 18:09:06 +00:00
Pavel Sanda
89ad02ee67 Last rites for LFUN_LIST_INSERT.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25115 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 17:43:13 +00:00
Pavel Sanda
7a3c484635 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25114 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 17:04:38 +00:00
Jean-Marc Lasgouttes
31cc9454ef fix compiler warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25113 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 09:57:37 +00:00