Commit Graph

10888 Commits

Author SHA1 Message Date
Abdelrazak Younes
e17cb17ef9 Add some comments WRT to painting strategy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16003 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-21 09:04:54 +00:00
Jean-Marc Lasgouttes
7c1b006288 * text.C (erase): when deleting a text inset in change-tracking
mode, make the cursor jump over it; avoid crash in setCursorIntern
	by using the right LyXText.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16001 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-20 18:47:27 +00:00
Bo Peng
59f15f2d94 Scons: set uic parameter -tr lyx::qt_ properly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16000 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-20 17:26:26 +00:00
Abdelrazak Younes
6ed456cfdf Fix full screen repaint on Buffer-load.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15999 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-20 17:10:44 +00:00
Abdelrazak Younes
37ee9727f7 Fix crash when closing the last buffer and add a FIXME.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15998 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-20 16:43:36 +00:00
Abdelrazak Younes
34600f5055 * Status.15x: updates.
* buffer.h: changed() signal do not have an argument now.

* BufferView.C:
  - setBuffer(): changed update() call to updateMetrics().
  - update(): sanitize how the flags are used.
  - scrollDocView():  add a call to updateMetrics() at the end.

* LyXFunc::dispatch(): adjust changed() signal emission.

* LyXText/text3.C:
  - cursorPrevious(): delete BufferView::update call; adjust cursor flag.
  - cursorNext(): ditto.

* frontends/LyXView.C: adjust Buffer::changed() signal connection.

* frontends/WorkArea.[Ch]:
  - redraw(): no need to re-update the metrics if we don't change views.
  

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15997 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-20 14:42:18 +00:00
Jean-Marc Lasgouttes
502f07307f * MathMacroArgument.C (MathMacroArgument): do not use convert<> since
it may be too slow.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15996 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-20 14:07:30 +00:00
Georg Baum
f966f2d1b7 define HAVE_MODE_T if the compiler supports the mode_t type.
This repairs lyx::support::chmod().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15995 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-20 09:12:09 +00:00
Bo Peng
2511bc6f03 INSTALL.Win32, clarify how to run build_msvc.bat
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15994 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 23:41:14 +00:00
Peter Kümmel
3edb7ce86a define HAVE_MODE_T always with HAVE_CHMOD, don't test until it is necessary
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15993 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 19:58:48 +00:00
Edwin Leuven
b3a449b088 * repair broken layout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15992 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 19:43:36 +00:00
Michael Schmitt
0b2e088d72 * Status.15x: inset-dissolve doesn't consider change tracking
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15991 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 18:36:23 +00:00
Bo Peng
7880841888 BUG 686: delete empty math box with delete/backspace key
* src/cursor.C: remove nested empty math box
	* src/mathed/InsetMathNest.C: remove the whole empty math box if it 
	  can not be deleted from within


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15990 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 18:33:13 +00:00
Michael Schmitt
5bdedb1fc0 * Status.15x: add showstopper
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15989 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 18:26:54 +00:00
Edwin Leuven
17bf0023c7 * show symbol panels in proper size when detached from math panel (always layed out in 5 cols)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15988 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 17:12:33 +00:00
Michael Schmitt
815da6867e * Status.15x: add new bug reported by Peter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15987 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 16:59:47 +00:00
Bo Peng
c8429d4bbc Detect mode_t for safe use of chmod, and for scons/msvc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15985 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 13:58:39 +00:00
Michael Schmitt
cac3941537 * po/*.po: remerge after fix for toolbar names
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15984 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 13:40:39 +00:00
Michael Schmitt
946ede62d0 * frontends/qt4/GuiWorkArea.C: make "unknown version" translateable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15983 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 13:35:16 +00:00
Michael Schmitt
7dc674a7aa * po/Makefile.in.in: fix parsing of toolbar names
* po/POTFILES.in: update file list


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15982 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 13:33:18 +00:00
Michael Schmitt
653c52e2d2 * insets/insetbase.h:
* buffer.C:
	* LaTeX.C:
	* frontends/qt4/ui/QPrefFileformatsUi.ui:
	* MenuBackend.C: fix typo: "can not" => "cannot"


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15981 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 12:43:22 +00:00
Michael Schmitt
55249b6dbd * lib/tex/lyxchess.sty:
* lib/doc/Customization.lyx:
	* lib/doc/UserGuide.lyx:
	* lib/examples/multicol.lyx: fix typo "can not" => "cannot"


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15980 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 12:40:06 +00:00
Michael Schmitt
64c54d9678 * po/cs.po: update by Pavel Sanda
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15979 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 12:36:45 +00:00
Michael Schmitt
9c5b449c04 * examples/cs_splash.lyx: update by Pavel Sanda
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15978 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 12:35:26 +00:00
Michael Schmitt
27cb3b9bc1 * doc/cs_Tutorial.lyx: update by Pavel Sanda
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15977 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 12:34:08 +00:00
Michael Schmitt
1a4b549a53 * lib/lyx2lyx/lyx_1_4.py:
* lib/examples/noweb2lyx.lyx: fix typo: "can not" => "cannot"


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15976 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 12:32:38 +00:00
Peter Kümmel
cb78985841 first try it on the Mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15975 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 12:24:40 +00:00
Peter Kümmel
b817032684 we rely on Windows and maybe Linux on a Qt bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15974 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 12:23:36 +00:00
Peter Kümmel
d32701179e check if theApp is valid
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15973 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 11:10:04 +00:00
Abdelrazak Younes
35204f8f33 hopefully fix tex2lyx linking.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15972 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-18 21:08:16 +00:00
Bo Peng
c639bb976d add an extra blank
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15971 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-18 20:47:53 +00:00
Bo Peng
65e5f1e6dc Display minibuffer with command-execute (M-x)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15970 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-18 20:38:41 +00:00
Abdelrazak Younes
8346fb6a47 add comment about location of the implementation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15969 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-18 20:28:18 +00:00
Abdelrazak Younes
0e579405ca hopefully fix client linking.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15968 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-18 20:24:47 +00:00
Abdelrazak Younes
7aa50e8f2b * lyx_main.[Ch]
- merge exec() and priv_exec()
  - LyX constructor is now public.
  - there is no global singleton_ object anymore, only a pointer.
  - IconvProcessor(): new utf8 to ucs4 convertor.

* main.C: instantiate a LyX object and exec() it. No more use of static methods.

* docstring.C: use utf8ToUcs4() instead of a static variable.

* unicode.h: declare extern utf8ToUcs4().



  

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15967 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-18 17:47:12 +00:00
Abdelrazak Younes
eea50a7542 Bug fixes from Ugras Baran:
when iconpalette detached from the math dialog, the iconpalette widget
width may become too large to fit to the screen.

when detached resized to a too small size, icons overlap.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15966 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-18 16:19:18 +00:00
Georg Baum
34a773b8cf Split FileName into FileName and DocFileName. FileName will be used for all
file names, and DocFileName contains the special extensions for documents,
included figures etc.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15965 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-18 12:49:47 +00:00
Georg Baum
5ae93f3689 add bug from Enrico
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15964 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-18 11:38:11 +00:00
Bo Peng
eb939a9b76 Scons: adopt Georg's solution for tex2lyx/gettext
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15963 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-18 03:04:42 +00:00
Enrico Forestieri
22be03e68c Avoid processing empty lines when reading the symbols file
* src/mathed/MathFactory.C
	(initSymbols): skip a line when it is empty or a comment.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15961 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-17 20:43:49 +00:00
Georg Baum
61c43883ba Document pasteParagraphList as hinted by Jean-Marc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15960 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-17 19:52:45 +00:00
Enrico Forestieri
fa2840e72b Add locale facet in order to input numbers from wide streams on systems
where sizeof(wchar_t) == 2

	* src/support/docstring.C:
	- New class ascii_num_get_facet for inputting numbers from idocstreams.
	- Add the ascii_num_get_facet facet to the locale initializer.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15959 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-17 19:27:42 +00:00
Abdelrazak Younes
c66d2f1ee5 Optimize drawing.
* BufferView:
  - update(): returns a pair of bools in order to inform for singlePar cases.
  - workAreaDispatch(): ditto and simplify the logic by using cursor update flags.

* text.C
  - breakParagraph(): change the cursor update flag as needed.
  - insertChar(): ditto.
  - erase(): ditto
  - redoParagraph(): now returns true if there is a height change.

* text3.C: dispatch():
  - initialize the cursor flag at the beginning
  - LFUN_MOUSE_PRESS: no need to update.
  - LFUN_MOUSE_RELEASE: ditto.
  - add some FIXMEs and comments.

* LyXFunc::dispatch(): simplify the BufferView update.

* insets/insetcollapsable.C: clarify and simplify the logic in doDispatch().

* WorkArea::dispatch(): redraw only if needed.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15958 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-17 17:42:52 +00:00
Abdelrazak Younes
3bc4d28449 Revert change in rev. 15955 because as Georg says:
This fix will create extra translator work, and nobody will remmeber that
bformat should be used instead of your solution once the real problem is
fixed. If you use from_ascii instead of from_utf8 everything is OK. utf8
can be wrong as encoding for files anyway, so for now we require that files
are pure ascii.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15957 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-17 17:28:14 +00:00
Abdelrazak Younes
2ea833ac71 Incomplete TocDialog slider implementation from Ugras Baran.
* QTocDialog::getIndexDepth(): new method.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15956 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-17 17:19:43 +00:00
Abdelrazak Younes
4f5432f427 * docstring.C: add a FIXME in utf8_to_ucs4() WRT static IconvProcessor and Mac
* lyx_main.C:
  - LyX::prepareExit(): avoid utf8_to_ucs4() conversion at this late stage because this can cause problem on Mac.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15955 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-17 16:58:32 +00:00
Abdelrazak Younes
146631a5c7 Fix Mac crash on exit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15954 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-17 15:24:26 +00:00
Georg Baum
1c3755244f Fix bug 2393 (from Dov Feldstern)
* src/lyxtext.h
	* src/text.C
	(LyXText::charsTranspose): New method for transposing characters

	* src/text.C
	(LyXText::dispatch): Call charsTranspose for LFUN_CHARS_TRANSPOSE


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15951 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-17 09:03:30 +00:00
Georg Baum
8b9ccb51bf add more bugs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15950 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-16 15:18:28 +00:00
Abdelrazak Younes
a6933a9b4e Bug fixes from Ugras Baran:
Following patch corrects some misbehavior in TOC dialog:

- When clicking on Toc insets, dialog switches to correct list.
- cursor goes to correct entry when clicked..
- some other fixes..


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15949 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-16 12:37:55 +00:00