]> git.sur5r.net Git - glabels/commit
2003-12-30 Jim Evins <evins@snaught.com>
authorJim Evins <evins@snaught.com>
Tue, 30 Dec 2003 05:41:48 +0000 (05:41 +0000)
committerJim Evins <evins@snaught.com>
Tue, 30 Dec 2003 05:41:48 +0000 (05:41 +0000)
commitaa6be2ee3a8a2ca904810f4fde65721d68127093
treeb56f3971b79582034c7a3c4e2843fbb105750d20
parent9b9df2809e35e02aa4c14ff05aaeb683b25c63c8
2003-12-30  Jim Evins  <evins@snaught.com>

* src/template-designer.c:
* src/template-designer.h:
* src/template-designer.glade:
New template designer assistant.

* po/POTFILES.in:
* src/Makefile.am:
Added entries for src/template-designer.* files.

* pixmaps/ex-1layout.png
* pixmaps/ex-2layouts.png
* pixmaps/Makefile.am:
Added the new image files ex-*.png used as illustrations in the
template designer assistant.

* src/print-dialog.h:
* src/print-dialog.c: (gl_print_dialog_finalize),
(gl_print_dialog_new), (gl_print_dialog_construct),
(gl_print_dialog_force_outline_flag):
Changed first argument of gl_print_dialog_new() from glView to glLabel,
to support printing from the template designer assistant which does not
have a full-fledged view.  Nothing else from the view object was being
used by the dialog anyway.

Added the gl_print_dialog_force_outline_flag() method, for better
integration with the template designer assistant.

* src/commands.h:
* src/commands.c: (gl_cmd_file_template_designer),
(gl_cmd_file_print):
Modified print command to provide label instead of view to dialog.
Added the gl_cmd_file_template_designer() command to invoke the
template designer assistant.

* src/ui.c:
* src/glabels-ui.xml:
Added support for template designer assistant.

* src/wdgt-mini-preview.h:
* src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_set_template),
(gl_wdgt_mini_preview_set_bg_color):
Preview is now centered in canvas.  Added
gl_wdgt_mini_preview_set_bg_color() to allow the template designer
assistant to match the background color with its own.

* src/print.c: (clip_to_outline):
Fixed really stupid bug when adding waste to clip region of rectangular
labels/cards.  Each side of the clip region needs to be extended by
twice the waste margin, as well as negatively offset by the waste
margin.

git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@397 f5e0f49d-192f-0410-a22d-a8d8700d0965
18 files changed:
glabels2/ChangeLog
glabels2/pixmaps/Makefile.am
glabels2/pixmaps/ex-1layout.png [new file with mode: 0644]
glabels2/pixmaps/ex-2layouts.png [new file with mode: 0644]
glabels2/po/POTFILES.in
glabels2/src/Makefile.am
glabels2/src/commands.c
glabels2/src/commands.h
glabels2/src/glabels-ui.xml
glabels2/src/print-dialog.c
glabels2/src/print-dialog.h
glabels2/src/print.c
glabels2/src/template-designer.c [new file with mode: 0644]
glabels2/src/template-designer.glade [new file with mode: 0644]
glabels2/src/template-designer.h [new file with mode: 0644]
glabels2/src/ui.c
glabels2/src/wdgt-mini-preview.c
glabels2/src/wdgt-mini-preview.h