Commit Graph

1876 Commits

Author SHA1 Message Date
André Pönitz
88293cbcfb a few more docstring<->QString conversions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23493 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 23:10:53 +00:00
Uwe Stöhr
32a3ce2546 GuiToolbar.cpp: compile fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23492 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 22:41:56 +00:00
André Pönitz
2b7ad27227 extend the idea of the previous patch a bit...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23490 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 20:48:19 +00:00
Stefan Schimanski
e636df4610 * preparation for the layout categories. Now the separator is just
drawn above the "-- Separator --" line. As soon as the category
  information is available the same code will draw the separator at
  every category change in the list.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23489 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 20:43:55 +00:00
Stefan Schimanski
3225232f86 * fix wrong slot name
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23488 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 20:34:09 +00:00
André Pönitz
92900af75d merge qlkey.h into the only .cpp file #including it
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23487 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 20:31:49 +00:00
André Pönitz
a500e62902 do what the FIXME suggested
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23486 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 20:11:47 +00:00
Stefan Schimanski
cdf8979160 * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23485 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 19:00:26 +00:00
Stefan Schimanski
bf96153185 * is.at is const, is[] is a deep non-const copy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23484 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 19:00:11 +00:00
Stefan Schimanski
107faacf0e * clear filter when showing popup of layout list
* show filter hint in status bar


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23481 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 16:02:18 +00:00
Stefan Schimanski
cfac27699a * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23480 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 15:45:43 +00:00
Stefan Schimanski
791b82457d * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23479 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 13:07:01 +00:00
Stefan Schimanski
00bcfe78bd * adjust layout list size to contents
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23478 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 12:26:50 +00:00
Stefan Schimanski
d749ce138d * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23477 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 12:04:46 +00:00
Stefan Schimanski
cafaf075e5 * even when sorted alphabetically keep the separation of standard and module layouts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23476 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 12:02:18 +00:00
Stefan Schimanski
1247839690 * draw the separator as a menu separator
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23475 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 12:02:00 +00:00
Stefan Schimanski
2280e16db4 * let the cleanlook style show the check mark. It normally ignores it for comboboxes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23474 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 12:01:40 +00:00
Stefan Schimanski
6da3d44268 * Leave page size at it is to avoid strange layout effects on Mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23473 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 12:01:27 +00:00
Stefan Schimanski
9c05593876 * rich text item delegate to draw the layout filter as underline
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23472 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 12:00:56 +00:00
Pavel Sanda
110090e435 * hyperref: add check for newline chars in user input.
http://bugzilla.lyx.org/show_bug.cgi?id=4611


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23469 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 01:14:15 +00:00
Pavel Sanda
bddf480792 Comments from Andre'.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23463 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 21:45:54 +00:00
Stefan Schimanski
d8df65532e * make lyx look a bit more like a Mac application by removing frames around the work area.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23459 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 18:53:44 +00:00
Abdelrazak Younes
37b429e347 Add citations to Navigator.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23458 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 17:47:47 +00:00
Jean-Marc Lasgouttes
0320d29531 fix some compiler warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23443 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 14:04:59 +00:00
Stefan Schimanski
de518abff5 * even setModel can trigger focus events. So move also those into
asynchronous handlers.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23438 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 12:44:48 +00:00
Pavel Sanda
6b2d20c8a6 ToC tree redrawing after resets.
http://bugzilla.lyx.org/show_bug.cgi?id=3740


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23436 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 12:39:03 +00:00
Abdelrazak Younes
b45b4a0e87 GuiView: Avoid unnecessary GUI updates if it was the current view already.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23431 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 10:43:35 +00:00
Stefan Schimanski
4423a8a6f5 * sorting depends on translated string, i.e. column 0 of the layout model
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23429 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 09:54:53 +00:00
Stefan Schimanski
b36c8ae173 * fix sorting of layout names
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23428 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 09:47:11 +00:00
Stefan Schimanski
cabd59db2c * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23427 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 09:46:49 +00:00
Stefan Schimanski
3931ff3f2e * custom keyboard search/filter which shows only those layouts whose
names include the entered character sequence in the same order. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23426 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 09:46:35 +00:00
Stefan Schimanski
a90096d4d5 * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23425 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 09:43:42 +00:00
Stefan Schimanski
b4466b63f6 * fix another crash due to the redraw opti-/minimization during
completion. We have to show and hide the popup asynchronously with a
singleshot timer. Otherwise it might trigger accesses to the coord
cache although the metrics have not been done yet.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23424 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 09:43:32 +00:00
Stefan Schimanski
a4b2404cb1 * work around for the bad memory of the treeview about the column width
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23423 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 09:43:16 +00:00
Stefan Schimanski
f847fb64f8 * Hide popup asynchronously because we might be here inside of
LFUN dispatchers. Hiding a popup can trigger a focus event on the
  workarea which then redisplays the cursor. But the metrics are not
  yet up to date such that the coord cache has not all insets yet. The
  cursorPos methods would triggers asserts in the coord cache then.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23416 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 15:44:08 +00:00
Stefan Schimanski
7406991fd4 * fix assert with 4.2.x when setting a null item delegate on an item view.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23414 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 15:10:48 +00:00
Abdelrazak Younes
f5c54d8b69 * GuiWorkArea::focusInEvent(): avoid unnecessary full redraw if the work area was already current.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23409 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 11:04:17 +00:00
Jürgen Spitzmüller
2a65cd5fca * WrapUI.ui:
- redo with Qt 4.2 designer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23398 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 17:28:41 +00:00
Uwe Stöhr
3db3b9930a fileformat incremented to 317:
support for floating placement settings for wrap floats

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23394 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 17:12:22 +00:00
Abdelrazak Younes
2f0b39a495 Bug fix bis: disconnect and clearParams for GuiDialog based dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23388 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 15:19:03 +00:00
Abdelrazak Younes
ce7e4a4b78 Bug fix: disconnect and clearParams for GuiDialog based dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23387 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 15:06:55 +00:00
Uwe Stöhr
28fb5e3d81 GuiDocument.cpp: add linebreaks to error messages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23384 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 12:36:30 +00:00
Jürgen Spitzmüller
ac1977018b ** subfig support **
* src/Buffer.cpp:
* development/FORMAT:
	- bump format to 316.

* src/insets/InsetFloat.{cpp, h}:
	- let nested floats be subfloats
	  NOTE: docbook support is missing.
* src/insets/InsetCaption.{cpp, h}:
	- handle subfigure captions
* src/insets/InsetGraphics.cpp:
* src/insets/InsetGraphicsParams.{cpp, h}:
	- remove old subfigure support

* lib/chkconfig.ltx:
* lib/doc/LaTeXConfig.lyx:
	- check for subfig instead of subfigure.

* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- conversion/reversion routines for subfig -> subfloats
	  NOTE: the reversion routine still has bugs.

* src/Counters.{cpp, h}: 
	- add identifiers for subfloats

* src/LaTeXFeatures.{cpp, h}:
	- support for subfig

* src/TextClass.cpp:
	- set up subfloat counter for all custom floats.

* src/frontends/qt4/GuiGraphics.cpp:
* src/frontends/qt4/ui/GrahicsUi.ui:
	- remove subfigure UI.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23381 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 11:30:50 +00:00
Abdelrazak Younes
bced544674 Hopefully fix monolithic build.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23380 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 10:20:13 +00:00
Richard Heck
ea2c38bbcc Fix bug 4594.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23376 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-01 22:08:16 +00:00
Richard Heck
9dfbadcb2c Improve handling of local layout files. There are two bugs here that still need fixing, though: 4593 and 4594.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23372 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-01 16:32:16 +00:00
Stefan Schimanski
8c4b08920e * bug fix to only do paragraph redraws, not fullscreen
* avoid an extra redraw due to completion when typing


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23349 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 09:18:46 +00:00
Abdelrazak Younes
72b0b23590 Introduce BufferException so that we don't crash if a problem affects only current Buffer. Instead we now just do an emergency save and we close it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23346 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 08:10:51 +00:00
Richard Heck
2b3bd7b5f4 This is the last of the commits that hopes to enforce the distinction between "layout files" and "document classes" that was introduced by the modules code. For the most part, these changes just refactor code from TextClass between: (a) a TextClass base class; (b) a LayoutFile subclass, which represents the information in a .layout file; and (c) a DocumentClass subclass, which represents the layout information associated with a Buffer---a LayoutFile plus Modules. Methods from TextClass have been apportioned between the three classes depending upon what is needed where, and signatures have been changed where necessary so that the right kind of class is required.
At this point, there are no simple TextClass objects in the main LyX code, and it is impossible to create them, since the TextClass constructor is protected. Only LayoutFile and DocumentClass objects can be constructed, and for the most part these are constructed only by their respective containers: BaseClassList and DocumentClassBundle. There is an exception: LayoutFile does have a public default constructor, but if anyone knows how to make it go away, please do.

There will be one or two more commits along these lines, but these will be simple renamings. For example, BaseClassList should be LayoutFileList.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23343 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 02:45:33 +00:00
Richard Heck
2c382f2f47 More work towards type safety regarding TextClass's. A couple bugs have been fixed here, too, discovered along the way.
Note that we no longer rely upon BaseClassList to be sorted. This would allow layout descriptions---such as "article (AMS)"---to be translated, and the ordering of the list in Document>Settings will then follow the translations.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23334 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 21:04:55 +00:00