Initial commit
[fillmore] / src / fillmore / fillmore / FillmoreClassFactory.c
diff --git a/src/fillmore/fillmore/FillmoreClassFactory.c b/src/fillmore/fillmore/FillmoreClassFactory.c
new file mode 100644 (file)
index 0000000..32a4c30
--- /dev/null
@@ -0,0 +1,401 @@
+/* FillmoreClassFactory.c generated by valac, the Vala compiler
+ * generated from FillmoreClassFactory.vala, do not modify */
+
+/* Copyright 2009-2010 Yorba Foundation
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later).  See the COPYING file in this distribution. 
+ */
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+#include <marina.h>
+#include <float.h>
+#include <math.h>
+
+
+#define TYPE_TRACK_SEPARATOR (track_separator_get_type ())
+#define TRACK_SEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRACK_SEPARATOR, TrackSeparator))
+#define TRACK_SEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRACK_SEPARATOR, TrackSeparatorClass))
+#define IS_TRACK_SEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRACK_SEPARATOR))
+#define IS_TRACK_SEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRACK_SEPARATOR))
+#define TRACK_SEPARATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRACK_SEPARATOR, TrackSeparatorClass))
+
+typedef struct _TrackSeparator TrackSeparator;
+typedef struct _TrackSeparatorClass TrackSeparatorClass;
+typedef struct _TrackSeparatorPrivate TrackSeparatorPrivate;
+
+#define TYPE_FILLMORE_TRACK_VIEW (fillmore_track_view_get_type ())
+#define FILLMORE_TRACK_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILLMORE_TRACK_VIEW, FillmoreTrackView))
+#define FILLMORE_TRACK_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILLMORE_TRACK_VIEW, FillmoreTrackViewClass))
+#define IS_FILLMORE_TRACK_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILLMORE_TRACK_VIEW))
+#define IS_FILLMORE_TRACK_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILLMORE_TRACK_VIEW))
+#define FILLMORE_TRACK_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILLMORE_TRACK_VIEW, FillmoreTrackViewClass))
+
+typedef struct _FillmoreTrackView FillmoreTrackView;
+typedef struct _FillmoreTrackViewClass FillmoreTrackViewClass;
+typedef struct _FillmoreTrackViewPrivate FillmoreTrackViewPrivate;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+
+#define TYPE_FILLMORE_CLASS_FACTORY (fillmore_class_factory_get_type ())
+#define FILLMORE_CLASS_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILLMORE_CLASS_FACTORY, FillmoreClassFactory))
+#define FILLMORE_CLASS_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILLMORE_CLASS_FACTORY, FillmoreClassFactoryClass))
+#define IS_FILLMORE_CLASS_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILLMORE_CLASS_FACTORY))
+#define IS_FILLMORE_CLASS_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILLMORE_CLASS_FACTORY))
+#define FILLMORE_CLASS_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILLMORE_CLASS_FACTORY, FillmoreClassFactoryClass))
+
+typedef struct _FillmoreClassFactory FillmoreClassFactory;
+typedef struct _FillmoreClassFactoryClass FillmoreClassFactoryClass;
+typedef struct _FillmoreClassFactoryPrivate FillmoreClassFactoryPrivate;
+
+struct _TrackSeparator {
+       GtkHSeparator parent_instance;
+       TrackSeparatorPrivate * priv;
+};
+
+struct _TrackSeparatorClass {
+       GtkHSeparatorClass parent_class;
+};
+
+struct _FillmoreTrackView {
+       GtkVBox parent_instance;
+       FillmoreTrackViewPrivate * priv;
+};
+
+struct _FillmoreTrackViewClass {
+       GtkVBoxClass parent_class;
+};
+
+struct _FillmoreTrackViewPrivate {
+       TrackView* track_view;
+};
+
+struct _FillmoreClassFactory {
+       ClassFactory parent_instance;
+       FillmoreClassFactoryPrivate * priv;
+};
+
+struct _FillmoreClassFactoryClass {
+       ClassFactoryClass parent_class;
+};
+
+
+static gpointer track_separator_parent_class = NULL;
+static gpointer fillmore_track_view_parent_class = NULL;
+static TrackViewIface* fillmore_track_view_track_view_parent_iface = NULL;
+static gpointer fillmore_class_factory_parent_class = NULL;
+
+GType track_separator_get_type (void);
+enum  {
+       TRACK_SEPARATOR_DUMMY_PROPERTY
+};
+TrackSeparator* track_separator_new (void);
+TrackSeparator* track_separator_construct (GType object_type);
+GType fillmore_track_view_get_type (void);
+#define FILLMORE_TRACK_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_FILLMORE_TRACK_VIEW, FillmoreTrackViewPrivate))
+enum  {
+       FILLMORE_TRACK_VIEW_DUMMY_PROPERTY
+};
+static void fillmore_track_view_on_clip_view_added (FillmoreTrackView* self, ClipView* clip_view);
+static void _fillmore_track_view_on_clip_view_added_track_view_clip_view_added (TrackView* _sender, ClipView* clip_view, gpointer self);
+FillmoreTrackView* fillmore_track_view_new (TrackView* track_view);
+FillmoreTrackView* fillmore_track_view_construct (GType object_type, TrackView* track_view);
+static void fillmore_track_view_real_move_to_top (TrackView* base, ClipView* clip_view);
+static void fillmore_track_view_real_resize (TrackView* base);
+static ModelTrack* fillmore_track_view_real_get_track (TrackView* base);
+static gint fillmore_track_view_real_get_track_height (TrackView* base);
+static GtkWidget* fillmore_track_view_real_find_child (TrackView* base, double x, double y);
+static void fillmore_track_view_real_select_all (TrackView* base);
+static void fillmore_track_view_finalize (GObject* obj);
+GType fillmore_class_factory_get_type (void);
+enum  {
+       FILLMORE_CLASS_FACTORY_DUMMY_PROPERTY
+};
+static TrackView* fillmore_class_factory_real_get_track_view (ClassFactory* base, ModelTrack* track, TimeLine* timeline);
+FillmoreClassFactory* fillmore_class_factory_new (void);
+FillmoreClassFactory* fillmore_class_factory_construct (GType object_type);
+
+
+
+#line 7 "FillmoreClassFactory.vala"
+TrackSeparator* track_separator_construct (GType object_type) {
+#line 124 "FillmoreClassFactory.c"
+       TrackSeparator * self;
+       self = g_object_newv (object_type, 0, NULL);
+       return self;
+}
+
+
+#line 7 "FillmoreClassFactory.vala"
+TrackSeparator* track_separator_new (void) {
+#line 7 "FillmoreClassFactory.vala"
+       return track_separator_construct (TYPE_TRACK_SEPARATOR);
+#line 135 "FillmoreClassFactory.c"
+}
+
+
+static void track_separator_class_init (TrackSeparatorClass * klass) {
+       track_separator_parent_class = g_type_class_peek_parent (klass);
+}
+
+
+static void track_separator_instance_init (TrackSeparator * self) {
+}
+
+
+GType track_separator_get_type (void) {
+       static volatile gsize track_separator_type_id__volatile = 0;
+       if (g_once_init_enter (&track_separator_type_id__volatile)) {
+               static const GTypeInfo g_define_type_info = { sizeof (TrackSeparatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) track_separator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackSeparator), 0, (GInstanceInitFunc) track_separator_instance_init, NULL };
+               GType track_separator_type_id;
+               track_separator_type_id = g_type_register_static (GTK_TYPE_HSEPARATOR, "TrackSeparator", &g_define_type_info, 0);
+               g_once_init_leave (&track_separator_type_id__volatile, track_separator_type_id);
+       }
+       return track_separator_type_id__volatile;
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+       return self ? g_object_ref (self) : NULL;
+}
+
+
+#line 38 "FillmoreClassFactory.vala"
+static void _fillmore_track_view_on_clip_view_added_track_view_clip_view_added (TrackView* _sender, ClipView* clip_view, gpointer self) {
+#line 167 "FillmoreClassFactory.c"
+       fillmore_track_view_on_clip_view_added (self, clip_view);
+}
+
+
+#line 13 "FillmoreClassFactory.vala"
+FillmoreTrackView* fillmore_track_view_construct (GType object_type, TrackView* track_view) {
+#line 174 "FillmoreClassFactory.c"
+       FillmoreTrackView * self;
+       TrackView* _tmp0_;
+       TrackSeparator* _tmp1_;
+#line 13 "FillmoreClassFactory.vala"
+       g_return_val_if_fail (IS_TRACK_VIEW (track_view), NULL);
+#line 180 "FillmoreClassFactory.c"
+       self = g_object_newv (object_type, 0, NULL);
+#line 14 "FillmoreClassFactory.vala"
+       self->priv->track_view = (_tmp0_ = _g_object_ref0 (track_view), _g_object_unref0 (self->priv->track_view), _tmp0_);
+#line 15 "FillmoreClassFactory.vala"
+       g_signal_connect_object (track_view, "clip-view-added", (GCallback) _fillmore_track_view_on_clip_view_added_track_view_clip_view_added, self, 0);
+#line 17 "FillmoreClassFactory.vala"
+       gtk_box_pack_start (GTK_BOX (self), GTK_WIDGET (track_view), TRUE, TRUE, (guint) 0);
+#line 18 "FillmoreClassFactory.vala"
+       gtk_box_pack_start (GTK_BOX (self), GTK_WIDGET (_tmp1_ = g_object_ref_sink (track_separator_new ())), FALSE, FALSE, (guint) 0);
+#line 190 "FillmoreClassFactory.c"
+       _g_object_unref0 (_tmp1_);
+#line 19 "FillmoreClassFactory.vala"
+       g_object_set (GTK_WIDGET (self), "can-focus", FALSE, NULL);
+#line 194 "FillmoreClassFactory.c"
+       return self;
+}
+
+
+#line 13 "FillmoreClassFactory.vala"
+FillmoreTrackView* fillmore_track_view_new (TrackView* track_view) {
+#line 13 "FillmoreClassFactory.vala"
+       return fillmore_track_view_construct (TYPE_FILLMORE_TRACK_VIEW, track_view);
+#line 203 "FillmoreClassFactory.c"
+}
+
+
+#line 22 "FillmoreClassFactory.vala"
+static void fillmore_track_view_real_move_to_top (TrackView* base, ClipView* clip_view) {
+#line 209 "FillmoreClassFactory.c"
+       FillmoreTrackView * self;
+       self = FILLMORE_TRACK_VIEW (base);
+#line 22 "FillmoreClassFactory.vala"
+       g_return_if_fail (IS_CLIP_VIEW (clip_view));
+#line 23 "FillmoreClassFactory.vala"
+       track_view_move_to_top (self->priv->track_view, clip_view);
+#line 216 "FillmoreClassFactory.c"
+}
+
+
+#line 26 "FillmoreClassFactory.vala"
+static void fillmore_track_view_real_resize (TrackView* base) {
+#line 222 "FillmoreClassFactory.c"
+       FillmoreTrackView * self;
+       self = FILLMORE_TRACK_VIEW (base);
+#line 27 "FillmoreClassFactory.vala"
+       track_view_resize (self->priv->track_view);
+#line 227 "FillmoreClassFactory.c"
+}
+
+
+#line 30 "FillmoreClassFactory.vala"
+static ModelTrack* fillmore_track_view_real_get_track (TrackView* base) {
+#line 233 "FillmoreClassFactory.c"
+       FillmoreTrackView * self;
+       ModelTrack* result = NULL;
+       self = FILLMORE_TRACK_VIEW (base);
+       result = track_view_get_track (self->priv->track_view);
+#line 31 "FillmoreClassFactory.vala"
+       return result;
+#line 240 "FillmoreClassFactory.c"
+}
+
+
+#line 34 "FillmoreClassFactory.vala"
+static gint fillmore_track_view_real_get_track_height (TrackView* base) {
+#line 246 "FillmoreClassFactory.c"
+       FillmoreTrackView * self;
+       gint result = 0;
+       self = FILLMORE_TRACK_VIEW (base);
+       result = track_view_get_track_height (self->priv->track_view);
+#line 35 "FillmoreClassFactory.vala"
+       return result;
+#line 253 "FillmoreClassFactory.c"
+}
+
+
+#line 38 "FillmoreClassFactory.vala"
+static void fillmore_track_view_on_clip_view_added (FillmoreTrackView* self, ClipView* clip_view) {
+#line 38 "FillmoreClassFactory.vala"
+       g_return_if_fail (IS_FILLMORE_TRACK_VIEW (self));
+#line 38 "FillmoreClassFactory.vala"
+       g_return_if_fail (IS_CLIP_VIEW (clip_view));
+#line 39 "FillmoreClassFactory.vala"
+       g_signal_emit_by_name (TRACK_VIEW (self), "clip-view-added", clip_view);
+#line 265 "FillmoreClassFactory.c"
+}
+
+
+#line 42 "FillmoreClassFactory.vala"
+static GtkWidget* fillmore_track_view_real_find_child (TrackView* base, double x, double y) {
+#line 271 "FillmoreClassFactory.c"
+       FillmoreTrackView * self;
+       GtkWidget* result = NULL;
+       self = FILLMORE_TRACK_VIEW (base);
+       result = track_view_find_child (self->priv->track_view, x, y);
+#line 43 "FillmoreClassFactory.vala"
+       return result;
+#line 278 "FillmoreClassFactory.c"
+}
+
+
+#line 46 "FillmoreClassFactory.vala"
+static void fillmore_track_view_real_select_all (TrackView* base) {
+#line 284 "FillmoreClassFactory.c"
+       FillmoreTrackView * self;
+       self = FILLMORE_TRACK_VIEW (base);
+#line 47 "FillmoreClassFactory.vala"
+       track_view_select_all (self->priv->track_view);
+#line 289 "FillmoreClassFactory.c"
+}
+
+
+static void fillmore_track_view_class_init (FillmoreTrackViewClass * klass) {
+       fillmore_track_view_parent_class = g_type_class_peek_parent (klass);
+       g_type_class_add_private (klass, sizeof (FillmoreTrackViewPrivate));
+       G_OBJECT_CLASS (klass)->finalize = fillmore_track_view_finalize;
+}
+
+
+static void fillmore_track_view_track_view_interface_init (TrackViewIface * iface) {
+       fillmore_track_view_track_view_parent_iface = g_type_interface_peek_parent (iface);
+       iface->move_to_top = fillmore_track_view_real_move_to_top;
+       iface->resize = fillmore_track_view_real_resize;
+       iface->get_track = fillmore_track_view_real_get_track;
+       iface->get_track_height = fillmore_track_view_real_get_track_height;
+       iface->find_child = fillmore_track_view_real_find_child;
+       iface->select_all = fillmore_track_view_real_select_all;
+}
+
+
+static void fillmore_track_view_instance_init (FillmoreTrackView * self) {
+       self->priv = FILLMORE_TRACK_VIEW_GET_PRIVATE (self);
+}
+
+
+static void fillmore_track_view_finalize (GObject* obj) {
+       FillmoreTrackView * self;
+       self = FILLMORE_TRACK_VIEW (obj);
+       _g_object_unref0 (self->priv->track_view);
+       G_OBJECT_CLASS (fillmore_track_view_parent_class)->finalize (obj);
+}
+
+
+GType fillmore_track_view_get_type (void) {
+       static volatile gsize fillmore_track_view_type_id__volatile = 0;
+       if (g_once_init_enter (&fillmore_track_view_type_id__volatile)) {
+               static const GTypeInfo g_define_type_info = { sizeof (FillmoreTrackViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fillmore_track_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FillmoreTrackView), 0, (GInstanceInitFunc) fillmore_track_view_instance_init, NULL };
+               static const GInterfaceInfo track_view_info = { (GInterfaceInitFunc) fillmore_track_view_track_view_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+               GType fillmore_track_view_type_id;
+               fillmore_track_view_type_id = g_type_register_static (GTK_TYPE_VBOX, "FillmoreTrackView", &g_define_type_info, 0);
+               g_type_add_interface_static (fillmore_track_view_type_id, TYPE_TRACK_VIEW, &track_view_info);
+               g_once_init_leave (&fillmore_track_view_type_id__volatile, fillmore_track_view_type_id);
+       }
+       return fillmore_track_view_type_id__volatile;
+}
+
+
+#line 52 "FillmoreClassFactory.vala"
+static TrackView* fillmore_class_factory_real_get_track_view (ClassFactory* base, ModelTrack* track, TimeLine* timeline) {
+#line 340 "FillmoreClassFactory.c"
+       FillmoreClassFactory * self;
+       TrackView* result = NULL;
+       TrackView* track_view;
+       self = FILLMORE_CLASS_FACTORY (base);
+#line 52 "FillmoreClassFactory.vala"
+       g_return_val_if_fail (MODEL_IS_TRACK (track), NULL);
+#line 52 "FillmoreClassFactory.vala"
+       g_return_val_if_fail (IS_TIME_LINE (timeline), NULL);
+#line 53 "FillmoreClassFactory.vala"
+       track_view = CLASS_FACTORY_CLASS (fillmore_class_factory_parent_class)->get_track_view (CLASS_FACTORY (self), track, timeline);
+#line 351 "FillmoreClassFactory.c"
+       result = TRACK_VIEW (g_object_ref_sink (fillmore_track_view_new (track_view)));
+       _g_object_unref0 (track_view);
+#line 54 "FillmoreClassFactory.vala"
+       return result;
+#line 356 "FillmoreClassFactory.c"
+}
+
+
+#line 51 "FillmoreClassFactory.vala"
+FillmoreClassFactory* fillmore_class_factory_construct (GType object_type) {
+#line 362 "FillmoreClassFactory.c"
+       FillmoreClassFactory* self;
+#line 51 "FillmoreClassFactory.vala"
+       self = (FillmoreClassFactory*) class_factory_construct (object_type);
+#line 366 "FillmoreClassFactory.c"
+       return self;
+}
+
+
+#line 51 "FillmoreClassFactory.vala"
+FillmoreClassFactory* fillmore_class_factory_new (void) {
+#line 51 "FillmoreClassFactory.vala"
+       return fillmore_class_factory_construct (TYPE_FILLMORE_CLASS_FACTORY);
+#line 375 "FillmoreClassFactory.c"
+}
+
+
+static void fillmore_class_factory_class_init (FillmoreClassFactoryClass * klass) {
+       fillmore_class_factory_parent_class = g_type_class_peek_parent (klass);
+       CLASS_FACTORY_CLASS (klass)->get_track_view = fillmore_class_factory_real_get_track_view;
+}
+
+
+static void fillmore_class_factory_instance_init (FillmoreClassFactory * self) {
+}
+
+
+GType fillmore_class_factory_get_type (void) {
+       static volatile gsize fillmore_class_factory_type_id__volatile = 0;
+       if (g_once_init_enter (&fillmore_class_factory_type_id__volatile)) {
+               static const GTypeInfo g_define_type_info = { sizeof (FillmoreClassFactoryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fillmore_class_factory_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FillmoreClassFactory), 0, (GInstanceInitFunc) fillmore_class_factory_instance_init, NULL };
+               GType fillmore_class_factory_type_id;
+               fillmore_class_factory_type_id = g_type_register_static (TYPE_CLASS_FACTORY, "FillmoreClassFactory", &g_define_type_info, 0);
+               g_once_init_leave (&fillmore_class_factory_type_id__volatile, fillmore_class_factory_type_id);
+       }
+       return fillmore_class_factory_type_id__volatile;
+}
+
+
+
+