]> git.sur5r.net Git - glabels/blobdiff - glabels2/src/label-box.c
2009-09-17 Jim Evins <evins@snaught.com>
[glabels] / glabels2 / src / label-box.c
index a42ad75b38b2914cce2ab6772b860f0fa00f86fa..26797368c97d2ff2e587694ab66fff30bde73b06 100644 (file)
@@ -1,35 +1,30 @@
-/* -*- 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.                                         */
 /*========================================================*/
@@ -40,10 +35,12 @@ struct _glLabelBoxPrivate {
        glColorNode      *fill_color_node;
 };
 
+
 /*========================================================*/
 /* Private globals.                                       */
 /*========================================================*/
 
+
 /*========================================================*/
 /* Private function prototypes.                           */
 /*========================================================*/
@@ -79,14 +76,12 @@ static void    draw_shadow                (glLabelObject     *object,
                                            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)
 {
@@ -108,6 +103,7 @@ gl_label_box_class_init (glLabelBoxClass *class)
        object_class->finalize = gl_label_box_finalize;
 }
 
+
 static void
 gl_label_box_init (glLabelBox *lbox)
 {
@@ -116,6 +112,7 @@ gl_label_box_init (glLabelBox *lbox)
        lbox->priv->fill_color_node = gl_color_node_new_default ();
 }
 
+
 static void
 gl_label_box_finalize (GObject *object)
 {
@@ -130,6 +127,7 @@ gl_label_box_finalize (GObject *object)
        G_OBJECT_CLASS (gl_label_box_parent_class)->finalize (object);
 }
 
+
 /*****************************************************************************/
 /* NEW label "box" object.                                                   */
 /*****************************************************************************/
@@ -145,6 +143,7 @@ gl_label_box_new (glLabel *label)
        return G_OBJECT (lbox);
 }
 
+
 /*****************************************************************************/
 /* Copy object contents.                                                     */
 /*****************************************************************************/
@@ -201,6 +200,7 @@ set_fill_color (glLabelObject *object,
        gl_debug (DEBUG_LABEL, "END");
 }
 
+
 /*---------------------------------------------------------------------------*/
 /* PRIVATE.  Set line color method.                                          */
 /*---------------------------------------------------------------------------*/
@@ -219,6 +219,7 @@ set_line_color (glLabelObject *object,
        }
 }
 
+
 /*---------------------------------------------------------------------------*/
 /* PRIVATE.  Set line width method.                                          */
 /*---------------------------------------------------------------------------*/
@@ -250,6 +251,7 @@ get_line_width (glLabelObject *object)
        return lbox->priv->line_width;
 }
 
+
 /*---------------------------------------------------------------------------*/
 /* PRIVATE.  Get line color method.                                          */
 /*---------------------------------------------------------------------------*/
@@ -263,6 +265,7 @@ get_line_color (glLabelObject *object)
        return gl_color_node_dup (lbox->priv->line_color_node);
 }
 
+
 /*---------------------------------------------------------------------------*/
 /* PRIVATE.  Get line width method.                                          */
 /*---------------------------------------------------------------------------*/
@@ -276,6 +279,7 @@ get_fill_color (glLabelObject *object)
        return gl_color_node_dup (lbox->priv->fill_color_node);
 }
 
+
 /*****************************************************************************/
 /* Draw object method.                                                       */
 /*****************************************************************************/
@@ -329,6 +333,7 @@ draw_object (glLabelObject *object,
        gl_debug (DEBUG_LABEL, "END");
 }
 
+
 /*****************************************************************************/
 /* Draw shadow method.                                                       */
 /*****************************************************************************/
@@ -400,3 +405,14 @@ draw_shadow (glLabelObject *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
+ */