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