Commit Graph

14381 Commits

Author SHA1 Message Date
Richard Heck
6cde86e1d7 Save a few bytes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26516 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-24 13:32:09 +00:00
Richard Heck
5a579070c4 Doxy fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26515 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-24 13:20:05 +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
Pavel Sanda
cbb26a58aa Be at least consistent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26504 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-23 14:18:59 +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
Richard Heck
31e5a15695 Get some good debug output for function codes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26502 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-23 13:18:51 +00:00
Pavel Sanda
f7cf8c09d2 git is shouting at me because of whitespaces, so what can i do...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26498 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-22 15:41:05 +00:00
Pavel Sanda
29e02eff76 Colors for multi-author track changes.
Patch by Vincent.

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


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26497 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-22 15:30:26 +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
36f619ed25 BufferList::next() and previous(): don't cycle through 'internal' buffers.
This should fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5259


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26495 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-22 09:59:46 +00:00
Abdelrazak Younes
c0aeb567ce add FileName::extension() method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26494 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-22 09:44:44 +00:00
Abdelrazak Younes
8c4ffb42da Move maxlastfiles from Session.h to LyXRC.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26493 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-22 07:42:57 +00:00
Abdelrazak Younes
da1de0055e Get rid of unused SessionInfoSection.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26492 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-22 07:30:48 +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
Enrico Forestieri
1cd01f0db4 On Vista, if a file type is not registered, AssocQueryString() returns
information about the "Unknown" application instead of admitting that
nothing is registered. The solution is to add ASSOCF_INIT_IGNOREUNKNOWN
to the flags parameter. Also update dead URLs.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26488 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-22 00:07:48 +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
b35d3bfc5c Abdel can't seee anythin wrong with that
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26472 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-21 01:39:00 +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
4829f3bd39 compile fix, sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26462 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-20 07:38:28 +00:00
Abdelrazak Younes
a62d0ab1bf Small deboostification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26461 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-19 21:18:18 +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
Jürgen Spitzmüller
0bb14ddfc7 get rid of two compiler warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26444 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 16:29:27 +00:00
Jürgen Spitzmüller
81d02909cf Fix bug 448:
* src/OutputParams.{cpp,h}:
	- new param isLastPar, indicating if the current paragraph is the last in a given inset/buffer
* src/output_latex.cpp:
	- set isLastPar
* src/Paragraph.cpp:
	- noTrivlistCentering also in tabular cells
	- in the last par, use alignment switch instead of environment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26443 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 14:51:16 +00:00
Jean-Marc Lasgouttes
bf02b246f9 LyXFunc::dispatch: do no close the undo group too early
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26442 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 14:34:33 +00:00
Jean-Marc Lasgouttes
b23bdfa00b use Length::inPixel and not Length::inBP to get screen lengths
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26441 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 13:59:35 +00:00
Jean-Marc Lasgouttes
b0a3273bac BufferView::mouseDispatch: make sure to create an undo group
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26440 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 13:44:54 +00:00
Jean-Marc Lasgouttes
7b9bfecb2f another recordUndoFullDocument bits the dust
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26439 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 10:47:28 +00:00
Jean-Marc Lasgouttes
00cca05443 improve debug info
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26438 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 10:46:31 +00:00
Jean-Marc Lasgouttes
a20a4f2ca0 no need to record full document here
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26437 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 10:40:53 +00:00