Commit Graph

5549 Commits

Author SHA1 Message Date
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