1 2004-02-02 Jim Evins <evins@snaught.com>
3 * src/label-image.c: (gl_label_image_set_filename):
4 When setting a new filename adjust size such that the aspect ratio of
5 the image is preserved using the current size as a bounding box.
7 * src/view-image.c: (update_object_from_editor_cb):
8 When updating object from editor, feed back possible size changes to
9 editor as a result of a possible change in image.
11 * src/object-editor-size-page.c: (size_reset_cb):
12 Fixed typo when blocking spin handlers. If the base size is larger than
13 the max size, treat max size as a bounding box while keeping aspect
17 2004-02-02 Jim Evins <evins@snaught.com>
20 * src/label-object.c: (gl_label_object_set_size),
21 (gl_label_object_set_size_honor_aspect):
22 Added gl_label_object_set_size_honor_aspect() which will maintain the
23 current aspect ratio by modifying the supplied w or h apropriately.
25 * src/view-highlight.c: (tl_resize_event_handler),
26 (tr_resize_event_handler), (bl_resize_event_handler),
27 (br_resize_event_handler):
28 Corner handles will now maintain the current aspect ratio if the
29 control key is pressed while resizing. This addresses feature
33 2004-01-31 Jim Evins <evins@snaught.com>
36 * data/avery-us-templates.xml:
37 Added entries for "LSK-3," "LSK-5," and "LSK-8." Submitted by JBadger.
39 * libglabels/template.c: (read_template_files_from_dir):
40 Corrected problem with testing for extensions.
42 * src/object-editor.glade:
43 Corrected grouping of radio buttons in barcode data page.
45 * src/print.c: (draw_barcode_object):
46 * src/view-barcode.c: (draw_barcode):
47 Corrected problem with calculation of y_offset for locating characters.
49 2004-01-24 Jim Evins <evins@snaught.com>
52 * data/avery-us-templates.xml:
53 Added Avery 5824, submitted by Fred Bacon.
55 2004-01-20 Jim Evins <evins@snaught.com>
57 Catching up on a couple of backlogged user template submissions.
59 * data/avery-iso-templates.xml:
60 Added "DECAdry OLW-4731" and "DECAdry DLW-1731" aliases for Avery 7160.
61 Suggested by Linas Jakucionis.
63 * data/zweckform-iso-templates.xml:
64 Added Zweckform 4760, submitted by Thomas Vill.
67 Updated to reflect above submissions.
69 2004-01-06 Jim Evins <evins@snaught.com>
71 Split-out template.[ch], paper.[ch], xml-template.[ch], xml-paper.[ch], and
72 xml.[ch] into a separate library called libglabels, to facilitate third
73 party use of glabels template files. This was suggested by Wayne Schuller.
74 Once split-out, some modifications to the structures and functions to
75 make a cleaner more useful API, hopefully. Rather extensive changes have
76 propogated to other modules.
88 These files have been moved to libglabels/. API cleanup performed.
90 * libglabels/libglabels.h:
91 * libglabels/libglabels-private.h:
92 * libglabels/Makefile.am:
93 These files have been added to finish out libglabels.
100 Modified to reflect new sets of files in src/ and libglabels/.
102 * COPYING.LIBGLABELS:
104 Added copy of the LGPL for libglabels, and a copy the GFDL for
107 * src/glabels-batch.c:
109 * src/label.c: (gl_label_finalize), (gl_label_set_template),
112 * src/prefs-model.c: (gl_prefs_model_load_settings):
113 * src/print-dialog.c:
114 * src/print.c: (gl_print_simple), (gl_print_merge_collated),
115 (gl_print_merge_uncollated), (gl_print_batch), (print_info_free),
116 (print_crop_marks), (print_label), (draw_outline),
117 (clip_to_outline), (clip_punchouts):
118 * src/template-designer.c: (construct_pg_size_page),
119 (pg_size_page_changed_cb), (layout_page_changed_cb),
120 (print_test_cb), (build_template):
121 * src/util.c: (gl_util_fraction):
123 * src/view.c: (draw_bg_fg_layers), (draw_bg_fg_rect),
124 (draw_bg_fg_rounded_rect), (draw_bg_fg_round), (draw_bg_fg_cd),
125 (draw_bg_fg_cd_bc), (draw_markup_layer), (draw_markup_margin),
126 (draw_markup_margin_rect), (draw_markup_margin_rounded_rect),
127 (draw_markup_margin_round), (draw_markup_margin_cd),
128 (draw_markup_margin_cd_bc), (draw_markup_line),
129 (draw_markup_circle), (gl_view_copy):
130 * src/wdgt-media-select.c: (gl_wdgt_media_select_construct),
131 (page_size_entry_changed_cb), (details_update), (get_layout_desc),
132 (get_label_size_desc):
133 * src/wdgt-mini-preview.c:
134 (gl_wdgt_mini_preview_set_label_by_name), (mini_outline_list_new),
136 * src/wdgt-print-copies.c: (gl_wdgt_print_copies_construct):
137 * src/wdgt-print-merge.c: (gl_wdgt_print_merge_construct):
138 * src/wdgt-rotate-label.c: (mini_preview_canvas_update),
139 (gl_wdgt_rotate_label_set_template_name), (cdbc_item):
140 * src/wdgt-rotate-label.h:
141 * src/xml-label-04.c: (xml04_parse_media_description):
142 * src/xml-label-191.c: (gl_xml_label_191_parse),
143 (xml191_parse_sheet), (xml191_parse_label), (xml191_parse_layout),
144 (xml191_parse_markup), (xml191_parse_alias):
145 * src/xml-label.c: (xml_doc_to_label), (xml_parse_label),
147 Various changes to accomodate new libglabels API.
149 2004-01-03 Jim Evins <evins@snaught.com>
154 2004-01-03 Jim Evins <evins@snaught.com>
157 Added acknowledgement of contributions by Wayne Schuller.
159 * src/commands.c: (gl_cmd_file_print):
160 Create extra reference to print dialog, so that it can be properly re-used.
162 * src/mygal/mygal-combo-box.h:
163 * src/mygal/mygal-combo-box.c:
164 (mygal_combo_box_popup_hide_unconditional),
165 (mygal_combo_box_popup_display), (mygal_combo_box_set_display),
166 (gtk_combo_set_tearoff_state), (mygal_combo_box_construct),
167 (mygal_combo_box_set_arrow_relief), (mygal_combo_box_set_title),
168 (mygal_combo_box_set_tearable):
169 Changed all occurances of GTK_IS_COMBO_BOX to MYGAL_IS_COMBO_BOX, to
170 complete the rename of this widget to prevent namespace collisions
173 * src/prefs-dialog.glade:
174 Fixed alignment of Fill/Color widgets.
176 2004-01-03 Jim Evins <evins@snaught.com>
178 * data/avery-iso-templates.xml:
179 Added user submitted templates.
180 Avery 8435A & 8435B, submitted by Ludger Solbach.
183 Added minimal documentation, noting the new template designer.
185 2004-01-03 Jim Evins <evins@snaught.com>
187 * pixmaps/ex-rect-size.png:
188 * pixmaps/ex-round-size.png:
189 * pixmaps/ex-cd-size.png:
190 * pixmaps/Makefile.am:
191 Added ex-rect-size.png, ex-round-size.png, and ex-cd-size.png image
192 files to be used as illustrations/examples in the template-designer.
194 * src/template-designer.c: (construct_rect_size_page),
195 (construct_round_size_page), (construct_cd_size_page),
196 (construct_nlayouts_page), (rect_size_page_prepare_cb),
197 (round_size_page_prepare_cb), (cd_size_page_prepare_cb),
198 (layout_page_prepare_cb), (build_template):
199 * src/template-designer.glade:
200 Added illustrations for rectangle, round, and cd label size pages.
201 Added margin spinboxes to these pages, and now add a margin markup
202 to the constructed template. Added realistic default values for
203 some of the size spinboxes. Cleaned up the code for setting spinbox
204 ranges on the layouts page.
206 2004-01-02 Jim Evins <evins@snaught.com>
208 * src/object-editor-size-page.c: (h_spin_cb):
209 Fixed cut-n-paste error in h_spin_cb that loaded h from
210 the wrong spinbutton.
212 * src/object-editor.h:
213 * src/object-editor.c: (gl_object_editor_class_init),
214 (gl_object_editor_changed_cb), (gl_object_editor_size_changed_cb):
215 * src/object-editor-private.h:
216 * src/object-editor-size-page.c: (w_spin_cb), (h_spin_cb),
218 Added "size_changed" signal.
220 * src/view-text.c: (construct_properties_editor),
221 (update_object_from_editor_cb),
222 (update_object_from_editor_size_cb):
223 Track size changes from object editor separately from other
224 properties. This is so the default size (0,0) of a text
225 object is not modified unintentionally.
227 2003-12-30 Wayne Schuller <k_wayne@linuxpower.org>
229 Added feature: line spacing - allows you to comfortably space a text box to
230 fit a label perfectly.
232 * data/glabels-2.0.dtd:
233 * src/label-object.c: (gl_label_object_set_text_line_spacing),
234 (gl_label_object_get_text_alignment),
235 (gl_label_object_get_text_line_spacing):
236 * src/label-object.h:
237 * src/label-text.c: (gl_label_text_class_init),
238 (gl_label_text_instance_init), (copy), (get_size),
239 (set_text_line_spacing), (get_text_alignment),
240 (get_text_line_spacing):
241 * src/object-editor-private.h:
242 * src/object-editor-text-page.c:
243 (gl_object_editor_prepare_text_page),
244 (gl_object_editor_set_text_line_spacing),
245 (gl_object_editor_get_text_line_spacing):
246 * src/object-editor.glade:
247 * src/object-editor.h:
248 * src/prefs-dialog.c: (construct_object_page),
249 (update_object_page_from_prefs), (update_prefs_from_object_page):
250 * src/prefs-dialog.glade:
251 * src/prefs-model.c: (gl_prefs_model_save_settings),
252 (gl_prefs_model_load_settings), (get_float):
254 * src/print.c: (draw_text_object):
256 * src/view-text.c: (update_object_from_editor_cb),
257 (update_editor_from_object_cb),
258 (gl_view_text_create_event_handler), (draw_hacktext):
259 * src/view.c: (gl_view_construct),
260 (gl_view_set_selection_text_line_spacing),
261 (gl_view_set_default_text_line_spacing),
262 (gl_view_get_default_text_line_spacing):
264 * src/xml-label.c: (xml_parse_toplevel_span),
265 (xml_create_toplevel_span):
267 2003-12-30 Jim Evins <evins@snaught.com>
269 * src/template-designer.c:
270 * src/template-designer.h:
271 * src/template-designer.glade:
272 New template designer assistant.
276 Added entries for src/template-designer.* files.
278 * pixmaps/ex-1layout.png
279 * pixmaps/ex-2layouts.png
280 * pixmaps/Makefile.am:
281 Added the new image files ex-*.png used as illustrations in the
282 template designer assistant.
284 * src/print-dialog.h:
285 * src/print-dialog.c: (gl_print_dialog_finalize),
286 (gl_print_dialog_new), (gl_print_dialog_construct),
287 (gl_print_dialog_force_outline_flag):
288 Changed first argument of gl_print_dialog_new() from glView to glLabel,
289 to support printing from the template designer assistant which does not
290 have a full-fledged view. Nothing else from the view object was being
291 used by the dialog anyway.
293 Added the gl_print_dialog_force_outline_flag() method, for better
294 integration with the template designer assistant.
298 * src/commands.c: (gl_cmd_file_template_designer),
300 Modified print command to provide label instead of view to dialog.
301 Added the gl_cmd_file_template_designer() command to invoke the
302 template designer assistant.
305 * src/glabels-ui.xml:
306 Added support for template designer assistant.
308 * src/wdgt-mini-preview.h:
309 * src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_set_template),
310 (gl_wdgt_mini_preview_set_bg_color):
311 Preview is now centered in canvas. Added
312 gl_wdgt_mini_preview_set_bg_color() to allow the template designer
313 assistant to match the background color with its own.
315 * src/print.c: (clip_to_outline):
316 Fixed really stupid bug when adding waste to clip region of rectangular
317 labels/cards. Each side of the clip region needs to be extended by
318 twice the waste margin, as well as negatively offset by the waste
321 2003-12-28 Jim Evins <evins@snaught.com>
323 * src/prefs-dialog.c: (update_object_page_from_prefs):
324 Block intermediary function align_toggle_cb() instead of
325 update_prefs_from_object_page() for the three alignment
328 2003-12-28 Wayne Schuller <k_wayne@linuxpower.org>
330 * src/file.c: (gl_file_new), (gl_file_properties):
331 Swap button order and set default for higificatory pleasure.
333 2003-12-27 Jim Evins <evins@snaught.com>
335 * barcode-0.98/Makefile.am:
336 One last time: removed doc/Makefile and po/Makefile.in.in from
339 2003-12-27 Jim Evins <evins@snaught.com>
341 * barcode-0.98/Makefile.am:
342 Removed config.stat entry from EXTRA_DIST files.
344 * barcode-0.98/Makefile.in:
347 2003-12-27 Jim Evins <evins@snaught.com>
350 Updated to work with latest gnome-common package from CVS.
351 Removed recursive configuration of barcode-0.98.
358 Added barcode-0.98/ as a SUBDIR, and removed dist-hook.
360 * barcode-0.98/Makefile.in:
361 * barcode-0.98/configure.in:
362 * barcode-0.98/Makefile.am:
363 * barcode-0.98/README.glabels:
364 Modified to ignore the barcode package's build system, and build
365 as a part of glabels.
366 Renamed Makefile.in to Makefile.in.dist.
367 Renamed configure.in to configure.in.dist.
368 Added barcode-0.98/Makefile.am and barcode-0.98/README.glabels.
371 * src/mygal/Makefile.am:
372 * src/recent-files/Makefile.am:
373 In order to build against the GNOME 2.5 platform,
374 all use of *_DISABLE_DEPRECATED compile-time flags has been removed.
376 * src/mygal/Makefile.am:
377 * src/mygal/mygal-combo-box.c:
378 * src/mygal/mygal-combo-box.h:
379 * src/mygal/widget-color-combo.c:
380 * src/mygal/widget-color-combo.h:
382 In order to build against the GNOME 2.5 platform,
383 Renamed gtk_combo_box widget to mygal_combo_box, to prevent namespace
384 collisions with the real gtk_combo_box widget, now a part of gtk.
386 2003-12-26 Jim Evins <evins@snaught.com>
392 Moved local versions of get_home_data_dir() in paper.c and
393 template.c to util package. Cleaned up formatting in
397 In gl_template_register() save a copy of the template in
398 ~/.glabels if the template is not known. Still need to
399 handle duplicate filename case and duplicate name but
400 different template case.
404 Moved local definition of NAME_SPACE macro from xml-label.c
407 * src/xml-template.c:
408 * src/xml-template.h:
409 Added function gl_xml_template_write_template_to_file(), used
410 in gl_template_register().