]> git.sur5r.net Git - glabels/blob - glabels2/ChangeLog
e03e65568d687a9568c3db7858576f441671c211
[glabels] / glabels2 / ChangeLog
1 2004-02-16  Jim Evins  <evins@snaught.com>
2
3         * src/xml-label-04.c: (xml04_parse_image_props):
4         * src/xml-label-191.c: (xml191_parse_image_props):
5         * src/xml-label.c: (xml_parse_object_image):
6                 Delay setting image size until after image has been applied to new
7                 object.
8         
9 2004-02-15  Jim Evins  <evins@snaught.com>
10
11         * src/label-barcode.c: (gl_label_barcode_set_data),
12         (gl_label_barcode_set_props):
13                 Don't emit "changed" signal, if no change actually made for these
14                 methods.  Reduces number of unnecessary redraws of barcodes.
15         
16         * src/label-object.h:
17         * src/label-object.c: (gl_label_object_set_position),
18         (gl_label_object_set_position_relative), (set_size),
19         (gl_label_object_set_size),
20         (gl_label_object_set_size_honor_aspect):
21                 Don't emit "changed" signal, if no change actually made for these
22                 methods.
23
24 2004-02-15  Jim Evins  <evins@snaught.com>
25
26         * data/glabels-2.0.dtd:
27                 Added specific subtypes for various barcode types.
28         
29         * src/bc.h:
30         * src/bc.c: (id_to_index), (name_to_index), (gl_barcode_new),
31         (gl_barcode_get_styles_list), (gl_barcode_default_digits),
32         (gl_barcode_can_text), (gl_barcode_text_optional),
33         (gl_barcode_can_csum), (gl_barcode_csum_optional),
34         (gl_barcode_id_to_name), (gl_barcode_name_to_id):
35                 Changed API to use a string id, rather than a fixed enumeration.  Id and
36                 name are separate strings.  Added entries to backend table for specific
37                 subtypes for various barcode types.
38         
39         * src/bc-postnet.h:
40         * src/bc-postnet.c: (gl_barcode_postnet_new), (postnet_code),
41         (is_length_valid):
42                 Modified to conform to above API.  Now more stringent with data length
43                 for various subtypes.
44         
45         * src/bc-gnubarcode.h:
46         * src/bc-gnubarcode.c: (gl_barcode_gnubarcode_new),
47         (is_length_valid), (is_length1_valid), (is_length2_valid):
48                 Modified to conform to above API.  Now more stringent with data length
49                 for various subtypes.
50
51         * src/label-barcode.h:
52         * src/label-barcode.c: (copy), (gl_label_barcode_set_props),
53         (gl_label_barcode_get_props), (get_size):
54                 Modified to use above API for storing barcode type.
55         
56         * src/object-editor.h:
57         * src/object-editor-bc-page.c: (style_changed_cb),
58         (gl_object_editor_set_bc_style), (gl_object_editor_get_bc_style):
59                 Modified to use above API for storing barcode type.
60         
61         * src/object-editor-size-page.c:
62         (gl_object_editor_prepare_size_page), (aspect_toggle_cb),
63         (w_spin_cb), (h_spin_cb), (size_reset_cb):
64                 Added debug markers.
65         
66         * src/object-editor.glade:
67                 Made barcode style combo's text entry  non-editable.
68         
69         * src/print.c: (draw_barcode_object):
70                 Modified to use above API for barcode type.
71
72         * src/view-barcode.c: (update_object_from_editor_cb),
73         (update_editor_from_object_cb),
74         (gl_view_barcode_create_event_handler), (draw_barcode):
75                 Modified to use above API for barcode type.
76         
77         * src/xml-label-04.c: (xml04_parse_barcode_props):
78         * src/xml-label-191.c: (xml191_parse_barcode_props):
79         * src/xml-label.c: (xml_parse_object_barcode),
80         (xml_create_object_barcode):
81                 Modified to use above API for barcode type.
82
83 2004-02-07  Jim Evins  <evins@snaught.com>
84
85         * src/stock-pixmaps/Makefile.am:
86         * src/stock-pixmaps/stock_hchain_24.png:
87         * src/stock-pixmaps/stock_hchain_broken_24.png:
88         * src/stock-pixmaps/stock_vchain_24.png:
89         * src/stock-pixmaps/stock_vchain_broken_24.png:
90                 Added chain pixmaps borrowed from the gimp's default theme.
91
92         * src/stock.h:
93         * src/stock.c: (gl_stock_init), (add_button_icon):
94                 Added above pixmaps to stock icon sets.  Created add_button_icon() to
95                 add these pixmaps sized as GTK_ICON_SIZE_BUTTON.
96         
97         * src/wdgt-chain-button.h
98         * src/wdgt-chain-button.c
99         * src/Makefile.am:
100         * po/POTFILES.in:
101                 Added this Modified version of gimpchainbutton widget, borrowed from
102                 the gimp.
103         
104         * AUTHORS:
105                 Added acknowledgements of the above borrowing from the gimp.
106         
107         * src/object-editor-size-page.c: (aspect_toggle_cb), (w_spin_cb),
108         (h_spin_cb):
109         * src/object-editor.c: (gl_object_editor_construct_chain_button):
110         * src/object-editor.glade:
111                 Replaced the keep aspect ratio check box with the above chain-button
112                 widget.
113         
114         * src/text-node.c: (gl_text_node_equal):
115         * src/text-node.h:
116                 Added function gl_text_node_equal() to compare text_nodes.
117         
118         * src/label-image.c: (gl_label_image_set_filename):
119                 Replaced incomplete text_node comparison code with invocation of
120                 gl_text_node_equal.  This fixed the problem of not being able to
121                 resize an image using the object_editor if the aspect ratio is not
122                 locked.
123
124 2004-02-04  Jim Evins  <evins@snaught.com>
125
126         * src/object-editor-image-page.c:
127         (gl_object_editor_prepare_image_page):
128                 Track "changed" signal of pixmap entry's GtkEntry rather than its
129                 "activate" signal -- this catches all changes to the entry rather than
130                 just changes resulting from a browse, so one can easily pull previous
131                 entries from the history. (This change is marked below on 2004-02-03,
132                 but somehow never got checked in.)
133
134         * src/view-highlight.c: (sl_resize_event_handler),
135         (sr_resize_event_handler), (st_resize_event_handler),
136         (sb_resize_event_handler):
137                 Side resize handles will now confirm the actual resize that the object
138                 accepted before adjusting position parameters.  Previously some interesting
139                 things happened when resizing a barcode to its minimum size.
140
141 2004-02-03  Jim Evins  <evins@snaught.com>
142
143         * src/object-editor-image-page.c:
144         (gl_object_editor_prepare_image_page):
145                 Track "changed" signal of pixmap entry's GtkEntry rather than its
146                 "activate" signal -- this catches all changes to the entry rather than
147                 just changes resulting from a browse, so one can easily pull previous
148                 entries from the history.
149         
150         * src/view-highlight.c: (tl_resize_event_handler),
151         (tr_resize_event_handler), (bl_resize_event_handler),
152         (br_resize_event_handler):
153                 Allow control key to be dropped while dragging a corner resize handle
154                 without losing the aspect ratio lock.
155
156 2004-02-02  Jim Evins  <evins@snaught.com>
157
158         * src/label-image.c: (gl_label_image_set_filename):
159                 When setting a new filename adjust size such that the aspect ratio of
160                 the image is preserved using the current size as a bounding box.
161                 
162         * src/view-image.c: (update_object_from_editor_cb):
163                 When updating object from editor, feed back possible size changes to
164                 editor as a result of a possible change in image.
165         
166         * src/object-editor-size-page.c: (size_reset_cb):
167                 Fixed typo when blocking spin handlers.  If the base size is larger than
168                 the max size, treat max size as a bounding box while keeping aspect
169                 ratio.
170                 
171
172 2004-02-02  Jim Evins  <evins@snaught.com>
173
174         * src/label-object.h:
175         * src/label-object.c: (gl_label_object_set_size),
176         (gl_label_object_set_size_honor_aspect):
177                 Added gl_label_object_set_size_honor_aspect() which will maintain the
178                 current aspect ratio by modifying the supplied w or h apropriately.
179         
180         * src/view-highlight.c: (tl_resize_event_handler),
181         (tr_resize_event_handler), (bl_resize_event_handler),
182         (br_resize_event_handler):
183                 Corner handles will now maintain the current aspect ratio if the
184                 control key is pressed while resizing.  This addresses feature
185                 request #816603.
186        
187
188 2004-01-31  Jim Evins  <evins@snaught.com>
189
190         * AUTHORS:
191         * data/avery-us-templates.xml:
192                 Added entries for "LSK-3," "LSK-5," and "LSK-8."  Submitted by JBadger.
193         
194         * libglabels/template.c: (read_template_files_from_dir):
195                 Corrected problem with testing for extensions.
196         
197         * src/object-editor.glade:
198                 Corrected grouping of radio buttons in barcode data page.
199
200         * src/print.c: (draw_barcode_object):
201         * src/view-barcode.c: (draw_barcode):
202                 Corrected problem with calculation of y_offset for locating characters.
203
204 2004-01-24  Jim Evins  <evins@snaught.com>
205
206         * AUTHORS:
207         * data/avery-us-templates.xml:
208                 Added Avery 5824, submitted by Fred Bacon.
209         
210 2004-01-20  Jim Evins  <evins@snaught.com>
211
212         Catching up on a couple of backlogged user template submissions.
213
214         * data/avery-iso-templates.xml:
215                 Added "DECAdry OLW-4731" and "DECAdry DLW-1731" aliases for Avery 7160.
216                 Suggested by Linas Jakucionis.
217         
218         * data/zweckform-iso-templates.xml:
219                 Added Zweckform 4760, submitted by Thomas Vill.
220
221         * AUTHORS:
222                 Updated to reflect above submissions.
223
224 2004-01-06  Jim Evins  <evins@snaught.com>
225
226         Split-out template.[ch], paper.[ch], xml-template.[ch], xml-paper.[ch], and
227         xml.[ch] into a separate library called libglabels, to facilitate third
228         party use of glabels template files.  This was suggested by Wayne Schuller.
229         Once split-out, some modifications to the structures and functions to
230         make a cleaner more useful API, hopefully.  Rather extensive changes have
231         propogated to other modules.
232
233         * src/paper.h:
234         * src/paper.c:
235         * src/template.h:
236         * src/template.c:
237         * src/xml-paper.h:
238         * src/xml-paper.c:
239         * src/xml-template.h:
240         * src/xml-template.c:
241         * src/xml.h:
242         * src/xml.c:
243                 These files have been moved to libglabels/.  API cleanup performed.
244
245         * libglabels/libglabels.h:
246         * libglabels/libglabels-private.h:
247         * libglabels/Makefile.am:
248                 These files have been added to finish out libglabels.
249         
250         * Makefile.am:
251         * configure.in:
252         * glabels.spec.in:
253         * po/POTFILES.in:
254         * src/Makefile.am:
255                 Modified to reflect new sets of files in src/ and libglabels/.
256
257         * COPYING.LIBGLABELS:
258         * COPYING-DOCS:
259                 Added copy of the LGPL for libglabels, and a copy the GFDL for
260                 documentation.
261         
262         * src/glabels-batch.c:
263         * src/glabels.c:
264         * src/label.c: (gl_label_finalize), (gl_label_set_template),
265         (gl_label_get_size):
266         * src/label.h:
267         * src/prefs-model.c: (gl_prefs_model_load_settings):
268         * src/print-dialog.c:
269         * src/print.c: (gl_print_simple), (gl_print_merge_collated),
270         (gl_print_merge_uncollated), (gl_print_batch), (print_info_free),
271         (print_crop_marks), (print_label), (draw_outline),
272         (clip_to_outline), (clip_punchouts):
273         * src/template-designer.c: (construct_pg_size_page),
274         (pg_size_page_changed_cb), (layout_page_changed_cb),
275         (print_test_cb), (build_template):
276         * src/util.c: (gl_util_fraction):
277         * src/util.h:
278         * src/view.c: (draw_bg_fg_layers), (draw_bg_fg_rect),
279         (draw_bg_fg_rounded_rect), (draw_bg_fg_round), (draw_bg_fg_cd),
280         (draw_bg_fg_cd_bc), (draw_markup_layer), (draw_markup_margin),
281         (draw_markup_margin_rect), (draw_markup_margin_rounded_rect),
282         (draw_markup_margin_round), (draw_markup_margin_cd),
283         (draw_markup_margin_cd_bc), (draw_markup_line),
284         (draw_markup_circle), (gl_view_copy):
285         * src/wdgt-media-select.c: (gl_wdgt_media_select_construct),
286         (page_size_entry_changed_cb), (details_update), (get_layout_desc),
287         (get_label_size_desc):
288         * src/wdgt-mini-preview.c:
289         (gl_wdgt_mini_preview_set_label_by_name), (mini_outline_list_new),
290         (cdbc_item):
291         * src/wdgt-print-copies.c: (gl_wdgt_print_copies_construct):
292         * src/wdgt-print-merge.c: (gl_wdgt_print_merge_construct):
293         * src/wdgt-rotate-label.c: (mini_preview_canvas_update),
294         (gl_wdgt_rotate_label_set_template_name), (cdbc_item):
295         * src/wdgt-rotate-label.h:
296         * src/xml-label-04.c: (xml04_parse_media_description):
297         * src/xml-label-191.c: (gl_xml_label_191_parse),
298         (xml191_parse_sheet), (xml191_parse_label), (xml191_parse_layout),
299         (xml191_parse_markup), (xml191_parse_alias):
300         * src/xml-label.c: (xml_doc_to_label), (xml_parse_label),
301         (xml_label_to_doc):
302                 Various changes to accomodate new libglabels API.
303         
304 2004-01-03  Jim Evins  <evins@snaught.com>
305
306         * configure.in:
307                 Release 1.93.2.
308
309 2004-01-03  Jim Evins  <evins@snaught.com>
310
311         * AUTHORS:
312                 Added acknowledgement of contributions by Wayne Schuller.
313         
314         * src/commands.c: (gl_cmd_file_print):
315                 Create extra reference to print dialog, so that it can be properly re-used.
316         
317         * src/mygal/mygal-combo-box.h:
318         * src/mygal/mygal-combo-box.c:
319         (mygal_combo_box_popup_hide_unconditional),
320         (mygal_combo_box_popup_display), (mygal_combo_box_set_display),
321         (gtk_combo_set_tearoff_state), (mygal_combo_box_construct),
322         (mygal_combo_box_set_arrow_relief), (mygal_combo_box_set_title),
323         (mygal_combo_box_set_tearable):
324                 Changed all occurances of GTK_IS_COMBO_BOX to MYGAL_IS_COMBO_BOX, to
325                 complete the rename of this widget to prevent namespace collisions
326                 with Gtk+-2.3.
327         
328         * src/prefs-dialog.glade:
329                 Fixed alignment of Fill/Color widgets.
330
331 2004-01-03  Jim Evins  <evins@snaught.com>
332
333         * data/avery-iso-templates.xml:
334                 Added user submitted templates.
335                 Avery 8435A & 8435B, submitted by Ludger Solbach.
336
337         * doc/C/glabels.xml:
338                 Added minimal documentation, noting the new template designer.
339
340 2004-01-03  Jim Evins  <evins@snaught.com>
341
342         * pixmaps/ex-rect-size.png:
343         * pixmaps/ex-round-size.png:
344         * pixmaps/ex-cd-size.png:
345         * pixmaps/Makefile.am:
346                 Added ex-rect-size.png, ex-round-size.png, and ex-cd-size.png image
347                 files to be used as illustrations/examples in the template-designer.
348
349         * src/template-designer.c: (construct_rect_size_page),
350         (construct_round_size_page), (construct_cd_size_page),
351         (construct_nlayouts_page), (rect_size_page_prepare_cb),
352         (round_size_page_prepare_cb), (cd_size_page_prepare_cb),
353         (layout_page_prepare_cb), (build_template):
354         * src/template-designer.glade:
355                 Added illustrations for rectangle, round, and cd label size pages.
356                 Added margin spinboxes to these pages, and now add a margin markup
357                 to the constructed template.  Added realistic default values for
358                 some of the size spinboxes.  Cleaned up the code for setting spinbox
359                 ranges on the layouts page.
360
361 2004-01-02  Jim Evins  <evins@snaught.com>
362
363         * src/object-editor-size-page.c: (h_spin_cb):
364                 Fixed cut-n-paste error in h_spin_cb that loaded h from
365                 the wrong spinbutton.
366
367         * src/object-editor.h:
368         * src/object-editor.c: (gl_object_editor_class_init),
369         (gl_object_editor_changed_cb), (gl_object_editor_size_changed_cb):
370         * src/object-editor-private.h:
371         * src/object-editor-size-page.c: (w_spin_cb), (h_spin_cb),
372         (size_reset_cb):
373                 Added "size_changed" signal.
374                 
375         * src/view-text.c: (construct_properties_editor),
376         (update_object_from_editor_cb),
377         (update_object_from_editor_size_cb):
378                 Track size changes from object editor separately from other
379                 properties.  This is so the default size (0,0) of a text
380                 object is not modified unintentionally.
381
382 2003-12-30  Wayne Schuller  <k_wayne@linuxpower.org>
383
384         Added feature: line spacing - allows you to comfortably space a text box to
385         fit a label perfectly.
386
387         * data/glabels-2.0.dtd:
388         * src/label-object.c: (gl_label_object_set_text_line_spacing),
389         (gl_label_object_get_text_alignment),
390         (gl_label_object_get_text_line_spacing):
391         * src/label-object.h:
392         * src/label-text.c: (gl_label_text_class_init),
393         (gl_label_text_instance_init), (copy), (get_size),
394         (set_text_line_spacing), (get_text_alignment),
395         (get_text_line_spacing):
396         * src/object-editor-private.h:
397         * src/object-editor-text-page.c:
398         (gl_object_editor_prepare_text_page),
399         (gl_object_editor_set_text_line_spacing),
400         (gl_object_editor_get_text_line_spacing):
401         * src/object-editor.glade:
402         * src/object-editor.h:
403         * src/prefs-dialog.c: (construct_object_page),
404         (update_object_page_from_prefs), (update_prefs_from_object_page):
405         * src/prefs-dialog.glade:
406         * src/prefs-model.c: (gl_prefs_model_save_settings),
407         (gl_prefs_model_load_settings), (get_float):
408         * src/prefs-model.h:
409         * src/print.c: (draw_text_object):
410         * src/ui-sidebar.c:
411         * src/view-text.c: (update_object_from_editor_cb),
412         (update_editor_from_object_cb),
413         (gl_view_text_create_event_handler), (draw_hacktext):
414         * src/view.c: (gl_view_construct),
415         (gl_view_set_selection_text_line_spacing),
416         (gl_view_set_default_text_line_spacing),
417         (gl_view_get_default_text_line_spacing):
418         * src/view.h:
419         * src/xml-label.c: (xml_parse_toplevel_span),
420         (xml_create_toplevel_span):
421
422 2003-12-30  Jim Evins  <evins@snaught.com>
423
424         * src/template-designer.c:
425         * src/template-designer.h:
426         * src/template-designer.glade:
427                 New template designer assistant.
428         
429         * po/POTFILES.in:
430         * src/Makefile.am:
431                 Added entries for src/template-designer.* files.
432         
433         * pixmaps/ex-1layout.png
434         * pixmaps/ex-2layouts.png
435         * pixmaps/Makefile.am:
436                 Added the new image files ex-*.png used as illustrations in the
437                 template designer assistant.
438         
439         * src/print-dialog.h:
440         * src/print-dialog.c: (gl_print_dialog_finalize),
441         (gl_print_dialog_new), (gl_print_dialog_construct),
442         (gl_print_dialog_force_outline_flag):
443                 Changed first argument of gl_print_dialog_new() from glView to glLabel,
444                 to support printing from the template designer assistant which does not
445                 have a full-fledged view.  Nothing else from the view object was being
446                 used by the dialog anyway.
447
448                 Added the gl_print_dialog_force_outline_flag() method, for better
449                 integration with the template designer assistant.
450                 
451
452         * src/commands.h:
453         * src/commands.c: (gl_cmd_file_template_designer),
454         (gl_cmd_file_print):
455                 Modified print command to provide label instead of view to dialog.
456                 Added the gl_cmd_file_template_designer() command to invoke the
457                 template designer assistant.
458         
459         * src/ui.c:
460         * src/glabels-ui.xml:
461                 Added support for template designer assistant.
462         
463         * src/wdgt-mini-preview.h:
464         * src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_set_template),
465         (gl_wdgt_mini_preview_set_bg_color):
466                 Preview is now centered in canvas.  Added
467                 gl_wdgt_mini_preview_set_bg_color() to allow the template designer
468                 assistant to match the background color with its own.
469         
470         * src/print.c: (clip_to_outline):
471                 Fixed really stupid bug when adding waste to clip region of rectangular
472                 labels/cards.  Each side of the clip region needs to be extended by
473                 twice the waste margin, as well as negatively offset by the waste
474                 margin.
475
476 2003-12-28  Jim Evins  <evins@snaught.com>
477
478         * src/prefs-dialog.c: (update_object_page_from_prefs):
479                 Block intermediary function align_toggle_cb() instead of
480                 update_prefs_from_object_page() for the three alignment
481                 widgets.
482
483 2003-12-28  Wayne Schuller  <k_wayne@linuxpower.org>
484
485         * src/file.c: (gl_file_new), (gl_file_properties):
486                 Swap button order and set default for higificatory pleasure.
487
488 2003-12-27  Jim Evins  <evins@snaught.com>
489
490         * barcode-0.98/Makefile.am:
491                 One last time:  removed doc/Makefile and po/Makefile.in.in from
492                 EXTRA_DIST files.
493         
494 2003-12-27  Jim Evins  <evins@snaught.com>
495
496         * barcode-0.98/Makefile.am:
497                 Removed config.stat entry from EXTRA_DIST files.
498         
499         * barcode-0.98/Makefile.in:
500                 Removed.
501
502 2003-12-27  Jim Evins  <evins@snaught.com>
503
504         * configure.in:
505                 Updated to work with latest gnome-common package from CVS.
506                 Removed recursive configuration of barcode-0.98.
507
508         * acconfig.h:
509         * macros/*:
510                 Removed.
511         
512         * Makefile.am:
513                 Added barcode-0.98/ as a SUBDIR, and removed dist-hook.
514         
515         * barcode-0.98/Makefile.in:
516         * barcode-0.98/configure.in:
517         * barcode-0.98/Makefile.am:
518         * barcode-0.98/README.glabels:
519                 Modified to ignore the barcode package's build system, and build
520                 as a part of glabels.
521                 Renamed Makefile.in to Makefile.in.dist.
522                 Renamed configure.in to configure.in.dist.
523                 Added barcode-0.98/Makefile.am and barcode-0.98/README.glabels.
524         
525         * src/Makefile.am:
526         * src/mygal/Makefile.am:
527         * src/recent-files/Makefile.am:
528                 In order to build against the GNOME 2.5 platform, 
529                 all use of *_DISABLE_DEPRECATED compile-time flags has been removed.
530         
531         * src/mygal/Makefile.am:
532         * src/mygal/mygal-combo-box.c:
533         * src/mygal/mygal-combo-box.h:
534         * src/mygal/widget-color-combo.c:
535         * src/mygal/widget-color-combo.h:
536         * po/POTFILES.in:
537                 In order to build against the GNOME 2.5 platform, 
538                 Renamed gtk_combo_box widget to mygal_combo_box, to prevent namespace
539                 collisions with the real gtk_combo_box widget, now a part of gtk.
540         
541 2003-12-26  Jim Evins  <evins@snaught.com>
542
543         * src/paper.c:
544         * src/template.c:
545         * src/util.c:
546         * src/util.h:
547                 Moved local versions of get_home_data_dir() in paper.c and
548                 template.c to util package.  Cleaned up formatting in
549                 util.[ch].
550
551         * src/template.c:
552                 In gl_template_register() save a copy of the template in
553                 ~/.glabels if the template is not known.  Still need to
554                 handle duplicate filename case and duplicate name but
555                 different template case.
556         
557         * src/xml-label.c:
558         * src/xml.h:
559                 Moved local definition of NAME_SPACE macro from xml-label.c
560                 to xml.h.
561         
562         * src/xml-template.c:
563         * src/xml-template.h:
564                 Added function gl_xml_template_write_template_to_file(), used
565                 in gl_template_register().
566
567