Commit Graph

23 Commits

Author SHA1 Message Date
Angus Leeming
b95a56f37a (Herbert): discover the "Bounding Box" of non-(e)ps graphics files, and
use it in the graphics dialog.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3973 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-11 17:40:44 +00:00
Angus Leeming
4f9bed1018 Enable the graphics inset to work correctly with relative file names.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3816 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-22 16:37:52 +00:00
Lars Gullik Bjønnes
8283e978f8 ws cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3803 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-21 17:27:08 +00:00
Angus Leeming
b2f4586c98 Two little things:
* Use Lars' preferred idiom for a for-loop in the graphics cache;
* Turn the forked call controller's timer off when their are no longer any
child processes running.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3755 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-14 18:01:51 +00:00
Angus Leeming
356caadd6d Move Dialogs::redrawGUI to frontends/Dialogs.C from all those guis.
Move Dialogs::initialiseGraphics to GUIRunTime.
xforms works, qt2 and gnome not tested.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3654 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-04 10:51:40 +00:00
Angus Leeming
00e13a6f56 Move connection of the image loader signals to the frontends.
Small fix to GImageXPM.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3616 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-28 18:07:15 +00:00
Angus Leeming
aa70718501 * Cure the crash that became a memory leak properly.
* Enable the loading of XPM files with crappy color strings. Print
  out a nice friendly message on what's gone wrong and how to resolve
  it properly.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3599 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-27 17:27:59 +00:00
Angus Leeming
607ad8d3a7 The graphics inset now has:
* lazy loading (don't try and load the image until a request to draw it
  is received).
* asynchronous conversion to a loadable format.
* asynchronous loading if the image loader supports it (it doesn't).
* "simple" cropping, rotating and scaling (in that order) of the image
  on the LyX screen.
* display in color, grayscale or monochrome.

We also have a forked calls dialog, although it isn't very exciting
yet because only the graphics cache makes use of the forked call controller.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3591 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-27 09:59:52 +00:00
Angus Leeming
31b56dac80 In for a penny, in for a pound. Consistent use of // -*- C++ -*-
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2123 a592a061-630c-0410-9148-cb99ea01b6c8
2001-06-14 08:20:41 +00:00
Lars Gullik Bjønnes
83acbbd523 update copyright year
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2072 a592a061-630c-0410-9148-cb99ea01b6c8
2001-05-30 13:53:44 +00:00
Baruch Even
75c9443ecd Minor cleanups of code and comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1790 a592a061-630c-0410-9148-cb99ea01b6c8
2001-03-18 17:48:56 +00:00
Baruch Even
c9196a82ff Removed an incorrect assert in GraphicsCache.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1700 a592a061-630c-0410-9148-cb99ea01b6c8
2001-03-07 12:43:48 +00:00
Baruch Even
95aa44f550 Changed the singleton implementation in GraphicsCache, the former version
leaked, in the sense that it was not deallocated at program end.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1640 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-28 11:32:10 +00:00
Baruch Even
96e0bafddd Cleaned up the GraphicsCache mechanism, made it use shared_ptr for cleanliness
Updated InsetGraphics to use the changed the GraphicsCache, and fixed a
lurking bug in LyXImage.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1606 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-22 16:53:59 +00:00
Baruch Even
9a70b28af5 Implemented synchronous inline image viewing for InsetGraphics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1561 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-20 09:08:56 +00:00
Lars Gullik Bjønnes
360cdc0b9f Angus patch, + allow to set cursor color + constify more local variables
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1226 a592a061-630c-0410-9148-cb99ea01b6c8
2000-11-21 15:46:13 +00:00
Jürgen Vigna
325dccab09 Baruch's InsetGraphics - LyXImage patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1106 a592a061-630c-0410-9148-cb99ea01b6c8
2000-10-12 10:46:06 +00:00
Lars Gullik Bjønnes
d6665cba42 get rid of dead code, some new functions constify variables.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1041 a592a061-630c-0410-9148-cb99ea01b6c8
2000-09-26 13:54:57 +00:00
Lars Gullik Bjønnes
45a03f4f67 use the new sstream return non-pods as const, use string instead of char * in a lot of places
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1019 a592a061-630c-0410-9148-cb99ea01b6c8
2000-09-14 17:53:12 +00:00
Jürgen Vigna
077ea832b5 Baruch's patch + some fixes to it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@964 a592a061-630c-0410-9148-cb99ea01b6c8
2000-08-10 13:15:05 +00:00
Jürgen Vigna
9ab27bcd7e Baruch's graphic-inset patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@957 a592a061-630c-0410-9148-cb99ea01b6c8
2000-08-08 09:18:39 +00:00
Lars Gullik Bjønnes
7110b8eda4 small changes read ChangeLog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@941 a592a061-630c-0410-9148-cb99ea01b6c8
2000-07-31 16:39:50 +00:00
Jürgen Vigna
f4bad86bda Baruch's graphics-patch + minipage-support in tabular-cells.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@938 a592a061-630c-0410-9148-cb99ea01b6c8
2000-07-31 12:30:10 +00:00