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