Commit Graph

172 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
35de4638f7 fix flimage.h handling; xpm format patch from herbert; math delim drawing patch from martin
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4382 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-12 14:21:58 +00:00
John Levon
021ad027a9 refactor topCursorVisible() prototype a little. Compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4378 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-12 10:31:34 +00:00
John Levon
9699643848 New lyx_gui namespace. Some working out to be done still ..
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4377 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-12 09:47:10 +00:00
Angus Leeming
9548351ef8 Compaq cxx 6.5 will now compile lyx.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4349 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-10 07:57:39 +00:00
Angus Leeming
fb29f01377 Rotate in the same sense as xdvi et al.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4343 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-06 08:56:21 +00:00
Lars Gullik Bjønnes
68e59b071f 2002-05-30 Lars Gullik Bj�nnes <larsbj@birdstep.com>
* GraphicsImageXPM.C (newImage): fix () bug when using new.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4292 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-30 09:33:49 +00:00
Lars Gullik Bjønnes
78934e5ff4 2002-05-30 Lars Gullik Bj�nnes <larsbj@birdstep.com>
* GraphicsImageXPM.C: SigC to boot::signals changes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4291 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-30 09:31:05 +00:00
Lars Gullik Bjønnes
1e39473100 Switch from SigC signals to boost::signals
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4281 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-29 16:21:03 +00:00
André Pönitz
53e01413db missing entry
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4266 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-29 13:05:46 +00:00
André Pönitz
551e3864c6 move inset related stuff from src/graphics to src/inset/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4247 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-28 11:50:04 +00:00
John Levon
962a0c5585 font loader / color handler move
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4204 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-24 18:24:14 +00:00
Jürgen Vigna
20d61473cc Enable compilation with lyxstring again.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4198 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-24 10:39:34 +00:00
Lars Gullik Bjønnes
482c04ecca use more specific smart_ptr headers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4183 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-22 01:16:37 +00:00
Angus Leeming
c83a7a13b8 Revert previous change as it's bollocks. Herbert, your infallibility is
no-more ;-)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4103 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-01 11:12:02 +00:00
Angus Leeming
7d3e67edc5 (Herbert): use inBP rather than inPixels + further manipulation as this
prevents rounding errors.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4102 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-01 10:38:31 +00:00
Angus Leeming
5632b2d03c (John): Enable the libXPM-based loader to cope with "opaque" as a colour.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4083 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-29 09:12:26 +00:00
Angus Leeming
8dfe03e027 (Marco Morandini): make the list of loadable graphics formats dynamic.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4029 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-19 09:17:05 +00:00
Lars Gullik Bjønnes
6277647f63 just massage the input format
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4028 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-18 17:48:55 +00:00
Angus Leeming
195656bacf Fix the loading of xpm files by the simple image loader when it encounters
colour strings like #rrrrggggbbbb.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4017 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-17 16:08:31 +00:00
Angus Leeming
48f5aa9517 Remove the Alert popups from the graphics cache.
Sometimes, these Alerts are displayed with only part of the background
greyed out, which smacks of "wierd xforms bug".

I can obtain this when loading a buffer from the command line "lyx buffer.lyx".
It appears that xforms isn't happy if the goodie is displayed before the
main window. Just a guess though...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4007 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-16 12:43:42 +00:00
Angus Leeming
36c21f7712 (Rob Lahaye): fix clipping when using the basic image loader.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3998 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-15 16:56:28 +00:00
Angus Leeming
db1f26a781 I _think_ we had a reference to a temp object going out of scope. No more.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3986 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-12 14:08:00 +00:00
Angus Leeming
b9e3315265 Use the new LyXLength::inBP method to resolve rounding error problems.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3976 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-11 18:40:20 +00:00
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
727b3cab86 Store BoundingBox relative to original.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3948 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-08 16:51:46 +00:00
Angus Leeming
b9a7e87405 Herbert's and my fixes to the graphics inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3906 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-04 14:49:54 +00:00
Angus Leeming
4a964acbe7 Ensure that graphics BoundingBox member variables are initialised.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3899 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-04 10:24:33 +00:00
Angus Leeming
ab6db13160 Remove string() as default argument to GraphicsParams c-tor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3839 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-26 12:43:21 +00:00
Angus Leeming
d11fd01ce7 Don't launch that Alert if the graphics file isn't found. It doesn't work
properly for some reason and the message is displayed in the inset anyway.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3836 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-26 12:14:23 +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
Lars Gullik Bjønnes
7514c31edf drop the ld -r stuff, we gained nothing with it, other build optimizations gave us what we wanted; some ws changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3798 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-21 16:49:07 +00:00
Lars Gullik Bjønnes
35e1157317 Fix for bug: #260 special rules if partially linking
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3792 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-20 19:06:32 +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
Lars Gullik Bjønnes
b49f5ac419 doxy, ws and const change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3718 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-11 22:58:05 +00:00
Angus Leeming
4c263b730e Add an image loader using the xforms library routines and compile it if
your version of the xforms library is good enough.
The qt2 stuff is only partially tested (link problems elsewhere) and
the gnome stuff is not tested at all.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3676 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-06 12:07:23 +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
1bb8334771 if we can load direct without conversion, then do that.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3618 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-28 19:55:26 +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
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