-/* -*- 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
+ */