Commit Graph

10960 Commits

Author SHA1 Message Date
Peter Kümmel
19df31aa0a --style=Andre
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16134 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-02 17:32:15 +00:00
Georg Baum
ed99f752f9 more unicode filenames
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16133 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-02 16:07:15 +00:00
Abdelrazak Younes
591d47a64b * qt_helpers.h:
- ucs4_to_qchar(): add a FIXME and an assertion

* GuiFontMetrics: replace the table based cache with two QHash based cache. With this change, the speed overhead is not negligible (exact same score with the UserGuide test) and the required additional memory is minimal (maybe one or two megabytes).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16132 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-02 15:54:49 +00:00
Michael Schmitt
b2e5732971 * po/de.po: remerge (no new messages)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16131 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-02 15:42:10 +00:00
Michael Schmitt
5b3f0b69f4 * Status.15x: add two new bugs (one from Kornel); rearrange bugs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16130 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-02 14:23:06 +00:00
Abdelrazak Younes
52dc269fae CharMetrics: use short int instead of int. This halves the memory required for the font metrics cache.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16129 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-01 23:45:06 +00:00
Georg Baum
c0a7417f20 fix display of hungarian umlaut
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16128 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-01 21:13:47 +00:00
Georg Baum
5afcd541fd more unicode filenames
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16127 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-01 20:09:08 +00:00
Abdelrazak Younes
5f4e6d9a7c * GuiFontMetrics
- add constants instead of hard-coded values.
  - add assertions and comments for out of range values.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16126 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-01 17:23:58 +00:00
Enrico Forestieri
15d7c9000b Added one more bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16125 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-01 16:51:03 +00:00
Abdelrazak Younes
8f98ec35e4 This commit fixes the following bug:
http://bugzilla.lyx.org/show_bug.cgi?id=2900

The only drawback is that it requires about 20Mo extra-memory when loading the UserGuide. If it turns out to be too much, we can switch to a QHash based solution instead of a table.

* dimension.[Ch]:
  - Dimension(LyXFont const, char_typec): new ctor
  - set(LyXFont const & font, char_type c): new method.

* frontends/FontMetrics.h:
  - width(char_type): is now a pure virtual method.

* GuiFontMetrics:
  - CharMetrics: new structure;
  - the metrics cache now also cache ascent and descent. This is especially useful for mathed.

* MathSupport.[Ch]:
  - mathed_char_dim(): deleted. We now use Dimension::set() directly instead.

* rowpainter.C: fixe empty space.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16124 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-01 16:12:24 +00:00
Peter Kümmel
7cf79bc298 remove gcc warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16123 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-30 20:03:28 +00:00
Georg Baum
875a88023b more unicode filenames
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16122 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-30 16:59:50 +00:00
Georg Baum
05a6f9ffbe Fix spurious error message about nonexisting directory.
* src/buffer.C
	(Buffer::save): Only try to make a backup if the buffer file already
	exists. The try ... catch mechanism is fine, but when it was
	introduced ot was overseen that copying a file could not only fail
	because the destination dir does not exist, but also because the
	source does not exist.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16121 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-30 15:21:23 +00:00
Peter Kümmel
23a58cd5d5 remove forgotten theApp variables
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16120 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-30 08:42:29 +00:00
Peter Kümmel
67f2a91dcc FIXME: remove global variable theApp
This pointer was one reason for the Mac crashes because it not always had 
the same value as the application_ smart pointer



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16119 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-30 00:04:51 +00:00
Peter Kümmel
30611541cb restore old /W3 warning level
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16118 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 23:51:22 +00:00
Peter Kümmel
f4c32de361 remove size_t/int warning: QString doesn't use size_t so we must cast it to avoid the warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16117 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 22:57:34 +00:00
Peter Kümmel
a73732e0ec switch to default /W4 for msvc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16116 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 22:36:43 +00:00
Peter Kümmel
9feb262948 Fix crash on Mac
Part 3: comment about further investigations 
    


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16115 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 21:57:46 +00:00
Georg Baum
d174432777 remove unused variable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16114 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 21:54:33 +00:00
Georg Baum
868dd237d1 fix compiler warning:
../../../../src/frontends/qt4/GuiView.C:142: warning: comparison between signed and unsigned integer expressions
../../../../src/frontends/qt4/GuiView.C:144: warning: comparison between signed and unsigned integer expressions
../../../../src/frontends/qt4/GuiView.C:146: warning: comparison between signed and unsigned integer expressions


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16113 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 21:52:56 +00:00
Georg Baum
bb2dc9c83f convert some more filenames for unicode
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16112 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 21:47:37 +00:00
Abdelrazak Younes
1116115055 Fix copy&paste bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16111 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 21:39:06 +00:00
Peter Kümmel
1000b8d218 Fix crash on Mac, now the strange part
Part 2: avoid pure virtual function,
          if (theApp)
               theApp->unregisterSocketCallback(fd_);
          does not help, we've tested it!
          Without a Mac it is hard to find a better solution
    



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16110 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 21:36:39 +00:00
Georg Baum
cdfed1ce7d remove unused stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16109 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 21:34:24 +00:00
Peter Kümmel
5eccf6ebc0 Fix crash on Mac
Part 1: don't dereference untested pointers



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16108 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 21:27:54 +00:00
Enrico Forestieri
12f83da64f Avoid an infinite loop when using the -geometry option on *nix
* src/lyx_main.C
	(easyParse): decrement the loop variable only when remove > 0


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16107 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 19:44:13 +00:00
Peter Kümmel
7fb25526d5 also support the geometry option on Windows + Qt/Windows
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16106 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 16:52:44 +00:00
Peter Kümmel
9dfe4a10d3 also support the geometry option on Windows + Qt/Windows
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16105 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 16:45:38 +00:00
Abdelrazak Younes
44b0bd4eee Fix keyboard navigation with graphics insets.
* lyxtext.h/text2.C:
  - LyXText::getPitNearY(): this is non const anymore. The CoordCache will be updated automatically if the paragraph is not found in there.
  - LyXText::checkInsetHit(): this is non const anymore because of the above.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16104 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 13:58:08 +00:00
Enrico Forestieri
517778ab09 Better using a space instead of '\0' in the num_get facet.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16103 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 13:39:49 +00:00
Peter Kümmel
c3459952a6 don't forget to translate
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16102 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 10:25:46 +00:00
Peter Kümmel
ad484c922b Windows doesn't support the geometry option
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16101 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 10:10:07 +00:00
Peter Kümmel
dfb079e778 add tool bar popup with three icon sizes: small, normal, big
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16100 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 10:04:35 +00:00
Jean-Marc Lasgouttes
e1771f375b * qt4/GuiApplication.C: remove ad-hoc Mac OSX Carbon code to handle
kAEOpenDocuments ApleEvent.
	(event): new method to do the same thing using qt4 built-in support.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16099 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 09:06:37 +00:00
Jean-Marc Lasgouttes
6e7c76fe4f update from Marius Ionescu
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16098 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 08:30:24 +00:00
Bo Peng
64990eaf85 Status.15x: add bug for do not save unsaved file when lyx quits
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16097 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 02:49:25 +00:00
Bo Peng
03b918d347 Session: put all lyxerr output to lyxerr[Debug::INIT]
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16096 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 02:34:52 +00:00
Enrico Forestieri
3af19d895b Add a regression to Status.15x
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16095 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 00:25:24 +00:00
Georg Baum
89721c3b4c Do not delete /tmp.
Somebody should find a real fix.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16094 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-28 20:04:16 +00:00
Enrico Forestieri
f17d9a7b86 Document the terminating '\0' in the num_get facet.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16093 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-28 19:15:05 +00:00
Abdelrazak Younes
a5df789cae * LyXText::cursorNext(): Fix crash with PageDown when the next paragraph is a math inset bigger than the screen.
* LyXText::cursorPrevious(): Implement the same check for safety reason.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16092 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-28 17:24:44 +00:00
Abdelrazak Younes
e24bf64c68 * dimension.h: new operator!=() and operator=()
* InsetBase and all derivates:
  - metrics(MetricsInfo & mi, Dimension & dim) now returns a bool (true if metrics changed).

* MathData and all derivates:
  - metrics(MetricsInfo & mi, Dimension & dim): ditto.

* RenderBase and all derivates:
  - metrics(MetricsInfo & mi, Dimension & dim): ditto.

* lyxtext.h/text.C:
  - LyXText::metrics(MetricsInfo & mi, Dimension & dim): ditto.
  - LyXText::redoParagraph(): take into account potential change in inset metrics.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16091 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-28 15:15:49 +00:00
Abdelrazak Younes
0748904328 Fix graphics rendering preview.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16090 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-28 12:51:50 +00:00
Georg Baum
1ac8219910 The DVI view menu bug is not fixed. Add del /tmp bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16089 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-28 10:38:19 +00:00
Abdelrazak Younes
403389d2c3 Updates from Bennett and myself.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16088 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-28 10:16:45 +00:00
Georg Baum
7d9eb51682 document not working non-ascii filenames
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16087 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-28 08:45:12 +00:00
Enrico Forestieri
04f2c93ca5 Was forgetting this
* src/support/docstring.C
	(do_get): terminate the string before using it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16086 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-28 00:24:18 +00:00
Peter Kümmel
c7a3620eeb fix wrong toolbar icon size, default value is
in lyx_main.C. Size will be stored in the session
file.

*      src/lyx_main.C              : default value
*      src/frontends/Application.h : restore also icon size
*      src/frontends/LyXView.h     :        "
*      src/frontends/qt4/GuiView.h :        "
*      src/frontends/qt4/GuiView.C :        "
*      src/frontends/Application.C :        "



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16085 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-27 23:35:43 +00:00