Commit Graph

5417 Commits

Author SHA1 Message Date
Richard Heck
83f0903b4a Optimize GuiCitation a bit by not checking the cache so often.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25716 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-19 17:23:13 +00:00
Richard Heck
55238f4dfd Don't need to do this check, as getInfo() will return an empty string in this case, anyway.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25715 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-19 16:36:14 +00:00
Jürgen Spitzmüller
89af456100 * GuiView.cpp:
- disable non-working splitting actions (bug 5044).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25712 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-19 13:17:46 +00:00
Abdelrazak Younes
9f433432dd invert crtl+wouse wheel zoom direction
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25684 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-17 08:36:02 +00:00
Jürgen Spitzmüller
eb0e3ff7b1 * GuiToolbar.cpp (updateContents):
- properly disable layout combo (bug 5054)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25677 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 21:35:13 +00:00
Richard Heck
c2a28fa239 Reinstate the commented out check, now that I've figured out how to do it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25673 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 16:05:35 +00:00
Richard Heck
97a9667f6e Clean up the unknown layout stuff some more. Please test to make sure this works with translated layout names, especially when one of them is "unknown". The use of "unknown" with RTL is also wrong, probably, as it will appear on the wrong side. But I'm not sure how to fix that.
BTW, to create a file with an "unknown" layout for testing, just take any LyX file, open it with vi, and replace something like:
\begin_layout Section
with
\begin_layout BlubberStuff
That's probably unknown. ;-)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25671 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 15:52:10 +00:00
Richard Heck
741bd1221a Fix for bug 5053. There are still some serious problems here, though, as (a) "unknown" cannot be translated and (b) the way the code was re-written, it will fail if unknown and translated layout names are used. This is because it completely subverts the use of a multicolumn model. I'll try to fix that, too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25670 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 15:29:00 +00:00
Abdelrazak Younes
5013a5cef9 oups!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25660 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 09:46:07 +00:00
Abdelrazak Younes
79036bcede fix http://bugzilla.lyx.org/show_bug.cgi?id=5002
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25659 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 09:43:46 +00:00
Pavel Sanda
b3cd09dcff We have locale debug level, so put it there.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25625 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 23:54:26 +00:00
Pavel Sanda
9c87bee68d Introduce Debug::SELECTION mainly for copy/paste primary-selection debugging.
Up to now it was hell to debug it, since the selection messages was under different
debug classes and the messages also get completely lost from mouse action events.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25624 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 23:47:54 +00:00
Abdelrazak Younes
79beb91e3a Sanitize LyX singleton access by getting rid of ref() and cref() methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25597 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 08:35:00 +00:00
Abdelrazak Younes
33b75ac079 Fix http://bugzilla.lyx.org/show_bug.cgi?id=5011
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25562 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-11 09:35:05 +00:00
Jürgen Spitzmüller
dcc4d58b66 *** Implement GUI names for encodings (part of bug 4971) ***
* lib/encodings:
	- add new column "GUI names"

* src/Encoding.{cpp,h}:
	- read in and handle GUI names

* src/frontends/qt4/GuiDocument.cpp:
	- display GUI names instead of LaTeX names

* po/lyx_pot.py:
* po/Rules-lyx:
* development/scons/SConstruct:
	- add encoding GUI names to the po files.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25558 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-11 08:56:17 +00:00
Bo Peng
763ef015ce Improve the local layout feature by better handling of unknown textclass, unknown layouts, and switch between textclasses.
* src/TextClass.h[.cpp]: add addLayoutIfNeeded() and createDefaultLayout()
	* src/Layout.h[.cpp]: add unknown_ to mark if a layout is a default layout for an unknown one.
	* src/LayoutFile.cpp: add addDefaultClass and change addLayoutFile to addLocalLayout.
	* src/Text.cpp: add unknown layouts that are not recognizable by a new textclass.
	* src/frontends/qt4/GuiToolbar.cpp: display (unknown) for unknown layouts.
	* src/frontends/qt4/GuiDocument.cpp: restore 'browse layout' button.
	* src/frontends/qt4/ui/LaTeXUi.ui: restore 'browse layout' button.
	* src/CutAndPaste.cpp: do not convert unknown layouts from pasted text
	* src/BufferParams.cpp: add a default textclass when a document with unknown textclass is loaded.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25555 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-11 02:43:02 +00:00
Pavel Sanda
ff705e9b85 Add comment to avoid future clashes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25545 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 22:14:29 +00:00
Richard Heck
780bce0f96 Rename empty layout stuff to plain layout stuff.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25541 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 17:41:52 +00:00
Abdelrazak Younes
11e1821284 Fix crash when tab group is closed while Outline is opened.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25537 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 12:44:50 +00:00
Abdelrazak Younes
ab5a4d4f0f reverting 25454 and fix http://bugzilla.lyx.org/show_bug.cgi?id=4758; again!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25534 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 11:53:57 +00:00
Pavel Sanda
052b9a8874 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4943 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25503 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 23:41:19 +00:00
Jürgen Spitzmüller
939bb2f20c * GraphicsUi.ui: re-save in qt designer 4.1 format.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25473 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 10:17:48 +00:00
Uwe Stöhr
12d7a6d952 GraphicsUi.ui: don't open the dialog always with the Options tab but with the Graphics tab, fixes a regression
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25461 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-06 14:54:54 +00:00
André Pönitz
7934e9c224 wrong editor settings from wrong project...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25460 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-06 10:56:47 +00:00
André Pönitz
6ee64a4812 fix crash.
that's not a proper solution, though.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25459 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-06 10:55:47 +00:00
Peter Kümmel
cb93ae8b61 fix memory leak
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25454 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-05 09:42:30 +00:00
Jürgen Spitzmüller
2c5d1e9ebe * src/frontends/qt4/GuiDocument.cpp:
* src/frontends/qt4/ui/LaTeXUi.ui:
	- hide the "browse local layout" button as discussed on
	  http://bugzilla.lyx.org/show_bug.cgi?id=4812
	  because the local layout feature can result in dataloss.

	  Whether the feature itself should be removed for 1.6.0 has
	  to be discussed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25452 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-05 08:54:48 +00:00
Abdelrazak Younes
639abeae66 Work around bug http://bugzilla.lyx.org/show_bug.cgi?id=4846
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25440 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-04 10:16:54 +00:00
Abdelrazak Younes
66bd5be5fc up-port fixes and cleanups from BRANCH.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25408 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-01 07:28:37 +00:00
Abdelrazak Younes
048efafe3c Fix wheel mouse scrolling bug when speed is set to 'one page at a time'.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25406 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-30 17:18:41 +00:00
Abdelrazak Younes
a54850d762 GuiApplication::resetGui(): reset as many things as possible, including menus and toolbars (not sure about Mac global menubar yet). This means that except for already opened dialog, all ui rc settings are taken into account without the need to restart.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25390 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 18:03:38 +00:00
José Matox
1b2b5726be Fix missing include (QMessageBox) and clean extra whitespaces.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25388 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 15:02:18 +00:00
Abdelrazak Younes
d748af0299 Add a preference combo box for the preferred user interface language. The rc variable gui_language now require a language name and not its code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25387 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 13:32:27 +00:00
Abdelrazak Younes
1c83bf9420 GUI language via RC: some bug corrections.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25386 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 11:10:10 +00:00
Abdelrazak Younes
162b3b3b30 Fix toc and source-view initial showing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25384 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 07:23:30 +00:00
Pavel Sanda
07af8fecb5 * Doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25383 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 23:07:38 +00:00
Jean-Marc Lasgouttes
71860fbc86 suppress warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25374 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 09:52:43 +00:00
Abdelrazak Younes
e9e90558db forgot this in prev commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25339 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 13:36:35 +00:00
Abdelrazak Younes
c75ff524bf Fix ScrollBarAsNeeded
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25338 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 13:29:25 +00:00
Abdelrazak Younes
46cb120300 Fix http://bugzilla.lyx.org/show_bug.cgi?id=4829
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25336 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 12:31:03 +00:00
Abdelrazak Younes
c3727bc147 fix initial outline disabling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25330 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 06:43:43 +00:00
Abdelrazak Younes
efd6dc8a0c One view/doc: more fixes and cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25329 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 06:35:42 +00:00
Abdelrazak Younes
2ab92aba67 retro commit a bit. Should hopefully fix the crashes on Mac.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25328 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 20:48:49 +00:00
Abdelrazak Younes
65b37dfbb8 Some more fixes to multi-windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25327 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 17:30:30 +00:00
Abdelrazak Younes
4441cd8a4a GuiView::on_lastWorkAreaRemoved(): the window closing doesn't have to be delayed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25326 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 15:55:34 +00:00
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
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
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