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