]> git.lyx.org Git - lyx.git/blob - src/graphics/ChangeLog
Separate interface from implementation; make GraphicsImage's pure virtual
[lyx.git] / src / graphics / ChangeLog
1 2003-09-16  Angus Leeming  <leeming@lyx.org>
2
3         * GraphicsImage.h: separate interface from implementation. Make all the
4         pure virtual functions private.
5
6 2003-09-16  Angus Leeming  <leeming@lyx.org>
7
8         * PreviewLoader.C: add #include "LColor.h".
9
10 2003-09-15  Lars Gullik Bjønnes  <larsbj@gullik.net>
11
12         * GraphicsConverter.C
13         * PreviewLoader.C: remove usage of STRCONV
14
15 2003-09-14  Angus Leeming  <leeming@lyx.org>
16
17         * PreviewLoader.C (remove): consider all InProgressProcesses when
18         ascertaining which ones to remove from the list, not every other one.
19
20 2003-09-09  Lars Gullik Bjønnes  <larsbj@lyx.org>
21
22         * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
23         * Previews.C: ditto
24
25 2003-09-08  Angus Leeming  <leeming@lyx.org>
26
27         * GraphicsImage.C:
28         * GraphicsParams.C:
29         * PreviewLoader.C: remove redundant using directives.
30
31 2003-09-07  Angus Leeming  <leeming@lyx.org>
32
33         * GraphicsTypes.h:
34         * Previews.h: remove #include "support/std_string.h".
35
36 2003-09-06  Angus Leeming  <leeming@lyx.org>
37
38         * PreviewedInset.C: add #include "insets/inset.h"
39
40 2003-09-05  Angus Leeming  <leeming@lyx.org>
41
42         * *.C: strip out redundant #includes. (26 in total.)
43
44 2003-09-04  Angus Leeming  <leeming@lyx.org>
45
46         * LoaderQueue.C (get):
47
48 2003-09-04  Angus Leeming  <leeming@lyx.org>
49
50         * GraphicsCache.C:
51         * GraphicsCacheItem.C:
52         * GraphicsConverter.C:
53         * PreviewImage.C:
54         * PreviewLoader.C:
55         * PreviewedInset.C:
56         * Previews.C: 'namespace support = lyx::support' rather than
57         'using lyx::support'.
58
59         * Previews.h: cleaned up some comments.
60
61         * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
62
63 2003-07-26  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
64
65         * GraphicsTypes.h: do not declare displayTranstor here (and remove
66         extra include)
67
68 2003-07-27  José Matos  <jamatos@fep.up.pt>
69
70         * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
71         argument change.
72
73 2003-07-21  Angus Leeming  <leeming@lyx.org>
74
75         * GraphicsCache.h:
76         * GraphicsCacheItem.[Ch]:
77         * GraphicsParams.h:
78         * PreviewLoader.h:
79         * PreviewedInset.[Ch]:
80         * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
81
82 2003-07-04  Lars Gullik Bjønnes  <larsbj@gullik.net>
83
84         * Change namespace grfx to lyx::graphics.
85
86 2003-07-01  Lars Gullik Bjønnes  <larsbj@gullik.net>
87
88         * introcude namespace lyx::support
89
90 2003-06-04  Angus Leeming  <leeming@lyx.org>
91
92         * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
93         (operator=): if it has a copy c-tor, it should have this too.
94
95 2003-06-03  Angus Leeming  <leeming@lyx.org>
96
97         * GraphicsLoader.[Ch] (Loader): add copy constructor.
98
99 2003-05-23  Angus Leeming  <leeming@lyx.org>
100
101         * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
102
103 2003-05-22  Angus Leeming  <leeming@lyx.org>
104
105         * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
106         the inset::latex method.
107
108 2003-05-22  Angus Leeming  <leeming@lyx.org>
109
110         * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
111         the inset::latex method.
112
113 2003-05-22  Angus Leeming  <leeming@lyx.org>
114
115         * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
116         makeLaTeXFile is now encapsulated within runparams.
117
118 2003-05-22  Angus Leeming  <leeming@lyx.org>
119
120         * PreviewLoader.C (dumpPreamble):
121         pass around a LatexRunParams parameter.
122
123 2003-05-13 André Pönitz <poenitz@gmx.net>
124
125         * GraphicsConverter.C:
126         * PreviewLoader.C: use tostr from own header
127
128 2003-05-12 André Pönitz <poenitz@gmx.net>
129
130         * PreviewLoader.C:  boost::format -> bformat
131
132 2003-04-15  Angus Leeming  <leeming@lyx.org>
133
134         * GraphicsConverter.C: #include lstrings.h.
135
136 2003-02-28  Alfredo Braunstein <abraunst@libero.it>
137
138         * GraphicsConverter.C
139         * PreviewLoader.C: added #include "format.h"
140
141 2003-02-26  Angus Leeming  <leeming@lyx.org>
142
143         * PreviewedInset.[Ch]: strip out the caching of the BufferView and
144         use the cache of the parent inset instead.
145
146         * PreviewLoader.C (startLoading): Prevent a crash if the user is
147         not using a tmp directory.
148
149 2003-02-26  Alfredo Braunstein  <abraunst@libero.it>
150
151         * GraphicsLoader.[Ch],
152         * PreviewImage.[Ch],
153         * PreviewedInset.C: Removed unneeded list of owner insets
154
155 2003-02-25  Alfredo Braunstein  <abraunst@libero.it>
156
157         * GraphicsConverter (startConversion): add the call to
158         ForkedCallQueue::add
159
160         * GraphicsLoader.[Ch],
161         * PreviewImage.[Ch],
162         * PreviewedInset.C: Removed unneeded BufferView
163
164 2003-02-25  Alfredo Braunstein  <abraunst@libero.it>
165
166         * LoaderQueue.[Ch]: a simplification of the code, eliminated
167         the unneeded input bucket.
168
169         * GraphicsCacheItem.C (imageConverted): move warning inside the
170         !success block.
171
172 2003-02-25  Alfredo Braunstein  <abraunst@libero.it>
173
174         * PreviewLoader.C (FindFirst): use ==, not < with std::find.
175
176 2003-02-21  Alfredo Braunstein  <abraunst@libero.it>
177
178         * LoaderQueue.[Ch] (setPriority): added
179
180         * PreviewLoader.C (finishedGenerating): reversed the loading order so
181         first images get 'touched' last, and so load first.
182
183 2003-02-20  Alfredo Braunstein  <abraunst@libero.it>
184
185         * LoaderQueue.[Ch]: added. Implements a service queue that loads
186         images in background
187         * GraphicsSupport.[Ch]: removed
188         * Makefile.am: the changes above
189         * GraphicsLoader.C: use the loading queue
190
191 2003-01-21  Angus Leeming  <leeming@lyx.org>
192
193         * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
194         previews from being generated.
195
196 2003-01-13  Angus Leeming  <leeming@lyx.org>
197
198         * GraphicsCacheItem.C (findTargetFormat): define the default conversion
199         format to be PPM not XPM.
200
201 2002-12-17  Lars Gullik Bjønnes  <larsbj@gullik.net>
202
203         * Makefile.am (EXTRA_DIST): remove variable
204
205 2002-12-13  Angus Leeming  <leeming@lyx.org>
206
207         * GraphicsImageXPM.[Ch]: removed.
208
209         * Makefile.am: associated change.
210
211 2002-12-01  Lars Gullik Bjønnes  <larsbj@gullik.net>
212
213         * several files: ws changes
214
215 2002-11-21  Angus Leeming  <leeming@lyx.org>
216
217         * GraphicsConverter.C (build_script, move_file):
218         Don't use "if [ $? -ne 0 ]; then..."
219
220 2002-11-04  Lars Gullik Bjønnes  <larsbj@gullik.net>
221
222         * PreviewLoader.C (IncrementedFileName): STRCONV
223         (startLoading): ditto
224
225         * GraphicsConverter.C (Impl): STRCONV
226         (move_file): ditto
227
228         * GraphicsTypes.C: include config.h
229
230 2002-10-25  Angus Leeming  <leeming@lyx.org>
231
232         * GraphicsConverter.C (Impl::converted)
233         * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
234         string as first arg, reflecting change in ForkedCall interface.
235
236         * PreviewLoader.C: use pid rather than command as identifier in
237         InProgress map.
238
239 2002-10-18  Angus Leeming  <leeming@lyx.org>
240
241         * GraphicsCacheItem.C (findTargetFormat): add debug message.
242
243 2002-09-24  Lars Gullik Bjønnes  <larsbj@gullik.net>
244
245         * Makefile.am (INCLUDES): loose SIGC_INCLUDES
246
247 2002-09-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
248
249         * GraphicsConverter.C (build_script): do not use ChangeExtension
250         on a base name
251         (Impl): ditto
252
253 2002-09-05  Angus Leeming  <leeming@lyx.org>
254
255         * all files: modify the headers as discussed on the list.
256
257 2002-09-04  Angus Leeming  <leeming@lyx.org>
258
259         * PreviewLoader.C (startLoading): pass the desired output format to the
260         conversion script.
261
262 2002-09-04  Angus Leeming  <leeming@lyx.org>
263
264         * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
265
266 2002-09-03  Angus Leeming  <leeming@lyx.org>
267
268         * PreviewLoader.C: fix crash reported by Norbert Koksch when
269         generating more than 999 preview snippets. Use filenames with 5 digit
270         numbers, not 3, in the first instance, although more general code is
271         commented out. I don't suppose /anyone/ has 100000 formulae in one
272         document...
273
274 2002-09-03  Angus Leeming  <leeming@lyx.org>
275
276         * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
277
278 2002-09-03  Angus Leeming  <leeming@lyx.org>
279
280         * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
281
282 2002-09-03  Martin Vermeer  <martin.vermeer@hut.fi>
283
284         * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
285         convertDefault command with "sh ".
286
287 2002-08-28  Rob Lahaye  <lahaye@snu.ac.kr>
288
289         * GraphicsImage.C: small style fix to width/height setting.
290
291         * GraphicsTypes.h: have a displayTranslator here.
292
293         * Makefile.am:
294         * GraphicsTypes.C: new file added for the setDisplayTranslator();
295
296 2002-08-23  Rob Lahaye  <lahaye@snu.ac.kr>
297
298         * GraphicsImage.C:
299         * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
300         because this input has gone from the graphics dialog.
301
302         * GraphicsTypes.h: add enum DisplayType DefaultDisplay
303
304 2002-08-20  Lars Gullik Bjønnes  <larsbj@birdstep.com>
305
306         * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
307         for support/smart_ptr.h, switch to boost smart ptr.
308
309         * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
310         (~Data): let the smart_ptr handle cleanup
311         (reset): use nifty 3rd arg
312         (resetData): ditto
313         (free_color_table): free the table manually
314
315 2002-08-09  Angus Leeming  <leeming@lyx.org>
316
317         * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
318         Buffer::makeLaTeXFile() so that LaTeX can find \input files because
319         input@path is now set correctly.
320
321 2002-08-06  Angus Leeming  <leeming@lyx.org>
322
323         * PreviewLoader.C: add support for preview.sty 0.73 (currently
324         #ifdef-ed out, awaiting the formal release).
325
326         * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
327         the contents of a file that has changed.
328
329 2002-08-05  Angus Leeming  <leeming@lyx.org>
330
331         * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
332         to preview.sty. Works only for versions of preview.sty > 0.72b but
333         doesn't hurt earlier versions. Allows me to test the new parsing of
334         LyX-specific data from the generated log file.
335
336 2002-08-02  Angus Leeming  <leeming@lyx.org>
337
338         * GraphicsLoader.C: cache the BufferView as a weak_ptr.
339
340         * PreviewLoader.[Ch] (buffer): new method, returning the owner.
341         (add): don't add empty snippets.
342
343         * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
344         (view, setView): access to to the cache_.
345
346 2002-08-02  Angus Leeming  <leeming@lyx.org>
347
348         * PreviewedInset.[Ch]: cache the LaTeX snippet.
349
350 2002-08-01  Angus Leeming  <leeming@lyx.org>
351
352         * PreviewedInset.[Ch]: new files. An abstract base class that can help
353         insets to generate previews.
354         The daughter class must instantiate three small methods.
355         The Inset would own an instance of this daughter class and invoke it
356         as necessary. For example, mathd/formula.C gets previews at the cost
357         of 15 or so lines of code.
358
359         * Makefile.am: add PreviewedInset.[Ch].
360
361         * PreviewLoader.C (add): add debug message.
362
363         * Previews.C (generateBufferPreviews): remove if-block from loop.
364
365 2002-07-29  Lars Gullik Bjønnes  <larsbj@gullik.net>
366
367         * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
368         trim,ltrim,rtrim
369         (setAscentFractions): ditto
370
371 2002-07-28  Lars Gullik Bjønnes  <larsbj@gullik.net>
372
373         * PreviewLoader.C (setAscentFractions): modify because of strip
374         changes
375
376 2002-07-22  Lars Gullik Bjønnes  <larsbj@birdstep.com>
377
378         * GraphicsConverter.C (build_script): take a ostream as a more
379         general argument than ostringstream.
380
381 2002-07-22  Herbert Voss  <voss@lyx.org>
382
383         * GraphicsConverter.C: get the "default converter" run again
384
385 2002-07-21  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
386
387         * PreviewLoader.C: use BufferParams::getLyXTextClass
388
389 2002-07-21  Herbert Voss  <voss@lyx.org>
390
391         * GraphicsImage.C: get the LyXAspectRatio run.
392
393         * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
394
395 2002-07-20  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
396
397         * PreviewLoader.C (startLoading): pass an interger as resolution
398         to the lyxpreview converter
399
400         * GraphicsParams.C: include <cstdlib>
401
402 2002-07-19  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
403
404         * PreviewLoader.C (startLoading): use LibScriptSearch to find the
405         preview converter script
406
407 2002-07-18  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
408
409         * GraphicsCacheItem.C (reset): use erase() instead of clear() for
410         strings
411
412 2002-07-18  Angus Leeming  <leeming@lyx.org>
413
414         * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
415         class.
416         (startMonitoring, monitoring, checksum): new methods to interact with
417         the FileMonitor.
418
419         * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
420         methods invoking the CacheItem methods of the same name.
421         (resetFile): if monitoring and the file changes, start monitoring this
422         new file.
423
424 2002-07-17  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
425
426         * Makefile.am: remove FileMonitor.[Ch]
427
428 2002-06-17  Herbert Voss  <voss@lyx.org>
429
430         * GraphicsCachItem.C (findTargetFormat): remove the speciell case
431         for old ps-files (Garst). It's now handled by defining a converter and
432         disabling the ps-support of xforms.
433
434 2002-07-17  Angus Leeming  <leeming@lyx.org>
435
436         Be true to the Pimpl idiom, moving all signals into the respective
437         Impl classes and defining methods to connect them to an outside slot.
438         Const-ify all visible class methods as they act only on a const pimpl_.
439
440         * GraphicsCache.[Ch] (add, remove): const-ify.
441
442         * GraphicsCacheItem.[Ch] (startLoading): const-ify.
443         (statusChanged): move the signal into the Impl class.
444         (connect): new method, enabling a listener to connect to this signal.
445
446         * GraphicsConverter.[Ch]: (startConversion): const-ify.
447         (finishedConversion): move the signal into the Impl class.
448         (connect): new method, enabling a listener to connect to this signal.
449
450         * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
451         (statusChanged): move the signal into the Impl class.
452         (connect): new method, enabling a listener to connect to this signal.
453
454         * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
455         (imageReady): move the signal into the Impl class.
456         (connect): new method, enabling a listener to connect to this signal.
457         (emitSignal): new method, enabling PreviewImage to tell the outside
458         world that the file has been loaded into memory.
459
460         * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
461         const-ify.
462
463         * GraphicsCache.C:
464         * GraphicsCacheItem.C:
465         * GraphicsConverter.[Ch]:
466         * GraphicsImage.h:
467         * GraphicsImageXPM.C:
468         * GraphicsLoader.C:
469         * PreviewLoader.[Ch]: whitespace clean-up.
470
471 2002-07-16  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
472
473         * PreviewLoader.C (setConverter): remove unused variable
474
475         * GraphicsImageXPM.C (isDrawable): implement
476         (setPixmap): the opaque color is black, not white
477
478 2002-07-15  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
479
480         * GraphicsImageXPM.C (color_none_id):
481         (contains_color_none): use ascii_lowercase instead of lowercase
482
483 2002-07-16  Angus Leeming  <leeming@lyx.org>
484
485         * PreviewLoader.C: greater use of STL algorithms.
486
487         * Previews.[Ch]: use const in more places.
488         (generateBufferPreviews): now takes a Buffer const & argument, not a
489         pointer.
490
491 2002-07-15  John Levon  <moz@compsoc.man.ac.uk>
492
493         * GraphicsImage.h: remove getPixmap/X, add isDrawable()
494
495 2002-07-12  Angus Leeming  <leeming@lyx.org>
496
497         * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
498         if visible 2 secs after the call to load them is first made.
499
500         * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
501         BufferView to ascertain whether the inset is visible or not.
502
503         * Makefile.am: added GraphicsSupport.[Ch].
504
505         * PreviewImage.[Ch]: use this smart loader.
506
507         * PreviewLoader.C: don't load generated image files indiscimminantly.
508         Instead emit the imageReady signal and allow the image owner to decide.
509
510 2002-07-12  John Levon  <moz@compsoc.man.ac.uk>
511
512         * GraphicsCache.C: remove init_graphics()
513
514 2002-07-09  Angus Leeming  <leeming@lyx.org>
515
516         * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
517         arithmetic when it should be floating.
518
519 2002-07-09  Angus Leeming  <leeming@lyx.org>
520
521         * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
522         Output equation labels as "(#)" if lyxrc preference is set.
523         (setFontScalingFactor): use lyxrc variable preview_scale_factor
524         rather than hard-coding this.
525
526 2002-07-09  Angus Leeming  <leeming@lyx.org>
527
528         * PreviewLoader.C: Further refactoring of the code. Should now be
529         pretty clean.
530
531         * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
532         past its sell-by date. The code to read the metrics file is now found
533         as a helper function in PreviewLoader.C.
534
535         * GraphicsImageXPM.C (scale): use boost::tie.
536
537 2002-07-08  Herbert Voss  <voss@lyx.org>
538
539         * PreviewLoader.C: use of preview_size_factor to get the right
540         font-size! 0.9 is the default.
541
542 2002-07-08  Angus Leeming  <leeming@lyx.org>
543
544         * PreviewLoader.C: Add "delayed" and "showlabels" options to the
545         invocation of preview.sty.
546         Perform something of an internal clean-up.
547
548 2002-07-06  Angus Leeming  <leeming@lyx.org>
549
550         * PreviewLoader.C: ensure that the metrics data is used by the
551         correct image!
552
553         * PreviewLoader.C:
554         * PreviewImage.C: (Impl d-tor): remove all generated files that still
555         exist (perhaps because the process was curtailed before the images
556         were loaded.)
557
558         * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
559
560 2002-07-05  Angus Leeming  <leeming@lyx.org>
561
562         * PreviewImage.h:
563         * PreviewImage.C:
564         * PreviewLoader.h:
565         * PreviewLoader.C:
566         * PreviewMetrics.h:
567         * PreviewMetrics.C:
568         * Previews.h:
569         * Previews.C: new files. The previewed LaTeX snippet stuff.
570
571         * Makefile.am: add these files.
572
573 2002-07-05  Angus Leeming  <leeming@lyx.org>
574
575         * GraphicsLoader.h: whitespace.
576
577 2002-07-04  Lars Gullik Bjønnes  <larsbj@birdstep.com>
578
579         * GraphicsImage.[Ch]: newImage and loadableFormats changed to
580         boost::function from boost::signal.
581
582 2002-07-01  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
583
584         * GraphicsConverter.C (convert): do not use ChangeExtension
585         because to_file_base may contain a dot.
586
587 2002-06-28  Angus Leeming  <leeming@lyx.org>
588
589         * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
590         by moving those SignalPtrs into the grfx::Image and grfx::Converter
591         classes where they really belong.
592         Use the Pimpl idiom to hide the class internals from public view.
593
594         * GraphicsTypes: remove the typedefs, leaving only the enums.
595
596         * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
597         passed a reference to one in the load() method.
598
599         * GraphicsConverter.[Ch]: totally refactored. An instance of
600         grfx::Converter now represents a single conversion process.
601         Thus grfx::CachItem now has a grfx::Converter * that is set when the
602         conversion is initiated and destroyed on completion.
603
604         * GraphicsCache.[Ch]:
605         * GraphicsCacheItem.[Ch]:
606         * GraphicsConverter.[Ch]:
607         * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
608         from public view.
609         Note that I have done this only after making the above changes,
610         so not only should we have a clean, minimal and well documented
611         interface to these classes in the header files, but the class internals
612         should be much clearer too.
613
614         * Renamed classes
615         grfx::GCache -> grfx::Cache,
616         grfx::GCacheItem -> grfx::CacheItem,
617         grfx::GConverter -> grfx::Converter,
618         grfx::GImage -> grfx::Image,
619         grfx::GImageXPM -> grfx::ImageXPM,
620         grfx::GParams -> grfx::Params.
621
622 2002-06-26  Angus Leeming  <leeming@lyx.org>
623
624         * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
625         std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
626         compiles.
627
628 2002-06-26  Angus Leeming  <leeming@lyx.org>
629
630         * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
631         move the DisplayType enum out of grfx::GParams to here.
632
633         * GraphicsCacheItem.h: re-write preliminary description to reflect
634         current reality.
635
636         * GraphicsParams.[Ch]:
637         * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
638         grfx::DisplayType out of grfx::GParams.
639
640         * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
641         that was in frontends/screen.C and insets/insetgraphics.C into a
642         single, easy-to-use class.
643
644         * Makefile.am: add these files.
645
646 2002-06-25  Angus Leeming  <leeming@lyx.org>
647
648         * GraphicsCache.[Ch]:
649         * GraphicsCacheItem.[Ch]:
650         * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
651         file into memory. The cache no longer controls the generation of the
652         pixmap. Instead, it just emits a signal when the loading status of an
653         image changes.
654         The cache no longer stores InsetGraphics pointers and nor does it
655         assume responsibility for modifying an image (scaling, rotating etc).
656         Instead, that must now be performed elsewhere.
657
658 2002-06-19  Angus Leeming  <leeming@lyx.org>
659
660         * GraphicsConverter.C: add using std::endl directive.
661
662 2002-06-17  Herbert Voss  <voss@lyx.org>
663
664         * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
665         default when nothing different was found
666         (convertToDisplayFormat): handle zipped files in the right way and
667         choose always convert as a default converter when no other
668         userdefined was found
669
670         * GraphicsConverter.C: add more lyxerr comments and choose
671         convert when no other userdefined converter was found
672
673 2002-06-10  Herbert Voss  <voss@lyx.org>
674
675         * GraphicsImageXPM.C (convertTo7chars): get another special color
676         format from convert work in the right way
677
678 2002-06-12  John Levon  <moz@compsoc.man.ac.uk>
679
680         * GraphicsCache.C: use right colormap incantation
681
682 2002-06-12  John Levon  <moz@compsoc.man.ac.uk>
683
684         * GraphicsCache.C: use lyx_gui namespace
685
686         * GraphicsImageXPM.C: back down to using xforms
687           directly again
688
689 2002-06-07  Angus Leeming  <leeming@lyx.org>
690
691         Fixes needed to compile with Compaq cxx 6.5.
692         * GraphicsConverter.h: forward declare class ConvProcess.
693
694         * GraphicsImageXPM.C:
695         all c-library variables have been moved into namespace std.
696         Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
697
698 2002-06-06  Angus Leeming  <a.leeming@ic.ac.uk>
699
700         * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
701
702 2002-05-30  Lars Gullik Bjønnes  <larsbj@birdstep.com>
703
704         * GraphicsImageXPM.C: SigC to boot::signals changes.
705         (newImage): fix () bug when using new.
706
707 2002-05-29  Lars Gullik Bjønnes  <larsbj@birdstep.com>
708
709         * switch from SigC signals to boost::signals.
710
711 2002-05-29  André Pönitz <poenitz@gmx.net>
712
713         * GraphicsParam.C: remove unneeded #include, move vomment
714
715 2002-05-28  André Pönitz <poenitz@gmx.net>
716
717         * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
718
719 2002-05-24  John Levon  <moz@compsoc.man.ac.uk>
720
721         * GraphicsImageXPM.C: ColorHandler moved
722
723 2002-05-24  Juergen Vigna  <jug@sad.it>
724
725         * GraphicsCache.h:
726         * GraphicsImage.h: include LString.h first.
727
728 2002-05-22  Lars Gullik Bjønnes  <larsbj@birdstep.com>
729
730         * GraphicsCacheItem.h: use more specific smart_ptr header.
731         * GraphicsTypes.h: ditto
732         * GraphicsImage.h: ditto
733         * GraphicsConverter.h: ditto
734
735 2002-04-28  John Levon  <moz@compsoc.man.ac.uk>
736
737         * GraphicsImageXPM.C: understand convert's use of "opaque"
738           as a colour name
739
740 2002-04-19  Marco Morandini <morandini@aero.polimi.it>
741
742         * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
743         GImage::loadableFormats() that ensures that the signal is connected
744         to the derived class' method.
745
746 2002-04-18  Lars Gullik Bjønnes  <larsbj@birdstep.com>
747
748         * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
749         only work on the string.
750
751 2002-04-17  Angus Leeming  <a.leeming@ic.ac.uk>
752
753         * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
754         the simple image loader when it encounters colour strings like
755         #rrrrggggbbbb.
756
757 2002-04-16  Angus Leeming  <a.leeming@ic.ac.uk>
758
759         * GraphicsCacheItem.C (convertToDisplayFormat):
760         * GraphicsConverter.C (build_script): remove the Alerts when things go
761         wrong as the inset displays the message anyway. Moreover, Alert seems
762         pretty temperamemtal at the moment.
763
764 2002-04-16  Rob Lahaye  <lahaye@users.sourceforge.net>
765
766         * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
767
768 2002-04-08  Angus Leeming  <a.leeming@ic.ac.uk>
769
770         * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
771         a reference to a temp object that's going out of scope...
772
773 2002-04-09  Herbert Voss  <voss@lyx.org>
774
775         * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
776         LyXLength::inBP instead of inPixels.
777
778 2002-04-10  Herbert Voss  <voss@perce.de>
779
780         * GraphicsCache.[Ch]:
781         * GraphicsCacheItem.[Ch]: add width/height functions from Angus
782         to read the "Bounding Box" from non (e)ps files.
783
784 2002-04-08  Angus Leeming  <a.leeming@ic.ac.uk>
785
786         * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
787         the EPS file too, to ensure that the clipped Bounding Box is relative
788         to the original. (From Herbert.)
789
790 2002-04-04  Angus Leeming  <a.leeming@ic.ac.uk>
791
792         * GraphicsParams.C (BoundingBox c-tor): ensure that the member
793         variables are initialised. Clean-up parsing of the string (with thanks
794         to Herbert.)
795
796 2002-03-26  Angus Leeming  <a.leeming@ic.ac.uk>
797
798         * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
799         if the file can't be found.
800
801         * GraphicsParams.h (c-tor): remove string() as default argument.
802
803         * GraphicsCacheItem.C: a couple of changes as a result.
804
805 2002-03-22  Angus Leeming  <a.leeming@ic.ac.uk>
806
807         * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
808         path to graphics file.
809
810         * GraphicsParams.[Ch] (c-tor): now passed filepath.
811
812 2002-03-21  Lars Gullik Bjønnes  <larsbj@birdstep.com>
813
814         * most files: ws cleanup
815
816         * Makefile.am: remove ld -r stuff
817
818 2002-03-20  Lars Gullik Bjønnes  <larsbj@birdstep.com>
819
820         * Makefile.am: special rules if partial linking
821
822 2002-03-14  Angus Leeming  <a.leeming@ic.ac.uk>
823
824         * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
825
826 2002-03-11  Lars Gullik Bjønnes  <larsbj@birdstep.com>
827
828         * GraphicsConverter.[Ch] (converted): make first arg const ref.
829
830         * GraphicsCacheItem.h: doxy change
831
832         * GraphicsCacheItem.C: ws change
833
834 2002-03-05  Angus Leeming  <a.leeming@ic.ac.uk>
835
836         * Makefile.am: if there is no image loading class leveraging the power
837         of the appropriate gui library, then compile the basic alternative
838         found in GraphicsImageXPM.[Ch].
839
840 2002-03-04  Angus Leeming  <a.leeming@ic.ac.uk>
841
842         * GraphicsCache.C: change associated with move of initialiseGraphics
843         to GUIRuntime.
844
845 2002-02-28  Angus Leeming  <a.leeming@ic.ac.uk>
846
847         * GraphicsParams.[Ch]:
848         * GraphicsImage.C:
849         * GraphicsImageXPM.C: properly resolve more warnings about comparison
850         between signed and unsigned integer expressions.
851
852         * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
853
854         * GraphicsCache.C: move connections to the GImage-derived classes to
855         the frontends.
856
857         * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
858
859         * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
860         conversion, then do that.
861
862 2002-02-27  Angus Leeming  <a.leeming@ic.ac.uk>
863
864         * GraphicsCache.C: improve commentary to graphicsInit and where it
865         should really go.
866
867         * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
868         that became a memory leak properly. (Let the shared_c_ptr free the
869         color table.)
870         (reset, mapcolor): tidy up and introduce a work around for XPM files
871         with crappy color entries. Print out a nice friendly message on what's
872         gone wrong and how to resolve it properly.
873
874 2002-02-27  Angus Leeming  <a.leeming@ic.ac.uk>
875
876         * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
877         (Data d-tor): introduce memory leak temporarily, to "fix" a crash
878         in free_color_table.
879         (unique_color_string): use the correct string c-tor.
880
881 2002-02-15  Angus Leeming  <a.leeming@ic.ac.uk>
882
883         * ImageLoader.[Ch]:
884         * ImageLoaderXPM.[Ch]: removed.
885
886         * GraphicsConverter.[Ch]:
887         * GraphicsImage.[Ch]:
888         * GraphicsImageXPM.[Ch]:
889         * GraphicsParams.[Ch]:
890         * GraphicsTypes.h: new files.
891
892         * All files. A total re-write of the graphics cache. The cache now
893         supports asynchronous file conversion and file loading. Images
894         can be cropped, rotated and scaled for display on the LyX screen.
895         The old LyXImage and ImageLoader have been combined in a new class
896         GImage. Ditto, ImageLoaderXPM's functionality has been moved into
897         GImageXPM.
898
899 2002-02-07  Herbert Voss  <voss@lyx.org>
900
901         * GraphicsCacheItem.C: use unzipFile() from support/filetools
902
903 2002-01-31  Herbert Voss  <voss@lyx.org>
904
905         * GraphicsCacheItem.h: handle filetype without the file extension;
906         getting type from contents; handle zipped files
907
908 2002-01-27  Herbert Voss  <voss@lyx.org>
909
910         * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
911
912 2002-01-17  John Levon  <moz@compsoc.man.ac.uk>
913
914         * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
915
916 2001-12-19  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
917
918         * GraphicsCacheItem.h: do not include <config.h> in header files
919
920 2001-09-21  Angus Leeming  <a.leeming@ic.ac.uk>
921
922         * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
923         transparent colour, then set it to the colour of the background.
924         Also take account of the monochrome, grayscale of color
925         preferences option.
926
927 2001-09-20  Angus Leeming  <a.leeming@ic.ac.uk>
928
929         * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
930         are different. Thus, don't delete the "to" if it's the original!
931
932 2001-09-01  John Levon  <moz@compsoc.man.ac.uk>
933
934         * ImageLoadXPM.C: remove setting of alloc colour mask,
935           led to crash as we don't define a callback
936
937 2001-07-29  Baruch Even  <baruch@lyx.org>
938
939         * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
940         colors with closeness of 10000.
941
942         * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
943
944 2001-07-29  Baruch Even  <baruch@lyx.org>
945
946         * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
947         too annoying.
948
949 2001-07-23  Baruch Even  <baruch@lyx.org>
950
951         * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
952         the image after conversion.
953
954 2001-07-17  Baruch Even  <baruch@lyx.org>
955
956         * GraphicsCacheItem.h:
957         * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
958         from synchronous to asynchronous and to ease the coming changes.
959
960 2001-07-03  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
961
962         * ImageLoaderXPM.C (runImageLoader): get display information from
963         GUIRunTime.
964
965 2001-06-14  Angus Leeming  <a.leeming@ic.ac.uk>
966
967         * GraphicsCache.C:
968         * GraphicsCacheItem.C:
969         * ImageLoader.C:
970         * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
971
972 2001-04-17  Lars Gullik Bjønnes  <larsbj@birdstep.com>
973
974         * GraphicsCache.h: inherit privately from noncopyable
975         * ImageLoader.h: ditto
976         * GraphicsCacheItem.h: ditto
977
978 2001-04-16  Allan Rae  <rae@lyx.org>
979
980         * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
981         CC 6.0 as an unrecognised preprocessor directive.  So ensure they're
982         wrapped.
983
984 2001-04-02  Baruch Even  <baruch@lyx.org>
985
986         * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
987         of hard coding ImageMagick.
988
989 2001-03-10  Baruch Even  <baruch@lyx.org>
990
991         * GraphicsCache.C: Style change from (*it).field to it->field
992
993 2001-03-15  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
994
995         * GraphicsCache.h: noncopyable is in namespace boost
996         * ImageLoader.h: ditto
997         * GraphicsCacheItem.h: ditto
998
999 2001-03-07  Baruch Even  <baruch@lyx.org>
1000
1001         * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1002         was false and it's not needed anyhow since the shared_ptr's in the cache
1003         will destroy everything on exit.
1004
1005 2001-02-28  Baruch Even  <baruch@ev-en.org>
1006
1007         * GraphicsCache.h:
1008         * GraphicsCache.C: Changed the singleton pattern implementation, the
1009         former version "leaked" in the sense that it was not deallocated at
1010         program end.
1011
1012 2001-02-20  Baruch Even  <baruch@ev-en.org>
1013
1014         * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1015         instead of a pure pointer.
1016
1017         * GraphicsCacheItem.[Ch]:
1018         * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1019         removed the reference counting that was inside. Also fixed a bug where
1020         a temporary file wouldn't get erased.
1021
1022         * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1023         Ownership is now dropped when the caller requests the image_ pointer.
1024
1025 2001-02-20  Baruch Even  <baruch@ev-en.org>
1026
1027         * GraphicsCache.C: Cleared up the confusion on when and how it is
1028         emptied.
1029
1030         * GraphicsCacheItem.C: Indentation change.
1031
1032         * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1033         figure correctly when the image has been loaded successfully.
1034
1035 2001-02-08  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1036
1037         * ImageLoader.C: add a "using" directive.
1038
1039         * ImageLoader.h: remove extra comma at the end of enum; add an
1040         std:: qualifier for vector.
1041
1042 2001-01-21  Baruch Even  <baruch@ev-en.org>
1043
1044         * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1045         height in the image itself and minor cleanups.
1046
1047         * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1048         new ImageLoader class instead of the older Renderer class. This
1049         means change of responsibilities.