1 2004-02-16 Jim Evins <evins@snaught.com>
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
9 2004-02-15 Jim Evins <evins@snaught.com>
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.
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
24 2004-02-15 Jim Evins <evins@snaught.com>
26 * data/glabels-2.0.dtd:
27 Added specific subtypes for various barcode types.
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.
40 * src/bc-postnet.c: (gl_barcode_postnet_new), (postnet_code),
42 Modified to conform to above API. Now more stringent with data length
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
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.
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.
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):
66 * src/object-editor.glade:
67 Made barcode style combo's text entry non-editable.
69 * src/print.c: (draw_barcode_object):
70 Modified to use above API for barcode type.
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.
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.
83 2004-02-07 Jim Evins <evins@snaught.com>
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.
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.
97 * src/wdgt-chain-button.h
98 * src/wdgt-chain-button.c
101 Added this Modified version of gimpchainbutton widget, borrowed from
105 Added acknowledgements of the above borrowing from the gimp.
107 * src/object-editor-size-page.c: (aspect_toggle_cb), (w_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
114 * src/text-node.c: (gl_text_node_equal):
116 Added function gl_text_node_equal() to compare text_nodes.
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
124 2004-02-04 Jim Evins <evins@snaught.com>
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.)
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.
141 2004-02-03 Jim Evins <evins@snaught.com>
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.
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.
156 2004-02-02 Jim Evins <evins@snaught.com>
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.
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.
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
172 2004-02-02 Jim Evins <evins@snaught.com>
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.
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
188 2004-01-31 Jim Evins <evins@snaught.com>
191 * data/avery-us-templates.xml:
192 Added entries for "LSK-3," "LSK-5," and "LSK-8." Submitted by JBadger.
194 * libglabels/template.c: (read_template_files_from_dir):
195 Corrected problem with testing for extensions.
197 * src/object-editor.glade:
198 Corrected grouping of radio buttons in barcode data page.
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.
204 2004-01-24 Jim Evins <evins@snaught.com>
207 * data/avery-us-templates.xml:
208 Added Avery 5824, submitted by Fred Bacon.
210 2004-01-20 Jim Evins <evins@snaught.com>
212 Catching up on a couple of backlogged user template submissions.
214 * data/avery-iso-templates.xml:
215 Added "DECAdry OLW-4731" and "DECAdry DLW-1731" aliases for Avery 7160.
216 Suggested by Linas Jakucionis.
218 * data/zweckform-iso-templates.xml:
219 Added Zweckform 4760, submitted by Thomas Vill.
222 Updated to reflect above submissions.
224 2004-01-06 Jim Evins <evins@snaught.com>
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.
239 * src/xml-template.h:
240 * src/xml-template.c:
243 These files have been moved to libglabels/. API cleanup performed.
245 * libglabels/libglabels.h:
246 * libglabels/libglabels-private.h:
247 * libglabels/Makefile.am:
248 These files have been added to finish out libglabels.
255 Modified to reflect new sets of files in src/ and libglabels/.
257 * COPYING.LIBGLABELS:
259 Added copy of the LGPL for libglabels, and a copy the GFDL for
262 * src/glabels-batch.c:
264 * src/label.c: (gl_label_finalize), (gl_label_set_template),
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):
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),
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),
302 Various changes to accomodate new libglabels API.
304 2004-01-03 Jim Evins <evins@snaught.com>
309 2004-01-03 Jim Evins <evins@snaught.com>
312 Added acknowledgement of contributions by Wayne Schuller.
314 * src/commands.c: (gl_cmd_file_print):
315 Create extra reference to print dialog, so that it can be properly re-used.
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
328 * src/prefs-dialog.glade:
329 Fixed alignment of Fill/Color widgets.
331 2004-01-03 Jim Evins <evins@snaught.com>
333 * data/avery-iso-templates.xml:
334 Added user submitted templates.
335 Avery 8435A & 8435B, submitted by Ludger Solbach.
338 Added minimal documentation, noting the new template designer.
340 2004-01-03 Jim Evins <evins@snaught.com>
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.
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.
361 2004-01-02 Jim Evins <evins@snaught.com>
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.
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),
373 Added "size_changed" signal.
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.
382 2003-12-30 Wayne Schuller <k_wayne@linuxpower.org>
384 Added feature: line spacing - allows you to comfortably space a text box to
385 fit a label perfectly.
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):
409 * src/print.c: (draw_text_object):
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):
419 * src/xml-label.c: (xml_parse_toplevel_span),
420 (xml_create_toplevel_span):
422 2003-12-30 Jim Evins <evins@snaught.com>
424 * src/template-designer.c:
425 * src/template-designer.h:
426 * src/template-designer.glade:
427 New template designer assistant.
431 Added entries for src/template-designer.* files.
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.
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.
448 Added the gl_print_dialog_force_outline_flag() method, for better
449 integration with the template designer assistant.
453 * src/commands.c: (gl_cmd_file_template_designer),
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.
460 * src/glabels-ui.xml:
461 Added support for template designer assistant.
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.
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
476 2003-12-28 Jim Evins <evins@snaught.com>
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
483 2003-12-28 Wayne Schuller <k_wayne@linuxpower.org>
485 * src/file.c: (gl_file_new), (gl_file_properties):
486 Swap button order and set default for higificatory pleasure.
488 2003-12-27 Jim Evins <evins@snaught.com>
490 * barcode-0.98/Makefile.am:
491 One last time: removed doc/Makefile and po/Makefile.in.in from
494 2003-12-27 Jim Evins <evins@snaught.com>
496 * barcode-0.98/Makefile.am:
497 Removed config.stat entry from EXTRA_DIST files.
499 * barcode-0.98/Makefile.in:
502 2003-12-27 Jim Evins <evins@snaught.com>
505 Updated to work with latest gnome-common package from CVS.
506 Removed recursive configuration of barcode-0.98.
513 Added barcode-0.98/ as a SUBDIR, and removed dist-hook.
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.
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.
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:
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.
541 2003-12-26 Jim Evins <evins@snaught.com>
547 Moved local versions of get_home_data_dir() in paper.c and
548 template.c to util package. Cleaned up formatting in
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.
559 Moved local definition of NAME_SPACE macro from xml-label.c
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().