/* Private function prototypes. */
/*========================================================*/
-static void gl_label_class_init (glLabelClass *klass);
-static void gl_label_instance_init (glLabel *label);
-static void gl_label_finalize (GObject *object);
+static void gl_label_class_init (glLabelClass *klass);
+static void gl_label_instance_init (glLabel *label);
+static void gl_label_finalize (GObject *object);
-static void object_changed_cb (glLabelObject *object, glLabel *label);
-static void object_moved_cb (glLabelObject *object,
- gdouble x, gdouble y, glLabel *label);
+static void object_changed_cb (glLabelObject *object,
+ glLabel *label);
+
+static void object_moved_cb (glLabelObject *object,
+ gdouble x,
+ gdouble y,
+ glLabel *label);
\f
/*****************************************************************************/
gl_label_finalize (GObject *object)
{
glLabel *label;
- GList *p, *p_next;
+ GList *p, *p_next;
gl_debug (DEBUG_LABEL, "START");
/* Add object to label. */
/*****************************************************************************/
void
-gl_label_add_object (glLabel *label,
+gl_label_add_object (glLabel *label,
glLabelObject *object)
{
gl_debug (DEBUG_LABEL, "START");
/* Remove object from label. */
/*****************************************************************************/
void
-gl_label_remove_object (glLabel *label,
+gl_label_remove_object (glLabel *label,
glLabelObject *object)
{
gl_debug (DEBUG_LABEL, "START");
/* PRIVATE. Object changed callback. */
/*---------------------------------------------------------------------------*/
static void
-object_changed_cb (glLabelObject *object, glLabel *label)
+object_changed_cb (glLabelObject *object,
+ glLabel *label)
{
if ( !label->private->modified_flag ) {
/* PRIVATE. Object moved callback. */
/*---------------------------------------------------------------------------*/
static void
-object_moved_cb (glLabelObject *object, gdouble x, gdouble y, glLabel *label)
+object_moved_cb (glLabelObject *object,
+ gdouble x,
+ gdouble y,
+ glLabel *label)
{
if ( !label->private->modified_flag ) {
/* Bring label object to front/top. */
/****************************************************************************/
void
-gl_label_raise_object_to_top (glLabel *label, glLabelObject *object)
+gl_label_raise_object_to_top (glLabel *label,
+ glLabelObject *object)
{
gl_debug (DEBUG_LABEL, "START");
/* Send label object to rear/bottom. */
/****************************************************************************/
void
-gl_label_lower_object_to_bottom (glLabel *label, glLabelObject *object)
+gl_label_lower_object_to_bottom (glLabel *label,
+ glLabelObject *object)
{
gl_debug (DEBUG_LABEL, "START");
/* set template. */
/****************************************************************************/
extern void
-gl_label_set_template (glLabel *label,
+gl_label_set_template (glLabel *label,
glTemplate *template)
{
gl_debug (DEBUG_LABEL, "START");
/* Get template. */
/****************************************************************************/
glTemplate *
-gl_label_get_template (glLabel * label)
+gl_label_get_template (glLabel *label)
{
gl_debug (DEBUG_LABEL, "START");
/* Get rotate flag. */
/****************************************************************************/
gboolean
-gl_label_get_rotate_flag (glLabel * label)
+gl_label_get_rotate_flag (glLabel *label)
{
gl_debug (DEBUG_LABEL, "START");
/* Get label size. */
/****************************************************************************/
void
-gl_label_get_size (glLabel * label,
+gl_label_get_size (glLabel *label,
gdouble *w,
gdouble *h)
{
/* set merge information structure. */
/****************************************************************************/
extern void
-gl_label_set_merge (glLabel * label,
- glMerge * merge)
+gl_label_set_merge (glLabel *label,
+ glMerge *merge)
{
gl_debug (DEBUG_LABEL, "START");
/* Get merge information structure. */
/****************************************************************************/
glMerge *
-gl_label_get_merge (glLabel * label)
+gl_label_get_merge (glLabel *label)
{
gl_debug (DEBUG_LABEL, "START");
/* return filename. */
/****************************************************************************/
gchar *
-gl_label_get_filename (glLabel * label)
+gl_label_get_filename (glLabel *label)
{
gl_debug (DEBUG_LABEL, "");
/* return short filename. */
/****************************************************************************/
gchar *
-gl_label_get_short_name (glLabel * label)
+gl_label_get_short_name (glLabel *label)
{
gl_debug (DEBUG_LABEL, "");
/* Is label modified? */
/****************************************************************************/
gboolean
-gl_label_is_modified (glLabel * label)
+gl_label_is_modified (glLabel *label)
{
gl_debug (DEBUG_LABEL, "return %d", label->private->modified_flag);
return label->private->modified_flag;
/* Is label untitled? */
/****************************************************************************/
gboolean
-gl_label_is_untitled (glLabel * label)
+gl_label_is_untitled (glLabel *label)
{
gl_debug (DEBUG_LABEL, "return %d",(label->private->filename == NULL));
return (label->private->filename == NULL);
/* Can undo? */
/****************************************************************************/
gboolean
-gl_label_can_undo (glLabel * label)
+gl_label_can_undo (glLabel *label)
{
return FALSE;
}
/* Can redo? */
/****************************************************************************/
gboolean
-gl_label_can_redo (glLabel * label)
+gl_label_can_redo (glLabel *label)
{
return FALSE;
}
/* Set filename. */
/****************************************************************************/
void
-gl_label_set_filename (glLabel *label,
- const gchar *filename)
+gl_label_set_filename (glLabel *label,
+ const gchar *filename)
{
label->private->filename = g_strdup (filename);
/* Clear modified flag. */
/****************************************************************************/
void
-gl_label_clear_modified (glLabel *label)
+gl_label_clear_modified (glLabel *label)
{
if ( label->private->modified_flag ) {
struct _glLabelClass {
GObjectClass parent_class;
- void (*changed) (glLabel *label, gpointer user_data);
+ void (*changed) (glLabel *label, gpointer user_data);
- void (*name_changed) (glLabel *label, gpointer user_data);
+ void (*name_changed) (glLabel *label, gpointer user_data);
void (*modified_changed) (glLabel *label, gpointer user_data);
};
-extern GType gl_label_get_type (void);
+GType gl_label_get_type (void);
-extern GObject *gl_label_new (void);
+GObject *gl_label_new (void);
-extern void gl_label_add_object (glLabel *label,
- glLabelObject *object);
-extern void gl_label_remove_object (glLabel *label,
- glLabelObject *object);
-extern void gl_label_raise_object_to_top (glLabel *label,
- glLabelObject * object);
-extern void gl_label_lower_object_to_bottom (glLabel *label,
- glLabelObject * object);
-extern void gl_label_set_template (glLabel * label,
- glTemplate *template);
+void gl_label_add_object (glLabel *label,
+ glLabelObject *object);
-extern void gl_label_set_rotate_flag (glLabel * label,
- gboolean rotate_flag);
+void gl_label_remove_object (glLabel *label,
+ glLabelObject *object);
-extern glTemplate *gl_label_get_template (glLabel * label);
-extern gboolean gl_label_get_rotate_flag (glLabel * label);
-extern void gl_label_get_size (glLabel * label,
- gdouble *w,
- gdouble *h);
+void gl_label_raise_object_to_top (glLabel *label,
+ glLabelObject *object);
-extern void gl_label_set_merge (glLabel * label,
- glMerge * merge);
-extern glMerge *gl_label_get_merge (glLabel * label);
+void gl_label_lower_object_to_bottom (glLabel *label,
+ glLabelObject *object);
-extern gchar *gl_label_get_filename (glLabel * label);
-extern gchar *gl_label_get_short_name (glLabel * label);
-extern gboolean gl_label_is_modified (glLabel * label);
-extern gboolean gl_label_is_untitled (glLabel * label);
-extern gboolean gl_label_can_undo (glLabel * label);
-extern gboolean gl_label_can_redo (glLabel * label);
-extern void gl_label_set_filename (glLabel *label,
- const gchar *filename);
-extern void gl_label_clear_modified (glLabel *label);
+void gl_label_set_template (glLabel *label,
+ glTemplate *template);
+
+void gl_label_set_rotate_flag (glLabel *label,
+ gboolean rotate_flag);
+
+
+glTemplate *gl_label_get_template (glLabel *label);
+
+gboolean gl_label_get_rotate_flag (glLabel *label);
+
+void gl_label_get_size (glLabel *label,
+ gdouble *w,
+ gdouble *h);
+
+
+void gl_label_set_merge (glLabel *label,
+ glMerge *merge);
+
+glMerge *gl_label_get_merge (glLabel *label);
+
+
+gchar *gl_label_get_filename (glLabel *label);
+
+gchar *gl_label_get_short_name (glLabel *label);
+
+gboolean gl_label_is_modified (glLabel *label);
+
+gboolean gl_label_is_untitled (glLabel *label);
+
+gboolean gl_label_can_undo (glLabel *label);
+
+gboolean gl_label_can_redo (glLabel *label);
+
+
+void gl_label_set_filename (glLabel *label,
+ const gchar *filename);
+
+void gl_label_clear_modified (glLabel *label);
G_END_DECLS