+2009-09-17 Jim Evins <evins@snaught.com>
+
+ * libglabels/category.h:
+ * libglabels/db.h:
+ * libglabels/paper.h:
+ * libglabels/template.h:
+ * libglabels/xml-category.h:
+ * libglabels/xml-paper.h:
+ * libglabels/xml.h:
+ Cleaned up GTK/GLIB includes.
+ * src/bc-gnubarcode.c:
+ * src/bc-gnubarcode.h:
+ * src/bc-iec16022.c:
+ * src/bc-iec16022.h:
+ * src/bc-iec18004.c:
+ * src/bc-iec18004.h:
+ * src/bc-postnet.c:
+ * src/bc-postnet.h:
+ * src/bc.c:
+ * src/bc.h:
+ * src/cairo-ellipse-path.c:
+ * src/cairo-ellipse-path.h:
+ * src/cairo-label-path.c:
+ * src/cairo-label-path.h:
+ * src/cairo-markup-path.c:
+ * src/cairo-markup-path.h:
+ * src/color-combo-button.c:
+ * src/color-combo-button.h:
+ * src/color-combo-color-menu-item.c:
+ * src/color-combo-color-menu-item.h:
+ * src/color-combo-history.c:
+ * src/color-combo-menu.c:
+ * src/color-combo-menu.h:
+ * src/color-combo.c:
+ * src/color-combo.h:
+ * src/color-swatch.c:
+ * src/color-swatch.h:
+ * src/color.c:
+ * src/color.h:
+ * src/critical-error-handler.c:
+ * src/critical-error-handler.h:
+ * src/debug.c:
+ * src/debug.h:
+ * src/file.c:
+ * src/file.h:
+ * src/font-combo-menu-item.c:
+ * src/font-combo-menu-item.h:
+ * src/font-combo-menu.c:
+ * src/font-combo-menu.h:
+ * src/font-combo.c:
+ * src/font-combo.h:
+ * src/font-sample.h:
+ * src/font-util.c:
+ * src/font-util.h:
+ * src/glabels-batch.c:
+ * src/glabels.c:
+ * src/hig.h:
+ * src/label-barcode.c:
+ * src/label-barcode.h:
+ * src/label-box.c:
+ * src/label-box.h:
+ * src/label-ellipse.c:
+ * src/label-ellipse.h:
+ * src/label-image.c:
+ * src/label-image.h:
+ * src/label-line.c:
+ * src/label-line.h:
+ * src/label-object.c:
+ * src/label-object.h:
+ * src/label-text.c:
+ * src/label-text.h:
+ * src/label.c:
+ * src/label.h:
+ * src/merge-evolution.c:
+ * src/merge-evolution.h:
+ * src/merge-init.c:
+ * src/merge-init.h:
+ * src/merge-properties-dialog.c:
+ * src/merge-properties-dialog.h:
+ * src/merge-text.c:
+ * src/merge-text.h:
+ * src/merge-vcard.c:
+ * src/merge-vcard.h:
+ * src/merge.c:
+ * src/merge.h:
+ * src/mini-label-preview.c:
+ * src/mini-label-preview.h:
+ * src/mini-preview-pixbuf-cache.c:
+ * src/mini-preview-pixbuf-cache.h:
+ * src/mini-preview-pixbuf.c:
+ * src/mini-preview-pixbuf.h:
+ * src/mini-preview.c:
+ * src/new-label-dialog.c:
+ * src/new-label-dialog.h:
+ * src/object-editor-bc-page.c:
+ * src/object-editor-data-page.c:
+ * src/object-editor-fill-page.c:
+ * src/object-editor-image-page.c:
+ * src/object-editor-line-page.c:
+ * src/object-editor-lsize-page.c:
+ * src/object-editor-position-page.c:
+ * src/object-editor-private.h:
+ * src/object-editor-shadow-page.c:
+ * src/object-editor-size-page.c:
+ * src/object-editor-text-page.c:
+ * src/object-editor.c:
+ * src/object-editor.h:
+ * src/pixbuf-cache.c:
+ * src/pixbuf-cache.h:
+ * src/prefs-dialog.c:
+ * src/prefs-dialog.h:
+ * src/prefs-model.c:
+ * src/prefs-model.h:
+ * src/prefs.c:
+ * src/prefs.h:
+ * src/print-op-dialog.c:
+ * src/print-op.c:
+ * src/print-op.h:
+ * src/print.c:
+ * src/print.h:
+ * src/recent.c:
+ * src/recent.h:
+ * src/rotate-label-button.c:
+ * src/rotate-label-button.h:
+ * src/stock.c:
+ * src/stock.h:
+ * src/template-designer.c:
+ * src/template-designer.h:
+ * src/text-node.c:
+ * src/text-node.h:
+ * src/ui-commands.c:
+ * src/ui-commands.h:
+ * src/ui-property-bar.c:
+ * src/ui-property-bar.h:
+ * src/ui-sidebar.c:
+ * src/ui-sidebar.h:
+ * src/ui-util.c:
+ * src/ui-util.h:
+ * src/ui.c:
+ * src/ui.h:
+ * src/util.c:
+ * src/util.h:
+ * src/view-barcode.c:
+ * src/view-barcode.h:
+ * src/view-box.c:
+ * src/view-box.h:
+ * src/view-ellipse.c:
+ * src/view-ellipse.h:
+ * src/view-image.c:
+ * src/view-image.h:
+ * src/view-line.c:
+ * src/view-line.h:
+ * src/view-object.c:
+ * src/view-object.h:
+ * src/view-text.c:
+ * src/view-text.h:
+ * src/view.c:
+ * src/view.h:
+ * src/warning-handler.c:
+ * src/warning-handler.h:
+ * src/wdgt-chain-button.c:
+ * src/wdgt-chain-button.h:
+ * src/wdgt-media-select.c:
+ * src/wdgt-media-select.h:
+ * src/wdgt-merge-menu.c:
+ * src/wdgt-merge-menu.h:
+ * src/window.c:
+ * src/window.h:
+ * src/xml-label-04.c:
+ * src/xml-label-04.h:
+ * src/xml-label.c:
+ * src/xml-label.h:
+ Cleaned up GTK/GLIB includes.
+ Updated remainder of notices to GPL3+.
+ Simple formatting cleanup.
+
2009-09-13 Jim Evins <evins@snaught.com>
Refactored print operation subsystem.
#ifndef __CATEGORY_H__
#define __CATEGORY_H__
-#include <glib/gtypes.h>
-#include <glib/glist.h>
+#include <glib.h>
G_BEGIN_DECLS
#ifndef __DB_H__
#define __DB_H__
-#include <glib/gtypes.h>
-#include <glib/glist.h>
+#include <glib.h>
#include "paper.h"
#include "category.h"
#ifndef __PAPER_H__
#define __PAPER_H__
-#include <glib/gtypes.h>
-#include <glib/glist.h>
+#include <glib.h>
G_BEGIN_DECLS
#ifndef __TEMPLATE_H__
#define __TEMPLATE_H__
-#include <glib/gtypes.h>
-#include <glib/glist.h>
+#include <glib.h>
G_BEGIN_DECLS
#ifndef __XML_CATEGORY_H__
#define __XML_CATEGORY_H__
-#include <glib/gtypes.h>
-#include <glib/glist.h>
+#include <glib.h>
#include <libxml/tree.h>
#include "category.h"
#ifndef __XML_PAPER_H__
#define __XML_PAPER_H__
-#include <glib/gtypes.h>
-#include <glib/glist.h>
+#include <glib.h>
#include <libxml/tree.h>
#include "paper.h"
#ifndef __XML_H__
#define __XML_H__
-#include <glib/gtypes.h>
+#include <glib.h>
#include <libxml/tree.h>
#include "enums.h"
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * bc-gnubarcode.c: front-end to GNU-barcode-library module
- *
- * Copyright (C) 2001-2003 Jim Evins <evins@snaught.com>.
+ * bc-gnubarcode.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Some of this code is borrowed from the postscript renderer (ps.c)
- * from the GNU barcode library:
+ * This file is part of gLabels.
*
- * Copyright (C) 1999 Alessaandro Rubini (rubini@gnu.org)
- * Copyright (C) 1999 Prosa Srl. (prosa@prosa.it)
- *
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "bc-gnubarcode.h"
+#include <glib.h>
#include <ctype.h>
#include <string.h>
-#include <glib/gstring.h>
-#include <glib/gstrfuncs.h>
-#include <glib/gmessages.h>
-
-#include "barcode.h"
+#include <barcode.h> /* GNU Barcode */
#include "debug.h"
+
/*========================================================*/
/* Private macros and constants. */
/*========================================================*/
#define SHRINK_AMOUNT 0.15 /* shrink bars to account for ink spreading */
#define FONT_SCALE 0.95 /* Shrink fonts just a hair */
+
/*===========================================*/
/* Local function prototypes */
/*===========================================*/
gint n1,
gint n2);
-\f
+
/*****************************************************************************/
/* Generate intermediate representation of barcode. */
/*****************************************************************************/
return gbc;
}
+
/*--------------------------------------------------------------------------
* PRIVATE. Render to glBarcode intermediate representation of barcode.
*
/* If too small (5 + text), reduce the scale factor and center */
i = 5 + 10 * ((bci->flags & BARCODE_NO_ASCII)==0);
if (bci->height < i * scalef ) {
-#if 0
- double scaleg = ((double)bci->height) / i;
- int wid = bci->width * scaleg / scalef;
- bci->xoff += (bci->width - wid)/2;
- bci->width = wid;
- scalef = scaleg;
-#else
bci->height = i * scalef;
-#endif
}
gbc = g_new0 (glBarcode, 1);
gbc->height = bci->height + 2.0 * bci->margin;
gbc->width = bci->width + 2.0 * bci->margin;
-#if 0
- g_print ("w=%f, h=%f\n", gbc->width, gbc->height);
-#endif
-
return gbc;
}
+
/*--------------------------------------------------------------------------*/
/* Validate specific length of string (for subtypes). */
/*--------------------------------------------------------------------------*/
return (i >= n1) && (i <= n2);
}
+
/*--------------------------------------------------------------------------*/
/* Validate specific length of string (for subtypes). */
/*--------------------------------------------------------------------------*/
return (i >= n1) && (i <= n2);
}
+
/*--------------------------------------------------------------------------*/
/* Validate specific length of second string (for subtypes). */
/*--------------------------------------------------------------------------*/
return (i >= n1) && (i <= n2);
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * bc_gnubarcode.h: front-end to GNU-barcode-library module header file
+ * bc-gnubarcode.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2003 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __BC_GNUBARCODE_H__
#define __BC_GNUBARCODE_H__
G_END_DECLS
#endif /* __BC_GNUBARCODE_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * bc-iec16022.c: front-end to iec16022-library module
+ * bc-iec16022.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2006 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "bc-iec16022.h"
+#include <glib.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
-#include <glib/gmessages.h>
-
-#include "iec16022ecc200.h"
+#include <iec16022ecc200.h>
#include "debug.h"
+
/*========================================================*/
/* Private macros and constants. */
/*========================================================*/
#define MIN_PIXEL_SIZE 1.0
+
/*===========================================*/
/* Local function prototypes */
/*===========================================*/
gdouble w,
gdouble h);
+
/*****************************************************************************/
/* Generate intermediate representation of barcode. */
/*****************************************************************************/
return gbc;
}
+
/*--------------------------------------------------------------------------
* PRIVATE. Render to glBarcode intermediate representation of barcode.
*--------------------------------------------------------------------------*/
gbc->height = i_height * pixel_size;
gbc->width = i_width * pixel_size;
-#if 0
- g_print ("w=%f, h=%f\n", gbc->width, gbc->height);
-#endif
-
return gbc;
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * bc_iec16022.h: front-end to iec16022-library module header file
+ * bc-iec16022.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2006 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __BC_IEC16022_H__
#define __BC_IEC16022_H__
G_END_DECLS
#endif /* __BC_IEC16022_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * bc-qrcode.c: front-end to QRcode module
+ * bc-iec18004.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2006 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "bc-iec18004.h"
+#include <glib.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
-#include <glib/gmessages.h>
#include <qrencode.h>
#include "debug.h"
+
/*========================================================*/
/* Private macros and constants. */
/*========================================================*/
+
#define MIN_PIXEL_SIZE 1.0
+
/*===========================================*/
/* Local function prototypes */
/*===========================================*/
gdouble w,
gdouble h);
+
/*****************************************************************************/
/* Generate intermediate representation of barcode. */
/*****************************************************************************/
return gbc;
}
+
/*--------------------------------------------------------------------------
* PRIVATE. Render to glBarcode intermediate representation of barcode.
*--------------------------------------------------------------------------*/
gbc->height = i_height * pixel_size;
gbc->width = i_width * pixel_size;
-#if 0
- g_print ("w=%f, h=%f\n", gbc->width, gbc->height);
-#endif
-
return gbc;
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * bc_qrcode.h: front-end to qrcode-library module header file
+ * bc-iec18004.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2006 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __BC_IEC18004_H__
#define __BC_IEC18004_H__
G_END_DECLS
#endif /* __BC_IEC18004_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * bc_postnet.c: GLabels POSTNET barcode module
+ * bc-postnet.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2003 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
/*
#include "bc-postnet.h"
+#include <glib.h>
#include <ctype.h>
-#include <glib/gstring.h>
-#include <glib/gstrfuncs.h>
-#include <glib/gmessages.h>
#include "debug.h"
+
/*========================================================*/
/* Private macros and constants. */
/*========================================================*/
#define POSTNET_HORIZ_MARGIN 9.00
#define POSTNET_VERT_MARGIN 3.00
+
/*===========================================*/
/* Private globals */
/*===========================================*/
static gchar *frame_symbol = "1";
+
/*===========================================*/
/* Local function prototypes */
/*===========================================*/
static gboolean is_length_valid (const gchar *digits,
gint n);
-\f
+
/****************************************************************************/
/* Generate list of lines that form the barcode for the given digits. */
/****************************************************************************/
return gbc;
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Generate string of symbols, representing barcode. */
/*--------------------------------------------------------------------------*/
return ret;
}
+
/*--------------------------------------------------------------------------*/
/* Validate specific length of string (for subtypes). */
/*--------------------------------------------------------------------------*/
return (i == n);
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * bc_postnet.h: GLabels POSTNET barcode module header file
+ * bc-postnet.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2003 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __BC_POSTNET_H__
#define __BC_POSTNET_H__
G_END_DECLS
#endif /* __BC_POSTNET_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * bc.c: GLabels barcode module
+ * bc.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2003 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include <config.h>
#include "bc.h"
+#include <glib.h>
#include <glib/gi18n.h>
-#include <glib/gmem.h>
-#include <glib/gstrfuncs.h>
-#include <glib/gmessages.h>
#include "bc-postnet.h"
#include "bc-gnubarcode.h"
#include "debug.h"
+
/*========================================================*/
/* Private macros and constants. */
/*========================================================*/
+
/*========================================================*/
/* Private types. */
/*========================================================*/
};
+
/*========================================================*/
/* Private function prototypes. */
/*========================================================*/
-\f
+
/*---------------------------------------------------------------------------*/
/* Convert id to index into above table. */
/*---------------------------------------------------------------------------*/
return 0;
}
+
/*---------------------------------------------------------------------------*/
/* Convert name to index into above table. */
/*---------------------------------------------------------------------------*/
return 0;
}
+
/*****************************************************************************/
/* Call appropriate barcode backend to create barcode in intermediate format.*/
/*****************************************************************************/
return gbc;
}
+
/*****************************************************************************/
/* Free previously created barcode. */
/*****************************************************************************/
}
}
+
/*****************************************************************************/
/* Get a list of names for valid barcode styles. */
/*****************************************************************************/
return list;
}
+
/*****************************************************************************/
/* Free up a previously allocated list of style names. */
/*****************************************************************************/
}
}
+
/*****************************************************************************/
/* Query text capabilities. */
/*****************************************************************************/
return backends[id_to_index (id)].can_text;
}
+
gboolean
gl_barcode_text_optional (const gchar *id)
{
return backends[id_to_index (id)].text_optional;
}
+
/*****************************************************************************/
/* Query checksum capabilities. */
/*****************************************************************************/
return backends[id_to_index (id)].can_checksum;
}
+
gboolean
gl_barcode_csum_optional (const gchar *id)
{
return backends[id_to_index (id)].can_freeform;
}
+
/*****************************************************************************/
/* Query prefered number of digits of input. */
/*****************************************************************************/
return backends[id_to_index (id)].prefered_n;
}
+
/*****************************************************************************/
/* Convert style to text. */
/*****************************************************************************/
return backends[id_to_index (id)].name;
}
+
/*****************************************************************************/
/* Convert name to style. */
/*****************************************************************************/
return backends[name_to_index (name)].id;
}
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * bc.h: GLabels barcode module header file
+ * bc.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2003 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __BC_H__
#define __BC_H__
-#include <glib/gtypes.h>
-#include <glib/glist.h>
+#include <glib.h>
#include <pango/pango.h>
G_BEGIN_DECLS
#endif /* __BC_H__ */
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * cairo_ellipse_path.c: Cairo ellipse path module
+ * cairo-ellipse-path.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "cairo-ellipse-path.h"
#include <math.h>
-#include <glib.h>
#include "debug.h"
+
/*===========================================*/
/* Private macros and constants. */
/*===========================================*/
#define ARC_FINE 2
+
/*===========================================*/
/* Private types */
/*===========================================*/
+
/*===========================================*/
/* Private globals */
/*===========================================*/
+
/*===========================================*/
/* Local function prototypes */
/*===========================================*/
-\f
/*****************************************************************************/
/* Create ellipse path */
/*****************************************************************************/
}
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * cairo_ellipse_path.h: Cairo ellipse path module header file
+ * cairo-ellipse-path.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __CAIRO_ELLIPSE_PATH_H__
G_END_DECLS
#endif
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * cairo_label_path.c: Cairo label path module
+ * cairo-label-path.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "cairo-label-path.h"
#include <math.h>
-#include <glib.h>
#include "debug.h"
+
/*===========================================*/
/* Private types */
/*===========================================*/
+
/*===========================================*/
/* Private globals */
/*===========================================*/
+
/*===========================================*/
/* Local function prototypes */
/*===========================================*/
gboolean rotate_flag,
gboolean waste_flag);
-\f
+
/*--------------------------------------------------------------------------*/
/* Create label path */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_PATH, "END");
}
+
/*--------------------------------------------------------------------------*/
/* Create rectangular label path */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_PATH, "END");
}
+
/*--------------------------------------------------------------------------*/
/* Create round label path */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_PATH, "END");
}
+
/*--------------------------------------------------------------------------*/
/* Create cd label path */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_PATH, "END");
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * cairo_label_path.h: Cairo label path module header file
+ * cairo-label-path.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __CAIRO_LABEL_PATH_H__
#define __CAIRO_LABEL_PATH_H__
#include <cairo.h>
-#include <libglabels/template.h>
+#include <libglabels/libglabels.h>
G_BEGIN_DECLS
G_END_DECLS
#endif
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * cairo_markup_path.c: Cairo markup path module
+ * cairo-markup-path.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "cairo-markup-path.h"
#include <math.h>
-#include <glib.h>
#include "debug.h"
+
/*===========================================*/
/* Private types */
/*===========================================*/
+
/*===========================================*/
/* Private globals */
/*===========================================*/
+
/*===========================================*/
/* Local function prototypes */
/*===========================================*/
static void gl_cairo_markup_rect_path (cairo_t *cr,
const lglTemplateMarkup *markup);
-\f
+
/*--------------------------------------------------------------------------*/
/* Create markup path */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_PATH, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Draw margin markup. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_PATH, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Draw simple recangular margin. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_PATH, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Draw round margin. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_PATH, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Draw CD margins. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_PATH, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Draw line markup. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_PATH, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Draw circle markup. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_PATH, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Draw rect markup. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_PATH, "END");
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * cairo_markup_path.h: Cairo markup path module header file
+ * cairo-markup-path.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __CAIRO_MARKUP_PATH_H__
#define __CAIRO_MARKUP_PATH_H__
#include <cairo.h>
-#include <libglabels/template.h>
+#include <libglabels/libglabels.h>
#include "label.h"
G_BEGIN_DECLS
G_END_DECLS
#endif
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
#include "color-combo-button.h"
-#include "color-combo-menu.h"
#include <glib/gi18n.h>
-#include <gtk/gtktogglebutton.h>
-#include <gtk/gtkvbox.h>
+#include <gtk/gtk.h>
+
+#include "color-combo-menu.h"
#include "color-swatch.h"
-#include <gtk/gtkarrow.h>
-#include "marshal.h"
#include "color.h"
-
+#include "marshal.h"
#define IMAGE_W 24
#define IMAGE_H 24
#define __GL_COLOR_COMBO_BUTTON_H__
-#include <gtk/gtkhbox.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
#include "color-combo-color-menu-item.h"
-#include "marshal.h"
#include <glib/gi18n.h>
-#include <gtk/gtkmenuitem.h>
-#include <gtk/gtkseparatormenuitem.h>
-#include <gtk/gtklabel.h>
+#include <gtk/gtk.h>
+
#include "color-swatch.h"
#include "color.h"
+#include "marshal.h"
#define __COLOR_COMBO_COLOR_MENU_ITEM_H__
-#include <gtk/gtkmenuitem.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
#include <config.h>
-
#include "color-combo-history.h"
#include "color.h"
#include "color-combo-menu.h"
-#include "marshal.h"
#include <glib/gi18n.h>
-#include <gtk/gtkmenuitem.h>
-#include <gtk/gtkseparatormenuitem.h>
-#include <gtk/gtklabel.h>
-#include <gtk/gtkimage.h>
-#include <gtk/gtkcolorseldialog.h>
+#include <gtk/gtk.h>
+
#include "color-combo-color-menu-item.h"
#include "color-combo-history.h"
#include "color.h"
+#include "marshal.h"
/*===========================================*/
#ifndef __COLOR_COMBO_MENU_H__
#define __COLOR_COMBO_MENU_H__
-#include <gtk/gtkmenu.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
#include "color-combo.h"
-#include "color-combo-menu.h"
#include <glib/gi18n.h>
-#include <gtk/gtkhbox.h>
+#include <gtk/gtk.h>
+
+#include "color-combo-menu.h"
#include "color-swatch.h"
-#include <gtk/gtkarrow.h>
-#include "marshal.h"
#include "color.h"
+#include "marshal.h"
#define IMAGE_W 24
#define __GL_COLOR_COMBO_H__
-#include <gtk/gtktogglebutton.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
#include "color-swatch.h"
-#include "marshal.h"
#include "color.h"
+#include "marshal.h"
/*===========================================*/
#define __COLOR_SWATCH_H__
-#include <gtk/gtkdrawingarea.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * color.c: various small utilities for dealing with canvas colors
+ * color.c
+ * Copyright (C) 2002-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2002-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include <config.h>
#include "color.h"
#include <string.h>
+
/*****************************************************************************/
/* Apply given opacity to given color. */
/*****************************************************************************/
return new_color;
}
+
/*****************************************************************************/
/* Resolve actual shadow color by adjusting opacity. */
/*****************************************************************************/
return color;
}
+
/*****************************************************************************/
/* Convert gLabels color into a GdkColor */
/*****************************************************************************/
return gdk_color;
}
+
/*****************************************************************************/
/* Convert GdkColor into a gLabels color */
/*****************************************************************************/
return color;
}
+
/****************************************************************************/
/* Create a single color node with default color. */
/****************************************************************************/
return color_node;
}
+
/****************************************************************************/
/* Copy a single color node. */
/****************************************************************************/
return dst;
}
+
/****************************************************************************/
/* Compare 2 color nodes for equality. */
/****************************************************************************/
return (strcmp (color_node1->key, color_node2->key) == 0);
}
+
/****************************************************************************/
/* Expand single node into representative color. */
/****************************************************************************/
}
}
+
/****************************************************************************/
/* Free a single color node. */
/****************************************************************************/
g_free (*color_node);
*color_node = NULL;
}
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * color.h: various small utilities for dealing with canvas colors
+ * color.h
+ * Copyright (C) 2002-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2002-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __COLOR_H__
#define __COLOR_H__
#include "merge.h"
-#include <gdk/gdkcolor.h>
+#include <gdk/gdk.h>
G_BEGIN_DECLS
G_END_DECLS
#endif /* __COLOR_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * critical-error-handler.c: critical error handler
+ * critical-error-handler.h
+ * Copyright (C) 2005-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2005 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * You should have received a copy of the GNU General Public License
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "critical-error-handler.h"
-#include <glib/gmessages.h>
+#include <glib.h>
#include <glib/gi18n.h>
-#include <gtk/gtkmessagedialog.h>
-#include <gtk/gtkstock.h>
+#include <gtk/gtk.h>
#include <stdlib.h>
+
static void critical_error_handler (const gchar *log_domain,
GLogLevelFlags log_level,
const gchar *message,
gpointer user_data);
-\f
+
/***************************************************************************/
/* Initialize error handler. */
/***************************************************************************/
"glabels");
}
+
/*-------------------------------------------------------------------------*/
/* PRIVATE. Actual error handler. */
/*-------------------------------------------------------------------------*/
abort ();
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * critical-error-handler.h: critical error handler header file
+ * critical-error-handler.h
+ * Copyright (C) 2005-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2005 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * You should have received a copy of the GNU General Public License
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __CRITICAL_ERROR_HANDLER_H__
#define __CRITICAL_ERROR_HANDLER_H__
-#include <glib/gmacros.h>
+#include <glib.h>
G_BEGIN_DECLS
G_END_DECLS
#endif
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * debug.c: GLabels debug module
+ * debug.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
/*
#include "debug.h"
-#include <glib/gutils.h>
-#include <glib/gmessages.h>
-#include <glib/gstrfuncs.h>
-#include <glib/gmem.h>
+#include <glib.h>
+
glDebugSection debug_flags = GLABELS_DEBUG_NONE;
+
/****************************************************************************/
/* Initialize debug flags, based on environmental variables. */
/****************************************************************************/
}
}
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * debug.h: GLabels debug module
+ * debug.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
/*
#ifndef __DEBUG_H__
#define __DEBUG_H__
-#include <glib/gtypes.h>
+#include <glib.h>
G_BEGIN_DECLS
G_END_DECLS
#endif /* __DEBUG_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * file.c: FILE menu dialog module
+ * file.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "file.h"
#include <glib/gi18n.h>
-#include <gtk/gtkmain.h>
-#include <gtk/gtkdialog.h>
-#include <gtk/gtkmessagedialog.h>
-#include <gtk/gtkfilechooserdialog.h>
-#include <gtk/gtkstock.h>
+#include <gtk/gtk.h>
#include <string.h>
#include "xml-label.h"
#include "window.h"
#include "new-label-dialog.h"
#include "libglabels/libglabels.h"
+
#include "debug.h"
+
/*===========================================*/
/* Private globals */
/*===========================================*/
static gchar *open_path = NULL;
static gchar *save_path = NULL;
+
/*===========================================*/
/* Local function prototypes. */
/*===========================================*/
gint response,
glLabel *label);
-\f
+
/*****************************************************************************/
/* "New" menu callback. */
/*****************************************************************************/
gl_debug (DEBUG_FILE, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. New "ok" button callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_FILE, "END");
}
+
/*****************************************************************************/
/* "Properties" menu callback. */
/*****************************************************************************/
gl_debug (DEBUG_FILE, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Properties "ok" button callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_FILE, "END");
}
+
/*****************************************************************************/
/* "Open" menu callback. */
/*****************************************************************************/
gl_debug (DEBUG_FILE, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Open "response" callback. */
/*---------------------------------------------------------------------------*/
}
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Open a file. */
/*---------------------------------------------------------------------------*/
}
}
+
/*****************************************************************************/
/* "Save" menu callback. */
/*****************************************************************************/
}
}
+
/*****************************************************************************/
/* "Save As" menu callback. */
/*****************************************************************************/
return saved_flag;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. "Save As" ok button callback. */
/*---------------------------------------------------------------------------*/
return close;
}
+
/*****************************************************************************/
/* "Exit" menu callback. */
/*****************************************************************************/
gl_debug (DEBUG_FILE, "END");
}
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * file.h: FILE menu dialog module header file
+ * file.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2000 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __FILE_H__
#define __FILE_H__
-#include <gtk/gtkwindow.h>
+#include <gtk/gtk.h>
#include "label.h"
#include "window.h"
G_END_DECLS
#endif /* __FILE_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
#include "font-combo-menu-item.h"
+#include <glib/gi18n.h>
+#include <gtk/gtk.h>
+
#include "font-sample.h"
#include "marshal.h"
-#include <glib/gi18n.h>
-#include <gtk/gtkmenuitem.h>
-#include <gtk/gtkseparatormenuitem.h>
-#include <gtk/gtkhbox.h>
-#include <gtk/gtklabel.h>
#define __FONT_COMBO_MENU_ITEM_H__
-#include <gtk/gtkmenuitem.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
#include "font-combo-menu.h"
-#include "marshal.h"
#include <glib/gi18n.h>
-#include <gtk/gtkmenuitem.h>
-#include <gtk/gtkseparatormenuitem.h>
-#include <gtk/gtkcolorseldialog.h>
+#include <gtk/gtk.h>
+
#include "font-combo-menu-item.h"
#include "font-util.h"
+#include "marshal.h"
/*===========================================*/
#ifndef __FONT_COMBO_MENU_H__
#define __FONT_COMBO_MENU_H__
-#include <gtk/gtkmenu.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
#include "font-combo.h"
+#include <glib/gi18n.h>
+#include <gtk/gtk.h>
+
#include "font-combo-menu.h"
#include "font-util.h"
-#include <glib/gi18n.h>
-#include <gtk/gtkhbox.h>
-#include <gtk/gtklabel.h>
-#include <gtk/gtkarrow.h>
#include "marshal.h"
#define __GL_FONT_COMBO_H__
-#include <gtk/gtktogglebutton.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
#define __FONT_SAMPLE_H__
-#include <gtk/gtkdrawingarea.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
#include "font-util.h"
+#include <glib.h>
#include <pango/pango.h>
#include <pango/pangocairo.h>
-#include <glib/gstrfuncs.h>
-#include <libglabels/str.h>
+
+#include <libglabels/libglabels.h>
/****************************************************************************/
#ifndef __FONT_UTIL_H__
#define __FONT_UTIL_H__
-#include <glib/glist.h>
+#include <glib.h>
G_BEGIN_DECLS
#include <glib/gi18n.h>
+#include <math.h>
+
+#include <libglabels/libglabels.h>
#include "merge-init.h"
#include "xml-label.h"
#include "print.h"
#include "print-op.h"
-#include <libglabels/db.h>
#include "util.h"
-#include <math.h>
#include "prefs.h"
#include "debug.h"
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
-/**
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * glabels.c: GLabels main module
+/*
+ * glabels.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include <glib/gi18n.h>
+#include <libglabels/libglabels.h>
#include "warning-handler.h"
#include "critical-error-handler.h"
#include "stock.h"
#include "merge-init.h"
#include "recent.h"
-#include <libglabels/db.h>
#include "mini-preview-pixbuf-cache.h"
#include "prefs.h"
#include "debug.h"
return 0;
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * hig.h: HIG inspired dialogs and layout tools
+ * hig.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __HIG_H__
#define __HIG_H__
+#include <glib.h>
+
G_BEGIN_DECLS
#define GL_HIG_PAD1 6
G_END_DECLS
#endif /* __HIG_H__ */
+
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * label_barcode.c: GLabels label text object
+ * label-barcode.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <config.h>
+
#include "label-barcode.h"
+#include <glib.h>
#include <glib/gi18n.h>
-#include <glib/gmem.h>
-#include <glib/gstrfuncs.h>
-#include <glib/gmessages.h>
-#include <cairo.h>
#include <pango/pangocairo.h>
#include "debug.h"
+
/*========================================================*/
/* Private macros and constants. */
/*========================================================*/
#define FONT_SCALE (72.0/96.0)
+
/*========================================================*/
/* Private types. */
/*========================================================*/
guint format_digits;
};
+
/*========================================================*/
/* Private globals. */
/*========================================================*/
+
/*========================================================*/
/* Private function prototypes. */
/*========================================================*/
glMergeRecord *record);
-\f
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
G_DEFINE_TYPE (glLabelBarcode, gl_label_barcode, GL_TYPE_LABEL_OBJECT);
+
static void
gl_label_barcode_class_init (glLabelBarcodeClass *class)
{
object_class->finalize = gl_label_barcode_finalize;
}
+
static void
gl_label_barcode_init (glLabelBarcode *lbc)
{
lbc->priv->text_node = gl_text_node_new_from_text ("");
}
+
static void
gl_label_barcode_finalize (GObject *object)
{
G_OBJECT_CLASS (gl_label_barcode_parent_class)->finalize (object);
}
+
/*****************************************************************************/
/* NEW label "barcode" object. */
/*****************************************************************************/
return G_OBJECT (lbc);
}
+
/*****************************************************************************/
/* Copy object contents. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
void
gl_label_barcode_set_props (glLabelBarcode *lbc,
gchar *id,
return gl_text_node_dup (lbc->priv->text_node);
}
+
void
gl_label_barcode_get_props (glLabelBarcode *lbc,
gchar **id,
*format_digits = lbc->priv->format_digits;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Get object size method. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_LABEL, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Set line color method. */
/*---------------------------------------------------------------------------*/
}
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Get line color method. */
/*---------------------------------------------------------------------------*/
return gl_color_node_dup (lbarcode->priv->color_node);
}
+
/*****************************************************************************/
/* Draw object method. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * label_barcode.h: GLabels label barcode object
+ * label-barcode.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __LABEL_BARCODE_H__
G_END_DECLS
#endif /* __LABEL_BARCODE_H__ */
+
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * label_box.c: GLabels label box object
+ * label-box.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include "label-box.h"
-#include <glib/gmem.h>
-#include <glib/gstrfuncs.h>
-#include <glib/gmessages.h>
+#include <glib.h>
#include "debug.h"
+
/*========================================================*/
/* Private types. */
/*========================================================*/
glColorNode *fill_color_node;
};
+
/*========================================================*/
/* Private globals. */
/*========================================================*/
+
/*========================================================*/
/* Private function prototypes. */
/*========================================================*/
glMergeRecord *record);
-
-
-\f
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
G_DEFINE_TYPE (glLabelBox, gl_label_box, GL_TYPE_LABEL_OBJECT);
+
static void
gl_label_box_class_init (glLabelBoxClass *class)
{
object_class->finalize = gl_label_box_finalize;
}
+
static void
gl_label_box_init (glLabelBox *lbox)
{
lbox->priv->fill_color_node = gl_color_node_new_default ();
}
+
static void
gl_label_box_finalize (GObject *object)
{
G_OBJECT_CLASS (gl_label_box_parent_class)->finalize (object);
}
+
/*****************************************************************************/
/* NEW label "box" object. */
/*****************************************************************************/
return G_OBJECT (lbox);
}
+
/*****************************************************************************/
/* Copy object contents. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Set line color method. */
/*---------------------------------------------------------------------------*/
}
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Set line width method. */
/*---------------------------------------------------------------------------*/
return lbox->priv->line_width;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Get line color method. */
/*---------------------------------------------------------------------------*/
return gl_color_node_dup (lbox->priv->line_color_node);
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Get line width method. */
/*---------------------------------------------------------------------------*/
return gl_color_node_dup (lbox->priv->fill_color_node);
}
+
/*****************************************************************************/
/* Draw object method. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*****************************************************************************/
/* Draw shadow method. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * label_box.h: GLabels label box object
+ * label-box.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __LABEL_BOX_H__
G_END_DECLS
#endif /* __LABEL_BOX_H__ */
+
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * label_ellipse.c: GLabels label ellipse object
+ * label-ellipse.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include "label-ellipse.h"
-#include <glib/gmem.h>
-#include <glib/gstrfuncs.h>
-#include <glib/gmessages.h>
+#include <glib.h>
#include <math.h>
#include "cairo-ellipse-path.h"
/* Private function prototypes. */
/*========================================================*/
-static void gl_label_ellipse_finalize (GObject *object);
+static void gl_label_ellipse_finalize (GObject *object);
-static void copy (glLabelObject *dst_object,
- glLabelObject *src_object);
+static void copy (glLabelObject *dst_object,
+ glLabelObject *src_object);
-static void set_fill_color (glLabelObject *object,
- glColorNode *fill_color_node);
+static void set_fill_color (glLabelObject *object,
+ glColorNode *fill_color_node);
-static void set_line_color (glLabelObject *object,
- glColorNode *line_color_node);
+static void set_line_color (glLabelObject *object,
+ glColorNode *line_color_node);
-static void set_line_width (glLabelObject *object,
- gdouble line_width);
+static void set_line_width (glLabelObject *object,
+ gdouble line_width);
-static glColorNode* get_fill_color (glLabelObject *object);
+static glColorNode* get_fill_color (glLabelObject *object);
-static glColorNode* get_line_color (glLabelObject *object);
+static glColorNode* get_line_color (glLabelObject *object);
-static gdouble get_line_width (glLabelObject *object);
+static gdouble get_line_width (glLabelObject *object);
static void draw_object (glLabelObject *object,
cairo_t *cr,
glMergeRecord *record);
-
-\f
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
G_DEFINE_TYPE (glLabelEllipse, gl_label_ellipse, GL_TYPE_LABEL_OBJECT);
+
static void
gl_label_ellipse_class_init (glLabelEllipseClass *class)
{
object_class->finalize = gl_label_ellipse_finalize;
}
+
static void
gl_label_ellipse_init (glLabelEllipse *lellipse)
{
lellipse->priv->fill_color_node = gl_color_node_new_default ();
}
+
static void
gl_label_ellipse_finalize (GObject *object)
{
G_OBJECT_CLASS (gl_label_ellipse_parent_class)->finalize (object);
}
+
/*****************************************************************************/
/* NEW label "ellipse" object. */
/*****************************************************************************/
return G_OBJECT (lellipse);
}
+
/*****************************************************************************/
/* Copy object contents. */
/*****************************************************************************/
}
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Set line color method. */
/*---------------------------------------------------------------------------*/
}
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Set line width method. */
/*---------------------------------------------------------------------------*/
return lellipse->priv->line_width;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Get line color method. */
/*---------------------------------------------------------------------------*/
return gl_color_node_dup (lellipse->priv->line_color_node);
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Get line width method. */
/*---------------------------------------------------------------------------*/
return gl_color_node_dup (lellipse->priv->fill_color_node);
}
+
/*****************************************************************************/
/* Draw object method. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*****************************************************************************/
/* Draw shadow method. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * label_ellipse.h: GLabels label ellipse object
+ * label-ellipse.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __LABEL_ELLIPSE_H__
G_END_DECLS
#endif /* __LABEL_ELLIPSE_H__ */
+
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * label_image.c: GLabels label image object
+ * label-image.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <config.h>
+
#include "label-image.h"
-#include <glib/gmem.h>
-#include <glib/gstrfuncs.h>
-#include <glib/gmessages.h>
-#include <gdk/gdkcairo.h>
+#include <glib.h>
+#include <gdk/gdk.h>
#include "pixmaps/checkerboard.xpm"
GdkPixbuf *pixbuf;
};
+
/*========================================================*/
/* Private globals. */
/*========================================================*/
static GdkPixbuf *default_pixbuf = NULL;
+
/*========================================================*/
/* Private function prototypes. */
/*========================================================*/
static void copy (glLabelObject *dst_object,
glLabelObject *src_object);
-static void set_size (glLabelObject *object,
- gdouble w,
- gdouble h);
+static void set_size (glLabelObject *object,
+ gdouble w,
+ gdouble h);
-static void draw_object (glLabelObject *object,
+static void draw_object (glLabelObject *object,
cairo_t *cr,
gboolean screen_flag,
glMergeRecord *record);
-\f
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
G_DEFINE_TYPE (glLabelImage, gl_label_image, GL_TYPE_LABEL_OBJECT);
+
static void
gl_label_image_class_init (glLabelImageClass *class)
{
object_class->finalize = gl_label_image_finalize;
}
+
static void
gl_label_image_init (glLabelImage *limage)
{
limage->priv->pixbuf = default_pixbuf;
}
+
static void
gl_label_image_finalize (GObject *object)
{
G_OBJECT_CLASS (gl_label_image_parent_class)->finalize (object);
}
+
/*****************************************************************************/
/* NEW label "image" object. */
/*****************************************************************************/
return G_OBJECT (limage);
}
+
/*****************************************************************************/
/* Copy object contents. */
/*****************************************************************************/
return gl_text_node_dup (limage->priv->filename);
}
+
const GdkPixbuf *
gl_label_image_get_pixbuf (glLabelImage *limage,
glMergeRecord *record)
}
+
/*****************************************************************************/
/* Draw object method. */
/*****************************************************************************/
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * label_image.h: GLabels label image object
+ * label-image.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __LABEL_IMAGE_H__
#define __LABEL_IMAGE_H__
+#include <gdk-pixbuf/gdk-pixbuf.h>
#include "label-object.h"
#include "text-node.h"
#include "merge.h"
-#include <gdk-pixbuf/gdk-pixbuf.h>
G_BEGIN_DECLS
G_END_DECLS
#endif /* __LABEL_IMAGE_H__ */
+
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * label_line.c: GLabels label line object
+ * label-line.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include "label-line.h"
-#include <glib/gmem.h>
-#include <glib/gstrfuncs.h>
-#include <glib/gmessages.h>
+#include <glib.h>
#include "debug.h"
+
/*========================================================*/
/* Private types. */
/*========================================================*/
glColorNode *line_color_node;
};
+
/*========================================================*/
/* Private globals. */
/*========================================================*/
+
/*========================================================*/
/* Private function prototypes. */
/*========================================================*/
-static void gl_label_line_finalize (GObject *object);
+static void gl_label_line_finalize (GObject *object);
-static void copy (glLabelObject *dst_object,
- glLabelObject *src_object);
+static void copy (glLabelObject *dst_object,
+ glLabelObject *src_object);
-static void set_line_color (glLabelObject *object,
- glColorNode *line_color_node);
+static void set_line_color (glLabelObject *object,
+ glColorNode *line_color_node);
-static void set_line_width (glLabelObject *object,
- gdouble line_width);
+static void set_line_width (glLabelObject *object,
+ gdouble line_width);
-static glColorNode *get_line_color (glLabelObject *object);
+static glColorNode *get_line_color (glLabelObject *object);
-static gdouble get_line_width (glLabelObject *object);
+static gdouble get_line_width (glLabelObject *object);
static void draw_object (glLabelObject *object,
cairo_t *cr,
glMergeRecord *record);
-\f
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
G_DEFINE_TYPE (glLabelLine, gl_label_line, GL_TYPE_LABEL_OBJECT);
+
static void
gl_label_line_class_init (glLabelLineClass *class)
{
object_class->finalize = gl_label_line_finalize;
}
+
static void
gl_label_line_init (glLabelLine *lline)
{
lline->priv->line_color_node = gl_color_node_new_default ();
}
+
static void
gl_label_line_finalize (GObject *object)
{
G_OBJECT_CLASS (gl_label_line_parent_class)->finalize (object);
}
+
/*****************************************************************************/
/* NEW label "line" object. */
/*****************************************************************************/
return G_OBJECT (lline);
}
+
/*****************************************************************************/
/* Copy object contents. */
/*****************************************************************************/
}
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Set line width method. */
/*---------------------------------------------------------------------------*/
return lline->priv->line_width;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Get line width method. */
/*---------------------------------------------------------------------------*/
return gl_color_node_dup (lline->priv->line_color_node);
}
+
/*****************************************************************************/
/* Draw object method. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*****************************************************************************/
/* Draw shadow method. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * label_line.h: GLabels label line object
+ * label-line.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __LABEL_LINE_H__
G_END_DECLS
#endif /* __LABEL_LINE_H__ */
+
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * label_object.c: GLabels label object base class
+ * label-object.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include <config.h>
#include "label-object.h"
-#include <glib/gmem.h>
-#include <glib/gstrfuncs.h>
-#include <glib/gmessages.h>
+#include <glib.h>
#include <math.h>
#include "marshal.h"
#define DEFAULT_SHADOW_Y_OFFSET (3.6)
#define DEFAULT_SHADOW_OPACITY (0.5)
+
/*========================================================*/
/* Private types. */
/*========================================================*/
LAST_SIGNAL
};
+
/*========================================================*/
/* Private globals. */
/*========================================================*/
static guint instance = 0;
+
/*========================================================*/
/* Private function prototypes. */
/*========================================================*/
gdouble h);
-\f
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
G_DEFINE_TYPE (glLabelObject, gl_label_object, G_TYPE_OBJECT);
+
static void
gl_label_object_class_init (glLabelObjectClass *class)
{
gl_debug (DEBUG_LABEL, "END");
}
+
static void
gl_label_object_init (glLabelObject *object)
{
gl_debug (DEBUG_LABEL, "END");
}
+
static void
gl_label_object_finalize (GObject *object)
{
gl_debug (DEBUG_LABEL, "END");
}
+
/*****************************************************************************/
/* New label object. */
/*****************************************************************************/
return G_OBJECT (object);
}
+
/*****************************************************************************/
/* Duplicate object. */
/*****************************************************************************/
return dst_object;
}
+
/*****************************************************************************/
/* Emit "changed" signal (for derived objects). */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*****************************************************************************/
/* Set parent label of object. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*****************************************************************************/
/* Get parent label of object. */
/*****************************************************************************/
return object->parent;
}
+
/*****************************************************************************/
/* Set remove object from parent. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*****************************************************************************/
/* Set name of object. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*****************************************************************************/
/* Get name of object. */
/*****************************************************************************/
return g_strdup(object->priv->name);
}
+
/*****************************************************************************/
/* Set position of object. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*****************************************************************************/
/* Set position of object relative to old position. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*****************************************************************************/
/* Get position of object. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Default set size method. */
/*---------------------------------------------------------------------------*/
}
}
+
/*****************************************************************************/
/* Set size of object. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*****************************************************************************/
/* Set size of object honoring current aspect ratio. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*****************************************************************************/
/* Get raw size method (don't let object content adjust size). */
/*****************************************************************************/
*h = object->priv->h;
}
+
/*****************************************************************************/
/* Get size of object. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*****************************************************************************/
/* Get extent of object. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*****************************************************************************/
/* Can text properties be set for this object? */
/*****************************************************************************/
}
+
/*****************************************************************************/
/* Set font family for all text contained in object. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Set font size for all text contained in object. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Set font weight for all text contained in object. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Set font italic flag for all text contained in object. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Set text alignment for all text contained in object. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Set text line spacing for all text contained in object. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Set text color for all text contained in object. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*****************************************************************************/
/* Get font family for all text contained in object. */
/*****************************************************************************/
return ret;
}
+
/****************************************************************************/
/* Get font size for all text contained in object. */
/****************************************************************************/
return ret;
}
+
/****************************************************************************/
/* Get font weight for all text contained in object. */
/****************************************************************************/
return ret;
}
+
/****************************************************************************/
/* Get font italic flag for all text contained in object. */
/****************************************************************************/
return ret;
}
+
/****************************************************************************/
/* Get text alignment for all text contained in object. */
/****************************************************************************/
return ret;
}
+
/****************************************************************************/
/* Get text line spacing for all text contained in object. */
/****************************************************************************/
return ret;
}
+
/****************************************************************************/
/* Get text color for all text contained in object. */
/****************************************************************************/
return ret;
}
+
/*****************************************************************************/
/* Can fill properties be set for this object? */
/*****************************************************************************/
}
+
/****************************************************************************/
/* Set fill color for object. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Get fill color for object. */
/****************************************************************************/
return ret;
}
+
/*****************************************************************************/
/* Can line color property be set for this object? */
/*****************************************************************************/
}
+
/****************************************************************************/
/* Set line color for object. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Get line color for object. */
/****************************************************************************/
return ret;
}
+
/*****************************************************************************/
/* Can line width property be set for this object? */
/*****************************************************************************/
}
+
/****************************************************************************/
/* Set line width for object. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Get line width for object. */
/****************************************************************************/
return ret;
}
+
/****************************************************************************/
/* Set shadow state of object. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Get shadow state of object. */
/****************************************************************************/
return object->priv->shadow_state;
}
+
/****************************************************************************/
/* Set offset of object's shadow. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Get offset of object's shadow. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Set color of object's shadow. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Get color of object's shadow. */
/****************************************************************************/
return gl_color_node_dup (object->priv->shadow_color_node);
}
+
/****************************************************************************/
/* Set opacity of object's shadow. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Get opacity of object's shadow. */
/****************************************************************************/
return object->priv->shadow_opacity;
}
+
/****************************************************************************/
/* Flip object horizontally. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Flip object vertically. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Rotate object. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Set raw affine */
/****************************************************************************/
object->priv->matrix = *matrix;
}
+
/****************************************************************************/
/* Get raw affine */
/****************************************************************************/
*matrix = object->priv->matrix;
}
+
/****************************************************************************/
/* Bring label object to front/top. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Send label object to rear/bottom. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Label's merge data changed callback. */
/*--------------------------------------------------------------------------*/
gl_label_object_emit_changed (object);
}
+
/*****************************************************************************/
/* Draw object */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * label_object.h: GLabels label object base class
+ * label-object.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __LABEL_OBJECT_H__
G_END_DECLS
#endif /* __LABEL_OBJECT_H__ */
+
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
#include "label-text.h"
-#include <glib/gmem.h>
-#include <glib/gstrfuncs.h>
-#include <glib/gmessages.h>
+#include <glib.h>
#include <pango/pango.h>
#include <math.h>
#include <string.h>
/*
* label-text.h
- * Copyright (C) 2008 Jim Evins <evins@snaught.com>.
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
* This file is part of gLabels.
*
#ifndef __LABEL_TEXT_H__
#define __LABEL_TEXT_H__
-#include <gtk/gtktextbuffer.h>
+#include <gtk/gtk.h>
#include "text-node.h"
#include "label-object.h"
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * label.c: GLabels label module
+ * label.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include <glib/gi18n.h>
-#include "marshal.h"
#include "prefs.h"
#include "util.h"
+#include "marshal.h"
#include "debug.h"
+
/*========================================================*/
/* Private macros and constants. */
/*========================================================*/
+
/*========================================================*/
/* Private types. */
/*========================================================*/
LAST_SIGNAL
};
+
/*========================================================*/
/* Private globals. */
/*========================================================*/
static guint untitled = 0;
+
/*========================================================*/
/* Private function prototypes. */
/*========================================================*/
gdouble y,
glLabel *label);
-\f
+
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
G_DEFINE_TYPE (glLabel, gl_label, G_TYPE_OBJECT);
+
static void
gl_label_class_init (glLabelClass *class)
{
gl_debug (DEBUG_LABEL, "END");
}
+
static void
gl_label_init (glLabel *label)
{
gl_debug (DEBUG_LABEL, "END");
}
+
static void
gl_label_finalize (GObject *object)
{
gl_debug (DEBUG_LABEL, "END");
}
+
GObject *
gl_label_new (void)
{
gl_debug (DEBUG_LABEL, "END");
}
+
/*****************************************************************************/
/* Remove object from label. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Object changed callback. */
/*---------------------------------------------------------------------------*/
g_signal_emit (G_OBJECT(label), signals[CHANGED], 0);
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Object moved callback. */
/*---------------------------------------------------------------------------*/
g_signal_emit (G_OBJECT(label), signals[CHANGED], 0);
}
+
/****************************************************************************/
/* Bring label object to front/top. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Send label object to rear/bottom. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* set template. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* set rotate flag. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Get label size. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* set merge information structure. */
/****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/****************************************************************************/
/* Get merge information structure. */
/****************************************************************************/
return gl_merge_dup (label->priv->merge);
}
+
/****************************************************************************/
/* return filename. */
/****************************************************************************/
return g_strdup ( label->priv->filename );
}
+
/****************************************************************************/
/* return short filename. */
/****************************************************************************/
}
}
+
/****************************************************************************/
/* Get pixbuf cache. */
/****************************************************************************/
return label->priv->pixbuf_cache;
}
+
/****************************************************************************/
/* Is label modified? */
/****************************************************************************/
return label->priv->modified_flag;
}
+
/****************************************************************************/
/* Is label untitled? */
/****************************************************************************/
return (label->priv->filename == NULL);
}
+
/****************************************************************************/
/* Can undo? */
/****************************************************************************/
g_signal_emit (G_OBJECT(label), signals[NAME_CHANGED], 0);
}
+
/****************************************************************************/
/* Clear modified flag. */
/****************************************************************************/
gl_label_object_draw (object, cr, screen_flag, record);
}
}
+
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * label.h: GLabels label module header file
+ * label.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __LABEL_H__
#define __LABEL_H__
#include <glib-object.h>
+#include <cairo.h>
-#include <libglabels/template.h>
+#include <libglabels/libglabels.h>
#include "merge.h"
#include "pixbuf-cache.h"
-#include <cairo.h>
G_BEGIN_DECLS
#endif /* __LABEL_H__ */
+
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * merge_evolution.c: evolution merge backend module
- *
- * Copyright (C) 2001 Jim Evins <evins@snaught.com>.
+ * merge-evolution.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
* and
* Copyright (C) 2005 Austin Henry <ahenry@users.sourceforge.net>
* and
* Copyright (C) 2007 Peter Cherriman <glabels-devel2712@bubieyehyeh.me.uk>
*
- * This program is free software; you can redistribute it and/or modify
+ * This file is part of gLabels.
+ *
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include <glib/gi18n.h>
#include <stdio.h>
#include <string.h>
-#include <libglabels/str.h>
+
+#include <libglabels/libglabels.h>
#include "debug.h"
#define DEFAULT_QUERY "(exists \"full_name\")"
+
/*===========================================*/
/* Private types */
/*===========================================*/
ARG_QUERY,
};
+
/*===========================================*/
/* Private globals */
/*===========================================*/
/* utility function prototypes go here */
static void free_field_list (GList *fields);
-\f
+
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
gl_debug (DEBUG_MERGE, "END");
}
+
static void
gl_merge_evolution_init (glMergeEvolution *merge_evolution)
{
gl_debug (DEBUG_MERGE, "END");
}
+
static void
gl_merge_evolution_finalize (GObject *object)
{
gl_debug (DEBUG_MERGE, "END");
}
+
/*--------------------------------------------------------------------------*/
/* Set argument. */
/*--------------------------------------------------------------------------*/
}
+
/*--------------------------------------------------------------------------*/
/* Get argument. */
/*--------------------------------------------------------------------------*/
}
+
/*--------------------------------------------------------------------------*/
/* Get key list. */
/*--------------------------------------------------------------------------*/
return key_list;
}
+
/*--------------------------------------------------------------------------*/
/* Get "primary" key. */
/*--------------------------------------------------------------------------*/
return g_strdup (e_contact_pretty_name(E_CONTACT_FILE_AS));
}
+
/* Sort compare function for sorting contacts by file-as element
* by Peter Cherriman (PJC)
* called by GList* g_list_sort(GList *list, sort_contact_by_file_as);
return res;
}
+
/*--------------------------------------------------------------------------*/
/* Open merge source. */
/*--------------------------------------------------------------------------*/
return;
}
+
/*--------------------------------------------------------------------------*/
/* Close merge source. */
/*--------------------------------------------------------------------------*/
merge_evolution->priv->contacts = NULL;
}
+
/*--------------------------------------------------------------------------*/
/* Get next record from merge source, NULL if no records left (i.e EOF) */
/*--------------------------------------------------------------------------*/
return record;
}
+
/*---------------------------------------------------------------------------*/
/* Copy merge_evolution specific fields. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_MERGE, "END");
}
+
/*---------------------------------------------------------------------------*/
/* Free the list of supported fields */
/*---------------------------------------------------------------------------*/
#endif /* HAVE_LIBEBOOK */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * merge_evolution.h: evolution merge backend module header file
- *
- * Copyright (C) 2002 Jim Evins <evins@snaught.com>.
+ * merge-evolution.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
* and
* Copyright (C) 2005 Austin Henry <ahenry@users.sourceforge.net>
*
- * This program is free software; you can redistribute it and/or modify
+ * This file is part of gLabels.
+ *
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __MERGE_EVOLUTION_H__
#define __MERGE_EVOLUTION_H__
G_END_DECLS
#endif /* __MERGE_EVOLUTION_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * merge.c: document merge initialization
+ * merge-init.c
+ * Copyright (C) 2002-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include <config.h>
#include <glib/gi18n.h>
#include "merge-init.h"
#include "merge-text.h"
+
#ifdef HAVE_LIBEBOOK
#include "merge-evolution.h"
#include "merge-vcard.h"
#endif /* HAVE_LIBEBOOK */
}
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * merge-init.h: document merge initialization header file
+ * merge-init.h
+ * Copyright (C) 2002-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __MERGE_INIT_H__
#define __MERGE_INIT_H__
G_END_DECLS
#endif
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
#include "merge-properties-dialog.h"
#include <glib/gi18n.h>
-#include <gtk/gtkbuilder.h>
-#include <gtk/gtkfilechooserbutton.h>
-#include <gtk/gtkcombobox.h>
-#include <gtk/gtkstock.h>
-#include <gtk/gtktreestore.h>
-#include <gtk/gtktreeselection.h>
-#include <gtk/gtkcellrenderertoggle.h>
-#include <gtk/gtkcellrenderertext.h>
-#include <gtk/gtklabel.h>
+#include <gtk/gtk.h>
#include <string.h>
#include "label.h"
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * merge-properties-dialog.h: document merge properties dialog module header file
+ * merge-properties-dialog.h
+ * Copyright (C) 2002-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __MERGE_PROPERTIES_DIALOG_H__
#define __MERGE_PROPERTIES_DIALOG_H__
-#include <gtk/gtkdialog.h>
-#include <gtk/gtkwindow.h>
+#include <gtk/gtk.h>
#include "label.h"
G_BEGIN_DECLS
G_END_DECLS
#endif
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * merge_text.c: text-file merge backend module
+ * merge-text.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#define LINE_BUF_LEN 1024
+
/*===========================================*/
/* Private types */
/*===========================================*/
ARG_DELIM,
};
+
/*===========================================*/
/* Private globals */
/*===========================================*/
static gchar *parse_field (gchar *raw_field);
static void free_fields (GList **fields);
-\f
+
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
G_DEFINE_TYPE (glMergeText, gl_merge_text, GL_TYPE_MERGE);
+
static void
gl_merge_text_class_init (glMergeTextClass *class)
{
gl_debug (DEBUG_MERGE, "END");
}
+
static void
gl_merge_text_init (glMergeText *merge_text)
{
gl_debug (DEBUG_MERGE, "END");
}
+
static void
gl_merge_text_finalize (GObject *object)
{
gl_debug (DEBUG_MERGE, "END");
}
+
/*--------------------------------------------------------------------------*/
/* Set argument. */
/*--------------------------------------------------------------------------*/
}
+
/*--------------------------------------------------------------------------*/
/* Get argument. */
/*--------------------------------------------------------------------------*/
}
+
/*--------------------------------------------------------------------------*/
/* Get key list. */
/*--------------------------------------------------------------------------*/
return key_list;
}
+
/*--------------------------------------------------------------------------*/
/* Get "primary" key. */
/*--------------------------------------------------------------------------*/
return g_strdup ("1");
}
+
/*--------------------------------------------------------------------------*/
/* Open merge source. */
/*--------------------------------------------------------------------------*/
g_free (src);
}
+
/*--------------------------------------------------------------------------*/
/* Close merge source. */
/*--------------------------------------------------------------------------*/
}
}
+
/*--------------------------------------------------------------------------*/
/* Get next record from merge source, NULL if no records left (i.e EOF) */
/*--------------------------------------------------------------------------*/
return record;
}
+
/*---------------------------------------------------------------------------*/
/* Copy merge_text specific fields. */
/*---------------------------------------------------------------------------*/
dst_merge_text->priv->delim = src_merge_text->priv->delim;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Parse line. */
/* */
return list;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Parse field. */
/* */
return field;
}
+
/*---------------------------------------------------------------------------*/
/* Free list of fields. */
/*---------------------------------------------------------------------------*/
*list = NULL;
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * merge_text.h: text-file merge backend module header file
+ * merge-text.h
+ * Copyright (C) 2002-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __MERGE_TEXT_H__
#define __MERGE_TEXT_H__
G_END_DECLS
#endif
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * merge_vcard.c: vcard merge backend module
- *
- * Copyright (C) 2001 Jim Evins <evins@snaught.com>.
+ * merge-vcard.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
* and
* Copyright (C) 2005 Austin Henry <ahenry@users.sourceforge.net>
*
- * This program is free software; you can redistribute it and/or modify
+ * This file is part of gLabels.
+ *
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "merge-vcard.h"
-#include <libebook/e-contact.h>
+#include <libebook/e-contact.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include "debug.h"
+
/*===========================================*/
/* Private types */
/*===========================================*/
ARG_0,
};
+
/*===========================================*/
/* Private globals */
/*===========================================*/
static char * parse_next_vcard (FILE *fp);
-\f
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
G_DEFINE_TYPE (glMergeVCard, gl_merge_vcard, GL_TYPE_MERGE);
+
static void
gl_merge_vcard_class_init (glMergeVCardClass *class)
{
gl_debug (DEBUG_MERGE, "END");
}
+
static void
gl_merge_vcard_init (glMergeVCard *merge_vcard)
{
gl_debug (DEBUG_MERGE, "END");
}
+
static void
gl_merge_vcard_finalize (GObject *object)
{
gl_debug (DEBUG_MERGE, "END");
}
+
/*--------------------------------------------------------------------------*/
/* Set argument. */
/*--------------------------------------------------------------------------*/
}
}
+
/*--------------------------------------------------------------------------*/
/* Get argument. */
/*--------------------------------------------------------------------------*/
}
-/* TODO */
+
/*--------------------------------------------------------------------------*/
/* Get key list. */
/*--------------------------------------------------------------------------*/
return key_list;
}
-/* TODO? */
+
/*--------------------------------------------------------------------------*/
/* Get "primary" key. */
/*--------------------------------------------------------------------------*/
return g_strdup ("full_name");
}
+
/*--------------------------------------------------------------------------*/
/* Open merge source. */
/*--------------------------------------------------------------------------*/
return;
}
+
/*--------------------------------------------------------------------------*/
/* Close merge source. */
/*--------------------------------------------------------------------------*/
}
}
+
/*--------------------------------------------------------------------------*/
/* Get next record from merge source, NULL if no records left (i.e EOF) */
/*--------------------------------------------------------------------------*/
return record;
}
+
/*---------------------------------------------------------------------------*/
/* Copy merge_vcard specific fields. */
/*---------------------------------------------------------------------------*/
src_merge_vcard = GL_MERGE_VCARD (src_merge);
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE: pull out a full VCard from the open file */
/* Arguments: */
#endif /* HAVE_LIBEBOOK */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * merge_vcard.h: vcard merge backend module header file
- *
- * Copyright (C) 2002 Jim Evins <evins@snaught.com>.
+ * merge-vcard.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
* and
* Copyright (C) 2005 Austin Henry <ahenry@users.sourceforge.net>
*
- * This program is free software; you can redistribute it and/or modify
+ * This file is part of gLabels.
+ *
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __MERGE_VCARD_H__
#define __MERGE_VCARD_H__
#endif /* __MERGE_VCARD_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * merge.c: document merge module
+ * merge.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include <config.h>
#include "merge.h"
#include <gobject/gvaluecollector.h>
#include <string.h>
-#include <libglabels/str.h>
+#include <libglabels/libglabels.h>
#include "debug.h"
}
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * merge.h: document merge module header file
+ * merge.h
+ * Copyright (C) 2002-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __MERGE_H__
#define __MERGE_H__
G_END_DECLS
#endif
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
#include "mini-label-preview.h"
-#include <libglabels/db.h>
-#include "marshal.h"
+#include <libglabels/libglabels.h>
#include "cairo-label-path.h"
#include "color.h"
+#include "marshal.h"
/*===========================================*/
#define __MINI_LABEL_PREVIEW_H__
-#include <gtk/gtkdrawingarea.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * mini-preview-pixbuf-cache.c: GLabels mini-preview pixbuf cache module
+ * mini-preview-pixbuf-cache.c
+ * Copyright (C) 2007-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include <config.h>
#include "mini-preview-pixbuf-cache.h"
-#include "mini-preview-pixbuf.h"
-#include "libglabels/db.h"
+#include <glib.h>
-#include <glib/gmem.h>
-#include <glib/ghash.h>
+#include "libglabels/libglabels.h"
+#include "mini-preview-pixbuf.h"
#include "debug.h"
return g_object_ref (pixbuf);
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * mini-preview-pixbuf-cache.h: GLabels mini-preview pixbuf cache module
+ * mini-preview-pixbuf-cache.h
+ * Copyright (C) 2007-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __MINI_PREVIEW_PIXBUF_CACHE_H__
#define __MINI_PREVIEW_PIXBUF_CACHE_H__
-#include <libglabels/template.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
+#include <libglabels/libglabels.h>
G_BEGIN_DECLS
G_END_DECLS
#endif /*__MINI_PREVIEW_PIXBUF_CACHE_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * mini-preview-pixbuf.c: mini preview pixbuf module
+ * mini-preview-pixbuf.c
+ * Copyright (C) 2006-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2006 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "mini-preview-pixbuf.h"
-#include "cairo-label-path.h"
#include <cairo.h>
#include <math.h>
+#include "cairo-label-path.h"
+
#include "debug.h"
/*===========================================*/
gl_debug (DEBUG_MINI_PREVIEW, "END");
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * mini-preview-pixbuf.h: mini-preview pixbuf module header file
+ * mini-preview-pixbuf.h
+ * Copyright (C) 2006-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2006 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __MINI_PREVIEW_PIXBUF_H__
#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <libglabels/template.h>
+#include <libglabels/libglabels.h>
G_BEGIN_DECLS
G_END_DECLS
#endif
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
{
lglTemplate *template = this->priv->template;
gdouble w, h;
- gdouble w1, h1;
gdouble scale;
gdouble offset_x, offset_y;
#include "new-label-dialog.h"
#include <glib/gi18n.h>
-#include <gtk/gtkbuilder.h>
-#include <gtk/gtkdialog.h>
-#include <gtk/gtkstock.h>
+#include <gtk/gtk.h>
#include "hig.h"
#include "wdgt-media-select.h"
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * new-label-dialog.h: New label dialog module header file
+ * new-label-dialog.h
+ * Copyright (C) 2006-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2006 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __NEW_LABEL_DIALOG_H__
#define __NEW_LABEL_DIALOG_H__
-#include <gtk/gtkwindow.h>
-#include <gtk/gtkdialog.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
G_END_DECLS
#endif
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
#include "object-editor.h"
#include <glib/gi18n.h>
-#include <gtk/gtklabel.h>
-#include <gtk/gtkspinbutton.h>
-#include <gtk/gtkcombobox.h>
-#include <gtk/gtktogglebutton.h>
+#include <gtk/gtk.h>
#include <math.h>
#include "prefs.h"
#include "object-editor.h"
#include <glib/gi18n.h>
-#include <gtk/gtkeditable.h>
-#include <gtk/gtkcombobox.h>
-#include <gtk/gtktogglebutton.h>
+#include <gtk/gtk.h>
#include <string.h>
#include <math.h>
#include "object-editor.h"
#include <glib/gi18n.h>
-#include <gtk/gtktogglebutton.h>
-#include <gtk/gtkcombobox.h>
+#include <gtk/gtk.h>
#include <math.h>
#include "prefs.h"
#include "object-editor.h"
#include <glib/gi18n.h>
-#include <gtk/gtkimage.h>
-#include <gtk/gtkfilechooserbutton.h>
-#include <gtk/gtkcombobox.h>
-#include <gtk/gtktogglebutton.h>
+#include <gtk/gtk.h>
#include <math.h>
#include "prefs.h"
#include "object-editor.h"
#include <glib/gi18n.h>
-#include <gtk/gtklabel.h>
-#include <gtk/gtkspinbutton.h>
-#include <gtk/gtkcombobox.h>
-#include <gtk/gtktogglebutton.h>
+#include <gtk/gtk.h>
#include <math.h>
#include "prefs.h"
#include "object-editor.h"
#include <glib/gi18n.h>
-#include <gtk/gtklabel.h>
-#include <gtk/gtkspinbutton.h>
+#include <gtk/gtk.h>
#include <math.h>
#include "prefs.h"
#include "object-editor.h"
#include <glib/gi18n.h>
-#include <gtk/gtklabel.h>
-#include <gtk/gtkspinbutton.h>
+#include <gtk/gtk.h>
#include <math.h>
#include "prefs.h"
#ifndef __OBJECT_EDITOR_PRIVATE_H__
#define __OBJECT_EDITOR_PRIVATE_H__
-#include <gtk/gtkwidget.h>
-#include <gtk/gtkbuilder.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
#include "object-editor.h"
#include <glib/gi18n.h>
-#include <gtk/gtktogglebutton.h>
-#include <gtk/gtklabel.h>
-#include <gtk/gtkspinbutton.h>
-#include <gtk/gtkcombobox.h>
+#include <gtk/gtk.h>
#include <math.h>
#include "prefs.h"
#include "object-editor.h"
#include <glib/gi18n.h>
-#include <gtk/gtklabel.h>
-#include <gtk/gtkspinbutton.h>
+#include <gtk/gtk.h>
#include <math.h>
#include "prefs.h"
#include "object-editor.h"
#include <glib/gi18n.h>
-#include <gtk/gtktogglebutton.h>
-#include <gtk/gtkspinbutton.h>
-#include <gtk/gtkcombobox.h>
+#include <gtk/gtk.h>
#include <math.h>
#include "prefs.h"
#include "object-editor.h"
#include <glib/gi18n.h>
-#include <gtk/gtkbuilder.h>
-#include <gtk/gtklabel.h>
-#include <gtk/gtknotebook.h>
-#include <gtk/gtkcombobox.h>
-#include <gtk/gtktogglebutton.h>
-
+#include <gtk/gtk.h>
#include <math.h>
#include "prefs.h"
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * object-editor.h: object properties editor module header file
+ * object-editor.h
+ * Copyright (C) 2003-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2003 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __OBJECT_EDITOR_H__
#define __OBJECT_EDITOR_H__
-#include <gtk/gtkvbox.h>
-#include <gtk/gtktextbuffer.h>
+#include <gtk/gtk.h>
#include "text-node.h"
#include "label.h"
G_END_DECLS
#endif
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * pixbuf-cache.c: GLabels pixbuf cache module
+ * pixbuf-cache.c
+ * Copyright (C) 2003-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2003 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include <config.h>
#include "pixbuf-cache.h"
#include "debug.h"
+
/*========================================================*/
/* Private types. */
/*========================================================*/
GdkPixbuf *pixbuf;
} CacheRecord;
+
/*========================================================*/
/* Private globals. */
/*========================================================*/
+
/*========================================================*/
/* Private function prototypes. */
/*========================================================*/
gpointer val,
gpointer user_data);
-\f
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Destroy cache record. */
/*---------------------------------------------------------------------------*/
g_free (record);
}
+
/*****************************************************************************/
/* Create a new hash table to keep track of cached pixbufs. */
/*****************************************************************************/
return pixbuf_cache;
}
+
/*****************************************************************************/
/* Free up previously allocated hash table and its contents. */
/*****************************************************************************/
gl_debug (DEBUG_PIXBUF_CACHE, "END");
}
+
/*****************************************************************************/
/* Add pixbuf to cache explicitly (not a reference). */
/*****************************************************************************/
gl_debug (DEBUG_PIXBUF_CACHE, "END");
}
+
/*****************************************************************************/
/* Get pixbuf. If not in cache, read it and add to cache. */
/*****************************************************************************/
return pixbuf;
}
+
/*****************************************************************************/
/* Remove pixbuf, but only if no references left. */
/*****************************************************************************/
gl_debug (DEBUG_PIXBUF_CACHE, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Add a name to a GList while iterating over cache. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_PIXBUF_CACHE, "END");
}
+
/*****************************************************************************/
/* Return a list of names for all pixbufs in the cache. */
/*****************************************************************************/
return name_list;
}
+
/*****************************************************************************/
/* Free up a list of pixbuf names. */
/*****************************************************************************/
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * pixbuf-cache.h: GLabels pixbuf cache module
+ * pixbuf-cache.h
+ * Copyright (C) 2003-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2003 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __PIXBUF_CACHE_H__
#define __PIXBUF_CACHE_H__
-#include <glib/gmem.h>
-#include <glib/ghash.h>
+#include <glib.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
G_BEGIN_DECLS
G_END_DECLS
#endif /*__PIXBUF_CACHE_H__ */
+
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
#include "prefs-dialog.h"
#include <glib/gi18n.h>
-#include <gtk/gtkbuilder.h>
-#include <gtk/gtktogglebutton.h>
-#include <gtk/gtkstock.h>
-#include <gtk/gtkbox.h>
-#include <gtk/gtkcombobox.h>
-#include <gtk/gtkspinbutton.h>
+#include <gtk/gtk.h>
#include "prefs.h"
#include "hig.h"
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * prefs-dialog.h: Preferences dialog module header file
+ * prefs-dialog.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __PREFS_DIALOG_H__
#define __PREFS_DIALOG_H__
-#include <gtk/gtkwindow.h>
-#include <gtk/gtkdialog.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
G_END_DECLS
#endif /* __PREFS_DIALOG_H__ */
+
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * prefs-model.c: Application preferences model module
+ * prefs-model.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2003 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include <config.h>
#include "prefs-model.h"
-#include <libglabels/db.h>
-#include <libglabels/xml.h>
-#include <gtk/gtkpapersize.h>
+#include <glib.h>
+#include <gtk/gtk.h>
#include <string.h>
-#include <glib/gstrfuncs.h>
+#include <libglabels/libglabels.h>
#include "marshal.h"
#include "util.h"
#include "color.h"
#include "debug.h"
+
/*========================================================*/
/* Private macros and constants. */
/*========================================================*/
#define DEFAULT_FILL_COLOR GL_COLOR_A (0, 255, 0, 255)
+
/*========================================================*/
/* Private types. */
/*========================================================*/
};
-
/*========================================================*/
/* Private globals. */
/*========================================================*/
static guint signals[LAST_SIGNAL] = {0};
+
/*========================================================*/
/* Private function prototypes. */
/*========================================================*/
static const gchar *units_to_string (lglUnitsType units);
-\f
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
G_DEFINE_TYPE (glPrefsModel, gl_prefs_model, G_TYPE_OBJECT);
+
static void
gl_prefs_model_class_init (glPrefsModelClass *class)
{
gl_debug (DEBUG_PREFS, "END");
}
+
static void
gl_prefs_model_init (glPrefsModel *prefs_model)
{
gl_debug (DEBUG_PREFS, "END");
}
+
static void
gl_prefs_model_finalize (GObject *object)
{
gl_debug (DEBUG_PREFS, "END");
}
+
/*****************************************************************************/
/* New prefs_model object. */
/*****************************************************************************/
}
-
/*****************************************************************************/
/* Save all settings. */
/*****************************************************************************/
gl_debug (DEBUG_PREFS, "END");
}
+
/*****************************************************************************/
/* Load all settings. */
/*****************************************************************************/
gl_debug (DEBUG_PREFS, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Key changed callback. */
/*---------------------------------------------------------------------------*/
gl_prefs_model_load_settings (prefs_model);
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Utilities to get values with defaults. */
/*---------------------------------------------------------------------------*/
}
}
+
static gboolean
get_bool (GConfClient *client,
const gchar *key,
}
}
+
static gint
get_int (GConfClient *client,
const gchar *key,
}
}
+
static gdouble
get_float (GConfClient *client,
const gchar *key,
}
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Utilities to deal with units. */
/*---------------------------------------------------------------------------*/
return units;
}
+
static const
gchar *units_to_string (lglUnitsType units)
{
}
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * prefs-model.h: Application preferences model module header file
+ * prefs-model.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2003 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __PREFS_MODEL_H__
#define __PREFS_MODEL_H__
#include <glib-object.h>
#include <gconf/gconf-client.h>
#include <pango/pango.h>
-#include <libglabels/enums.h>
+#include <libglabels/libglabels.h>
G_BEGIN_DECLS
#endif /* __PREFS_MODEL_H__ */
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * prefs.c: Application preferences module
+ * prefs.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2003 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include <config.h>
#include "prefs.h"
*/
gl_prefs_model_save_settings (gl_prefs);
}
+
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * prefs.h: Application preferences module header file
+ * prefs.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2003 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __PREFS_H__
#define __PREFS_H__
#endif /* __PREFS_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
#include "print-op-dialog.h"
#include <glib/gi18n.h>
-#include <gtk/gtkbuilder.h>
+#include <gtk/gtk.h>
#include <math.h>
#include <time.h>
#include <ctype.h>
-#include <gtk/gtktogglebutton.h>
-#include <gtk/gtkspinbutton.h>
#include "mini-preview.h"
#include "label.h"
#include "print-op.h"
#include <glib/gi18n.h>
+#include <gtk/gtk.h>
#include <math.h>
#include <time.h>
#include <ctype.h>
-#include <gtk/gtktogglebutton.h>
-#include <libglabels/db.h>
+#include <libglabels/libglabels.h>
#include "print.h"
#include "label.h"
gchar *
gl_print_op_get_filename (glPrintOp *op)
{
- gchar *filename;
+ gchar *filename = NULL;
g_object_get (G_OBJECT (op),
"export_filename", filename,
#ifndef __PRINT_OP_H__
#define __PRINT_OP_H__
-#include <gtk/gtkprintoperation.h>
+#include <gtk/gtk.h>
#include "label.h"
G_BEGIN_DECLS
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * print.c: Print module
+ * print.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include <config.h>
#include "print.h"
#include <time.h>
#include <ctype.h>
+#include <libglabels/libglabels.h>
#include "label.h"
-#include <libglabels/template.h>
#include "cairo-label-path.h"
#include "debug.h"
+
/*===========================================*/
/* Private macros and constants. */
/*===========================================*/
#define TICK_OFFSET 2.25
#define TICK_LENGTH 18.0
+
/*=========================================================================*/
/* Private types. */
/*=========================================================================*/
glLabel *label);
-\f
/*****************************************************************************/
/* Print simple sheet (no merge data) command. */
/*****************************************************************************/
gl_debug (DEBUG_PRINT, "END");
}
+
/*****************************************************************************/
/* Print collated merge sheet command */
/*****************************************************************************/
gl_debug (DEBUG_PRINT, "END");
}
+
/*****************************************************************************/
/* Print uncollated merge sheet command */
/*****************************************************************************/
gl_debug (DEBUG_PRINT, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. new print info structure */
/*---------------------------------------------------------------------------*/
return pi;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. free print info structure */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_PRINT, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Print crop tick marks. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_PRINT, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Print i'th label. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_PRINT, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Draw outline. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_PRINT, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Clip to outline. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_PRINT, "END");
}
+
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * print.h: Print module header file
+ * print.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __PRINT_H__
#define __PRINT_H__
G_END_DECLS
#endif
+
+
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * recent.c: gLabels recent files module
+ * recent.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2006 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "recent.h"
+#include <gtk/gtk.h>
#include <string.h>
-#include <gtk/gtkrecentchoosermenu.h>
#include "prefs.h"
+
#include "debug.h"
#define GLABELS_MIME_TYPE "application/x-glabels"
static GtkRecentManager *model;
-
/*****************************************************************************/
/* Initialize recent files model. */
/*****************************************************************************/
gl_debug (DEBUG_RECENT, "END");
}
+
/*****************************************************************************/
/* Add file by UTF8 filename to recent model. */
/*****************************************************************************/
gl_debug (DEBUG_RECENT, "END");
return recent_menu;
}
+
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * recent.h: gLabels recent files module header file
+ * recent.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2006 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __RECENT_H__
#define __RECENT_H__
-#include <gtk/gtkrecentmanager.h>
-#include <gtk/gtkwidget.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
#endif /*__RECENT_H__*/
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
#include "rotate-label-button.h"
#include <glib/gi18n.h>
-#include <gtk/gtkradiobutton.h>
-#include <gtk/gtklabel.h>
-#include <gtk/gtkvbox.h>
+#include <gtk/gtk.h>
#include <math.h>
+
+#include <libglabels/libglabels.h>
#include "mini-label-preview.h"
-#include <libglabels/db.h>
#include "hig.h"
#include "marshal.h"
#ifndef __ROTATE_LABEL_BUTTON_H__
#define __ROTATE_LABEL_BUTTON_H__
-#include <gtk/gtkhbox.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * stock.h: Stock image module header file
+ * stock.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "stock.h"
#include <glib/gi18n.h>
-#include <gtk/gtkiconfactory.h>
-#include <gtk/gtkstock.h>
-#include <gdk-pixbuf/gdk-pixdata.h>
+#include <gtk/gtk.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
#include "stock-pixmaps/stockpixbufs.h"
/* Private macros and constants. */
/*========================================================*/
+
/*========================================================*/
/* Private types. */
/*========================================================*/
+
/*===========================================*/
/* Private globals */
/*===========================================*/
+
/*===========================================*/
/* Local function prototypes */
/*===========================================*/
const gchar *stock_id,
const guchar *inline_24);
-\f
+
/****************************************************************************/
/* Initialize our stock icons. */
/****************************************************************************/
g_object_unref (G_OBJECT(factory));
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Unpack and associate given icons with stock_id. */
/*--------------------------------------------------------------------------*/
gtk_icon_set_unref (icon_set);
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Unpack and associate given button icon with stock_id. */
/*--------------------------------------------------------------------------*/
-
-
-
-
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * stock.h: Stock image module header file
+ * stock.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __STOCK_H__
#define __STOCK_H__
-#include <glib/gmacros.h>
+#include <glib.h>
G_BEGIN_DECLS
G_END_DECLS
#endif
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
#include "template-designer.h"
#include <glib/gi18n.h>
-#include <gtk/gtkbuilder.h>
-#include <gtk/gtktogglebutton.h>
-#include <gtk/gtkcombobox.h>
-#include <gtk/gtkspinbutton.h>
-#include <gtk/gtklabel.h>
+#include <gtk/gtk.h>
#include <string.h>
#include <math.h>
+#include <libglabels/libglabels.h>
#include "prefs.h"
-#include <libglabels/db.h>
#include "mini-preview.h"
#include "mini-preview-pixbuf-cache.h"
#include "print-op-dialog.h"
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * template-designer.h: Template designer module header file
+ * template-designer.h
+ * Copyright (C) 2003-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2003 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __TEMPLATE_DESIGNER_H__
#define __TEMPLATE_DESIGNER_H__
-#include <gtk/gtkassistant.h>
-#include <gtk/gtkwindow.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
G_END_DECLS
#endif /* __TEMPLATE_DESIGNER_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * text_node.c: text node module
+ * text-node.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "debug.h"
+
/*===========================================*/
/* Local function prototypes */
/*===========================================*/
static gboolean is_empty_field (glTextNode *text_node,
glMergeRecord *record);
-\f
+
/****************************************************************************/
/* Expand single node into representative string. */
/****************************************************************************/
}
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Is node a field that evaluates empty? */
/*--------------------------------------------------------------------------*/
return ret;
}
+
/****************************************************************************/
/* Create a single text node from given text. */
/****************************************************************************/
return extract_text_node (text, &n);
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Create a single text node from given text. n = characters used */
/*--------------------------------------------------------------------------*/
return text_node;
}
+
/****************************************************************************/
/* Copy a single text node. */
/****************************************************************************/
return dst;
}
+
/****************************************************************************/
/* Free a single text node. */
/****************************************************************************/
*text_node = NULL;
}
+
/****************************************************************************/
/* Compare 2 text nodes for equality. */
/****************************************************************************/
return (strcmp (text_node1->data, text_node2->data) == 0);
}
+
/****************************************************************************/
/* Expand text lines into single string. */
/****************************************************************************/
return text;
}
+
/****************************************************************************/
/* Parse a string back into text lines. */
/****************************************************************************/
return lines;
}
+
/****************************************************************************/
/* Copy a list of text lines. */
/****************************************************************************/
return dst_lines;
}
+
/****************************************************************************/
/* Free a list of text lines. */
/****************************************************************************/
*lines = NULL;
}
+
/****************************************************************************/
/* For debugging: descend and print lines list. */
/****************************************************************************/
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * text_node.h: text node module header file
+ * text-node.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __TEXT_NODE_H__
#define __TEXT_NODE_H__
-#include <glib/gtypes.h>
-#include <glib/glist.h>
+#include <glib.h>
#include "merge.h"
G_BEGIN_DECLS
G_END_DECLS
#endif
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * ui-commands.c: GLabels UI commands module
- *
+ * ui-commands.c
* Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * This program is free software; you can redistribute it and/or modify
+ * This file is part of gLabels.
+ *
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "debug.h"
-\f
/****************************************************************************/
/** File/New command. */
/****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/****************************************************************************/
/** File/Properties command. */
/****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/****************************************************************************/
/** File/Template-Designer command. */
/****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/****************************************************************************/
/** File/Open command. */
/****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/****************************************************************************/
/** File/Open-Recent command. */
/****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/****************************************************************************/
/** File/Save command. */
/****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/****************************************************************************/
/** File/Save-as command. */
/****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/****************************************************************************/
/** File/Print command. */
/****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/****************************************************************************/
/** File/Close command. */
/****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/****************************************************************************/
/** File/Quit command. */
/****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/****************************************************************************/
/** Edit/Copy command. */
/****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/****************************************************************************/
/** Edit/Paste command. */
/****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/****************************************************************************/
/** Edit/Unselect-all command. */
/****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/****************************************************************************/
/** Edit/Preferences command. */
/****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** View/Property-bar-toggle command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** View/Markup-toggle command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** View/Zoom-in command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** View/Zoom-out command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** View/Zoom-1:1 command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** View/Zoom-to-fit command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Arrow-mode command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Create-text object command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Create-box object command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Create-line object command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Create-ellipse object command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Create-image object command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Create-barcode object command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Raise command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Lower command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Rotate-left-90-degrees command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Rotate-right-90-degrees command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Flip-horizontally command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Flip-vertically command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Align-left command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Align-right command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Align-horizontal-center command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Align-top command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Align-bottom command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Align-vertical center command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Center-horizontally command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Center-vertically command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/*****************************************************************************/
/** Objects/Edit- merge-properties command. */
/*****************************************************************************/
gl_debug (DEBUG_COMMANDS, "END");
}
+
/****************************************************************************/
/** Help/Contents command. */
/****************************************************************************/
const gchar *translator_credits = _("translator-credits");
const gchar *license = _(
- "Glabels is free software; you can redistribute it and/or modify it\n"
- "under the terms of the GNU General Public License as published by\n"
- "the Free Software Foundation; either version 2 of the License, or\n"
- "(at your option) any later version.\n" "\n"
- "This program is distributed in the hope that it will be useful, but\n"
- "WITHOUT ANY WARRANTY; without even the implied warranty of\n"
- "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See\n"
- "the GNU General Public License for more details.\n");
+ "gLabels is free software: you can redistribute it and/or modify\n"
+ "it under the terms of the GNU General Public License as published by\n"
+ "the Free Software Foundation, either version 3 of the License, or\n"
+ "(at your option) any later version.\n"
+ "\n"
+ "gLabels is distributed in the hope that it will be useful,\n"
+ "but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
+ "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n"
+ "GNU General Public License for more details.\n");
gl_debug (DEBUG_COMMANDS, "START");
gl_debug (DEBUG_COMMANDS, "END");
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * ui-commands.h: GLabels UI commands module header file
+ * ui-commands.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2005 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __COMMANDS_H__
#define __COMMANDS_H__
-#include <gtk/gtkaction.h>
-#include <gtk/gtkrecentchooser.h>
-#include <gtk/gtktoggleaction.h>
+#include <gtk/gtk.h>
#include "window.h"
G_BEGIN_DECLS
G_END_DECLS
#endif /* __COMMANDS_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
#include "ui-property-bar.h"
#include <glib/gi18n.h>
-#include <gtk/gtkbuilder.h>
-#include <gtk/gtkspinbutton.h>
-#include <gtk/gtktoolbar.h>
-#include <gtk/gtktoggletoolbutton.h>
+#include <gtk/gtk.h>
#include <string.h>
#include "util.h"
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
-/**
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * ui-property-bar.h: Property toolbar header file
+/*
+ * ui-property-bar.h
+ * Copyright (C) 2003-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2003-2008 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __UI_PROPERTY_BAR_H__
#define __UI_PROPERTY_BAR_H__
-#include <gtk/gtkhbox.h>
+#include <gtk/gtk.h>
#include "view.h"
G_END_DECLS
#endif /* __UI_PROPERTY_BAR_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
-/**
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * ui-sidebar.c: Object property sidebar
+/*
+ * ui-sidebar.c
+ * Copyright (C) 2003-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2003 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "debug.h"
+
/*===========================================================================*/
/* Private macros and constants. */
/*===========================================================================*/
#define DEFAULT_SIDEBAR_WIDTH 340
+
/*===========================================================================*/
/* Private data types */
/*===========================================================================*/
glUISidebar *sidebar);
-\f
/****************************************************************************/
/* Boilerplate Object stuff. */
/****************************************************************************/
G_DEFINE_TYPE (glUISidebar, gl_ui_sidebar, GTK_TYPE_VBOX);
+
static void
gl_ui_sidebar_class_init (glUISidebarClass *class)
{
gl_debug (DEBUG_UI, "END");
}
+
static void
gl_ui_sidebar_init (glUISidebar *sidebar)
{
gl_debug (DEBUG_UI, "END");
}
+
static void
gl_ui_sidebar_finalize (GObject *object)
{
gl_debug (DEBUG_UI, "END");
}
+
/****************************************************************************/
/* Create a NEW sidebar. */
/****************************************************************************/
return GTK_WIDGET(sidebar);
}
+
/******************************************************************************/
/* Initialize property toolbar. */
/******************************************************************************/
gl_debug (DEBUG_UI, "END");
}
+
/****************************************************************************/
/* Set view associated with sidebar. */
/****************************************************************************/
gl_debug (DEBUG_UI, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. View "selection state changed" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_UI, "END");
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
-/**
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * ui-sidebar.h: Object property sidebar header file
+/*
+ * ui-sidebar.h
+ * Copyright (C) 2003-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2003 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __UI_SIDEBAR_H__
#define __UI_SIDEBAR_H__
-#include <gtk/gtkvbox.h>
+#include <gtk/gtk.h>
#include "view.h"
G_END_DECLS
#endif /* __UI_SIDEBAR_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * ui-util.c: GLabels ui utilities module
+ * ui-util.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include <config.h>
#include "ui-util.h"
-#include <gtk/gtkaction.h>
-#include <gtk/gtktoggleaction.h>
+#include <gtk/gtk.h>
#include "debug.h"
+
/*==========================================================================*/
/* Private macros and constants. */
/*==========================================================================*/
+
/*==========================================================================*/
/* Private types. */
/*==========================================================================*/
+
/*==========================================================================*/
/* Private globals */
/*==========================================================================*/
+
/*==========================================================================*/
/* Local function prototypes */
/*==========================================================================*/
-\f
/*****************************************************************************/
/** Set sensitivity of verb. */
/*****************************************************************************/
gl_debug (DEBUG_UI, "END");
}
+
/*****************************************************************************/
/** Set sensitivity of a list of verbs. */
/*****************************************************************************/
gl_debug (DEBUG_UI, "END");
}
+
/*****************************************************************************/
/** Set state of a verb. */
/*****************************************************************************/
gl_debug (DEBUG_UI, "END");
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * ui-util.h: GLabels UI utilities module header file
+ * ui-util.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2003 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __GL_UI_UTIL_H__
#define __GL_UI_UTIL_H__
-#include <gtk/gtkuimanager.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
G_END_DECLS
#endif /* __GL_UI_UTIL_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * ui.c: GLabels ui module
+ * ui.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include <config.h>
#include "ui.h"
#include <glib/gi18n.h>
#include <gconf/gconf-client.h>
-#include <gtk/gtkrecentchoosermenu.h>
-#include <gtk/gtkmenuitem.h>
-#include <gtk/gtkstock.h>
-#include <gtk/gtktoolbar.h>
-#include <gtk/gtkstatusbar.h>
+#include <gtk/gtk.h>
#include <string.h>
#include "ui-util.h"
#include "debug.h"
+
/*==========================================================================*/
/* Private macros and constants. */
/*==========================================================================*/
+
/*==========================================================================*/
/* Private types. */
/*==========================================================================*/
return ui;
}
+
/*****************************************************************************/
/** Unref wrapper. */
/*****************************************************************************/
gl_debug (DEBUG_UI, "END");
}
+
/*****************************************************************************/
/** Update all verbs of given UI component. */
/*****************************************************************************/
gl_debug (DEBUG_UI, "END");
}
+
/*****************************************************************************/
/** Update all verbs of given UI component to "no document" state. */
/*****************************************************************************/
gl_debug (DEBUG_UI, "END");
}
+
/*****************************************************************************/
/** Update label modified verbs of given UI component. */
/*****************************************************************************/
gl_debug (DEBUG_UI, "END");
}
+
/*****************************************************************************/
/** Update verbs associated with selection state of given UI component. */
/*****************************************************************************/
gl_debug (DEBUG_UI, "END");
}
+
/*****************************************************************************/
/** Update verbs associated with zoom level of given UI component. */
/*****************************************************************************/
gl_debug (DEBUG_UI, "END");
}
+
/*****************************************************************************/
/** Update undo/redo verbs of given UI component. */
/*****************************************************************************/
gl_debug (DEBUG_UI, "END");
}
+
/*---------------------------------------------------------------------------*/
/** PRIVATE. View menu item toggled callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_UI, "");
}
+
/*---------------------------------------------------------------------------*/
/** PRIVATE. Set main toolbar style. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_UI, "END");
}
+
/*---------------------------------------------------------------------------*/
/** PRIVATE. Set visibility of grid and markup. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_UI, "END");
}
+
/*---------------------------------------------------------------------------*/
/** PRIVATE. Connect proxy callback. */
/*---------------------------------------------------------------------------*/
}
}
+
/*---------------------------------------------------------------------------*/
/** PRIVATE. Disconnect proxy callback. */
/*---------------------------------------------------------------------------*/
}
}
+
/*---------------------------------------------------------------------------*/
/** PRIVATE. Menu item select callback. */
/*---------------------------------------------------------------------------*/
}
}
+
/*---------------------------------------------------------------------------*/
/** PRIVATE. Menu item deselect callback. */
/*---------------------------------------------------------------------------*/
window->menu_tips_context_id);
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * ui.h: GLabels UI module header file
+ * ui.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __GL_UI_H__
#define __GL_UI_H__
-#include <gtk/gtkuimanager.h>
+#include <gtk/gtk.h>
#include "window.h"
#include "view.h"
G_END_DECLS
#endif /* __GL_UI_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * util.c: various small utility functions
+ * util.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include <string.h>
#include <glib.h>
#include <math.h>
-#include <gtk/gtkliststore.h>
-#include <gtk/gtkcellrenderertext.h>
-#include <gtk/gtkcelllayout.h>
-#include <libglabels/str.h>
+#include <gtk/gtk.h>
+
+#include <libglabels/libglabels.h>
#define FRAC_EPSILON 0.00005
-\f
+
/****************************************************************************/
/* Append ".glabels" extension to filename if needed. */
/****************************************************************************/
return new_filename;
}
+
/****************************************************************************/
/* Remove ".glabels" extension from filename if needed. */
/****************************************************************************/
return new_filename;
}
+
/****************************************************************************/
/* Make sure we have an absolute path to filename. */
/****************************************************************************/
return absolute_filename;
}
+
/****************************************************************************/
/* Create fractional representation of number, if possible. */
/****************************************************************************/
}
}
+
/****************************************************************************/
/* Utilities to deal with PangoAlignment types. */
/****************************************************************************/
}
}
+
PangoAlignment
gl_util_string_to_align (const gchar *string)
{
}
+
/****************************************************************************/
/* Utilities to deal with PangoWeight types */
/****************************************************************************/
}
}
+
PangoWeight
gl_util_string_to_weight (const gchar *string)
{
}
+
/****************************************************************************/
/* Convienience function to set strings in a text combo_box from a GList */
/****************************************************************************/
}
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. gl_util_combo_box_set_active_text support. */
/*---------------------------------------------------------------------------*/
return FALSE;
}
+
/****************************************************************************/
/* Convienience function to set active text in a text combo_box from text */
/****************************************************************************/
}
+
/****************************************************************************/
/* Convienience function to add a simple text model to an existing */
/* combo_box. This is needed since combo_boxes created with glade do not */
}
-
/****************************************************************************/
/* Get widgets from GtkBuilder "en masse." */
/****************************************************************************/
va_end (args);
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * util.h: various small utility functions
+ * util.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2008 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __UTIL_H__
#define __UTIL_H__
-#include <glib/glist.h>
-#include <gtk/gtkcombobox.h>
+#include <glib.h>
+#include <gtk/gtk.h>
#include <pango/pango.h>
-#include <gtk/gtkbuilder.h>
G_BEGIN_DECLS
G_END_DECLS
#endif /* __UTIL_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * view_barcode.c: GLabels label barcode object view
+ * view-barcode.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include <config.h>
#include "view-barcode.h"
#include <glib/gi18n.h>
-#include <glib/gmem.h>
+#include <glib.h>
#include "color.h"
#include "object-editor.h"
#include "debug.h"
+
/*========================================================*/
/* Private macros and constants. */
/*========================================================*/
+
/*========================================================*/
/* Private types. */
/*========================================================*/
struct _glViewBarcodePrivate {
};
+
/*========================================================*/
/* Private globals. */
/*========================================================*/
gdouble y);
-
-\f
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
static void
gl_view_barcode_init (glViewBarcode *view_barcode)
{
gl_debug (DEBUG_VIEW, "END");
}
+
static void
gl_view_barcode_finalize (GObject *object)
{
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* NEW barcode object view. */
/*****************************************************************************/
return GL_VIEW_OBJECT (view_barcode);
}
+
/*****************************************************************************/
/* Create a properties dialog for a barcode object. */
/*****************************************************************************/
return editor;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. editor "changed" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. label object "changed" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. label object "moved" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Is object at (x,y)? */
/*****************************************************************************/
return cursor;
}
+
/*****************************************************************************/
/* Object creation handler: button press event. */
/*****************************************************************************/
view->create_y0 = y;
}
+
/*****************************************************************************/
/* Object creation handler: motion event. */
/*****************************************************************************/
gl_label_object_set_position (GL_LABEL_OBJECT(view->create_object), x, y);
}
+
/*****************************************************************************/
/* Object creation handler: button relesase event. */
/*****************************************************************************/
gl_color_node_free (&line_color_node);
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * view_barcode.h: GLabels label barcode object view
+ * view-barcode.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __VIEW_BARCODE_H__
G_END_DECLS
#endif /* __VIEW_BARCODE_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * view_box.c: GLabels label box object view
+ * view-box.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include <config.h>
#include "view-box.h"
#include <glib/gi18n.h>
-#include <glib/gmem.h>
+#include <glib.h>
#include "color.h"
#include "object-editor.h"
#include "debug.h"
+
/*========================================================*/
/* Private macros and constants. */
/*========================================================*/
struct _glViewBoxPrivate {
};
+
/*========================================================*/
/* Private globals. */
/*========================================================*/
gdouble y);
-
-\f
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
static void
gl_view_box_init (glViewBox *view_box)
{
gl_debug (DEBUG_VIEW, "END");
}
+
static void
gl_view_box_finalize (GObject *object)
{
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* NEW box object view. */
/*****************************************************************************/
return GL_VIEW_OBJECT (view_box);
}
+
/*****************************************************************************/
/* Create a properties dialog for a box object. */
/*****************************************************************************/
return editor;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. editor "changed" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. label object "changed" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. label object "moved" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Is object at (x,y)? */
/*****************************************************************************/
return cursor;
}
+
/*****************************************************************************/
/* Object creation handler: button press event. */
/*****************************************************************************/
view->create_y0 = y;
}
+
/*****************************************************************************/
/* Object creation handler: motion event. */
/*****************************************************************************/
gl_label_object_set_size (GL_LABEL_OBJECT(view->create_object), w, h);
}
+
/*****************************************************************************/
/* Object creation handler: button relesase event. */
/*****************************************************************************/
gl_color_node_free (&line_color_node);
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * view_box.h: GLabels label box object view
+ * view-box.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __VIEW_BOX_H__
G_END_DECLS
#endif /* __VIEW_BOX_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * view_ellipse.c: GLabels label ellipse object view
+ * view-ellipse.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include <config.h>
#include "view-ellipse.h"
#include <glib/gi18n.h>
-#include <glib/gmem.h>
+#include <glib.h>
#include <math.h>
#include "cairo-ellipse-path.h"
#include "debug.h"
+
/*========================================================*/
/* Private macros and constants. */
/*========================================================*/
+
/*========================================================*/
/* Private types. */
/*========================================================*/
struct _glViewEllipsePrivate {
};
+
/*========================================================*/
/* Private globals. */
/*========================================================*/
gdouble y);
-\f
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
static void
gl_view_ellipse_init (glViewEllipse *view_ellipse)
{
gl_debug (DEBUG_VIEW, "END");
}
+
static void
gl_view_ellipse_finalize (GObject *object)
{
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* NEW ellipse object view. */
/*****************************************************************************/
return GL_VIEW_OBJECT (view_ellipse);
}
+
/*****************************************************************************/
/* Create a properties dialog for a ellipse object. */
/*****************************************************************************/
return editor;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. editor "changed" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. label object "changed" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. label object "moved" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Is object at (x,y)? */
/*****************************************************************************/
return cursor;
}
+
/*****************************************************************************/
/* Object creation handler: button press event. */
/*****************************************************************************/
view->create_y0 = y;
}
+
/*****************************************************************************/
/* Object creation handler: motion event. */
/*****************************************************************************/
gl_label_object_set_size (GL_LABEL_OBJECT(view->create_object), w, h);
}
+
/*****************************************************************************/
/* Object creation handler: button relesase event. */
/*****************************************************************************/
gl_color_node_free (&line_color_node);
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * view_ellipse.h: GLabels label ellipse object view
+ * view-ellipse.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __VIEW_ELLIPSE_H__
G_END_DECLS
#endif /* __VIEW_ELLIPSE_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * view_image.c: GLabels label image object view
+ * view-image.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include <config.h>
#include "view-image.h"
#include <glib/gi18n.h>
-#include <glib/gmem.h>
+#include <glib.h>
#include "color.h"
#include "object-editor.h"
#include "debug.h"
+
/*========================================================*/
/* Private macros and constants. */
/*========================================================*/
struct _glViewImagePrivate {
};
+
/*========================================================*/
/* Private globals. */
/*========================================================*/
gdouble y);
-\f
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
static void
gl_view_image_init (glViewImage *view_image)
{
gl_debug (DEBUG_VIEW, "END");
}
+
static void
gl_view_image_finalize (GObject *object)
{
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* NEW image object view. */
/*****************************************************************************/
return GL_VIEW_OBJECT (view_image);
}
+
/*****************************************************************************/
/* Create a properties dialog for a image object. */
/*****************************************************************************/
return editor;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. editor "changed" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. label object "changed" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. label object "moved" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Is object at (x,y)? */
/*****************************************************************************/
return cursor;
}
+
/*****************************************************************************/
/* Object creation handler: button press event. */
/*****************************************************************************/
view->create_y0 = y;
}
+
/*****************************************************************************/
/* Object creation handler: motion event. */
/*****************************************************************************/
gl_label_object_set_size (GL_LABEL_OBJECT(view->create_object), w, h);
}
+
/*****************************************************************************/
/* Object creation handler: button relesase event. */
/*****************************************************************************/
gl_label_object_set_size (GL_LABEL_OBJECT(view->create_object), w, h);
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * view_image.h: GLabels label image object view
+ * view-image.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __VIEW_IMAGE_H__
G_END_DECLS
#endif /* __VIEW_IMAGE_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * view_line.c: GLabels label line object view
+ * view-line.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include <config.h>
#include "view-line.h"
#include <glib/gi18n.h>
-#include <glib/gmem.h>
+#include <glib.h>
#include "color.h"
#include "object-editor.h"
#include "debug.h"
+
/*========================================================*/
/* Private macros and constants. */
/*========================================================*/
struct _glViewLinePrivate {
};
+
/*========================================================*/
/* Private globals. */
/*========================================================*/
gdouble y);
-\f
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
static void
gl_view_line_init (glViewLine *view_line)
{
gl_debug (DEBUG_VIEW, "END");
}
+
static void
gl_view_line_finalize (GObject *object)
{
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* NEW line object view. */
/*****************************************************************************/
return GL_VIEW_OBJECT (view_line);
}
+
/*****************************************************************************/
/* Create a properties dialog for a line object. */
/*****************************************************************************/
return editor;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. editor "changed" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. label object "changed" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. label object "moved" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Is object at (x,y)? */
/*****************************************************************************/
return cursor;
}
+
/*****************************************************************************/
/* Object creation handler: button press event. */
/*****************************************************************************/
view->create_y0 = y;
}
+
/*****************************************************************************/
/* Object creation handler: motion event. */
/*****************************************************************************/
gl_label_object_set_size (GL_LABEL_OBJECT(view->create_object), w, h);
}
+
/*****************************************************************************/
/* Object creation handler: button relesase event. */
/*****************************************************************************/
gl_color_node_free (&line_color_node);
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * view_line.h: GLabels label line object view
+ * view-line.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __VIEW_LINE_H__
G_END_DECLS
#endif /* __VIEW_LINE_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * view_object.c: GLabels label object base class
+ * view-object.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
-
#include "view-object.h"
#include <glib.h>
#include "debug.h"
+
/*========================================================*/
/* Private constants and macros. */
/*========================================================*/
#define HANDLE_OUTLINE_WIDTH_PIXELS 1.0
#define HANDLE_PIXELS 7
+
/*========================================================*/
/* Private types. */
/*========================================================*/
GtkWidget *property_editor;
};
+
/*========================================================*/
/* Private globals. */
/*========================================================*/
glLabelObject *object);
-
-
-
-\f
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
G_DEFINE_TYPE (glViewObject, gl_view_object, G_TYPE_OBJECT);
+
static void
gl_view_object_class_init (glViewObjectClass *class)
{
gl_debug (DEBUG_VIEW, "END");
}
+
static void
gl_view_object_init (glViewObject *view_object)
{
gl_debug (DEBUG_VIEW, "END");
}
+
static void
gl_view_object_finalize (GObject *object)
{
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* NEW object view. */
/*****************************************************************************/
return G_OBJECT (view_object);
}
+
/*****************************************************************************/
/* Set parent view to which this object view belongs. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Set Label object to follow. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Handle object "removed" signal. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Handle object "top" signal. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Handle object "removed" signal. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Return parent view associated with this view. */
/*****************************************************************************/
return view_object->priv->view;
}
+
/*****************************************************************************/
/* Return label object that we are following. */
/*****************************************************************************/
return view_object->priv->object;
}
+
/*****************************************************************************/
/* Get property editor. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Is object at (x,y)? */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Draw object handles */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Is there an object handle at (x,y). */
/*****************************************************************************/
return handle;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Resize object. */
/*---------------------------------------------------------------------------*/
cairo_device_to_user (cr, &x0, &y0);
gl_label_object_set_position (object, x0, y0);
}
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * view_object.h: GLabels canvas item wrapper widget
+ * view-object.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __VIEW_OBJECT_H__
G_END_DECLS
#endif /* __VIEW_OBJECT_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * view_text.c: GLabels label text object view
+ * view-text.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include <config.h>
#include "view-text.h"
#include <glib/gi18n.h>
-#include <glib/gmem.h>
+#include <glib.h>
#include "color.h"
#include "object-editor.h"
#include "debug.h"
+
/*========================================================*/
/* Private macros and constants. */
/*========================================================*/
+
/*========================================================*/
/* Private types. */
/*========================================================*/
struct _glViewTextPrivate {
};
+
/*========================================================*/
/* Private globals. */
/*========================================================*/
gdouble y);
-
-\f
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
static void
gl_view_text_init (glViewText *view_text)
{
gl_debug (DEBUG_VIEW, "END");
}
+
static void
gl_view_text_finalize (GObject *object)
{
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* NEW text object view. */
/*****************************************************************************/
return GL_VIEW_OBJECT (view_text);
}
+
/*****************************************************************************/
/* Create a properties dialog for a text object. */
/*****************************************************************************/
return editor;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. editor "changed" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. editor "changed" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. label object "changed" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. label object "moved" callback. */
/*---------------------------------------------------------------------------*/
return cursor;
}
+
/*****************************************************************************/
/* Object creation handler: button press event. */
/*****************************************************************************/
view->create_y0 = y;
}
+
/*****************************************************************************/
/* Object creation handler: motion event. */
/*****************************************************************************/
gl_label_object_set_position (GL_LABEL_OBJECT(view->create_object), x, y);
}
+
/*****************************************************************************/
/* Object creation handler: button relesase event. */
/*****************************************************************************/
gl_color_node_free (&color_node);
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * view_text.h: GLabels label text object view
+ * view-text.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __VIEW_TEXT_H__
G_END_DECLS
#endif /* __VIEW_TEXT_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * view.c: GLabels View module
+ * view.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "view.h"
#include <glib/gi18n.h>
-#include <gtk/gtkscrolledwindow.h>
-#include <gtk/gtklayout.h>
-#include <gtk/gtkselection.h>
-#include <gtk/gtkinvisible.h>
+#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <string.h>
#include <math.h>
#include "debug.h"
+
/*==========================================================================*/
/* Private macros and constants. */
/*==========================================================================*/
#define POINTS_PER_MM 2.83464566929
+
/*==========================================================================*/
/* Private types. */
/*==========================================================================*/
static gboolean key_press_event_cb (glView *view,
GdkEventKey *event);
-\f
+
/****************************************************************************/
/* Boilerplate Object stuff. */
/****************************************************************************/
G_DEFINE_TYPE (glView, gl_view, GTK_TYPE_VBOX);
+
static void
gl_view_class_init (glViewClass *class)
{
gl_debug (DEBUG_VIEW, "END");
}
+
static void
gl_view_init (glView *view)
{
gl_debug (DEBUG_VIEW, "END");
}
+
static void
gl_view_finalize (GObject *object)
{
gl_debug (DEBUG_VIEW, "END");
}
+
/****************************************************************************/
/* NEW view object. */
/****************************************************************************/
return GTK_WIDGET (view);
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Construct composite widget. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIAVTE. Calculate 1:1 scale for screen. */
/*---------------------------------------------------------------------------*/
return scale;
}
+
/*---------------------------------------------------------------------------*/
/* Schedule canvas update. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* Schedule canvas region update. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Expose handler. */
/*---------------------------------------------------------------------------*/
return FALSE;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Realize handler. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Size allocation changed callback. */
/*---------------------------------------------------------------------------*/
}
-
/*---------------------------------------------------------------------------*/
/* PRIVATE. Screen changed callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Handle label changed event. */
/*---------------------------------------------------------------------------*/
gl_view_select_object (view, view_object);
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Create, draw and order layers. */
/*---------------------------------------------------------------------------*/
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Draw background */
/*---------------------------------------------------------------------------*/
cairo_fill (cr);
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Draw grid lines. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Draw markup layer. */
/*---------------------------------------------------------------------------*/
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Draw objects layer. */
/*---------------------------------------------------------------------------*/
gl_label_draw (view->label, cr, TRUE, NULL);
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Draw foreground */
/*---------------------------------------------------------------------------*/
cairo_stroke (cr);
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Create highlight layer. */
/*---------------------------------------------------------------------------*/
cairo_restore (cr);
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Draw select region layer. */
/*---------------------------------------------------------------------------*/
}
}
+
/*****************************************************************************/
/* Show grid. */
/*****************************************************************************/
gl_view_update (view);
}
+
/*****************************************************************************/
/* Hide grid. */
/*****************************************************************************/
gl_view_update (view);
}
+
/*****************************************************************************/
/* Set grid spacing. */
/*****************************************************************************/
gl_view_update (view);
}
+
/*****************************************************************************/
/* Show markup. */
/*****************************************************************************/
gl_view_update (view);
}
+
/*****************************************************************************/
/* Hide markup. */
/*****************************************************************************/
gl_view_update (view);
}
+
/*****************************************************************************/
/* Set arrow mode. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Set create text object mode. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Select given object (adding to current selection). */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Unselect given object (removing from current selection). */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Select all items. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Remove all selections */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Select all objects within given rectangular region (adding to selection). */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Select an object. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Un-select object. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Return object at (x,y). */
/*---------------------------------------------------------------------------*/
return NULL;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Return object handle at (x,y). */
/*---------------------------------------------------------------------------*/
return NULL;
}
+
/*****************************************************************************/
/* Is the object in our current selection? */
/*****************************************************************************/
return TRUE;
}
+
/*****************************************************************************/
/* Is our current selection empty? */
/*****************************************************************************/
}
}
+
/*****************************************************************************/
/* Is our current selection atomic? I.e. only one item selected. */
/*****************************************************************************/
return FALSE;
}
+
/*****************************************************************************/
/* Delete selected objects. (Bypass clipboard) */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Get object property editor of first selected object. */
/*****************************************************************************/
return editor;
}
+
/*****************************************************************************/
/* Raise selected items to top. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Lower selected items to bottom. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Rotate selected objects by given angle. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Rotate selected objects 90 degrees left. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Rotate selected objects 90 degrees right. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Flip selected objects horizontally. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Flip selected objects vertically. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Align selected objects to left most edge. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Align selected objects to horizontal center of objects. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Align selected objects to top most edge. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Align selected objects to bottom most edge. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Align selected objects to viertical center of objects. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Center selected objects to in center of label. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Can text properties be set for selection? */
/*****************************************************************************/
return FALSE;
}
+
/*****************************************************************************/
/* Set font family for all text contained in selected objects. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Set font size for all text contained in selected objects. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Set font weight for all text contained in selected objects. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Set font italic flag for all text contained in selected objects. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Set text alignment for all text contained in selected objects. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Set text line spacing for all text contained in selected objects. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
+
/*****************************************************************************/
/* Set text color for all text contained in selected objects. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Can fill properties be set for selection? */
/*****************************************************************************/
return FALSE;
}
+
/*****************************************************************************/
/* Set fill color for all selected objects. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Can line color properties be set for selection? */
/*****************************************************************************/
return FALSE;
}
+
/*****************************************************************************/
/* Set line color for all selected objects. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Can line width properties be set for selection? */
/*****************************************************************************/
return FALSE;
}
+
/*****************************************************************************/
/* Set line width for all selected objects. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* "Cut" selected items and place in clipboard selections. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* "Copy" selected items to clipboard selections. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* "Paste" from private clipboard selection. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Zoom in one "notch" */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Zoom out one "notch" */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*****************************************************************************/
/* Set zoom to best fit. */
/*****************************************************************************/
set_zoom_real (view, scale/view->home_scale, TRUE);
}
+
/*****************************************************************************/
/* Set current zoom factor to explicit value. */
/*****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Set canvas scale. */
/*---------------------------------------------------------------------------*/
return view->zoom;
}
+
/*****************************************************************************/
/* Is this the maximum zoom level. */
/*****************************************************************************/
return view->zoom >= zooms[0];
}
+
/*****************************************************************************/
/* Is this the minimum zoom level. */
/*****************************************************************************/
return view->zoom <= zooms[N_ZOOMS-1];
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Handle "selection-clear" signal. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Handle "selection-get" signal. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Handle "selection-received" signal. (Result of Paste) */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_VIEW, "END");
}
+
/****************************************************************************/
/* Set default font family. */
/****************************************************************************/
gl_debug (DEBUG_VIEW, "END");
}
+
/****************************************************************************/
/* Set default text line spacing. */
/****************************************************************************/
}
-
/****************************************************************************/
/* Get default font family. */
/****************************************************************************/
return view->default_text_alignment;
}
+
/****************************************************************************/
/* Get default text line spacing. */
/****************************************************************************/
}
-
/****************************************************************************/
/* Get default line width. */
/****************************************************************************/
return view->default_fill_color;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Focus in event handler. */
/*---------------------------------------------------------------------------*/
return FALSE;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Focus out event handler. */
/*---------------------------------------------------------------------------*/
return FALSE;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Enter notify event handler. */
/*---------------------------------------------------------------------------*/
return FALSE;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Leave notify event handler. */
/*---------------------------------------------------------------------------*/
return FALSE;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Motion notify event handler. */
/*---------------------------------------------------------------------------*/
return return_value;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Button press event handler. */
/*---------------------------------------------------------------------------*/
return return_value;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Button release event handler. */
/*---------------------------------------------------------------------------*/
return return_value;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Key press event handler. */
/*---------------------------------------------------------------------------*/
return TRUE; /* We handled this or we were dragging. */
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * view.h: GLabels View module header file
+ * view.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __VIEW_H__
#define __VIEW_H__
-#include <gtk/gtkvbox.h>
+#include <gtk/gtk.h>
#include "label-object.h"
G_END_DECLS
#endif
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * warning-handler.c: non-critical error handler
+ * warning-handler.c
+ * Copyright (C) 2005-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2005 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * You should have received a copy of the GNU General Public License
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "warning-handler.h"
-#include <glib/gmessages.h>
+#include <glib.h>
#include <glib/gi18n.h>
-#include <gtk/gtkmessagedialog.h>
-#include <gtk/gtkstock.h>
+#include <gtk/gtk.h>
#include <stdlib.h>
static void warning_handler (const gchar *log_domain,
const gchar *message,
gpointer user_data);
-\f
+
/***************************************************************************/
/* Initialize error handler. */
/***************************************************************************/
"glabels");
}
+
/*-------------------------------------------------------------------------*/
/* PRIVATE. Actual error handler. */
/*-------------------------------------------------------------------------*/
gtk_widget_destroy (GTK_WIDGET (dialog));
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * warning-handler.h: non-critical error handler header file
+ * warning-handler.h
+ * Copyright (C) 2005-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2005 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * You should have received a copy of the GNU General Public License
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __WARNING_HANDLER_H__
#define __WARNING_HANDLER_H__
-#include <glib/gmacros.h>
+#include <glib.h>
G_BEGIN_DECLS
G_END_DECLS
#endif
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
-/* wdgt-chain-button.c
- * Modified version of gimpchainbutton.c for gLabels:
+/*
+ * wdgt-chain-button.c
+ * Modified version of gimpchainbutton.h for gLabels:
+ *
+ * LIBGIMP - The GIMP Library
+ * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
*
- * LIBGIMP - The GIMP Library
- * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
+ * gimpchainbutton.h
+ * Copyright (C) 1999-2000 Sven Neumann <sven@gimp.org>
*
- * gimpchainbutton.c
- * Copyright (C) 1999-2000 Sven Neumann <sven@gimp.org>
+ * Modified or gLabels by Jim Evins <evins@snaught.com>
*
- * Modified or gLabels by Jim Evins <evins@snaught.com>
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * This file is part of gLabels.
*
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
+ * gLabels is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
*
- * You should have received a copy of the GNU General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * gLabels is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include "wdgt-chain-button.h"
-#include <gtk/gtkdrawingarea.h>
-#include <gtk/gtkimage.h>
-#include <gtk/gtkbutton.h>
+#include <gtk/gtk.h>
#include "stock.h"
return TRUE;
}
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
-/* wdgt-chain-button.h
- * Modified version of gimpchainbutton.h for gLabels:
+/*
+ * wdgt-chain-button.h
+ * Modified version of gimpchainbutton.h for gLabels:
+ *
+ * LIBGIMP - The GIMP Library
+ * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
*
- * LIBGIMP - The GIMP Library
- * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
+ * gimpchainbutton.h
+ * Copyright (C) 1999-2000 Sven Neumann <sven@gimp.org>
*
- * gimpchainbutton.h
- * Copyright (C) 1999-2000 Sven Neumann <sven@gimp.org>
+ * Modified or gLabels by Jim Evins <evins@snaught.com>
*
- * Modified or gLabels by Jim Evins <evins@snaught.com>
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * This file is part of gLabels.
*
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
+ * gLabels is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
*
- * You should have received a copy of the GNU General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * gLabels is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
/*
#ifndef __WDGT_CHAIN_BUTTON_H__
#define __WDGT_CHAIN_BUTTON_H__
-#include <gtk/gtktable.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
G_END_DECLS
#endif /* __WDGT_CHAIN_BUTTON_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
#include "wdgt-media-select.h"
#include <glib/gi18n.h>
-#include <gtk/gtkbuilder.h>
-#include <gtk/gtknotebook.h>
-#include <gtk/gtkcombobox.h>
-#include <gtk/gtktreeview.h>
-#include <gtk/gtktreeselection.h>
-#include <gtk/gtkliststore.h>
-#include <gtk/gtkcellrenderertext.h>
-#include <gtk/gtkcellrendererpixbuf.h>
-#include <gtk/gtkstock.h>
+#include <gtk/gtk.h>
#include <string.h>
+#include <libglabels/libglabels.h>
#include "mini-preview-pixbuf-cache.h"
#include "prefs.h"
#include "util.h"
#include "color.h"
#include "marshal.h"
-#include <libglabels/db.h>
#include "debug.h"
+
/*===========================================*/
/* Private types */
/*===========================================*/
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * wdgt_media_select.h: media selection widget module header file
+ * wdgt-media-select.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2006 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __WDGT_MEDIA_SELECT_H__
#define __WDGT_MEDIA_SELECT_H__
-#include <gtk/gtkvbox.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
G_END_DECLS
#endif
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * wdgt_merge_menu.c: merge menu widget module
+ * wdgt-merge-menu.c
+ * Copyright (C) 2008-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2008 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "wdgt-merge-menu.h"
#include <string.h>
-#include <gtk/gtkmenuitem.h>
+#include <gtk/gtk.h>
#include "marshal.h"
#include "debug.h"
+
/*===========================================*/
/* Private types */
/*===========================================*/
typedef void (*glWdgtMergeMenuSignal) (GObject * object, gpointer data);
+
/*===========================================*/
/* Private globals */
/*===========================================*/
static gint signals[LAST_SIGNAL] = { 0 };
+
/*===========================================*/
/* Local function prototypes */
/*===========================================*/
static void gl_wdgt_merge_menu_finalize (GObject *object);
-\f
/****************************************************************************/
/* Boilerplate Object stuff. */
/****************************************************************************/
gl_debug (DEBUG_MERGE_MENU, "END");
}
+
static void
gl_wdgt_merge_menu_init (glWdgtMergeMenu *merge_menu)
{
gl_debug (DEBUG_MERGE_MENU, "END");
}
+
static void
gl_wdgt_merge_menu_finalize (GObject *object)
{
gl_debug (DEBUG_MERGE_MENU, "END");
}
+
GtkWidget *
gl_wdgt_merge_menu_new (void)
{
gl_debug (DEBUG_MERGE_MENU, "END");
}
+
/****************************************************************************/
/* set field names. */
/****************************************************************************/
gl_debug (DEBUG_MERGE_MENU, "END");
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * wdgt_merge_menu.h: Merge menu widget module header file
+ * wdgt-merge-menu.h
+ * Copyright (C) 2008-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2008 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __WDGT_MERGE_MENU_H__
#define __WDGT_MERGE_MENU_H__
-#include <gtk/gtkmenu.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
G_END_DECLS
#endif
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * window.c: a gLabels app window
+ * window.c
+ * Copyright (C) 2002-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "window.h"
#include <glib/gi18n.h>
-#include <gtk/gtkvbox.h>
-#include <gtk/gtkhbox.h>
-#include <gtk/gtklabel.h>
-#include <gtk/gtkframe.h>
-#include <gtk/gtkstatusbar.h>
+#include <gtk/gtk.h>
#include "ui.h"
#include "ui-commands.h"
#include "debug.h"
+
/*===========================================================================*/
/* Private macros and constants. */
/*===========================================================================*/
#define CURSOR_INFO_WIDTH 150
#define ZOOM_INFO_WIDTH 50
+
/*===========================================================================*/
/* Private globals */
/*===========================================================================*/
static void modified_changed_cb (glLabel *label,
glWindow *window);
-\f
+
/****************************************************************************/
/* Boilerplate Object stuff. */
/****************************************************************************/
gl_debug (DEBUG_WINDOW, "END");
}
+
static void
gl_window_init (glWindow *window)
{
gl_debug (DEBUG_WINDOW, "END");
}
+
static void
gl_window_finalize (GObject *object)
{
gl_debug (DEBUG_WINDOW, "END");
}
+
static void
gl_window_destroy (GtkObject *gtk_object)
{
return GTK_WIDGET(window);
}
+
/****************************************************************************/
/** Create a glabels window from a label. */
/****************************************************************************/
return GTK_WIDGET(window);
}
+
/****************************************************************************/
/** Create a glabels window from a glabels file. */
/****************************************************************************/
return GTK_WIDGET(window);
}
+
/****************************************************************************/
/** Is window empty? */
/****************************************************************************/
return ( window->view == NULL );
}
+
/****************************************************************************/
/** Create view from label and place in window. */
/****************************************************************************/
gl_debug (DEBUG_WINDOW, "END");
}
+
/****************************************************************************/
/** Return list of glabels windows. */
/****************************************************************************/
return window_list;
}
+
/*---------------------------------------------------------------------------*/
/** PRIVATE. Set window title based on name and state of label. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_WINDOW, "END");
}
+
/*-------------------------------------------------------------------------*/
/** PRIVATE. Window "delete-event" callback. */
/*-------------------------------------------------------------------------*/
return TRUE;
}
+
/*---------------------------------------------------------------------------*/
/** PRIVATE. View "selection state changed" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_WINDOW, "END");
}
+
/*---------------------------------------------------------------------------*/
/** PRIVATE. View "context menu activate" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_WINDOW, "END");
}
+
/*---------------------------------------------------------------------------*/
/** PRIVATE. View "zoom state changed" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_WINDOW, "END");
}
+
/*---------------------------------------------------------------------------*/
/** PRIVATE. View "pointer moved" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_WINDOW, "END");
}
+
/*---------------------------------------------------------------------------*/
/** PRIVATE. View "pointer exit" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_WINDOW, "END");
}
+
/*---------------------------------------------------------------------------*/
/** PRIVATE. Label "name changed" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_WINDOW, "END");
}
+
/*---------------------------------------------------------------------------*/
/** PRIVATE. Label "modified state changed" callback. */
/*---------------------------------------------------------------------------*/
gl_debug (DEBUG_WINDOW, "END");
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * window.h: a gLabels app window
+ * window.h
+ * Copyright (C) 2002-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __WINDOW_H__
#define __WINDOW_H__
-#include <gtk/gtkwindow.h>
-#include <gtk/gtkuimanager.h>
-#include <gtk/gtkmenu.h>
+#include <gtk/gtk.h>
#include "view.h"
#include "label.h"
G_END_DECLS
#endif /* __WINDOW_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * xml-label-04.c: GLabels xml label compat module
+ * xml-label-04.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include <glib/gi18n.h>
+#include <libglabels/libglabels.h>
#include "label-text.h"
#include "label-box.h"
#include "label-line.h"
#include "label-ellipse.h"
#include "label-image.h"
#include "label-barcode.h"
-#include <libglabels/db.h>
-#include <libglabels/xml.h>
-
#include "util.h"
+
#include "debug.h"
+
static gboolean xml04_parse_media_description (xmlNodePtr node,
glLabel *label);
static void xml04_parse_object (xmlNodePtr node,
static void xml04_parse_merge_properties (xmlNodePtr node,
glLabel *label);
-\f
+
/****************************************************************************/
/* PRIVATE. Parse xml doc structure and create label. */
/****************************************************************************/
return label;
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse Media Description node. */
/*--------------------------------------------------------------------------*/
return ret;
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse XML Object Node */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse XML Label->Text Node Properties */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse XML Label->Box Node Properties */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse XML Label->Line Node Properties */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse XML Label->Ellipse Node Properties */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse XML Label->Image Node Properties */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse XML Label->Barcode Node Properties */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse XML merge properties tag. */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * xml-label-04.h: GLabels xml label compat module header file
+ * xml-label-04.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __XML_LABEL_04_H__
#define __XML_LABEL_04_H__
#endif /* __XML_LABEL_04_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * label.c: GLabels xml label module
+ * xml-label.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "xml-label.h"
#include <glib/gi18n.h>
-#include <glib/gbase64.h>
+#include <glib.h>
#include <libxml/tree.h>
#include <libxml/parser.h>
#include <libxml/xinclude.h>
#include <gdk-pixbuf/gdk-pixdata.h>
+#include <libglabels/libglabels.h>
#include "label.h"
#include "label-object.h"
#include "label-text.h"
#include "label-image.h"
#include "label-barcode.h"
#include "xml-label-04.h"
-#include <libglabels/db.h>
-#include <libglabels/xml-template.h>
-#include <libglabels/xml.h>
#include "util.h"
#include "debug.h"
+
/*========================================================*/
/* Private macros and constants. */
/*========================================================*/
#define COMPAT04_NAME_SPACE "http://snaught.com/glabels/0.4/"
#define COMPAT20_NAME_SPACE "http://snaught.com/glabels/2.0/"
+
/*========================================================*/
/* Private types. */
/*========================================================*/
+
/*========================================================*/
/* Private globals. */
/*========================================================*/
+
/*========================================================*/
/* Private function prototypes. */
/*========================================================*/
return label;
}
+
/****************************************************************************/
/* Read label from xml buffer. */
/****************************************************************************/
return label;
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse xml doc structure and create label. */
/*--------------------------------------------------------------------------*/
return label;
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse xml root node and create label. */
/*--------------------------------------------------------------------------*/
return label;
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse Objects node. */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse XML Objects->Object-text Node */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse XML Objects->Object-box Node */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse XML Objects->Object-ellipse Node */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse XML Objects->Object-line Node */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse XML Objects->Object-image Node */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse XML Objects->Object-barcode Node */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse XML merge fields tag. */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse XML data tag. */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse XML pixbuf data tag. */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse top-level Span tag. */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse affine attributes. */
/*--------------------------------------------------------------------------*/
gl_label_object_set_matrix (object, &matrix);
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Parse shadow attributes. */
/*--------------------------------------------------------------------------*/
}
}
+
/****************************************************************************/
/* Save label to xml label file. */
/****************************************************************************/
gl_debug (DEBUG_XML, "END");
}
+
/****************************************************************************/
/* Save label to xml buffer. */
/****************************************************************************/
return (gchar *)buffer;
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Convert label to xml doc structure. */
/*--------------------------------------------------------------------------*/
return doc;
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Add XML Objects Node */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Add XML Objects->Object-text Node */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Add XML Objects->Object-box Node */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Add XML Objects->Object-ellipse Node */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Add XML Objects->Object-line Node */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Add XML Objects->Object-image Node */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Add XML Objects->Object-barcode Node */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Add XML Label Merge Fields Node */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Add XML Label Data Node */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Add XML Label Data Pixbuf Node */
/*--------------------------------------------------------------------------*/
gl_debug (DEBUG_XML, "END");
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Create top-level Span node. */
/*--------------------------------------------------------------------------*/
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Create affine attributes. */
/*--------------------------------------------------------------------------*/
lgl_xml_set_prop_double (node, "a5", matrix.y0);
}
+
/*--------------------------------------------------------------------------*/
/* PRIVATE. Create shadow attributes. */
/*--------------------------------------------------------------------------*/
}
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * xml-label.h: GLabels xml label module header file
+ * xml-label.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
+
#ifndef __XML_LABEL_H__
#define __XML_LABEL_H__
#endif /* __XML_LABEL_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */