]> git.sur5r.net Git - glabels/blobdiff - glabels2/src/view-barcode.c
2009-09-17 Jim Evins <evins@snaught.com>
[glabels] / glabels2 / src / view-barcode.c
index 522d334c599e85b6df66fbe10a2126d057e7d5b6..84b9cfa484fd3123b8a780e8b1fe3943be800db6 100644 (file)
@@ -1,32 +1,29 @@
-/* -*- 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.                                         */
 /*========================================================*/
@@ -48,6 +47,7 @@
 struct _glViewBarcodePrivate {
 };
 
+
 /*========================================================*/
 /* Private globals.                                       */
 /*========================================================*/
@@ -78,8 +78,6 @@ static gboolean   object_at                         (glViewObject     *view_obje
                                                      gdouble           y);
 
 
-
-\f
 /*****************************************************************************/
 /* Boilerplate object stuff.                                                 */
 /*****************************************************************************/
@@ -104,6 +102,7 @@ gl_view_barcode_class_init (glViewBarcodeClass *class)
        gl_debug (DEBUG_VIEW, "END");
 }
 
+
 static void
 gl_view_barcode_init (glViewBarcode *view_barcode)
 {
@@ -114,6 +113,7 @@ gl_view_barcode_init (glViewBarcode *view_barcode)
        gl_debug (DEBUG_VIEW, "END");
 }
 
+
 static void
 gl_view_barcode_finalize (GObject *object)
 {
@@ -130,6 +130,7 @@ gl_view_barcode_finalize (GObject *object)
        gl_debug (DEBUG_VIEW, "END");
 }
 
+
 /*****************************************************************************/
 /* NEW barcode object view.                                                  */
 /*****************************************************************************/
@@ -156,6 +157,7 @@ gl_view_barcode_new (glLabelBarcode *object,
        return GL_VIEW_OBJECT (view_barcode);
 }
 
+
 /*****************************************************************************/
 /* Create a properties dialog for a barcode object.                          */
 /*****************************************************************************/
@@ -196,6 +198,7 @@ construct_properties_editor (glViewObject *view_object)
        return editor;
 }
 
+
 /*---------------------------------------------------------------------------*/
 /* PRIVATE.  editor "changed" callback.                                      */
 /*---------------------------------------------------------------------------*/
@@ -248,6 +251,7 @@ update_object_from_editor_cb (glObjectEditor *editor,
        gl_debug (DEBUG_VIEW, "END");
 }
 
+
 /*---------------------------------------------------------------------------*/
 /* PRIVATE. label object "changed" callback.                                 */
 /*---------------------------------------------------------------------------*/
@@ -286,6 +290,7 @@ update_editor_from_object_cb (glLabelObject  *object,
        gl_debug (DEBUG_VIEW, "END");
 }
 
+
 /*---------------------------------------------------------------------------*/
 /* PRIVATE. label object "moved" callback.                                   */
 /*---------------------------------------------------------------------------*/
@@ -305,6 +310,7 @@ update_editor_from_move_cb (glLabelObject    *object,
        gl_debug (DEBUG_VIEW, "END");
 }
 
+
 /*****************************************************************************/
 /* Is object at (x,y)?                                                       */
 /*****************************************************************************/
@@ -362,6 +368,7 @@ gl_view_barcode_get_create_cursor (void)
        return cursor;
 }
 
+
 /*****************************************************************************/
 /* Object creation handler: button press event.                              */
 /*****************************************************************************/
@@ -393,6 +400,7 @@ gl_view_barcode_create_button_press_event   (glView *view,
         view->create_y0 = y;
 }
 
+
 /*****************************************************************************/
 /* Object creation handler: motion event.                                    */
 /*****************************************************************************/
@@ -404,6 +412,7 @@ gl_view_barcode_create_motion_event         (glView *view,
         gl_label_object_set_position (GL_LABEL_OBJECT(view->create_object), x, y);
 }
 
+
 /*****************************************************************************/
 /* Object creation handler: button relesase event.                           */
 /*****************************************************************************/
@@ -422,3 +431,13 @@ gl_view_barcode_create_button_release_event (glView *view,
         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
+ */