1 2004-01-06 Jim Evins <evins@snaught.com>
3 Split-out template.[ch], paper.[ch], xml-template.[ch], xml-paper.[ch], and
4 xml.[ch] into a separate library called libglabels, to facilitate third
5 party use of glabels template files. This was suggested by Wayne Schuller.
6 Once split-out, some modifications to the structures and functions to
7 make a cleaner more useful API, hopefully. Rather extensive changes have
8 propogated to other modules.
20 These files have been moved to libglabels/. API cleanup performed.
22 * libglabels/libglabels.h:
23 * libglabels/libglabels-private.h:
24 * libglabels/Makefile.am:
25 These files have been added to finish out libglabels.
32 Modified to reflect new sets of files in src/ and libglabels/.
36 Added copy of the LGPL for libglabels, and a copy the GFDL for
39 * src/glabels-batch.c:
41 * src/label.c: (gl_label_finalize), (gl_label_set_template),
44 * src/prefs-model.c: (gl_prefs_model_load_settings):
46 * src/print.c: (gl_print_simple), (gl_print_merge_collated),
47 (gl_print_merge_uncollated), (gl_print_batch), (print_info_free),
48 (print_crop_marks), (print_label), (draw_outline),
49 (clip_to_outline), (clip_punchouts):
50 * src/template-designer.c: (construct_pg_size_page),
51 (pg_size_page_changed_cb), (layout_page_changed_cb),
52 (print_test_cb), (build_template):
53 * src/util.c: (gl_util_fraction):
55 * src/view.c: (draw_bg_fg_layers), (draw_bg_fg_rect),
56 (draw_bg_fg_rounded_rect), (draw_bg_fg_round), (draw_bg_fg_cd),
57 (draw_bg_fg_cd_bc), (draw_markup_layer), (draw_markup_margin),
58 (draw_markup_margin_rect), (draw_markup_margin_rounded_rect),
59 (draw_markup_margin_round), (draw_markup_margin_cd),
60 (draw_markup_margin_cd_bc), (draw_markup_line),
61 (draw_markup_circle), (gl_view_copy):
62 * src/wdgt-media-select.c: (gl_wdgt_media_select_construct),
63 (page_size_entry_changed_cb), (details_update), (get_layout_desc),
64 (get_label_size_desc):
65 * src/wdgt-mini-preview.c:
66 (gl_wdgt_mini_preview_set_label_by_name), (mini_outline_list_new),
68 * src/wdgt-print-copies.c: (gl_wdgt_print_copies_construct):
69 * src/wdgt-print-merge.c: (gl_wdgt_print_merge_construct):
70 * src/wdgt-rotate-label.c: (mini_preview_canvas_update),
71 (gl_wdgt_rotate_label_set_template_name), (cdbc_item):
72 * src/wdgt-rotate-label.h:
73 * src/xml-label-04.c: (xml04_parse_media_description):
74 * src/xml-label-191.c: (gl_xml_label_191_parse),
75 (xml191_parse_sheet), (xml191_parse_label), (xml191_parse_layout),
76 (xml191_parse_markup), (xml191_parse_alias):
77 * src/xml-label.c: (xml_doc_to_label), (xml_parse_label),
79 Various changes to accomodate new libglabels API.
81 2004-01-03 Jim Evins <evins@snaught.com>
86 2004-01-03 Jim Evins <evins@snaught.com>
89 Added acknowledgement of contributions by Wayne Schuller.
91 * src/commands.c: (gl_cmd_file_print):
92 Create extra reference to print dialog, so that it can be properly re-used.
94 * src/mygal/mygal-combo-box.h:
95 * src/mygal/mygal-combo-box.c:
96 (mygal_combo_box_popup_hide_unconditional),
97 (mygal_combo_box_popup_display), (mygal_combo_box_set_display),
98 (gtk_combo_set_tearoff_state), (mygal_combo_box_construct),
99 (mygal_combo_box_set_arrow_relief), (mygal_combo_box_set_title),
100 (mygal_combo_box_set_tearable):
101 Changed all occurances of GTK_IS_COMBO_BOX to MYGAL_IS_COMBO_BOX, to
102 complete the rename of this widget to prevent namespace collisions
105 * src/prefs-dialog.glade:
106 Fixed alignment of Fill/Color widgets.
108 2004-01-03 Jim Evins <evins@snaught.com>
110 * data/avery-iso-templates.xml:
111 Added user submitted templates.
112 Avery 8435A & 8435B, submitted by Ludger Solbach.
115 Added minimal documentation, noting the new template designer.
117 2004-01-03 Jim Evins <evins@snaught.com>
119 * pixmaps/ex-rect-size.png:
120 * pixmaps/ex-round-size.png:
121 * pixmaps/ex-cd-size.png:
122 * pixmaps/Makefile.am:
123 Added ex-rect-size.png, ex-round-size.png, and ex-cd-size.png image
124 files to be used as illustrations/examples in the template-designer.
126 * src/template-designer.c: (construct_rect_size_page),
127 (construct_round_size_page), (construct_cd_size_page),
128 (construct_nlayouts_page), (rect_size_page_prepare_cb),
129 (round_size_page_prepare_cb), (cd_size_page_prepare_cb),
130 (layout_page_prepare_cb), (build_template):
131 * src/template-designer.glade:
132 Added illustrations for rectangle, round, and cd label size pages.
133 Added margin spinboxes to these pages, and now add a margin markup
134 to the constructed template. Added realistic default values for
135 some of the size spinboxes. Cleaned up the code for setting spinbox
136 ranges on the layouts page.
138 2004-01-02 Jim Evins <evins@snaught.com>
140 * src/object-editor-size-page.c: (h_spin_cb):
141 Fixed cut-n-paste error in h_spin_cb that loaded h from
142 the wrong spinbutton.
144 * src/object-editor.h:
145 * src/object-editor.c: (gl_object_editor_class_init),
146 (gl_object_editor_changed_cb), (gl_object_editor_size_changed_cb):
147 * src/object-editor-private.h:
148 * src/object-editor-size-page.c: (w_spin_cb), (h_spin_cb),
150 Added "size_changed" signal.
152 * src/view-text.c: (construct_properties_editor),
153 (update_object_from_editor_cb),
154 (update_object_from_editor_size_cb):
155 Track size changes from object editor separately from other
156 properties. This is so the default size (0,0) of a text
157 object is not modified unintentionally.
159 2003-12-30 Wayne Schuller <k_wayne@linuxpower.org>
161 Added feature: line spacing - allows you to comfortably space a text box to
162 fit a label perfectly.
164 * data/glabels-2.0.dtd:
165 * src/label-object.c: (gl_label_object_set_text_line_spacing),
166 (gl_label_object_get_text_alignment),
167 (gl_label_object_get_text_line_spacing):
168 * src/label-object.h:
169 * src/label-text.c: (gl_label_text_class_init),
170 (gl_label_text_instance_init), (copy), (get_size),
171 (set_text_line_spacing), (get_text_alignment),
172 (get_text_line_spacing):
173 * src/object-editor-private.h:
174 * src/object-editor-text-page.c:
175 (gl_object_editor_prepare_text_page),
176 (gl_object_editor_set_text_line_spacing),
177 (gl_object_editor_get_text_line_spacing):
178 * src/object-editor.glade:
179 * src/object-editor.h:
180 * src/prefs-dialog.c: (construct_object_page),
181 (update_object_page_from_prefs), (update_prefs_from_object_page):
182 * src/prefs-dialog.glade:
183 * src/prefs-model.c: (gl_prefs_model_save_settings),
184 (gl_prefs_model_load_settings), (get_float):
186 * src/print.c: (draw_text_object):
188 * src/view-text.c: (update_object_from_editor_cb),
189 (update_editor_from_object_cb),
190 (gl_view_text_create_event_handler), (draw_hacktext):
191 * src/view.c: (gl_view_construct),
192 (gl_view_set_selection_text_line_spacing),
193 (gl_view_set_default_text_line_spacing),
194 (gl_view_get_default_text_line_spacing):
196 * src/xml-label.c: (xml_parse_toplevel_span),
197 (xml_create_toplevel_span):
199 2003-12-30 Jim Evins <evins@snaught.com>
201 * src/template-designer.c:
202 * src/template-designer.h:
203 * src/template-designer.glade:
204 New template designer assistant.
208 Added entries for src/template-designer.* files.
210 * pixmaps/ex-1layout.png
211 * pixmaps/ex-2layouts.png
212 * pixmaps/Makefile.am:
213 Added the new image files ex-*.png used as illustrations in the
214 template designer assistant.
216 * src/print-dialog.h:
217 * src/print-dialog.c: (gl_print_dialog_finalize),
218 (gl_print_dialog_new), (gl_print_dialog_construct),
219 (gl_print_dialog_force_outline_flag):
220 Changed first argument of gl_print_dialog_new() from glView to glLabel,
221 to support printing from the template designer assistant which does not
222 have a full-fledged view. Nothing else from the view object was being
223 used by the dialog anyway.
225 Added the gl_print_dialog_force_outline_flag() method, for better
226 integration with the template designer assistant.
230 * src/commands.c: (gl_cmd_file_template_designer),
232 Modified print command to provide label instead of view to dialog.
233 Added the gl_cmd_file_template_designer() command to invoke the
234 template designer assistant.
237 * src/glabels-ui.xml:
238 Added support for template designer assistant.
240 * src/wdgt-mini-preview.h:
241 * src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_set_template),
242 (gl_wdgt_mini_preview_set_bg_color):
243 Preview is now centered in canvas. Added
244 gl_wdgt_mini_preview_set_bg_color() to allow the template designer
245 assistant to match the background color with its own.
247 * src/print.c: (clip_to_outline):
248 Fixed really stupid bug when adding waste to clip region of rectangular
249 labels/cards. Each side of the clip region needs to be extended by
250 twice the waste margin, as well as negatively offset by the waste
253 2003-12-28 Jim Evins <evins@snaught.com>
255 * src/prefs-dialog.c: (update_object_page_from_prefs):
256 Block intermediary function align_toggle_cb() instead of
257 update_prefs_from_object_page() for the three alignment
260 2003-12-28 Wayne Schuller <k_wayne@linuxpower.org>
262 * src/file.c: (gl_file_new), (gl_file_properties):
263 Swap button order and set default for higificatory pleasure.
265 2003-12-27 Jim Evins <evins@snaught.com>
267 * barcode-0.98/Makefile.am:
268 One last time: removed doc/Makefile and po/Makefile.in.in from
271 2003-12-27 Jim Evins <evins@snaught.com>
273 * barcode-0.98/Makefile.am:
274 Removed config.stat entry from EXTRA_DIST files.
276 * barcode-0.98/Makefile.in:
279 2003-12-27 Jim Evins <evins@snaught.com>
282 Updated to work with latest gnome-common package from CVS.
283 Removed recursive configuration of barcode-0.98.
290 Added barcode-0.98/ as a SUBDIR, and removed dist-hook.
292 * barcode-0.98/Makefile.in:
293 * barcode-0.98/configure.in:
294 * barcode-0.98/Makefile.am:
295 * barcode-0.98/README.glabels:
296 Modified to ignore the barcode package's build system, and build
297 as a part of glabels.
298 Renamed Makefile.in to Makefile.in.dist.
299 Renamed configure.in to configure.in.dist.
300 Added barcode-0.98/Makefile.am and barcode-0.98/README.glabels.
303 * src/mygal/Makefile.am:
304 * src/recent-files/Makefile.am:
305 In order to build against the GNOME 2.5 platform,
306 all use of *_DISABLE_DEPRECATED compile-time flags has been removed.
308 * src/mygal/Makefile.am:
309 * src/mygal/mygal-combo-box.c:
310 * src/mygal/mygal-combo-box.h:
311 * src/mygal/widget-color-combo.c:
312 * src/mygal/widget-color-combo.h:
314 In order to build against the GNOME 2.5 platform,
315 Renamed gtk_combo_box widget to mygal_combo_box, to prevent namespace
316 collisions with the real gtk_combo_box widget, now a part of gtk.
318 2003-12-26 Jim Evins <evins@snaught.com>
324 Moved local versions of get_home_data_dir() in paper.c and
325 template.c to util package. Cleaned up formatting in
329 In gl_template_register() save a copy of the template in
330 ~/.glabels if the template is not known. Still need to
331 handle duplicate filename case and duplicate name but
332 different template case.
336 Moved local definition of NAME_SPACE macro from xml-label.c
339 * src/xml-template.c:
340 * src/xml-template.h:
341 Added function gl_xml_template_write_template_to_file(), used
342 in gl_template_register().