]> git.lyx.org Git - lyx.git/log
lyx.git
17 years agoFix a button hover bug, remove button frame
Bo Peng [Wed, 6 Dec 2006 22:51:39 +0000 (22:51 +0000)]
Fix a button hover bug, remove button frame

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16194 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoSupport for the EURO sign (bug 845):
Jürgen Spitzmüller [Wed, 6 Dec 2006 16:46:57 +0000 (16:46 +0000)]
Support for the EURO sign (bug 845):

* lib/chkconfig.ltx:
check for the textcomp package
* lib/doc/LaTeXConfig.lyx.in:
document textcomp

* src/LaTeXFeatures.C (simplefeatures):
add textcomp
* src/paragraph_pimpl.C (simpleTeXSpecialChar):
support the Euro sign (via textcomp command)
* src/paragraph_pimpl.C (validate):
require textcomp if we have a Euro symbol

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16193 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoSmall update.
Enrico Forestieri [Wed, 6 Dec 2006 13:54:26 +0000 (13:54 +0000)]
Small update.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16192 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoDirectly use the family name in QFontInfo to ascertain whether the requested
Enrico Forestieri [Wed, 6 Dec 2006 13:38:07 +0000 (13:38 +0000)]
Directly use the family name in QFontInfo to ascertain whether the requested
font is available. This is now possible because the old bug needing a
workaround has been solved in Qt4. This also solves the problem of missing
integral symbols in mathed on Windows when the esint10 font is not available.

* src/frontends/qt4/GuiFontLoader.C
(isSymbolFamily): directly check the family name in QFontInfo.
(getSymbolFont): add some debugging info.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16191 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago* convert dir to internal path
Edwin Leuven [Tue, 5 Dec 2006 22:36:31 +0000 (22:36 +0000)]
* convert dir to internal path

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16187 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago* FileDialog.C: always return POSIX-like path names ('/' instead of '\' on Windows)
Michael Schmitt [Tue, 5 Dec 2006 19:51:50 +0000 (19:51 +0000)]
* FileDialog.C: always return POSIX-like path names ('/' instead of '\' on Windows)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16186 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoButton face-lift: make the buttons a bit more prominent with a darker than background...
Bo Peng [Tue, 5 Dec 2006 17:55:45 +0000 (17:55 +0000)]
Button face-lift: make the buttons a bit more prominent with a darker than background \buttonbg

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16185 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agomore unicode filenames (+ fix one possible initialization order bug in
Georg Baum [Tue, 5 Dec 2006 12:57:01 +0000 (12:57 +0000)]
more unicode filenames (+ fix one possible initialization order bug in
needsUpdate() in src/lyx_main.C).
toFilesystemEncoding() is now used in all places where it is needed if I did
not forget anything.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16184 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoIf anybody moves this to WONTFIX again I'll get really upset.
Georg Baum [Tue, 5 Dec 2006 08:06:44 +0000 (08:06 +0000)]
If anybody moves this to WONTFIX again I'll get really upset.
Does nobody see how ridiculous it is to require the user to choose the one
existing frontend?
If this does not get fixed for 1.5.0 we'll get many complaints, and a bad
reputation.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16183 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoAdd a copy constructor of InsetCollapsable to fix the follow bug:
Bo Peng [Tue, 5 Dec 2006 05:36:59 +0000 (05:36 +0000)]
Add a copy constructor of InsetCollapsable to fix the follow bug:
mouse_hover_ is copied with copied collapsable insets. Should be false for
newly copied insets.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16182 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoStatus.15x, add lyx note selection bug
Bo Peng [Tue, 5 Dec 2006 05:28:12 +0000 (05:28 +0000)]
Status.15x, add lyx note selection bug

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16181 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoStatus.15x: move some items to WONT FIX section
Bo Peng [Tue, 5 Dec 2006 03:58:22 +0000 (03:58 +0000)]
Status.15x: move some items to WONT FIX section

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16180 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agofix a compiler warning regarding unused variable
Bo Peng [Tue, 5 Dec 2006 02:18:29 +0000 (02:18 +0000)]
fix a compiler warning regarding unused variable

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16179 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agodocument the LaTeX class a bit
Georg Baum [Mon, 4 Dec 2006 17:56:51 +0000 (17:56 +0000)]
document the LaTeX class a bit

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16178 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agomore unicode filenames
Georg Baum [Mon, 4 Dec 2006 17:43:49 +0000 (17:43 +0000)]
more unicode filenames

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16177 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoremove unneeded includes
Georg Baum [Mon, 4 Dec 2006 17:41:03 +0000 (17:41 +0000)]
remove unneeded includes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16176 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoremove unused member
Georg Baum [Mon, 4 Dec 2006 17:05:50 +0000 (17:05 +0000)]
remove unused member

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16175 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoCleanup loading of files and gui session restoring.
Abdelrazak Younes [Mon, 4 Dec 2006 16:54:32 +0000 (16:54 +0000)]
Cleanup loading of files and gui session restoring.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16174 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agomore unicode filenames
Georg Baum [Mon, 4 Dec 2006 15:46:57 +0000 (15:46 +0000)]
more unicode filenames

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16173 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agomore unicode filenames
Georg Baum [Mon, 4 Dec 2006 15:07:05 +0000 (15:07 +0000)]
more unicode filenames

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16172 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agomore unicode filenames
Georg Baum [Mon, 4 Dec 2006 14:45:17 +0000 (14:45 +0000)]
more unicode filenames

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16171 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago* GuiApplication::x11EventFilter(): check for currentView() before using it.
Abdelrazak Younes [Mon, 4 Dec 2006 13:52:02 +0000 (13:52 +0000)]
* GuiApplication::x11EventFilter(): check for currentView() before using it.

* Application::currentView(): now returns a pointer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16170 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoMake string conversion work with non-ucs2-characters if using qt 4.2
Georg Baum [Mon, 4 Dec 2006 13:50:46 +0000 (13:50 +0000)]
Make string conversion work with non-ucs2-characters if using qt 4.2

* src/frontends/qt4/qt_helpers.[Ch]
(toqstr): Use QString::fromUcs4 if the qt version is at
least 4.2.
(qstring_to_ucs4): Use QString::toUcs4 if the qt version is at
least 4.2
(ucs4_to_qstring): Delete to avoid confusion, since it was only
used in one place

* src/frontends/qt4/panelstack.C
(PanelStack::addCategory): Use toqstr instead of ucs4_to_qstring

* src/support/unicode.[Ch]
(ucs2_to_ucs4): Replace with utf16_to_ucs4
(ucs4_to_ucs2): Replace with ucs4_to_utf16

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16169 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoAllow empty file names in constructor, since empty filenames can now be
Georg Baum [Mon, 4 Dec 2006 13:45:08 +0000 (13:45 +0000)]
Allow empty file names in constructor, since empty filenames can now be
created by the default constrcutor anyway.
This prevents an assert in findtexfiles.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16168 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago* Dimension is a simple wrapper class again.
Abdelrazak Younes [Mon, 4 Dec 2006 10:45:43 +0000 (10:45 +0000)]
* Dimension is a simple wrapper class again.

* other files: use FontMetrics::dimension() method instead of old Dimension interface.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16167 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoForgot this!
Abdelrazak Younes [Mon, 4 Dec 2006 10:33:47 +0000 (10:33 +0000)]
Forgot this!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16166 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago* enable font metrics cache for all platforms.
Abdelrazak Younes [Mon, 4 Dec 2006 10:09:22 +0000 (10:09 +0000)]
* enable font metrics cache for all platforms.
* introduce defaultDimension() and dimension() in preparation of Dimension class cleanup.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16165 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago* src/paragraph.C (corrected_env, endTeXParams):
Jürgen Spitzmüller [Mon, 4 Dec 2006 07:27:49 +0000 (07:27 +0000)]
* src/paragraph.C (corrected_env, endTeXParams):
- writeout \begin and \end alignment tags on their own lines (bug 3010).
(patch from Gregor Gorjanc and me).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16164 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoButton face-lift: use mouse hover-buttons.
Bo Peng [Mon, 4 Dec 2006 04:31:18 +0000 (04:31 +0000)]
Button face-lift: use mouse hover-buttons.
* src/insets/insetbase.h: add setMouseHover function
* src/insets/insetcommand.h/C: handle setMouseHover
* src/insets/insetcollapsable.h/C: handle setMouseHover
* src/LColor.h/C: redefine some colors
* src/insets/render_base.h: add state_
* src/insets/render_button.C: draw differently according to state_
* src/frontends/Painter.h/C: hover-stype button
* src/frontends/qt4/GuiWorkArea.C: enable mouse tracking
* src/BufferView.C: track mouse_motion without button events

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16162 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago* lib/layouts/amsart.layout:
Jürgen Spitzmüller [Sun, 3 Dec 2006 15:36:06 +0000 (15:36 +0000)]
* lib/layouts/amsart.layout:
- reenable Address paragraph style to fix bug 2890
  (as discussed on bugzilla)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16160 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agosrc/support/filename.C: add assertion to ensure that no Windows-style
Michael Schmitt [Sun, 3 Dec 2006 14:48:00 +0000 (14:48 +0000)]
src/support/filename.C: add assertion to ensure that no Windows-style
file name is used internally (as suggested by Georg)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16159 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agotwo lines between function.
Abdelrazak Younes [Sun, 3 Dec 2006 13:17:35 +0000 (13:17 +0000)]
two lines between function.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16158 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix memory leaks with multiple windows and crash when deleteOnClose is set.
Abdelrazak Younes [Sun, 3 Dec 2006 13:09:57 +0000 (13:09 +0000)]
Fix memory leaks with multiple windows and crash when deleteOnClose is set.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16157 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago* WorkArea::dispatch(): avoid GUI tweaks if cmd is a mouse motion with no button...
Abdelrazak Younes [Sun, 3 Dec 2006 10:43:55 +0000 (10:43 +0000)]
* WorkArea::dispatch(): avoid GUI tweaks if cmd is a mouse motion with no button pressed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16156 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoprepare fixing some memory leaks
Peter Kümmel [Sun, 3 Dec 2006 10:30:18 +0000 (10:30 +0000)]
prepare fixing some memory leaks

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16155 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoremove unused signal
Peter Kümmel [Sun, 3 Dec 2006 10:14:35 +0000 (10:14 +0000)]
remove unused signal

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16154 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agofix quit problems on Mac
Peter Kümmel [Sun, 3 Dec 2006 10:05:41 +0000 (10:05 +0000)]
fix quit problems on Mac

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16153 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago * po/*.po: remerge
Michael Schmitt [Sun, 3 Dec 2006 01:33:32 +0000 (01:33 +0000)]
* po/*.po: remerge

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16152 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago * po/de.po: a few more translations
Michael Schmitt [Sun, 3 Dec 2006 01:29:01 +0000 (01:29 +0000)]
* po/de.po: a few more translations

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16151 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago * src/frontends/qt4/ui/QPrefUi.ui: clarify message
Michael Schmitt [Sun, 3 Dec 2006 01:16:03 +0000 (01:16 +0000)]
* src/frontends/qt4/ui/QPrefUi.ui: clarify message

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16150 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago * qt4/QExternal.C:
Michael Schmitt [Sun, 3 Dec 2006 01:11:37 +0000 (01:11 +0000)]
* qt4/QExternal.C:
* qt4/lengthcombo.C:
* qt4/QBox.C: make length units translateable

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16149 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago * qt_helpers.h: qt_() - set parameter 'comment' to default 0
Michael Schmitt [Sun, 3 Dec 2006 01:09:09 +0000 (01:09 +0000)]
* qt_helpers.h: qt_() - set parameter 'comment' to default 0

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16148 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago * src/frontends/qt4/qt_helpers.h: fix comment on the use of qt_()
Michael Schmitt [Sun, 3 Dec 2006 00:28:14 +0000 (00:28 +0000)]
* src/frontends/qt4/qt_helpers.h: fix comment on the use of qt_()

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16147 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago * po/de.po: more updates
Michael Schmitt [Sun, 3 Dec 2006 00:09:31 +0000 (00:09 +0000)]
* po/de.po: more updates

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16146 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago * src/buffer.C: remove redundant space from user message
Michael Schmitt [Sat, 2 Dec 2006 23:39:17 +0000 (23:39 +0000)]
* src/buffer.C: remove redundant space from user message

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16145 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago * po/de.po: update
Michael Schmitt [Sat, 2 Dec 2006 22:09:52 +0000 (22:09 +0000)]
* po/de.po: update

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16144 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago * Status.15x: where have all the tooltips gone?
Michael Schmitt [Sat, 2 Dec 2006 21:59:00 +0000 (21:59 +0000)]
* Status.15x: where have all the tooltips gone?

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16143 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoupdate comments.
Abdelrazak Younes [Sat, 2 Dec 2006 21:55:28 +0000 (21:55 +0000)]
update comments.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16142 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago * src/lyxfunc.C:
Michael Schmitt [Sat, 2 Dec 2006 21:27:31 +0000 (21:27 +0000)]
* src/lyxfunc.C:
* src/frontends/qt4/GuiView.C:
* src/lyx_main.C: fix various typos in comments

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16141 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago * src/frontends/qt4/qt_helpers.h: add #include <boost/assert.hpp>
Michael Schmitt [Sat, 2 Dec 2006 21:25:24 +0000 (21:25 +0000)]
* src/frontends/qt4/qt_helpers.h: add #include <boost/assert.hpp>
because gcc 3.3.5pre (SUSE Linux 9.3) fails otherwise

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16140 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago * src/LaTeX.C: fix compilation with gcc 3.3.5pre (SuSE Linux 9.3)
Michael Schmitt [Sat, 2 Dec 2006 21:23:46 +0000 (21:23 +0000)]
* src/LaTeX.C: fix compilation with gcc 3.3.5pre (SuSE Linux 9.3)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16139 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoremove unused function
Georg Baum [Sat, 2 Dec 2006 20:37:11 +0000 (20:37 +0000)]
remove unused function

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16138 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoremove duplicate of toqstr
Georg Baum [Sat, 2 Dec 2006 19:53:21 +0000 (19:53 +0000)]
remove duplicate of toqstr

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16137 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoremove unused stuff
Georg Baum [Sat, 2 Dec 2006 18:19:56 +0000 (18:19 +0000)]
remove unused stuff

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16136 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoClean up quit code.
Peter Kümmel [Sat, 2 Dec 2006 17:39:31 +0000 (17:39 +0000)]
Clean up quit code.
We still need a solution for the Mac.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16135 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago--style=Andre
Peter Kümmel [Sat, 2 Dec 2006 17:32:15 +0000 (17:32 +0000)]
--style=Andre

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16134 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agomore unicode filenames
Georg Baum [Sat, 2 Dec 2006 16:07:15 +0000 (16:07 +0000)]
more unicode filenames

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16133 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago* qt_helpers.h:
Abdelrazak Younes [Sat, 2 Dec 2006 15:54:49 +0000 (15:54 +0000)]
* 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

17 years ago * po/de.po: remerge (no new messages)
Michael Schmitt [Sat, 2 Dec 2006 15:42:10 +0000 (15:42 +0000)]
* po/de.po: remerge (no new messages)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16131 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago * Status.15x: add two new bugs (one from Kornel); rearrange bugs
Michael Schmitt [Sat, 2 Dec 2006 14:23:06 +0000 (14:23 +0000)]
* 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

17 years agoCharMetrics: use short int instead of int. This halves the memory required for the...
Abdelrazak Younes [Fri, 1 Dec 2006 23:45:06 +0000 (23:45 +0000)]
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

17 years agofix display of hungarian umlaut
Georg Baum [Fri, 1 Dec 2006 21:13:47 +0000 (21:13 +0000)]
fix display of hungarian umlaut

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16128 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agomore unicode filenames
Georg Baum [Fri, 1 Dec 2006 20:09:08 +0000 (20:09 +0000)]
more unicode filenames

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16127 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago* GuiFontMetrics
Abdelrazak Younes [Fri, 1 Dec 2006 17:23:58 +0000 (17:23 +0000)]
* 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

17 years agoAdded one more bug
Enrico Forestieri [Fri, 1 Dec 2006 16:51:03 +0000 (16:51 +0000)]
Added one more bug

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16125 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoThis commit fixes the following bug:
Abdelrazak Younes [Fri, 1 Dec 2006 16:12:24 +0000 (16:12 +0000)]
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

17 years agoremove gcc warning
Peter Kümmel [Thu, 30 Nov 2006 20:03:28 +0000 (20:03 +0000)]
remove gcc warning

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16123 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agomore unicode filenames
Georg Baum [Thu, 30 Nov 2006 16:59:50 +0000 (16:59 +0000)]
more unicode filenames

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16122 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix spurious error message about nonexisting directory.
Georg Baum [Thu, 30 Nov 2006 15:21:23 +0000 (15:21 +0000)]
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

17 years agoremove forgotten theApp variables
Peter Kümmel [Thu, 30 Nov 2006 08:42:29 +0000 (08:42 +0000)]
remove forgotten theApp variables

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16120 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFIXME: remove global variable theApp
Peter Kümmel [Thu, 30 Nov 2006 00:04:51 +0000 (00:04 +0000)]
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

17 years agorestore old /W3 warning level
Peter Kümmel [Wed, 29 Nov 2006 23:51:22 +0000 (23:51 +0000)]
restore old /W3 warning level

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16118 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoremove size_t/int warning: QString doesn't use size_t so we must cast it to avoid...
Peter Kümmel [Wed, 29 Nov 2006 22:57:34 +0000 (22:57 +0000)]
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

17 years agoswitch to default /W4 for msvc
Peter Kümmel [Wed, 29 Nov 2006 22:36:43 +0000 (22:36 +0000)]
switch to default /W4 for msvc

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16116 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix crash on Mac
Peter Kümmel [Wed, 29 Nov 2006 21:57:46 +0000 (21:57 +0000)]
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

17 years agoremove unused variable
Georg Baum [Wed, 29 Nov 2006 21:54:33 +0000 (21:54 +0000)]
remove unused variable

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16114 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agofix compiler warning:
Georg Baum [Wed, 29 Nov 2006 21:52:56 +0000 (21:52 +0000)]
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

17 years agoconvert some more filenames for unicode
Georg Baum [Wed, 29 Nov 2006 21:47:37 +0000 (21:47 +0000)]
convert some more filenames for unicode

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16112 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix copy&paste bug
Abdelrazak Younes [Wed, 29 Nov 2006 21:39:06 +0000 (21:39 +0000)]
Fix copy&paste bug

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16111 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix crash on Mac, now the strange part
Peter Kümmel [Wed, 29 Nov 2006 21:36:39 +0000 (21:36 +0000)]
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

17 years agoremove unused stuff
Georg Baum [Wed, 29 Nov 2006 21:34:24 +0000 (21:34 +0000)]
remove unused stuff

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16109 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix crash on Mac
Peter Kümmel [Wed, 29 Nov 2006 21:27:54 +0000 (21:27 +0000)]
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

17 years agoAvoid an infinite loop when using the -geometry option on *nix
Enrico Forestieri [Wed, 29 Nov 2006 19:44:13 +0000 (19:44 +0000)]
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

17 years agoalso support the geometry option on Windows + Qt/Windows
Peter Kümmel [Wed, 29 Nov 2006 16:52:44 +0000 (16:52 +0000)]
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

17 years agoalso support the geometry option on Windows + Qt/Windows
Peter Kümmel [Wed, 29 Nov 2006 16:45:38 +0000 (16:45 +0000)]
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

17 years agoFix keyboard navigation with graphics insets.
Abdelrazak Younes [Wed, 29 Nov 2006 13:58:08 +0000 (13:58 +0000)]
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

17 years agoBetter using a space instead of '\0' in the num_get facet.
Enrico Forestieri [Wed, 29 Nov 2006 13:39:49 +0000 (13:39 +0000)]
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

17 years agodon't forget to translate
Peter Kümmel [Wed, 29 Nov 2006 10:25:46 +0000 (10:25 +0000)]
don't forget to translate

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16102 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoWindows doesn't support the geometry option
Peter Kümmel [Wed, 29 Nov 2006 10:10:07 +0000 (10:10 +0000)]
Windows doesn't support the geometry option

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16101 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoadd tool bar popup with three icon sizes: small, normal, big
Peter Kümmel [Wed, 29 Nov 2006 10:04:35 +0000 (10:04 +0000)]
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

17 years ago * qt4/GuiApplication.C: remove ad-hoc Mac OSX Carbon code to handle
Jean-Marc Lasgouttes [Wed, 29 Nov 2006 09:06:37 +0000 (09:06 +0000)]
* 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

17 years agoupdate from Marius Ionescu
Jean-Marc Lasgouttes [Wed, 29 Nov 2006 08:30:24 +0000 (08:30 +0000)]
update from Marius Ionescu

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16098 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoStatus.15x: add bug for do not save unsaved file when lyx quits
Bo Peng [Wed, 29 Nov 2006 02:49:25 +0000 (02:49 +0000)]
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

17 years agoSession: put all lyxerr output to lyxerr[Debug::INIT]
Bo Peng [Wed, 29 Nov 2006 02:34:52 +0000 (02:34 +0000)]
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

17 years agoAdd a regression to Status.15x
Enrico Forestieri [Wed, 29 Nov 2006 00:25:24 +0000 (00:25 +0000)]
Add a regression to Status.15x

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16095 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoDo not delete /tmp.
Georg Baum [Tue, 28 Nov 2006 20:04:16 +0000 (20:04 +0000)]
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

17 years agoDocument the terminating '\0' in the num_get facet.
Enrico Forestieri [Tue, 28 Nov 2006 19:15:05 +0000 (19:15 +0000)]
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

17 years ago* LyXText::cursorNext(): Fix crash with PageDown when the next paragraph is a math...
Abdelrazak Younes [Tue, 28 Nov 2006 17:24:44 +0000 (17:24 +0000)]
* 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

17 years ago* dimension.h: new operator!=() and operator=()
Abdelrazak Younes [Tue, 28 Nov 2006 15:15:49 +0000 (15:15 +0000)]
* 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

17 years agoFix graphics rendering preview.
Abdelrazak Younes [Tue, 28 Nov 2006 12:51:50 +0000 (12:51 +0000)]
Fix graphics rendering preview.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16090 a592a061-630c-0410-9148-cb99ea01b6c8