]> git.lyx.org Git - lyx.git/blob - src/graphics/ChangeLog
Create a grfx::Loader class and so move large chunks of code out of
[lyx.git] / src / graphics / ChangeLog
1 2002-06-26  Angus Leeming  <leeming@lyx.org>
2
3         * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
4         move the DisplayType enum out of grfx::GParams to here.
5
6         * GraphicsCacheItem.h: re-write preliminary description to reflect
7         current reality.
8
9         * GraphicsParams.[Ch]:
10         * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
11         grfx::DisplayType out of grfx::GParams.
12
13         * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
14         that was in frontends/screen.C and insets/insetgraphics.C into a
15         single, easy-to-use class.
16
17         * Makefile.am: add these files.
18
19 2002-06-25  Angus Leeming  <leeming@lyx.org>
20
21         * GraphicsCache.[Ch]:
22         * GraphicsCacheItem.[Ch]:
23         * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
24         file into memory. The cache no longer controls the generation of the
25         pixmap. Instead, it just emits a signal when the loading status of an
26         image changes.
27         The cache no longer stores InsetGraphics pointers and nor does it
28         assume responsibility for modifying an image (scaling, rotating etc).
29         Instead, that must now be performed elsewhere.
30
31 2002-06-19  Angus Leeming  <leeming@lyx.org>
32
33         * GraphicsConverter.C: add using std::endl directive.
34
35 2002-06-17  Herbert Voss  <voss@lyx.org>
36
37         * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a 
38         default when nothing different was found
39         (convertToDisplayFormat): handle zipped files in the right way and 
40         choose always convert as a default converter when no other 
41         userdefined was found
42         
43         * GraphicsConverter.C: add more lyxerr comments and choose
44         convert when no other userdefined converter was found
45                 
46 2002-06-10  Herbert Voss  <voss@lyx.org>
47
48         * GraphicsImageXPM.C (convertTo7chars): get another special color
49         format from convert work in the right way
50
51 2002-06-12  John Levon  <moz@compsoc.man.ac.uk>
52
53         * GraphicsCache.C: use right colormap incantation
54  
55 2002-06-12  John Levon  <moz@compsoc.man.ac.uk>
56
57         * GraphicsCache.C: use lyx_gui namespace
58
59         * GraphicsImageXPM.C: back down to using xforms
60           directly again
61  
62 2002-06-07  Angus Leeming  <leeming@lyx.org>
63
64         Fixes needed to compile with Compaq cxx 6.5.
65         * GraphicsConverter.h: forward declare class ConvProcess.
66
67         * GraphicsImageXPM.C: 
68         all c-library variables have been moved into namespace std.
69         Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
70
71 2002-06-06  Angus Leeming  <a.leeming@ic.ac.uk>
72
73         * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
74
75 2002-05-30  Lars Gullik Bjønnes  <larsbj@birdstep.com>
76
77         * GraphicsImageXPM.C: SigC to boot::signals changes.
78         (newImage): fix () bug when using new.
79
80 2002-05-29  Lars Gullik Bjønnes  <larsbj@birdstep.com>
81
82         * switch from SigC signals to boost::signals.
83
84 2002-05-29  André Pönitz <poenitz@gmx.net>
85
86         * GraphicsParam.C: remove unneeded #include, move vomment
87
88 2002-05-28  André Pönitz <poenitz@gmx.net>
89
90         * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
91
92 2002-05-24  John Levon  <moz@compsoc.man.ac.uk>
93
94         * GraphicsImageXPM.C: ColorHandler moved
95
96 2002-05-24  Juergen Vigna  <jug@sad.it>
97
98         * GraphicsCache.h:
99         * GraphicsImage.h: include LString.h first.
100
101 2002-05-22  Lars Gullik Bjønnes  <larsbj@birdstep.com>
102
103         * GraphicsCacheItem.h: use more specific smart_ptr header.
104         * GraphicsTypes.h: ditto
105         * GraphicsImage.h: ditto
106         * GraphicsConverter.h: ditto
107
108 2002-04-28  John Levon  <moz@compsoc.man.ac.uk>
109
110         * GraphicsImageXPM.C: understand convert's use of "opaque"
111           as a colour name
112
113 2002-04-19  Marco Morandini <morandini@aero.polimi.it>
114
115         * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
116         GImage::loadableFormats() that ensures that the signal is connected
117         to the derived class' method.
118
119 2002-04-18  Lars Gullik Bjønnes  <larsbj@birdstep.com>
120
121         * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
122         only work on the string.
123
124 2002-04-17  Angus Leeming  <a.leeming@ic.ac.uk>
125
126         * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
127         the simple image loader when it encounters colour strings like
128         #rrrrggggbbbb.
129
130 2002-04-16  Angus Leeming  <a.leeming@ic.ac.uk>
131
132         * GraphicsCacheItem.C (convertToDisplayFormat):
133         * GraphicsConverter.C (build_script): remove the Alerts when things go
134         wrong as the inset displays the message anyway. Moreover, Alert seems
135         pretty temperamemtal at the moment.
136
137 2002-04-16  Rob Lahaye  <lahaye@users.sourceforge.net>
138         * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
139
140 2002-04-08  Angus Leeming  <a.leeming@ic.ac.uk>
141
142         * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
143         a reference to a temp object that's going out of scope...
144
145 2002-04-09  Herbert Voss  <voss@lyx.org>
146
147         * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
148         LyXLength::inBP instead of inPixels.
149
150 2002-04-10  Herbert Voss  <voss@perce.de>
151
152         * GraphicsCache.[Ch]:
153         * GraphicsCacheItem.[Ch]: add width/height functions from Angus
154         to read the "Bounding Box" from non (e)ps files.
155
156 2002-04-08  Angus Leeming  <a.leeming@ic.ac.uk>
157
158         * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
159         the EPS file too, to ensure that the clipped Bounding Box is relative
160         to the original. (From Herbert.)
161
162 2002-04-04  Angus Leeming  <a.leeming@ic.ac.uk>
163
164         * GraphicsParams.C (BoundingBox c-tor): ensure that the member
165         variables are initialised. Clean-up parsing of the string (with thanks
166         to Herbert.)
167
168 2002-03-26  Angus Leeming  <a.leeming@ic.ac.uk>
169
170         * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
171         if the file can't be found.
172
173         * GraphicsParams.h (c-tor): remove string() as default argument.
174
175         * GraphicsCacheItem.C: a couple of changes as a result.
176
177 2002-03-22  Angus Leeming  <a.leeming@ic.ac.uk>
178
179         * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
180         path to graphics file.
181
182         * GraphicsParams.[Ch] (c-tor): now passed filepath.
183
184 2002-03-21  Lars Gullik Bjønnes  <larsbj@birdstep.com>
185
186         * most files: ws cleanup
187
188         * Makefile.am: remove ld -r stuff
189
190 2002-03-20  Lars Gullik Bjønnes  <larsbj@birdstep.com>
191
192         * Makefile.am: special rules if partial linking
193
194 2002-03-14  Angus Leeming  <a.leeming@ic.ac.uk>
195
196         * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
197
198 2002-03-11  Lars Gullik Bjønnes  <larsbj@birdstep.com>
199
200         * GraphicsConverter.[Ch] (converted): make first arg const ref.
201
202         * GraphicsCacheItem.h: doxy change
203
204         * GraphicsCacheItem.C: ws change
205
206 2002-03-05  Angus Leeming  <a.leeming@ic.ac.uk>
207
208         * Makefile.am: if there is no image loading class leveraging the power
209         of the appropriate gui library, then compile the basic alternative
210         found in GraphicsImageXPM.[Ch].
211
212 2002-03-04  Angus Leeming  <a.leeming@ic.ac.uk>
213
214         * GraphicsCache.C: change associated with move of initialiseGraphics
215         to GUIRuntime.
216
217 2002-02-28  Angus Leeming  <a.leeming@ic.ac.uk>
218
219         * GraphicsParams.[Ch]:
220         * GraphicsImage.C:
221         * GraphicsImageXPM.C: properly resolve more warnings about comparison
222         between signed and unsigned integer expressions.
223
224         * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
225
226         * GraphicsCache.C: move connections to the GImage-derived classes to
227         the frontends.
228
229         * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
230
231         * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
232         conversion, then do that.
233
234 2002-02-27  Angus Leeming  <a.leeming@ic.ac.uk>
235
236         * GraphicsCache.C: improve commentary to graphicsInit and where it
237         should really go.
238
239         * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
240         that became a memory leak properly. (Let the shared_c_ptr free the
241         color table.)
242         (reset, mapcolor): tidy up and introduce a work around for XPM files
243         with crappy color entries. Print out a nice friendly message on what's
244         gone wrong and how to resolve it properly.
245
246 2002-02-27  Angus Leeming  <a.leeming@ic.ac.uk>
247
248         * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
249         (Data d-tor): introduce memory leak temporarily, to "fix" a crash
250         in free_color_table.
251         (unique_color_string): use the correct string c-tor.
252
253 2002-02-15  Angus Leeming  <a.leeming@ic.ac.uk>
254
255         * ImageLoader.[Ch]:
256         * ImageLoaderXPM.[Ch]: removed.
257
258         * GraphicsConverter.[Ch]:
259         * GraphicsImage.[Ch]:
260         * GraphicsImageXPM.[Ch]:
261         * GraphicsParams.[Ch]:
262         * GraphicsTypes.h: new files.
263
264         * All files. A total re-write of the graphics cache. The cache now
265         supports asynchronous file conversion and file loading. Images
266         can be cropped, rotated and scaled for display on the LyX screen.
267         The old LyXImage and ImageLoader have been combined in a new class
268         GImage. Ditto, ImageLoaderXPM's functionality has been moved into
269         GImageXPM.
270
271 2002-02-07  Herbert Voss  <voss@lyx.org>
272
273         * GraphicsCacheItem.C: use unzipFile() from support/filetools
274
275 2002-01-31  Herbert Voss  <voss@lyx.org>
276
277         * GraphicsCacheItem.h: handle filetype without the file extension;
278         getting type from contents; handle zipped files
279
280 2002-01-27  Herbert Voss  <voss@lyx.org>
281
282         * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
283
284 2002-01-17  John Levon  <moz@compsoc.man.ac.uk>
285
286         * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
287
288 2001-12-19  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
289
290         * GraphicsCacheItem.h: do not include <config.h> in header files
291
292 2001-09-21  Angus Leeming  <a.leeming@ic.ac.uk>
293
294         * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
295         transparent colour, then set it to the colour of the background.
296         Also take account of the monochrome, grayscale of color
297         preferences option.
298
299 2001-09-20  Angus Leeming  <a.leeming@ic.ac.uk>
300
301         * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
302         are different. Thus, don't delete the "to" if it's the original!
303
304 2001-09-01  John Levon  <moz@compsoc.man.ac.uk>
305
306         * ImageLoadXPM.C: remove setting of alloc colour mask,
307           led to crash as we don't define a callback
308
309 2001-07-29  Baruch Even  <baruch@lyx.org>
310
311         * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
312         colors with closeness of 10000.
313
314         * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
315
316 2001-07-29  Baruch Even  <baruch@lyx.org>
317
318         * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
319         too annoying.
320
321 2001-07-23  Baruch Even  <baruch@lyx.org>
322
323         * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
324         the image after conversion.
325
326 2001-07-17  Baruch Even  <baruch@lyx.org>
327
328         * GraphicsCacheItem.h:
329         * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
330         from synchronous to asynchronous and to ease the coming changes.
331
332 2001-07-03  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
333
334         * ImageLoaderXPM.C (runImageLoader): get display information from
335         GUIRunTime.
336
337 2001-06-14  Angus Leeming  <a.leeming@ic.ac.uk>
338
339         * GraphicsCache.C:
340         * GraphicsCacheItem.C:
341         * ImageLoader.C:
342         * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
343
344 2001-04-17  Lars Gullik Bjønnes  <larsbj@birdstep.com>
345
346         * GraphicsCache.h: inherit privately from noncopyable
347         * ImageLoader.h: ditto
348         * GraphicsCacheItem.h: ditto
349
350 2001-04-16  Allan Rae  <rae@lyx.org>
351
352         * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
353         CC 6.0 as an unrecognised preprocessor directive.  So ensure they're
354         wrapped.
355
356 2001-04-02  Baruch Even  <baruch@lyx.org>
357
358         * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
359         of hard coding ImageMagick.
360
361 2001-03-10  Baruch Even  <baruch@lyx.org>
362
363         * GraphicsCache.C: Style change from (*it).field to it->field
364
365 2001-03-15  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
366
367         * GraphicsCache.h: noncopyable is in namespace boost
368         * ImageLoader.h: ditto
369         * GraphicsCacheItem.h: ditto
370
371 2001-03-07  Baruch Even  <baruch@lyx.org>
372
373         * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
374         was false and it's not needed anyhow since the shared_ptr's in the cache
375         will destroy everything on exit.
376
377 2001-02-28  Baruch Even  <baruch@ev-en.org>
378
379         * GraphicsCache.h:
380         * GraphicsCache.C: Changed the singleton pattern implementation, the
381         former version "leaked" in the sense that it was not deallocated at
382         program end.
383
384 2001-02-20  Baruch Even  <baruch@ev-en.org>
385
386         * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
387         instead of a pure pointer.
388
389         * GraphicsCacheItem.[Ch]:
390         * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
391         removed the reference counting that was inside. Also fixed a bug where
392         a temporary file wouldn't get erased.
393
394         * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
395         Ownership is now dropped when the caller requests the image_ pointer.
396
397 2001-02-20  Baruch Even  <baruch@ev-en.org>
398
399         * GraphicsCache.C: Cleared up the confusion on when and how it is
400         emptied.
401
402         * GraphicsCacheItem.C: Indentation change.
403
404         * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
405         figure correctly when the image has been loaded successfully.
406
407 2001-02-08  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
408
409         * ImageLoader.C: add a "using" directive.
410
411         * ImageLoader.h: remove extra comma at the end of enum; add an
412         std:: qualifier for vector.
413
414 2001-01-21  Baruch Even  <baruch@ev-en.org>
415
416         * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
417         height in the image itself and minor cleanups.
418
419         * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
420         new ImageLoader class instead of the older Renderer class. This
421         means change of responsibilities.