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