From 0348e755ccc6e81d040771bfbdff6ccd081908ff Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Wed, 13 Sep 2006 02:40:30 +0000 Subject: [PATCH] 2006-09-12 Jim Evins * data/dtd/glabels-2.0.dtd: * data/templates/Makefile.am: * data/templates/avery-iso-templates.xml: * data/templates/avery-other-templates.xml: * data/templates/avery-us-templates.xml: * data/templates/categories.xml: * data/templates/misc-iso-templates.xml: * data/templates/misc-other-templates.xml: * data/templates/zweckform-iso-templates.xml: * data/glade/Makefile.am: * data/glade/new-label-dialog.glade: * data/glade/wdgt-media-select.glade: * data/glade/wdgt-rotate-label.glade: * libglabels/Makefile.am: * libglabels/category.c: * libglabels/category.h: * libglabels/libglabels.h: * libglabels/paper.c: * libglabels/template.c: * libglabels/template.h: * libglabels/xml-category.c: * libglabels/xml-category.h: * libglabels/xml-template.c: Added support for category meta data. * src/Makefile.am: * src/file.c: * src/mini-preview-pixbuf.c: * src/mini-preview-pixbuf.h: * src/new-label-dialog.c: * src/new-label-dialog.h: * src/wdgt-media-select.c: * src/wdgt-media-select.h: * src/wdgt-rotate-label.c: * src/wdgt-rotate-label.h: New "new label" dialog. git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@596 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- glabels2/ChangeLog | 38 + glabels2/data/dtd/glabels-2.0.dtd | 27 +- glabels2/data/glade/Makefile.am | 5 +- glabels2/data/glade/new-label-dialog.glade | 158 +++ glabels2/data/glade/wdgt-media-select.glade | 193 ++++ glabels2/data/glade/wdgt-rotate-label.glade | 62 ++ glabels2/data/templates/Makefile.am | 1 + .../data/templates/avery-iso-templates.xml | 18 + .../data/templates/avery-other-templates.xml | 1 + .../data/templates/avery-us-templates.xml | 42 +- glabels2/data/templates/categories.xml | 8 + .../data/templates/misc-iso-templates.xml | 64 +- .../data/templates/misc-other-templates.xml | 1 + .../templates/zweckform-iso-templates.xml | 20 + glabels2/gtk-doc.make | 22 +- glabels2/libglabels/Makefile.am | 6 + glabels2/libglabels/category.c | 416 ++++++++ glabels2/libglabels/category.h | 80 ++ glabels2/libglabels/libglabels.h | 2 + glabels2/libglabels/paper.c | 32 +- glabels2/libglabels/template.c | 97 +- glabels2/libglabels/template.h | 20 +- glabels2/libglabels/xml-category.c | 169 ++++ glabels2/libglabels/xml-category.h | 46 + glabels2/libglabels/xml-template.c | 46 +- glabels2/src/Makefile.am | 4 + glabels2/src/file.c | 392 +++----- glabels2/src/mini-preview-pixbuf.c | 355 +++++++ glabels2/src/mini-preview-pixbuf.h | 38 + glabels2/src/new-label-dialog.c | 327 ++++++ glabels2/src/new-label-dialog.h | 84 ++ glabels2/src/wdgt-media-select.c | 931 ++++++++++-------- glabels2/src/wdgt-media-select.h | 39 +- glabels2/src/wdgt-rotate-label.c | 558 ++++++----- glabels2/src/wdgt-rotate-label.h | 41 +- 35 files changed, 3294 insertions(+), 1049 deletions(-) create mode 100644 glabels2/data/glade/new-label-dialog.glade create mode 100644 glabels2/data/glade/wdgt-media-select.glade create mode 100644 glabels2/data/glade/wdgt-rotate-label.glade create mode 100644 glabels2/data/templates/categories.xml create mode 100644 glabels2/libglabels/category.c create mode 100644 glabels2/libglabels/category.h create mode 100644 glabels2/libglabels/xml-category.c create mode 100644 glabels2/libglabels/xml-category.h create mode 100644 glabels2/src/mini-preview-pixbuf.c create mode 100644 glabels2/src/mini-preview-pixbuf.h create mode 100644 glabels2/src/new-label-dialog.c create mode 100644 glabels2/src/new-label-dialog.h diff --git a/glabels2/ChangeLog b/glabels2/ChangeLog index 0b628829..e7723252 100644 --- a/glabels2/ChangeLog +++ b/glabels2/ChangeLog @@ -1,3 +1,41 @@ +2006-09-12 Jim Evins + + * data/dtd/glabels-2.0.dtd: + * data/templates/Makefile.am: + * data/templates/avery-iso-templates.xml: + * data/templates/avery-other-templates.xml: + * data/templates/avery-us-templates.xml: + * data/templates/categories.xml: + * data/templates/misc-iso-templates.xml: + * data/templates/misc-other-templates.xml: + * data/templates/zweckform-iso-templates.xml: + * data/glade/Makefile.am: + * data/glade/new-label-dialog.glade: + * data/glade/wdgt-media-select.glade: + * data/glade/wdgt-rotate-label.glade: + * libglabels/Makefile.am: + * libglabels/category.c: + * libglabels/category.h: + * libglabels/libglabels.h: + * libglabels/paper.c: + * libglabels/template.c: + * libglabels/template.h: + * libglabels/xml-category.c: + * libglabels/xml-category.h: + * libglabels/xml-template.c: + Added support for category meta data. + * src/Makefile.am: + * src/file.c: + * src/mini-preview-pixbuf.c: + * src/mini-preview-pixbuf.h: + * src/new-label-dialog.c: + * src/new-label-dialog.h: + * src/wdgt-media-select.c: + * src/wdgt-media-select.h: + * src/wdgt-rotate-label.c: + * src/wdgt-rotate-label.h: + New "new label" dialog. + 2006-05-27 Jim Evins * NEWS: diff --git a/glabels2/data/dtd/glabels-2.0.dtd b/glabels2/data/dtd/glabels-2.0.dtd index 5d8047a3..7bb2067a 100644 --- a/glabels2/data/dtd/glabels-2.0.dtd +++ b/glabels2/data/dtd/glabels-2.0.dtd @@ -61,6 +61,16 @@ xmlns %STRING_TYPE; #IMPLIED > + + + + + + + + @@ -93,13 +103,23 @@ height %LENGTH_TYPE; #REQUIRED > + + + + + + - + + + + + + + + + + True + window1 + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + True + False + True + False + False + GDK_WINDOW_TYPE_HINT_NORMAL + GDK_GRAVITY_NORTH_WEST + True + False + + + + 12 + True + False + 12 + + + + True + 0 + 0.5 + GTK_SHADOW_NONE + + + + True + 0.5 + 0.5 + 1 + 1 + 0 + 0 + 12 + 0 + + + + True + False + 0 + + + + + + + + + + + + True + <b>Media type</b> + False + True + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + label_item + + + + + 0 + True + True + + + + + + True + 0 + 0.5 + GTK_SHADOW_NONE + + + + True + 0.5 + 0.5 + 1 + 1 + 0 + 0 + 12 + 0 + + + + True + False + 0 + + + + + + + + + + + + True + <b>Label orientation</b> + False + True + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + label_item + + + + + 0 + True + True + + + + + + + diff --git a/glabels2/data/glade/wdgt-media-select.glade b/glabels2/data/glade/wdgt-media-select.glade new file mode 100644 index 00000000..f92d5de0 --- /dev/null +++ b/glabels2/data/glade/wdgt-media-select.glade @@ -0,0 +1,193 @@ + + + + + + + True + window1 + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + True + False + True + False + False + GDK_WINDOW_TYPE_HINT_NORMAL + GDK_GRAVITY_NORTH_WEST + True + False + + + + True + False + 0 + + + + True + False + 0 + + + + 12 + True + False + 12 + + + + True + False + 6 + + + + True + Page size: + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + + + + + True + False + True + + + 0 + False + True + + + + + 0 + False + True + + + + + + True + False + 6 + + + + True + Category: + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + + + + + True + False + True + + + 0 + False + True + + + + + 0 + False + True + + + + + 0 + False + True + + + + + + 12 + 480 + 320 + True + True + GTK_POLICY_AUTOMATIC + GTK_POLICY_AUTOMATIC + GTK_SHADOW_IN + GTK_CORNER_TOP_LEFT + + + + True + True + False + False + False + True + False + False + False + + + + + 0 + True + True + + + + + 0 + True + True + + + + + + + diff --git a/glabels2/data/glade/wdgt-rotate-label.glade b/glabels2/data/glade/wdgt-rotate-label.glade new file mode 100644 index 00000000..89e24a03 --- /dev/null +++ b/glabels2/data/glade/wdgt-rotate-label.glade @@ -0,0 +1,62 @@ + + + + + + + True + window1 + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + True + False + True + False + False + GDK_WINDOW_TYPE_HINT_NORMAL + GDK_GRAVITY_NORTH_WEST + True + False + + + + 12 + True + False + 6 + + + + True + True + Rotate + True + GTK_RELIEF_NORMAL + True + False + False + True + + + 0 + False + False + + + + + + True + + + 0 + True + True + + + + + + + diff --git a/glabels2/data/templates/Makefile.am b/glabels2/data/templates/Makefile.am index fc0039fc..63394540 100644 --- a/glabels2/data/templates/Makefile.am +++ b/glabels2/data/templates/Makefile.am @@ -4,6 +4,7 @@ templatesdir = $(datadir)/glabels/templates templates_DATA = \ paper-sizes.xml \ + categories.xml \ avery-us-templates.xml \ avery-iso-templates.xml \ avery-other-templates.xml \ diff --git a/glabels2/data/templates/avery-iso-templates.xml b/glabels2/data/templates/avery-iso-templates.xml index aa9ad16b..c7e9410e 100644 --- a/glabels2/data/templates/avery-iso-templates.xml +++ b/glabels2/data/templates/avery-iso-templates.xml @@ -10,6 +10,7 @@