Commit Graph

83 Commits

Author SHA1 Message Date
Angus Leeming
9dafe9b9a5 Add GraphicsTypes.h to libgraphics_la_SOURCES
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3613 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-28 16:09:35 +00:00
Angus Leeming
01df791351 More signed/unsigned stuff.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3604 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-28 11:50:42 +00:00
Angus Leeming
04196c1a6c Properly resolve more warnings about comparison between signed and
between signed and unsigned integer expressions.

Could people please report any further warnings.

Angus


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3603 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-28 11:00:48 +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
fcc7529843 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
(Data d-tor): introduce memory leak temporarily, to "fix" a crash
in free_color_table.
(unique_color_string): use the correct string c-tor.

Could a gcc user post me any remaining warning messages?

Angus


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3594 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-27 11:43:04 +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
2dd83864e5 Herbert's unzip et al patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3502 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-07 19:37:34 +00:00
Angus Leeming
358c483572 Herbert's latest graphics patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3465 a592a061-630c-0410-9148-cb99ea01b6c8
2002-01-31 14:20:09 +00:00
Angus Leeming
f09619a7e8 Herbert's big graphics patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3446 a592a061-630c-0410-9148-cb99ea01b6c8
2002-01-29 09:26:24 +00:00
Jean-Marc Lasgouttes
cc3670f9fd small graphics fix from John
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3409 a592a061-630c-0410-9148-cb99ea01b6c8
2002-01-17 17:39:38 +00:00
Jean-Marc Lasgouttes
1070702ea4 removed most uses of toupper and friends, removed <config.h> from headers and added it to some source files, applied patch from John for search&replace, and perhaps other things you will discover by browsing Changelog :)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3255 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-20 15:11:51 +00:00
Angus Leeming
4851d24977 Take account of the monochrome, grayscale of color preferences option.
(Doesn't seem to work on my box: is this because I have a TrueType
display?)

Feedback appreciated.
Angus


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2783 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-21 15:17:01 +00:00
Angus Leeming
70a852b5e1 If a pixmap contains a transparent colour, then set it to the colour of the
background. (With thanks to John Levon.)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2780 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-21 10:52:48 +00:00
Angus Leeming
f05b2c68e5 *** empty log message ***
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2778 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-20 13:18:47 +00:00
Angus Leeming
4b31235b77 John's patches (except for [PATCH] fix quit etc. from inset about which I
cannot comment).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2650 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-02 11:40:33 +00:00
Baruch Even
67903edc17 Compilation fix (I broke, I fixed).
Color allocation fix, made it allocate close colors too.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2380 a592a061-630c-0410-9148-cb99ea01b6c8
2001-07-29 07:29:09 +00:00
Baruch Even
03b16293dc Removed annoying popup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2377 a592a061-630c-0410-9148-cb99ea01b6c8
2001-07-29 06:01:24 +00:00
Baruch Even
0901dfd71f Fixed a bug created in the code reordering.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2311 a592a061-630c-0410-9148-cb99ea01b6c8
2001-07-23 16:07:29 +00:00
Baruch Even
099779019f Minor code shuffle.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2258 a592a061-630c-0410-9148-cb99ea01b6c8
2001-07-17 00:38:04 +00:00
Jean-Marc Lasgouttes
13ae124f46 remove more forms.h cruft
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2177 a592a061-630c-0410-9148-cb99ea01b6c8
2001-07-03 16:13:01 +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
1e0c627c73 c++ mode and inherit privately from noncopyable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1930 a592a061-630c-0410-9148-cb99ea01b6c8
2001-04-17 14:11:26 +00:00
Allan Rae
4e61c013f4 fix doxygen operation ; stop #warning causing errors on Sun CC 6.0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1919 a592a061-630c-0410-9148-cb99ea01b6c8
2001-04-17 00:19:49 +00:00
Baruch Even
2f20425459 Changed to use the Converter class instead of hardcoding ImageMagick.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1874 a592a061-630c-0410-9148-cb99ea01b6c8
2001-04-02 19:56:48 +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
Lars Gullik Bjønnes
a27892b6c8 one small private fix in mathed, put noncopyable and tie into boost namespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1774 a592a061-630c-0410-9148-cb99ea01b6c8
2001-03-15 16:04:46 +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
Jean-Marc Lasgouttes
3df394155f compilation fixes in the new InsetGraphics stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1460 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-08 14:36:25 +00:00
Baruch Even
39b3fd44b9 Cleaned up cruft in InsetGraphics.
Added the auto-conversion of images to InsetGraphics, this adds support
for bitmap images.
Modified the mechanism of image loading for inline viewing - still not
working though.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1457 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-08 13:06:55 +00:00
Lars Gullik Bjønnes
0f4053721e rotate the changelog and a bunch of new changelogs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1324 a592a061-630c-0410-9148-cb99ea01b6c8
2001-01-12 09:42:30 +00:00