aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus/gal-define-views-model.h
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-11-12 05:45:24 +0800
committerChris Lahey <clahey@src.gnome.org>2000-11-12 05:45:24 +0800
commit2d64058a8f7c03d1035504eaacc219730b5cd3c6 (patch)
treec8a0537fe8db3b3685413e0ab2914b20ee7f8e9f /widgets/menus/gal-define-views-model.h
parent618515cd0beaed45af59994d84592b5d513bd979 (diff)
downloadgsoc2013-evolution-2d64058a8f7c03d1035504eaacc219730b5cd3c6.tar.gz
gsoc2013-evolution-2d64058a8f7c03d1035504eaacc219730b5cd3c6.tar.zst
gsoc2013-evolution-2d64058a8f7c03d1035504eaacc219730b5cd3c6.zip
Added a bunch of .lo s from the menus directory.
2000-11-11 Christopher James Lahey <clahey@helixcode.com> * gal/Makefile.am: Added a bunch of .lo s from the menus directory. From gal/menus: 2000-11-11 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added gal-define-views-model.c, gal-define-views-model.h, gal-view-new-dialog.c, gal-view-new-dialog.h, gal-view-new-dialog.glade, gal-view-new-dialog.glade.h, gal-view.c, and gal-view.h. * gal-define-views-dialog.c, gal-define-views-dialog.h: Connect up the New button. Use an ETable. * gal-define-views.glade, gal-define-views.glade.h: Put in custom object for the ETable * gal-define-views-model.c, gal-define-views-model.h: New model for list of views. * gal-view-menus.c: Close the define views dialog when it's done. * gal-view-new-dialog.c, gal-view-new-dialog.glade, gal-view-new-dialog.glade.h, gal-view-new-dialog.h: New class for creating a new view. * gal-view.c, gal-view.h: New class for representing a single view in the define views model. svn path=/trunk/; revision=6544
Diffstat (limited to 'widgets/menus/gal-define-views-model.h')
-rw-r--r--widgets/menus/gal-define-views-model.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/widgets/menus/gal-define-views-model.h b/widgets/menus/gal-define-views-model.h
new file mode 100644
index 0000000000..cdd729eef0
--- /dev/null
+++ b/widgets/menus/gal-define-views-model.h
@@ -0,0 +1,43 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+#ifndef _GAL_DEFINE_VIEWS_MODEL_H_
+#define _GAL_DEFINE_VIEWS_MODEL_H_
+
+#include <gal/e-table/e-table-model.h>
+#include "gal-view.h"
+
+#define GAL_DEFINE_VIEWS_MODEL_TYPE (gal_define_views_model_get_type ())
+#define GAL_DEFINE_VIEWS_MODEL(o) (GTK_CHECK_CAST ((o), GAL_DEFINE_VIEWS_MODEL_TYPE, GalDefineViewsModel))
+#define GAL_DEFINE_VIEWS_MODEL_CLASS(k) (GTK_CHECK_CLASS_CAST((k), GAL_DEFINE_VIEWS_MODEL_TYPE, GalDefineViewsModelClass))
+#define GAL_IS_DEFINE_VIEWS_MODEL(o) (GTK_CHECK_TYPE ((o), GAL_DEFINE_VIEWS_MODEL_TYPE))
+#define GAL_IS_DEFINE_VIEWS_MODEL_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), GAL_DEFINE_VIEWS_MODEL_TYPE))
+
+/* Virtual Column list:
+ 0 Email
+ 1 Full Name
+ 2 Street
+ 3 Phone
+*/
+
+typedef struct {
+ ETableModel parent;
+
+ /* item specific fields */
+ GalView **data;
+ int data_count;
+
+ guint editable : 1;
+} GalDefineViewsModel;
+
+
+typedef struct {
+ ETableModelClass parent_class;
+} GalDefineViewsModelClass;
+
+
+GtkType gal_define_views_model_get_type (void);
+ETableModel *gal_define_views_model_new (void);
+
+void gal_define_views_model_append (GalDefineViewsModel *model,
+ GalView *view);
+
+#endif /* _GAL_DEFINE_VIEWS_MODEL_H_ */