Commit Graph

489 Commits

Author SHA1 Message Date
Abdelrazak Younes
99cae6c723 two lines between function.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16158 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-03 13:17:35 +00:00
Abdelrazak Younes
7df55755ac 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
2006-12-03 13:09:57 +00:00
Peter Kümmel
a5b66d297f prepare fixing some memory leaks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16155 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-03 10:30:18 +00:00
Peter Kümmel
f6cf871deb fix quit problems on Mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16153 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-03 10:05:41 +00:00
Michael Schmitt
103c37af4e * 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
2006-12-03 01:16:03 +00:00
Michael Schmitt
99d4acd183 * 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
2006-12-03 01:11:37 +00:00
Michael Schmitt
a85cc03780 * 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
2006-12-03 01:09:09 +00:00
Michael Schmitt
b5331d6261 * 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
2006-12-03 00:28:14 +00:00
Abdelrazak Younes
88d16356f2 update comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16142 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-02 21:55:28 +00:00
Michael Schmitt
75d0226ce8 * 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
2006-12-02 21:27:31 +00:00
Michael Schmitt
f099bf461e * 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
2006-12-02 21:25:24 +00:00
Georg Baum
9d1f78acb5 remove unused function
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16138 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-02 20:37:11 +00:00
Georg Baum
c5629aab95 remove duplicate of toqstr
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16137 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-02 19:53:21 +00:00
Peter Kümmel
7b2cce9d5d 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
2006-12-02 17:39:31 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
Georg Baum
8e6e970d7b Next step of true unicode filenames: Use support::FileName instead of
std::string at many places (not all yet).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16069 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-26 21:30:39 +00:00
Michael Schmitt
968879e629 * ui/BulletsUi.ui: add missing shortcut
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16063 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-26 14:44:38 +00:00
Michael Schmitt
d51c2e24ed * src/GuiApplication.C: add missing include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16054 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-26 10:32:42 +00:00
Abdelrazak Younes
e6a6548712 * lyx_main.[Ch]
- execBatchCommands(): split in loadFiles() and execBatchCommands().
  - exec(): enable batch command to be processed from GUI.

* Application:
  - start(): deleted.

* GuiApplication:
  - execBatchCommands(): new method

* GuiWorkArea::update(): call viewport()->repaint() instead of viewport()->update(), this enable to update the screen immediately when asked by a batch command.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16051 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-26 02:18:32 +00:00
Abdelrazak Younes
aed0edc705 Remove key event pruning code. This has always been disabled without anyone complaining.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16046 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-25 22:35:09 +00:00
Abdelrazak Younes
10dd2cbdcb Toc Slider fixes from Ugras Baran.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16045 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-25 22:16:22 +00:00
Peter Kümmel
07fa2456f9 simplify exit code, old code doesn't work on the Mac
* lyxfunc.C                         : rename unused LFUN_LYX_QUIT parameter
* frontends/qt4/GuiImplementation.C : call LFUN_LYX_QUIT when last window closed
* frontends/qt4/GuiWorkArea.C       : check theApp, add debug case
* frontends/qt4/GuiApplication.C    : remove quitLyX()
* frontends/qt4/GuiApplication.h    : remove quitLyX()
* frontends/qt4/GuiView.C           : hide() widow fore exiting to prevent crash



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16044 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-25 21:24:04 +00:00
Edwin Leuven
72aeab403f * clean layout of font panel in document dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16007 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-21 20:40:42 +00:00
Edwin Leuven
4076494889 * allow resizing of detached panel
* FlowLayout comes from:
http://doc.trolltech.com/4.1/layouts-flowlayout.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16004 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-21 09:06:12 +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
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
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
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
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
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
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
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
Michael Schmitt
23c3c841f7 * QPrefsDialog.C: make static strings translateable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15943 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-15 23:37:26 +00:00
Peter Kümmel
2b4b4d721f disable scrollbar when not needed, this patch is totally uncritical
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15935 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-15 18:01:44 +00:00
Peter Kümmel
c72b361fc9 QComboBox::textChanged is a Qt3 support signal only, QComboBox::editTextChanged is the new Qt4 signal
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15931 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-14 21:00:34 +00:00
Peter Kümmel
cbab23bce0 svn propset svn:eol-style native
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15925 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-14 17:25:31 +00:00