aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-field-chooser-item.h
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-08 08:40:23 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-08 08:40:23 +0800
commit104a3d0bffd91508ef184487aa9fbc0826cc6177 (patch)
tree39fc1f0bd39305cd2f9ff4fd68c3a24114927066 /widgets/table/e-table-field-chooser-item.h
parentdd9fba5eec0281b96fb323fb02b732728ae4f0d7 (diff)
downloadgsoc2013-evolution-104a3d0bffd91508ef184487aa9fbc0826cc6177.tar.gz
gsoc2013-evolution-104a3d0bffd91508ef184487aa9fbc0826cc6177.tar.zst
gsoc2013-evolution-104a3d0bffd91508ef184487aa9fbc0826cc6177.zip
Added e-table-field-chooser*.
2000-06-07 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added e-table-field-chooser*. * e-table-defines.h: Moved some things to here. * e-table-field-chooser-dialog.c, e-table-field-chooser-dialog.h, e-table-field-chooser-item.c, e-table-field-chooser-item.h, e-table-field-chooser.c, e-table-field-chooser.glade, e-table-field-chooser.glade.h, e-table-field-chooser.h: New dialog to drag extra fields from. (Not yet finished.) * e-table-header-item.c, e-table-header-item.h: Changed to accommodate e-table-field-chooser. svn path=/trunk/; revision=3473
Diffstat (limited to 'widgets/table/e-table-field-chooser-item.h')
-rw-r--r--widgets/table/e-table-field-chooser-item.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/widgets/table/e-table-field-chooser-item.h b/widgets/table/e-table-field-chooser-item.h
new file mode 100644
index 0000000000..4b349f40e3
--- /dev/null
+++ b/widgets/table/e-table-field-chooser-item.h
@@ -0,0 +1,47 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+#ifndef _E_TABLE_FIELD_CHOOSER_ITEM_H_
+#define _E_TABLE_FIELD_CHOOSER_ITEM_H_
+
+#include <libgnomeui/gnome-canvas.h>
+#include <gnome-xml/tree.h>
+#include "e-table-header.h"
+
+#define E_TABLE_FIELD_CHOOSER_ITEM_TYPE (e_table_field_chooser_item_get_type ())
+#define E_TABLE_FIELD_CHOOSER_ITEM(o) (GTK_CHECK_CAST ((o), E_TABLE_FIELD_CHOOSER_ITEM_TYPE, ETableFieldChooserItem))
+#define E_TABLE_FIELD_CHOOSER_ITEM_CLASS(k) (GTK_CHECK_CLASS_CAST((k), E_TABLE_FIELD_CHOOSER_ITEM_TYPE, ETableFieldChooserItemClass))
+#define E_IS_TABLE_FIELD_CHOOSER_ITEM(o) (GTK_CHECK_TYPE ((o), E_TABLE_FIELD_CHOOSER_ITEM_TYPE))
+#define E_IS_TABLE_FIELD_CHOOSER_ITEM_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_TABLE_FIELD_CHOOSER_ITEM_TYPE))
+
+typedef struct {
+ GnomeCanvasItem parent;
+ ETableHeader *full_header;
+
+ double height, width;
+ double button_height;
+
+ GdkFont *font;
+
+ /*
+ * Ids
+ */
+ int structure_change_id, dimension_change_id;
+
+ gchar *dnd_code;
+
+ /*
+ * For dragging columns
+ */
+ guint maybe_drag:1;
+ int click_x, click_y;
+ int drag_col;
+ guint drag_data_get_id;
+ guint drag_end_id;
+} ETableFieldChooserItem;
+
+typedef struct {
+ GnomeCanvasItemClass parent_class;
+} ETableFieldChooserItemClass;
+
+GtkType e_table_field_chooser_item_get_type (void);
+
+#endif /* _E_TABLE_FIELD_CHOOSER_ITEM_H_ */